Linux boot oracle settings

Source: Internet
Author: User
1. How to automatically start the Oracle listener and modify the etcoratab file when Linux is started? The command is as follows: [oracle @ oracle11g ~] $ Vietcoratab: accp: u01oracle: N changed to accp: u01oracle: Y Step 2: Add lsnrctlstart and dbstart to the rc. local file. The command is as follows: [oracle @ ora

1. How to automatically start the Oracle listener and modify the/etc/oratab file on the instance when Linux is started? The command is as follows: [oracle @ oracle11g ~] $ Vi/etc/oratab found: accp:/u01/oracle: N and changed it to accp:/u01/oracle: Y. Step 2: Add lsnrctl start and dbstart to rc. in the local file, run the following command: [oracle @ ora

1. How to automatically start Oracle listeners and instances when Linux is started
Run the following command to modify the/etc/oratab file:
[Oracle @ oracle11g ~] $ Vi/etc/oratab
Locate accp:/u01/oracle: N and change it to accp:/u01/oracle: Y.
Step 2: Add lsnrctl start and dbstart to the rc. local file. The command is as follows:
[Oracle @ oracle11g ~] $ Vi/etc/rc. d/rc. local
Add:
Su oracle-lc "/u01/oracle/bin/lsnrctl start"
Su oracle-lc/u01/oracle/bin/dbstart

2. When dbstart and dbshut are executed, the following message is displayed:
[Oracle @ oracle11g ~] $ Dbstart
ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Usage:/u01/app/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME
The error is caused by a problem with the settings of ORACLE_HOME_LISTNER in the dbstart and dbshut script files. Open the two files respectively and find ORACLE_HOME_LISTNER = $1 and change it
ORACLE_HOME_LISTNER = $ ORACLE_HOME. The command is as follows:
[Oracle @ oracle11g ~] $ Vi $ ORACLE_HOME/bin/dbstart
[Oracle @ oracle11g ~] $ Vi $ ORACLE_HOME/bin/dbshut

PS: The First Command has spaces, so it must be enclosed in quotation marks.

Original article address: Setting oracle startup in Linux. Thank you for sharing it with me.

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.