oakcli create database fails while it runs "dbca-<SID>.sh" (Doc ID 1901583.1)

Last updated on JULY 01, 2014

Applies to:

Oracle Database Appliance Software - Version 2.8.0.0 to 2.8.0.0 [Release 2.8]
Information in this document applies to any platform.

Symptoms

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# <<<<<
Exiting...

The error is not clear enough. Check following location for a log with actual error.

/u01/app/oracle/cfgtoollogs/dbca/<SID>.log

The Oracle system identifier(SID) "<SID>" already exists. Specify another SID. <<<<<<<<<<<

Changes

A database with same SID was removed from the node using below:

oakcli delete database -db <SID>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms