Error starting Listener after applying Startup script [message #316565] |
Fri, 25 April 2008 14:17 |
khalilo
Messages: 9 Registered: April 2008 Location: United States
|
Junior Member |
|
|
Hello,
I just started learning Oracle products. I installed oracle 10g on Linux. the installed worked fine. I added database shut/start script. after reboot. I am n ot able to connect to Enterprise mnager or start listener:
This is the error I get:
/u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
/u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr ; error while loeading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adaptor error
TNS-00517: lost contact
Linux Error: 32: broken pipe.
P/S oracle is member of DBA group and I archived listener.log file
Please help.
Thanks,
Aziz
|
|
|
|
|
|
Re: Error starting Listener after applying Startup script [message #316611 is a reply to message #316580] |
Sat, 26 April 2008 08:10 |
khalilo
Messages: 9 Registered: April 2008 Location: United States
|
Junior Member |
|
|
No i was not able to start the listener after the startup script.
and I do not have anything listening in the same port.
everyting was working fine, as soon as I added the startup script, rebooted the server to test it that when the problem started.
I can't start database or listener.
the startup script I used is from Oracle's documentation I refrenced to to build install 10g.
Thanks,
Aziz
|
|
|
|
|
|
|
|
Re: Error starting Listener after applying Startup script [message #316839 is a reply to message #316831] |
Mon, 28 April 2008 09:12 |
khalilo
Messages: 9 Registered: April 2008 Location: United States
|
Junior Member |
|
|
I did rename my Listener.ora file to Listener.ora.old it didn't fix the problem.
This a copy of the startup script I used:
#!/bin/sh -x
# change the value of ORACLE_HOME .
# description: Oracle auto start-stop script.
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
#
# Change the value of ORACLE to the login name of the # oracle owner # ORACLE=oracle
PATH=${PATH}:$ORACLE_HOME/bin
HOST=`hostname`
PLATFORM=`uname`
export ORACLE_HOME PATH
#
if [ ! "$2" = "ORA_DB" ]; then
if [ "PLATFORM" = "HP-UX" ] ; then
remsh $HOST -1 $ORACLE -n "$0 $1 ORA_DB"
exit
else
rsh $HOST $ORACLE $0 $1 ORA_DB
exit
fi
fi
#
case $1 in
'start')
$ORACLE_HOME/bin/dbstart $ORACLE_HOME &
;;
'stop')
$ORACLE_HOME/bin/dbshut $ORACLE_HOME &
;;
*)
echo "usage: $0 {start|stop}"
exit
;;
esac
#
exit
as for the question about the path I am not sure what I should be looking for.
As I mentioned before I am new to Oracle and this is my first install of the product.
Please let me know if you need more info.
Aziz
|
|
|
|
|
|
Re: Error starting Listener after applying Startup script [message #317073 is a reply to message #316922] |
Tue, 29 April 2008 07:15 |
khalilo
Messages: 9 Registered: April 2008 Location: United States
|
Junior Member |
|
|
[oracle@BAN10 /]$ id -a
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper)
[oracle@BAN10 /]$ env | egrep "LIBRARY|^PATH|ORA"
ORACLE_SID=TSH1
ORACLE_BASE=/u01/app/oracle
PATH=/usr/kerberos/sbin:/u01/app/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/b in:/home/oracle/bin
ORACLE_TERM=xterm
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
This is the output after I deleted Listener.ora file and tried to start listener.
[oracle@BAN10 admin]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 29-APR-2008 08:12:12
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
please let me know if you need more info:
Thanks,
Aziz
|
|
|
|