Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Backing up listener -- bypassing passwd protection

RE: Backing up listener -- bypassing passwd protection

From: Mercadante, Thomas F \(LABOR\) <Thomas.Mercadante_at_labor.state.ny.us>
Date: Wed, 24 Jan 2007 11:18:43 -0500
Message-ID: <ABB9D76E187C5146AB5683F5A07336FFE08A90@EXCNYSM0A1AJ.nysemail.nyenet>


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.cmd
Lsnrctl < lsn.cmd

Good Luck!

Tom



This transmission may contain confidential, proprietary, or privileged information which is intended solely for use by the individual or entity to whom it is addressed. If you are not the intended recipient, you are hereby notified that any disclosure, dissemination, copying or distribution of this transmission or its attachments is strictly prohibited. In addition, unauthorized access to this transmission may violate federal or State law, including the Electronic Communications Privacy Act of 1985. If you have received this transmission in error, please notify the sender immediately by return e-mail and delete the transmission and its attachments.

-----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



From predictions to trailers, check out the MSN Entertainment Guide to the
Academy Awards(r)
http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1

--

http://www.freelists.org/webpage/oracle-l
--

http://www.freelists.org/webpage/oracle-l Received on Wed Jan 24 2007 - 10:18:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US