|  |  | 
| EnderUNIX İpucuArkadaşıma gönder , Ana Sayfa[ Oracle ] "Oracle Icin Baslatma Ve Durdurma Betigi" - Gökhan ALKAN - (2007-07-20 16:53:29) [3002] oracle kullanicisi ile belirtilen dizinlere kuruldugu varsayilarak asagidaki betik durdurma ve baslatma icin kullanilabilir. #!/bin/sh # # Oracle Start Stop Script # # chkconfig: 345 99 10 # description: Control Oracle ORA_BASE=/u01/app/oracle ORA_HOME=$ORA_BASE/oracle/product/10.2.0/db_3 ORA_OWNER=oracle if [ ! -f $ORA_HOME/bin/dbstart ] then echo "Oracle startup: cannot start" exit 111 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/lsnrctl start " su - $ORA_OWNER -c $ORA_HOME/bin/dbstart ;; '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 su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop" ;; esac exit 0 # Arkadaşıma gönder , Ana Sayfa |  |