* AIX, HP-UX, Solais 등의 유닉스 및 리눅스 서버 관련자료이며 앞으로 주요 팁은 리눅스가 될 예정 입니다.
* 관심있으신 분들의 많은 도움이 되길 바랍니다.
* 관심있으신 분들의 많은 도움이 되길 바랍니다.
글 수 219
Oracle 11iR1 시작,종료 스크립트
1. vi /etc/oratab
orcl:/ora/product/11.1.0/db_1:Y
2. 스크립트 파일 생성
#vi /etc/rc.d/init.d/dbora
#ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
ORA_HOME=/ora/product/11.1.0/db_1
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
;;
esac
3. chmod 750 /etc/init.d/dbora
4. chkconfig --level 345 dbora on
5. ntsysv
6. /etc/rc.d/init.d/dbora start|stop
1. vi /etc/oratab
orcl:/ora/product/11.1.0/db_1:Y
2. 스크립트 파일 생성
#vi /etc/rc.d/init.d/dbora
#ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
ORA_HOME=/ora/product/11.1.0/db_1
ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
;;
esac
3. chmod 750 /etc/init.d/dbora
4. chkconfig --level 345 dbora on
5. ntsysv
6. /etc/rc.d/init.d/dbora start|stop



