Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script demarrage (Oracle)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
xavan
n00b
n00b


Joined: 20 Jun 2003
Posts: 50

PostPosted: Fri Sep 12, 2003 7:59 pm    Post subject: Script demarrage (Oracle) Reply with quote

Voila Oracle est installe et fonctionne bien.
En effet je me suis fais un script qui demarre la bd le listener et apache.
Ce script fonctionne sur l'utilisateur oracle.

Code:

 #! /bin/sh
 /u01/app/oracle/product/9.2.0/bin/dbstart
 /u01/app/oracle/product/9.2.0/bin/lsnrctl start
 /u01/app/oracle/product/9.2.0/Apache/Apache/bin/apachectl start
 


Rudimentaire n'est ce pas.
J'aimerais le lance au demarrage
je fais donc ceci:

Code:

 #!/sbin/runscript
       depend() {
           need net
       }
 
       start() {
           ebegin "Demarrage d'oracle"
      su - oracle -c "./test.sh"
           eend $? "Erreur lors du lancement d'Oracle"
       }
 


Je le teste a partir de l'utilisateur root, la bd demarre apache aussi mais pas le listener:

Code:

 LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 12-SEP-2003 17:33:39
 
 Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
 
 Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
  TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
   TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
    Linux Error: 2: No such file or directory
 


J'ai essaye avec et sans le -c pour le su
Je pense que cela vient peut etre de l'environnement d'execution qui change avec le su car l'utilisateur oracle a des v d'envirronement propre
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum