DB - RHEL5 开机启动数据库脚本 - Oracle/DB2
1. 修改Oracle系统配置文件:/etc/oratab,只有这样,Oracle 自带的dbstart和dbshut才能够发挥作用。 # vi /etc/oratab orcl:/opt/oracle/102:Y # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:: 1. 在 /etc/init.d/ 下创建文件oracle,内容如下: /etc/init.d/oracle #!/bin/sh # Set ORA_HOME to be equivalent to the $ORACLE_HOME # from which you wish to execute dbstart and dbshut; # # Set ORA_OWNER to the user id of the owner of the # Oracle database in ORA_HOME. ORA_HOME=/home/oracle/app/