RE: multi-home servers

Afternoon Niall,

>> those of you out there running multiple oracle homes, 
Yes, 10.5, 11.1 and 11.2

>> potentially with multiple oracle software owners and 
No, just the "oracle" user.

>> certainly with multiple listeners on Linux. How do you 
Yes, one application = one listener.

>> control db and listener startup at boot time? dbstart seems 
>> entirely inadequate.  
OS = Linux = SLES 11 [SP 1 I think]

1. We installed the orarun package. That gives us, amongst other things,
/etc/sysconfig/oracle & /etc/init.d/oracle (aka /etc/sbin/rcoracle).

2. I wrote a bash script (spookily named "listeners" - happy to share)
to control the listeners because setting the parameter in
/etc/sysconfig/oracle ONLY starts the default listener named LISTENER -
which we don't use.

The script does various things:

* Sources the /etc/sysconfig/oracle config file and check if the
databases are to be started (and by inference, stopped) automatically.
If so, continue, else bale out.

* Scans /etc/oratab looking for Oracle Homes.

* De-duplicates the list.

* For each discovered Oracle Home, look in network/admin for a file
named listener.ora.

* For each "sid_list_" found, extract the listener name.

* Sets the correct Oracle Home and start/stop the listener.

We decided to do it this way rather than messing with dbstart/dbshut
etc, as every time we get a new release of Oracle, there's a possibility
of our changes being forgotten, overwritten etc.

The script, listeners, is installed to run at run level 3 and 5 - same
as the oracle script. It also has a symlink to /etc/sbin/rclisteners so
that it can be manually called (by root) with start or stop parameters.


Cheers,
Norm.

Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Team (EA)
Internal : 7 28 2051
External : 0113 231 2051





Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Team (EA)
Internal : 7 28 2051
External : 0113 231 2051 



Information in this message may be confidential and may be legally privileged. 
If you have received this message by mistake, please notify the sender 
immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should 
still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under 
the Freedom of Information Act, Data Protection Act or for litigation.  Email 
messages and attachments sent to or from any Environment Agency address may 
also be accessed by someone other than the sender or recipient, for business 
purposes.

If we have sent you information and you wish to use it please read our terms 
and conditions which you can get by calling us on 08708 506 506.  Find out more 
about the Environment Agency at www.environment-agency.gov.uk
--
http://www.freelists.org/webpage/oracle-l


Other related posts: