oracle/product/10.2.0/db_1/bin/dbstart
ORACLE_HOME_LISTNER=/home/oracle/oracle/product/10.2.0/db_1
/etc/oratab
orcl:/home/oracle/oracle/product/10.2.0/db_1:Y
.bashrc
ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
ORACLE_SID=orcl
#ORACLE_BASE=~/oracle/product
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export PATH
export ORACLE_SID
/etc/init.d/oracle
#!/bin/bash
#
# /etc/init.d/dbora
#
# Startup script for Oracle databases
export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1/
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
case "$1" in
start)
echo -n "Starting Oracle: "
su oracle -c $ORACLE_HOME/bin/dbstart
touch /var/lock/oracle
su oracle -c "$ORACLE_HOME/bin/emctl start dbconsole"
echo "OK"
;;
stop)
echo -n "Shutdown Oracle: "
su oracle -c $ORACLE_HOME/bin/dbshut
rm -f /var/lock/oracle
echo "OK"
;;
*)
echo "Usage: 'basename $0' start|stop"
exit 1
esac
exit 0
阅读(889) | 评论(0) | 转发(0) |