9i unix startup / shutdown with listener password
By Andrew Fraser
This entry was posted on Thursday 11 January 2007 at 4:57 pm and is filed under installs, scripts. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Thursday 11 January 2007 at 6:41 pm
note that you never need a password to start a listener 8)
take care if you have more than one listener
Friday 12 January 2007 at 4:02 pm
Thanks again. Had I known password wasn’t needed for startup, I might have been tempted to be lazy and skip the listener shutdown step, since I’m a lot less bothered about a listener not being cleanly shutdown than a database.
Friday 9 February 2007 at 8:31 am
I’m following these steps exactly, but seeing that my script is not able to set variables within the “su – ” routine.
This is happening both on my RHES Linux 4.0 and hpux 11.11 servers.
If I put all the oracle commands in a separate script, then everything is fine, but I’m wondering if anyone knows why the example above wouldn’t work for me?
cheers,
Kevin
Friday 9 February 2007 at 4:44 pm
Not sure why that happens, but I just replicated it on a solaris test machine. Fix I used there was to take the environment variable line:
ENCRYPTED_PASSWORD=`grep -i password /etc/listener.ora | awk -F= ‘{print $2}’ -`
to be before the su.
I’ve updated the original post to have that fix in.
Monday 12 February 2007 at 11:47 am
Ahh, that did it Andrew. Thanks so much
Sunday 3 August 2008 at 3:52 am
Thanks for the post
Friday 13 March 2009 at 5:28 pm
[...] makes system shutdown commands a little more complex, see this post for [...]