Monday, February 22, 2021

Protect Listener

 Protect Listener

Is there anyway to see Listener Password set status or any flags set anywhere than can be queried??, I don't have anything in the listener.ora file after I set a lsnrctl password.
Do I have to try to issue change_password then see if it errors out to determine the password is set?  


Password Protect Listener

LSNRCTL> start
Starting /home/ora9ir2/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 9.2.0.6.0 - Production
System parameter file is /home/ora9ir2/network/admin/listener.ora
Log messages written to /home/ora9ir2/network/log/listener.log
...
The command completed successfully

LSNRCTL> change_password
Old password:
New password:
Reenter new password:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
Password changed for LISTENER
The command completed successfully

LSNRCTL> set password
Password:
The command completed successfully

LSNRCTL> save
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
Saved LISTENER configuration parameters.
Listener Parameter File /home/ora9ir2/network/admin/listener.ora
Old Parameter File /home/ora9ir2/network/admin/listener.bak
The command completed successfully
LSNRCTL> ^D


[ora9ir2@vmware admin]$ tail listener.ora
(GLOBAL_DBNAME = ora9ir2)
(ORACLE_HOME = /home/ora9ir2)
(SID_NAME = ora9ir2)
)
)


#----ADDED BY TNSLSNR 18-MAY-2006 10:27:15---
PASSWORDS_LISTENER = 20A22647832FB454
#--------------------------------------------

we are trying to password protect the listeners -- we have used the lsnrctl change_password command, etc.

We can start and stop the listeners by doing a interactive lsnrctl session:
ie...
lsnrctl
LSNRCTL> set current_listener lsnr_xxx
LSNRCTL> set password
xxxx
LSNRCTL> stop lsnr_xxx

No comments:

Post a Comment