Environment: VM + redhat9 + oracle9.2
1. Modify/etc/oratab content
Oracle_sid:/u01/APP/Oracle/product/10.2.0/db_1: N is changed to the following content: # Add below content # $ Oracle_sid: $ ORACLE_HOME: Y Demo:/u01/APP/Oracle/product/9.2.0: Y |
2. modify the content in the/etc/rc. Local file.
#################################### location: /etc/rc. local #################################### ! /Bin/sh this script. will be executed * after * all the other init scripts. you can put your own initialization stuff in here if you don't want to do the full sys V style. init stuff. touch/var/lock/subsys/local Add below content Su-Oracle-c "/bin/sh/home/Oracle/dbstart. sh " |
3 New File dbstart. Sh VI/home/Oracle/dbstart. SH Content
Export oracle_base =/u01/APP/Oracle Export ORACLE_HOME =/u01/APP/Oracle/product/9.2.0 Export oracle_sid = demo Start the listener /U02/Oracle/ora/bin/LSNRCTL start # Start the DB Sqlplus "/As sysdba" <EOF Startup Exit EOF |