oakcli create database fails while it runs "dbca-<SID>.sh"
(Doc ID 1901583.1)
Last updated on FEBRUARY 03, 2020
Applies to:Oracle Database Appliance Software - Version 126.96.36.199 to 188.8.131.52 [Release 2.8]
Information in this document applies to any platform.
oakcli create database -db <SID>
When creating a database using oakcli it invokes a script generated at "/opt/oracle/oak/onecmd/tmp/dbca-<SID>.sh", where <SID> is the SID of the database being created. When running this script oakcli fails with following errors:
INFO : This is root, will become oracle and run: /bin/su oracle -c /usr/bin/ssh -l oracle idkuoddrn0p01 /opt/oracle/oak/onecmd/tmp/dbca-rtest.sh
INFO : Running on the local node: /bin/su oracle -c /opt/oracle/oak/onecmd/tmp/dbca-rtest.sh
ERROR : Ran '/bin/su oracle -c "/opt/oracle/oak/onecmd/tmp/dbca-rtest.sh"' and it returned code(1) and output is: <<<<<
error at</bin/su oracle -c "/opt/oracle/oak/onecmd/tmp/dbca-rtest.sh"> and errnum=<1>
ERROR : /bin/su oracle -c "/opt/oracle/oak/onecmd/tmp/dbca-rtest.sh" did not complete successfully. Exit code 1 #Step -1# <<<<<
The error is not clear enough. Check following location for a log with actual error.
The Oracle system identifier(SID) "<SID>" already exists. Specify another SID. <<<<<<<<<<<
A database with same SID was removed from the node using below:
oakcli delete database -db <SID>
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document