ven*_*513 3 oracle oracle-apex linux-disk-free lib ubuntu-18.04
我正在尝试配置Oracle XE,但面临以下问题:
root @ venky-Lenovo-G510:〜#/etc/init.d/oracle-xe-18c配置
/ bin / df:无法识别的选项'--direct'尝试使用'/ bin / df --help'了解更多信息。指定用于数据库帐户的密码。Oracle建议输入的密码长度至少为8个字符,至少包含1个大写字母,1个小写字母
大小写字符和1位数字[0-9]。请注意,相同的密码将是
用于SYS,SYSTEM和PDBADMIN帐户:确认密码:配置Oracle Listener。侦听器配置成功。配置Oracle数据库XE。**** [FATAL] [DBT-50000]无法检查可用内存。****
数据库配置失败。检查“ / opt / oracle / cfgtoollogs / dbca”下的日志。
root @ venky-Lenovo-G510:〜#
这和什么有关/bin/df: unrecognized option '--direct'吗?或者是其他东西 ?
谢谢
小智 7
多亏了alexsander-perusso的回答,在Ubuntu 16.04上oracle-xe-18c的正确答案是/etc/init.d/oracle-xe-18c通过添加进行编辑
-J-Doracle.assistants.dbca.validate.ConfigurationParams=false
Run Code Online (Sandbox Code Playgroud)
在。echo "Configuring Oracle Database $ORACLE_SID."之后的直线上$PDB_NAME。
编辑后的行如下所示:
$SU -s /bin/bash $ORACLE_OWNER -c "(echo '$ORACLE_PASSWORD'; echo '$ORACLE_PASSWORD'; echo '$ORACLE_PASSWORD') | $DBCA -silent -createDatabase -gdbName $ORACLE_SID -templateName $TEMPLATE_NAME -characterSet $CHARSET -createAsContainerDatabase $CREATE_AS_CDB -numberOfPDBs $NUMBER_OF_PDBS -pdbName $PDB_NAME -J-Doracle.assistants.dbca.validate.ConfigurationParams=false -sid $ORACLE_SID -emConfiguration DBEXPRESS -emExpressPort $EM_EXPRESS_PORT -J-Doracle.assistants.dbca.validate.DBCredentials=false -sampleSchema true $SQLSCRIPT_CONSTRUCT $DBFILE_CONSTRUCT $MEMORY_CONSTRUCT"
Run Code Online (Sandbox Code Playgroud)
参考:http : //www.eygle.com/archives/2018/11/oracle_18c_19c_dbt_50000.html
我在这里按照说明进行操作:https : //tec600.wordpress.com/2017/06/29/oracle-installation-on-ubuntu-16-04/更改了18c XE
以上更改后的结果:
$sudo /etc/init.d/oracle-xe-18c configure
/bin/df: unrecognized option '--direct'
Try '/bin/df --help' for more information.
Specify a password to be used for database accounts. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:
Confirm the password:
Configuring Oracle Listener.
Listener configuration succeeded.
Configuring Oracle Database XE.
Enter SYS user password:
*******
Enter SYSTEM user password:
*******
Enter PDBADMIN User Password:
*********
Prepare for db operation
7% complete
Copying database files
29% complete
Creating and starting Oracle instance
30% complete
31% complete
34% complete
38% complete
41% complete
43% complete
Completing Database Creation
47% complete
50% complete
Creating Pluggable Databases
54% complete
71% complete
Executing Post Configuration Actions
93% complete
Running Custom Scripts
100% complete
Database creation complete. For details check the logfiles at:
/opt/oracle/cfgtoollogs/dbca/XE.
Database Information:
Global Database Name:XE
System Identifier(SID):XE
Look at the log file "/opt/oracle/cfgtoollogs/dbca/XE/XE.log" for further details.
Connect to Oracle Database using one of the connect strings:
Pluggable database: SERVERNAME:1539/XEPDB1
Multitenant container database: SERVERNAME:1539
Use https://localhost:5500/em to access Oracle Enterprise Manager for Oracle Database XE
Run Code Online (Sandbox Code Playgroud)
小智 3
基本上,您需要使用以下命令编辑脚本文件:
sudo nano /etc/init.d/oracle-xe-18c
Run Code Online (Sandbox Code Playgroud)
并添加 Java 类:
-JDoracle.assistants.dbca.validade.ConfigurationParams=false
Run Code Online (Sandbox Code Playgroud)
请参阅:https://www.youtube.com/watch? v=RcZLD2l6WTw