steveswinsburg / oracle12c-vagrant

A vagrant box that provisions Oracle 12c automatically.
Apache License 2.0
49 stars 71 forks source link

DB may not startup if synced folder is not mounted in time #8

Open steveswinsburg opened 7 years ago

steveswinsburg commented 7 years ago

Since the /vagrant folder is mounted after the server starts up, if this takes a while the Database may not startup. The workaround is to connect and open it:

sudo su - oracle
sqlplus "/ as sysdba"
SQL> select status from v$instance;

the result should be MOUNTED. If so:

SQL> alter database open;

To resolve this, the Oracle startup could wait for the folder to be mounted via: http://razius.com/articles/launching-services-after-vagrant-mount/