Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: RS/6000 and Oracle
Thanks - lI'll try it
Alex
On Fri, 05 Nov 1999 08:20:25 +0100, MTun1999_at_gmx.net wrote:
>1.) Startup:
>============
>I have created a file /etc/rc.oracle
>
>rc.oracle (Perm: rwxr-x---):
>----------------------------
>#!/bin/ksh
>su - oracle -c ~oracle/bin/dbstart # Start all local Databases
>su - oracle -c ~oracle/bin/lsnrctl start # Start the Oracle Listener
>
>This File start on machine boot with an entry in the /etc/inittab like this:
>
>rcoracle:2:once:/etc/rc.oracle >/dev/console 2>&1
>
>
>2.) Shutdown:
>=============
>/etc/rc.shutdown is the right place for Shutdown of local Services in AIX.
>
>Michael
>
>Alex Hudghton wrote:
>>
>> I have the answer!!
>>
>> Create a file /etc/rc.shutdown
>>
>> In the file put the commands to shut the listener and the database
>> (lsnrctl stop and dbshut)
>>
>> When 'shutdown' is run this file will be run first.
>>
>> If there are any errors within /etc/rc.shutdown the machine shutdown
>> will stop
>>
>> Checkout the man page for shutdown in AIX
>>
>> Alex
>>
>> On Thu, 04 Nov 1999 18:07:39 GMT, alex_at_alenda.freeserve.co.uk (Alex
>> Hudghton) wrote:
>>
>> >Thanks John - I know about UNIX in general but this is AIX !!!!!!!
>> >An entirely differant flavour as I am finding out !
>> >
>> >
>> >Alex
>> >
>> >On Thu, 4 Nov 1999 12:42:30 -0500, "John Chiu" <johnc_at_relsol.com>
>> >wrote:
>> >
>> >>For unix in general, store your dbora in /etc/rc.d/init.d. and link your
>> >>dbora as follows:
>> >>
>> >>ln -s /etc/rc.d/init.d/dbora /etc/rc.d/rc0.d/K10dbora
>> >>ln -s /etc/rc.d/init.d/dbora /etc/rc.d/rc3.d/S99dbora
>> >>
>> >>edit your /etc/oratab and add your SID to the file.
>> >>
>> >>assuming you have setup oracle environment in your .profile
>> >>Reboot your system
>> >>
>> >>HTH
>> >>
>> >>John Chiu
>> >>
>> >>Alex Hudghton wrote in message <7vrpne$ruj$1_at_news6.svr.pol.co.uk>...
>> >>>Being a newcomer to AIX where should the links to dbstart / dbshut go to
>> >>>start / shut Oracle when the system is rebooted ??
>> >>>
>> >>>Alex
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
Received on Fri Nov 05 1999 - 07:55:37 CST
![]() |
![]() |