runOracle.sh isn't detecting if XE already exists.
Create container (new DB files created)
Delete container
Create container (mountain same data files) and get following error:
Configuring Oracle Listener.
Listener configuration succeeded.
Configuring Oracle Database XE.
[FATAL] [DBT-06607] The data file (/opt/oracle/oradata/XE/system01.dbf) already exists on the file system.
CAUSE: This configuration is going to create the data file location (/opt/oracle/oradata/XE/system01.dbf). But it is detected that there is an existing database using this data file location or the data files from a previous configuration may be left behind.
ACTION: Clean up the existing data files, or provide a different db_unique_name.
Database configuration failed. Check logs under '/opt/oracle/cfgtoollogs/dbca'.
ORACLE_HOME = [/home/oracle] ? ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID oracle.
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/scripts/enableEmRemoteAccess.sh: line 7: sqlplus: command not found
The following output is now a tail of the alert.log:
tail: cannot open '/opt/oracle/diag/rdbms/*/*/trace/alert*.log' for reading: No such file or directory
tail: no files remaining
runOracle.sh
isn't detecting if XE already exists.