Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Backing up listener -- bypassing passwd protection
J.Rex,
I think the problem is that you are running lsnrctl as three separate steps. You need to create one script file and then run it thru lsnrctl:
cd %netdir%\log
Echo set password A2378EAC8218 > lsn.cmd Echo set current_listener LISTENER >> lsn.cmd Echo set log_file lis.temp >> lsn.cmdLsnrctl < lsn.cmd
Good Luck!
Tom
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of J. Dex
Sent: Wednesday, January 24, 2007 11:06 AM
To: oracle-l_at_freelists.org
Subject: Backing up listener -- bypassing passwd protection
I am putting together a script on a W2K server that backups up the
listener
log and then removes the old file. That part works fine. However, the
password is protected. We've used some commands before that work for
bypassing the protection (don't ask why). I cannot get the two parts to
work together though as it appears to get into the listener but then
before
backing it up it once again says it doesn't recognize the password. Any
ideas? Here is the script so far...
set netdir=C:\oracle\ora92\network
set YRMTH=%YYYY%-%MM%
rem Backup listener.log
cd %netdir%\log
Echo set current_listener LISTENER > pwd.cmd
Lsnrctl < pwd.cmd
Echo set password A2378EAC8218 > pwd1.cmd
Lsnrctl < pwd1.cmd
rem The command above completes successfully
Echo set log_file lis.temp > lsn.cmd
Lsnrctl < lsn.cmd
rem At this point it says "The listener has not recognized the password"
Rename %netdir%\log\listener.log listener_%YRMTH%.log
Echo set log_file listener.log > lsn1.cmd
Lsnrctl < lsn1.cmd
Lsnrctl exit
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Jan 24 2007 - 10:18:43 CST
![]() |
![]() |