renaming the listener log_file on 11gr2 [message #570450] |
Fri, 09 November 2012 14:49 |
|
krish96
Messages: 74 Registered: October 2012
|
Member |
|
|
LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date 09-NOV-2012 19:55:06
Uptime 0 days 0 hr. 24 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File c:\oracle\diag\tnslsnr\TESTQ51\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=NDCORCKSDQ51.global.loc)(PORT=1521)))
Services Summary...
Service "testdb" has 1 instance(s).
Instance "ksdtest", status READY, has 1 handler(s) for this service...
Service "testdbXDB" has 1 instance(s).
Instance "testdb", status READY, has 1 handler(s) for this service...
The command completed successfully
i am trying to rename the logfile
"c:\oracle\diag\tnslsnr\TESTQ51\listener\alert\log.xml" to "c:\oracle\diag\tnslsnr\TESTQ51\listener\alert\testdb.log"
so far i tried
LSNRCTL> set log_file testdb.log
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-01251: Cannot set trace/log directory under ADR
LSNRCTL>
any solution please ..
|
|
|
|
|
Re: renaming the listener log_file on 11gr2 [message #570915 is a reply to message #570892] |
Sun, 18 November 2012 03:06 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
It is good of you to try to help, Rasoul, but on this occasion you are wring (and so is the Black Swan!) I think the quesiton is not about how to rename an existing file, but how to cause the listener to generate a different file.
@krish, by default your listener uses ADR logging, which means te filename cannot be changed. If you want to use your own fule name, you must dust disable ADR logging with tis entry in your listener.ora file,
diag_adr_enabled_listener=false
and probably this in your sqlnet.ora
diag_adr_enabled=false
as well. Read up on ADR logging in the Net Services Admin Guide.
|
|
|