Enter the root user to do the following
1. View the Oracle installation directory
[Email protected] db_1]# pwd/u01/app/oracle/product/11.2.0/db_1
2. View the DB instance name
[Email protected] db_1]# echo $ORACLE _sidoradb
3. Modify the configuration file
3.1. Boot database:
The "/etc/oratab" file was created by the root.sh (the file is located in the installation directory of Oracle) that was run when the database was installed. If the file is not available, the file is established in two ways, one created directly and manually, and the root.sh file is run.
Then make the following settings
The format is: Oracle Instance Name: Oracle Installation path: Y
The last ' Y ' indicates boot from boot, ' N ' indicates boot not booting
[Email protected] db_1]# vim/etc/orataboradb:u01/app/oracle/product/11.2.0/db_1:y~~~~~~~~~~~~~~~~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/oratab" 3L, 45C Written[[email Protected] db_1]#
If the above file exists, it is modified to the above form.
3.2, boot start monitoring
Created if it does not exist, or modified to the following form.
[Email protected] db_1]# VI/ETC/RC.D/RC.LOCALSU ORACLE-LC "/u01/app/oracle/product/11.2.0/db_1/bin/lsnrctl start" su Oracle-lc/u01/app/oracle/product/11.2.0/db_1/bin/dbstart~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[[email protected] db_1]# Reboot
RedHat setting up Oracle boot from