Description of Oracle Auto-start, oratab, and dbstart scripts in Linux

Source: Internet
Author: User
Description of Oracle Auto-start, oratab, and dbstart scripts in Linux

Description of Oracle Auto-start, oratab, and dbstart scripts in Linux

1./etc/oratab description

Use cat to view the file:

Here is a file in my testing environment. In this comment, I will explain this file clearly. /Etc/oratab is created by the root. sh script. This file is also updated when you use DBCA to create an instance.

When $ ORACLE_SID: $ ORACLE_HOME: If it is set to Y, the instance can be started by itself. If it is set to N, the instance cannot be started by itself. The configuration in this file only acts as a switch. It does not start or close the switch. The specific operations are implemented by the $ ORACLE_HOME/bin/dbstart and dbshut scripts. The two scripts will check the configuration in the/etc/oratab file during execution, and the execution can continue only when the value is Y.

The steps for configuring automatic database startup and shutdown are as follows:

(1) Configure/etc/oratab

(2) Modify $ ORACLE_HOME/bin/dbstart and dbshut and add them to the/etc/rc (. local) file.

Here we use the dbstart and dbshut scripts that come with oracle. If you use your own scripts to start or close the database, you do not need to care about the settings of this file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.