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.