Quelle distribution ?
Il est nécessaire de créer un script d'arrêt/démarrage pour démarrer ce dont tu as besoin (listener, instance, oem, isql...)
Voici un exemple /etc/init.d/oracle, trouvé
ICI
#!/bin/sh
# description: Oracle auto start-stop script.
# chkconfig: - 20 80
#
# 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_HOME=/u01/app/oracle/product/10.2.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/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
Bien sûr, il est perfectible....
A+
--------------------------------------------------------
Contributeur OCS, GLPI, Fedora, RpmFusion et EPEL
La communauté française Fedora : [
www.fedora-fr.org]
D'autres RPM pour Fedora, RHEL et CentOS : [
blog.famillecollet.com]
Poste le Monday 1 August 2005 18:23:15