Showing posts with label TNS-error. Show all posts
Showing posts with label TNS-error. Show all posts

Wednesday, 15 May 2013

TNS-01189 the listener could not authenticate the user lsnrctl


Error:

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 15-MAY-2013 04:56:27
Copyright (c) 1991, 2011, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=servername)(PORT=1522)))
TNS-01189: The listener could not authenticate the user

Analysis:

This happened after the oracle home was cloned.

The listener is still using the old server in the listener.ora. The fix is to update the server name in the listener.ora of new server to have the values of the  new server name.

Wednesday, 1 May 2013

ORA- 12535: TNS: operation timed out


ORA- 12535: TNS: operation timed out

A remote Oracle client making a connection to an Oracle database can fails if there is a firewall installed between the client and the server and if port redirection is taking place. The firewall will block the connection to the new port when the Oracle client connects to the database - the client typically fails with Oracle errors ORA-12203 or ORA-12535.

enacle the tracing in sqlnet.ora
trace_level_client = 16
trace_file_client = client
trace_directory_client = c:\apps\oracle\product\trace
It will help you find the root reason
Check the firewall  and open the required port

Monday, 22 April 2013

TNS-12505: TNS:listener does not currently know of SID given in connect descriptor

TNS-12505: TNS:listener does not currently know of SID given in connect descriptor

Cause :The instance will not register with the listener.

Solustion:
Edit your listener.ora like this:
SID_LIST_LISTENER =
  (SID_LIST =
     (SID_DESC =
       (SID_NAME = ABC)
       (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
     )
     (SID_DESC =
       (SID_NAME = CLRExtProc)
       (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)
       (PROGRAM = extproc)
     )
  )

Thursday, 7 March 2013

TNS-12555 / TNS-12560 / TNS-00525 Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

Few days back  got an issue when tried to start the listener

TNSLSNR for Linux: Version 10.2.0.2.0 – Production
System parameter file is /u01/app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12555: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00525: Insufficient privilege for operation
Linux Error: 1: Operation not permitted
  
Causes

1) Ensure that /tmp/.oracle or /var/tmp/.oracle directory exists.
 2) If the /tmp directory has reached full capacity, this would cause the listener to fail to write the socket files.

when i exprore found below directories exists/var/tmp/.oracle  but still got error
then  recreated /var/tmp/.oracle directory using below steps

cd /var/tmp/
ls -lrtha
cp .oracle .oracleback
mkdir .oracle
chmod 01777 .oracle
chown root  .oracle
chgrp root  .oracle

Start the listener and it started successfully J J

TNS - 01190:the user is not authorized to execute the requested listener command




Few days back some os level issue on oracle server machine when we try to restart the listener we get below error
TNS - 01190:the user is not authorized to execute the requested listener command
checked  the services status of service using command

ps -ef | grep -i listener
output
 1091  78960       1   0   nov 20      -  0:33 /home/oracle/db_1/bin/tnslsnr LISTENER -inherit

Find the owner of listener service are changed or null

Above TNS - 01190 comes when we try to restart the listener which is running from different owner

then  tried to kill the services using os kill command but
it shows insufficient privileges .
Then i told my system administrator to kill the services from root user using

kill -9 78960

Now i started the listener from oracle user and it stated successfully.

lsnrctl start