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?