fuzziebrain / docker-oracle-xe

Docker build for Oracle Database 18c Express Edition (XE). This project is now archived with the release of version 21c.
MIT License
272 stars 127 forks source link

runOracle.sh not properly detecting XE presence #5

Closed martindsouza closed 6 years ago

martindsouza commented 6 years ago

runOracle.sh isn't detecting if XE already exists.

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
martindsouza commented 6 years ago

Closing because dup of #4