2/12/2023 0 Comments Start oracle databaseIn the file paste the following: #!/bin/sh Next we will need to create a script to take advantage of the dbshut and dbstart commands when you are shutting down or rebooting the server. If you have a specific database you don’t want the scripts to affect you put a ‘N’. You do this by making sure the last letter is set to ‘Y’. So the first thing we need to do is edit the /etc/oratab file and make sure that the databases are set to stop and start when the dbshut and dbstart commands are passed. The above two scripts actually read the /etc/oratab file to find out which databases to stop and start. Oracle provides the means to do this using scripts called dbshut and dbstart that are located in your $ORACLE_HOME/bin directory. I use this approach for 10g, 11g, and 12c and so far I haven’t had any issues. So I just wanted to share this quick write up on how to stop and start your Oracle database and listener automatically on a Linux server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |