Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I'm using Oracle 11gR2 in RHEL5. Now a days my application, during run time, is showing exception as below.

  Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found

and

 Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

It happens only during the peak time.

Where can I find the reason? Somewhere it might be logging all. Where is it? I checked the alert_db.log as well as log.xml inside the tnslsnr, but couldn't find anything relating this.

share|improve this question
add comment

2 Answers 2

The documentation explains how to go about configuring listener tracing, but in summary:

Add:

TRACE_FILE_<LISTENERNAME>=listener.log
TRACE_DIRECTORY_<LISTERNAME>=/path_to_your_log_directory
TRACE_LEVEL_<LISTENERNAME>=user

You can up the TRACE_LEVEL to admin or support if you need more information, but be aware that they generate increasing amounts of output.

Your issue could be due to either a DB not being able to service a request due to the maximum number of processes being reached (check the alert log), a lack of resources on the box (are kernel parameters set correctly?) or an outright DB crash.

share|improve this answer
    
In the alert log I didn't found anything relating to this. –  Maximin Nov 22 '13 at 11:58
add comment

Is the database running? Execute:

ps -ef | grep pmon.

You can re-register the database with the listener by executing the statement:

ALTER SYSTEM REGISTER

If you execute it, you should is a log message in listener.log immediately. But under normal circumstances the database does this by it's own periodically. You can also check database parameters listener, local_listener, ... Or you can use old style way, you can "hardcode" the database's SID directly in listener.ora.

PS: what the the load of the system?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.