Dear Pak Yoel...

Sdh bisa Pak,scriptnya yg saya ganti spt ini: 
Oh iya, script yg sebelumnya saya sdh hapus..
Thx

#!/bin/bash
#
# chkconfig: 35 99 10
# description: Starts and stops Oracle processes
#
# 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_DB_HOME=/home/oracle/app/oracle/product/11.1.0/db_1
ORA_OWNER=oracle
ORA_LSNR=LISTENER

case "$1" in
'start')

# Start the TNS Listener
su - $ORA_OWNER -c "$ORA_DB_HOME/bin/lsnrctl start $ORA_LSNR"

# 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_DB_HOME/bin/dbstart

# Start Management Server
if [ -f $ORA_DB_HOME/bin/emctl ]; then
su - $ORA_OWNER -c "$ORA_DB_HOME/bin/emctl start dbconsole"
elif [ -f $ORA_DB_HOME/bin/oemctl ]; then
su - $ORA_OWNER -c "$ORA_DB_HOME/bin/oemctl start oms"
fi


touch /var/lock/subsys/dbora
;;

'stop')

# Stop the TNS Listener
su - $ORA_OWNER -c "$ORA_DB_HOME/bin/lsnrctl stop $ORA_LSNR"

# 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_DB_HOME/bin/dbshut
rm -f /var/lock/subsys/dbora
;;
esac

# End of script dbora
exit 0




--- In [email protected], "Yoel Susanto" <[EMAIL PROTECTED]>
wrote:
>
> pak bisa scriptnya di copy ke sini atau di www.indo-oracletech.com?
> 
> 2008/4/28 JanOE_slalu_SATRIA_NIee <[EMAIL PROTECTED]>:
> 
> >   Dear All..
> >
> > Maaf kalo pertanyaan saya pernah dimuat seblmnya..
> > Saya pernah mencoba script bwt start instance secara automatic ketika
> > server di platform RHEL 5 dijalankan, tp gagal (failed). Error yg
> > muncul ketika server di jalankan yaitu:
> >
> > connect to address 172.18.1.43 port 544: Connection refused
> > Trying krb4 rsh...
> > connect to address 172.18.1.43 port 544: Connection refused
> > trying normal rsh (/usr/bin/rsh)
> > bessjanu: Connection refused
> >
> > Knp ya?!?!
> > Mungkin dari rekan2 ada yg bisa merekomendasiin script yg lain?
> >
> > Terima kasih...
> >
> > Rgds
> > --Hargunaj--
> >
> >  
> >
> 
> 
> 
> -- 
> Cheers,
> Yoel Susanto
> 
> www.indo-oracletech.com
> 
> 
> [Non-text portions of this message have been removed]
>


Kirim email ke