- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Listener
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2001 08:27 AM
тАО06-13-2001 08:27 AM
Listener
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2001 09:33 AM
тАО06-13-2001 09:33 AM
Re: Listener
get a handy template from the init.d directoy, and adjust it to your needs (I took the one starting sendmail).
The commands in charge would be:
Start: su - oracle_user -c "lsnrctl start"
Stop: su - oracle_user -c "lsnrctl stop"
Restart: su - oracle_user -c "lsnrctl restart"
Create appropriate entries in then wanted runlevel directories.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2001 09:43 AM
тАО06-13-2001 09:43 AM
Re: Listener
What do you want to automate?
the oracle scripts should do fine:
$ORACLE_HOME/bin/lsnrctl start/stop
Is it when you start/stop your database?
Then you could write a script that does both
Is it when the system is rebooted? restarted or shutdown?
Then you should put a script in /sbin/init.d with links to your specified level to start and stop, an example:
more rc.oracle
#!/usr/bin/ksh
export ORA_EXPLOIT=/opt/oracle/admin/exploit
export PATH=$PATH:/usr/bin:$ORA_EXPLOIT/proc
case "$1" in
start_msg)
echo "Start Oracle"
;;
stop_msg)
echo "Stop Oracle"
;;
start)
$ORA_EXPLOIT/proc/db_start
su - oracle -c $ORA_EXPLOIT/proc/net_start
;;
stop)
su - oracle -c $ORA_EXPLOIT/proc/net_stop
$ORA_EXPLOIT/proc/db_shut
;;
*)
echo "usage: $0 {start|stop}"
#rval=1
;;
esac
Regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2001 08:14 AM
тАО06-14-2001 08:14 AM
Re: Listener
Anyone there?
..
..
If you want some help, you will have to give some feed back...
(What are you looking for?)
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2001 12:35 PM
тАО06-14-2001 12:35 PM
Re: Listener
Examples and variations on this basic theme can be found in http://technet.oracle.com
You can either use this or come up with your own to accomodate the need.
As a senior Oracle DBA, I like the single oracle instance configuration file and the fact that other like myself tend to do the same thing.
Good luck finding what is right for you.
-- Ed Ulfers