Bonjour,
J'essai de démarrer automatiquement la base Oracle 11gR2 installée sur mon serveur Ubuntu 10.04.
Lorsque je saisi les commandes à la main, tout va bien.
Lorsque j'essai de démarrer la base via le script, j'obtiens l'erreur suivante
Et la base ne démarre pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 root@node:~# /etc/init.d/oracledb start Starting Oracle: LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 30-MAY-2011 16:04:56 Copyright (c) 1991, 2009, Oracle. All rights reserved. TNS-01106: Message 1106 not found; No message file for product=network, facility=TNS [LISTENER] Failed to auto-start Oracle Net Listener using $ORACLE_BASE/product/11.2.0/dbhome_1/bin/tnslsnr Processing Database instance "nodedata": log file /u01/app/oracle/product/11.2.0/dbhome_1/startup.log OK
Mon script est le suivante :
Avez-vous une idée pour m'aider à résoudre le problème ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 #!/bin/bash # # /etc/init.d/oracledb # # Run-level Startup script for the Oracle Listener and Instances # It relies on the information on /etc/oratab export TNS_ADMIN=$ORA_HOME/network/admin export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 export ORACLE_OWNR=oracle export PATH=$PATH:$ORACLE_HOME/bin if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ] then echo "Oracle startup: cannot start" exit 1 fi case "$1" in start) # Oracle listener and instance startup echo -n "Starting Oracle: " su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl start" su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME" # $ORACLE_HOME/bin/lsnrctl start # $ORACLE_HOME/bin/dbstart $ORACLE_HOME touch /var/lock/oracle echo "OK" ;; stop) # Oracle listener and instance shutdown echo -n "Shutdown Oracle: " su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop" su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME" rm -f /var/lock/oracle echo "OK" ;; reload|restart) $0 stop $0 start ;; *) echo "Usage: `basename $0` start|stop|restart|reload" exit 1 esac exit 0
Bonne Journée,
Partager