Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I run root.sh immediately after the silent install of oracle in a script?

23d93b13-8bf2-456e-9b08-3abd68113791Sep 8 2014 — edited Sep 9 2014

I have the following script:

#!/bin/bash

# Run the Oracle installer as oracle using a response file

su - oracle -c "cd /usr/app/oracle/software/database;./runInstaller -debug -silent -force -responseFile /var/tmp/oracleinstallfiles/oracle_standalone_rdbms_software_install_5.rsp"

# Run the root.sh file as root

. /usr/app/oracle/product/11.2.0.4.0/root.sh

# Run the DBCA command as oracle to install a database using a response file.

su - oracle -c "cd /usr/app/oracle/product/11.2.0.4.0/bin;./dbca -silent -responseFile /var/tmp/oracleinstallfiles/createdatabase.rsp"

It looks like runinstaller goes to the background which means the next lines of my script immediately run.  Is there a way to make the runInstaller command stay in the foreground?  Or should I just stick a long sleep between the commands so it basically waits for the runInstaller command to finish?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2014
Added on Sep 8 2014
8 comments
3,234 views