Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 531
  • Last Modified:

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.
0
batzman
Asked:
batzman
1 Solution
 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now