gpt4 book ai didi

oracle - 在 ubuntu 18.04 上安装 oracle 18cxe 时出现问题

转载 作者:行者123 更新时间:2023-12-02 04:40:20 26 4
gpt4 key购买 nike

我正在尝试配置 Oracle XE,但遇到以下问题:

root@venky-Lenovo-G510:~# /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. ****[FATAL] [DBT-50000] Unable to check for available memory.****

Database configuration failed. Check logs under '/opt/oracle/cfgtoollogs/dbca'.

root@venky-Lenovo-G510:~#

这与 /bin/df: 无法识别的选项 '--direct' 相关吗?还是其他什么?

谢谢

最佳答案

感谢上面 alexsander-perusso 的回答,Ubuntu 16.04 上 oracle-xe-18c 的正确答案是编辑 /etc/init.d/oracle-xe-18c通过添加

-J-Doracle.assistants.dbca.validate.ConfigurationParams=false

在正下方 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" 

引用: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

关于oracle - 在 ubuntu 18.04 上安装 oracle 18cxe 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53580196/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com