Today, Oracle is automatically started and added to my machine. The process is as follows:
1. Use the root user to modify the/etc/oratab file:
$ Vi/etc/oratab
Orcl:/oracle/app/product/10.2.0/db_1: N
Changed:
Orcl:/oracle/app/product/10.2.0/db_1: Y
That is, change the last N to Y.
2. Use the Oracle user to modify the $ ORACLE_HOME/bin/dbstart file:
# Su-oracle
$ Cd $ ORACLE_HOME/bin
$ Vi dbstart
Locate ORACLE_HOME_LISTNER =... and change it
ORACLE_HOME_LISTNER =/u01/app/oracle/product/10.1.0/db_1
Or directly modify it:
ORACLE_HOME_LISTNER = $ ORACLE_HOME
Iii. Test and run dbshut. Check whether dbstart can start the Oracle service and listener service:
1. modify the permissions of dbstart and dbshut log files:
$ Su-root
# Cd $ ORACLE_HOME
# Chown oracle: oinstall startup. log
# Chown oracle: oinstall shutdown. log
Note: startup. log and shutdown. log may not exist. They are automatically created only after you run./dbstart and./dbshut.
2. Execute the corresponding script for testing
# Su-oracle
$ Cd $ ORACLE_HOME/bin
$./Dbstart (./dbshut)
$ Ps-efw | grep ora _
$ Lsnrctl status
$ Ps-efw | grep LISTEN | grep-v grep
4. Create a service
$ Su-root
# Cd/etc/rc. d/init. d/
# Vi oradbstart
Copy the following Script 1 or script 2 to the oradbstart file:
- Three pages in total:
- Previous Page
- 1
- 2
- 3
- Next Page