top of page
Writer's pictureHanh Nguyen

Auto startup/shutdown Oralce DB in AIX

Auto start database (call emas)

To auto start

Edit oratab and change from emas:/u01/app/oracle/product/11.2.0/dbhome_1:N to emas:/u01/app/oracle/product/11.2.0/dbhome_1:Y Create new entry for innitab /usr/sbin/mkitab “rcoracle:2:wait:/etc/rc.oracle >   /dev/console 2>&1” vi /etc/rc.oracle

#!/bin/sh su – oracle <<EOF /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbstart EOF

chmod u+x /etc/rc.oracle

To shutdown:

vi /etc/shut /usr/bin/su – oracle -c /u01/app/oracle/db_1/bin/dbshut /usr/sbin/shutdown $* chmod +x /etc/shut

0 views0 comments

コメント


bottom of page