scripting listener bounce/startup when using password protection

I recently had to password protect my oracle listener. Now I am unable to automate the listener commands in my UNIX (AIX) scripts.

Does anyone know how to script stoping, starting , bouncing the listener when you are using password protection on the listener?

From the command line now I have to do my listener commands like this. Now I have to do this manually everytime we shutdown Oracle.

from UNIX command line:  $ lsnrctl
LSNRCTL> set password
Password: <pw entered here>
The command completed successfully
LSNRCTL> status
The command completed successfully
LSNRCTL> exit

I tried using a UNIX script this way but it does not work .

lsnrctl << EOF
set password ???????    
status
exit
EOF
exit


Has anyone scripted listener commands sucessfully when you have the listener pw protected.
batzmanAsked:
Who is Participating?
 
MohanKNairCommented:
It is not possible to script listener password for automatic startup

See the link from asktom

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2400491285767#59504229569175
0
 
batzmanAuthor Commented:
Actually you can. Your link provided me with the clue I needed to do this. Thanks a lot.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.