You can start and stop the database using the service, which is what will happen on a reboot. Use the chmod command to set the privileges to 750.Īssociate the "dbora" service with the appropriate run levels and set it to auto-start using the following command. Su $ORA_OWNER -c "/home/oracle/scripts/stop_all.sh > /home/oracle/scripts/startup_shutdown.log 2>&1" # will not prompt the user for any values # The following command assumes that the oracle login Make sure the ownership and permissions are correct.Ĭat > /home/oracle/scripts/start_all.sh /home/oracle/scripts/stop_all.sh > /home/oracle/scripts/startup_shutdown.log 2>&1" & Adjust the contents according to your installation.Ĭat > /home/oracle/scripts/setEnv.sh > /home/oracle/.bash_profileĬreate a "start_all.sh" and "stop_all.sh" script that can be called from a startup/shutdown service. This is an example from a 12.2 installation. If you want to manually create these files, rather than using the cat command, remember to remove the "\" characters before the "$" characters.Ĭreate an environment file called "setEnv.sh". The scripts are created using the cat command, with all the "$" characters escaped.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |