Boot self-start of ORACLE under AIX
Platform: AIX 5.3 ORACLE 10.2.0.1
Prerequisite: ORACLE software and instances have been installed
Purpose: ORACLE boot self-startup
Specific operations:
Step 1: modify / etc/oratab to change "N" to "Y" to support boot
# vi / etc/oratab
Zydb:/oracle/product/10.2.0/db_1:Y
Step 2:
Create a startup script and grant relevant permissions
Under the / home/oracle directory, create start_db.sh / / this path is not specific
$su-oracle
$vi start_db.sh
#! / bin/sh
ORACLE_HOME=/oracle/product/10.2.0/db_1
ORACLE_BASE=/oracle
ORACLE_SID=zydb
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:.:/oracle/product/10.2.0/db_1/bin:.:/usr/local/bin
Export ORACLE_HOME
Export ORACLE_BASE
Export ORACLE_SID
Export PATH
Echo "#"
Echo "# Starting the Listener #"
Echo "#"
Lsnrctl start
Echo ""
Echo ""
Echo ""
Echo "#"
Echo "# Starting the instance: $ORACLE_SID #"
Echo "#"
Sqlplus / nolog / home/oracle/oracle.log 2 > & 1
At this time, the boot automatic configuration is completed, and ORACLE starts automatically when the system is rebooted.