Home » RDBMS Server » Networking and Gateways » TNS-01251: Cannot set trace/log directory under ADR (oracle 11g Windows)
TNS-01251: Cannot set trace/log directory under ADR [message #488257] Wed, 05 January 2011 22:55 Go to next message
pradies
Messages: 250
Registered: May 2008
Senior Member
Hi,

My current listener log file is in xml format and I want to change this to ora file. But when I am changing this I m getting the below error


LSNRCTL> show log_file
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
LISTENER parameter "log_file" set to d:\app\administrator\diag\tnslsnr\atpl-73259eadae\listener\alert\log.xml
The command completed successfully
LSNRCTL> set log_file listener.ora
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-01251: Cannot set trace/log directory under ADR
LSNRCTL>

How can we set this log file to listener.ora

Regards

Pradeep

Re: TNS-01251: Cannot set trace/log directory under ADR [message #488261 is a reply to message #488257] Wed, 05 January 2011 23:16 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
01251, 00000, "Cannot set trace/log directory under ADR"
// *Cause: ADR trace and log directories cannot be set by the user.
// *Action: None.


>LSNRCTL> set log_file listener.ora
above makes NO sense!
if listener wrote to this file, it would overwrite its own configuration file.
Re: TNS-01251: Cannot set trace/log directory under ADR [message #488262 is a reply to message #488261] Wed, 05 January 2011 23:20 Go to previous messageGo to next message
pradies
Messages: 250
Registered: May 2008
Senior Member
Hi,

Log.xml is not in readable format ?? Please tell me how can we read the same above file if this is not a text based file .

Re: TNS-01251: Cannot set trace/log directory under ADR [message #488264 is a reply to message #488262] Wed, 05 January 2011 23:34 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
/u01/app/oracle/diag/tnslsnr/bcm-laptop/listener/trace/listener.log
Re: TNS-01251: Cannot set trace/log directory under ADR [message #488281 is a reply to message #488264] Thu, 06 January 2011 02:13 Go to previous message
pradies
Messages: 250
Registered: May 2008
Senior Member
Hi Swan,

Thanks

Pradeep
Previous Topic: Comparing Gateways
Next Topic: Listener issue
Goto Forum:
  


Current Time: Thu Apr 18 09:58:29 CDT 2024