LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2010, 08:22 PM   #1
pyroman59
Member
 
Registered: Jul 2005
Posts: 78

Rep: Reputation: 16
Run control script for Oracle


Hi - I have a newly built RHEL 5.2 machine and Oracle (10.2.04)was just loaded. I have a startup script that was provided by one of my coworker admins, which "works" but I need info on exactly where to put it, and whatever else needs to be done to correctly start/stop the oracle deamons. Would rc4.d be the right place???
 
Old 01-13-2010, 02:10 AM   #2
kutty_prasad
Member
 
Registered: Sep 2006
Location: Bangalore,India
Distribution: RHEL,Fedora, CentOS, Slackware 12 & wrestling with LFS
Posts: 86

Rep: Reputation: 16
You can start these type of scripts thru /etc/rc.local system script.
Check your script for a line which is something like below :

"# chkconfig: 345 26 74".

If this line is there then you can do chkconfig -add <script file> and control it thru chkconfig

Hope this helps.
 
Old 01-13-2010, 06:33 PM   #3
pyroman59
Member
 
Registered: Jul 2005
Posts: 78

Original Poster
Rep: Reputation: 16
Hi kutty_prasad -

Thanks...
I did this:

chkconfig --add dbora

and it apparently did this, that I looked at...

[root@s1 rc0.d]# ls -al *ora*
lrwxrwxrwx 1 root root 15 Jan 13 16:07 K65dbora -> ../init.d/dbora
[root@s1 rc0.d]#
[root@s1 rc0.d]# pwd
/etc/rc0.d
[root@s1 rc0.d]# cd ../rc1.d
[root@s1 rc1.d]# ls -al *ora*
lrwxrwxrwx 1 root root 15 Jan 13 16:07 K65dbora -> ../init.d/dbora
[root@s1 rc1.d]#
[root@s1 rc1.d]# cd ../rc2.d
[root@s1 rc2.d]#
[root@s1 rc2.d]# ls -al *ora*
lrwxrwxrwx 1 root root 15 Jan 13 16:07 S30dbora -> ../init.d/dbora
[root@s1 rc2.d]#
[root@s1 rc2.d]# cd ../rc3.d
[root@s1 rc3.d]#
[root@s1 rc3.d]# ls -al *ora*
lrwxrwxrwx 1 root root 15 Jan 13 16:07 S30dbora -> ../init.d/dbora
[root@s1 rc3.d]#
[root@s1 rc3.d]# cd ../rc4.d
[root@s1 rc4.d]#
[root@s1 rc4.d]# ls -al *ora*
lrwxrwxrwx 1 root root 15 Jan 13 16:07 S30dbora -> ../init.d/dbora
[root@s1 rc4.d]#

Does this look right? What has to be done with /etc/rc.local ?
 
Old 01-14-2010, 10:32 PM   #4
kutty_prasad
Member
 
Registered: Sep 2006
Location: Bangalore,India
Distribution: RHEL,Fedora, CentOS, Slackware 12 & wrestling with LFS
Posts: 86

Rep: Reputation: 16
You can ignore rc.local for now since the script will be controlled thru chkconfig command.

Run the following command to verify if things are as expected.

# service dbora start <- This should start the script.

# chkconfig --list dbora <- This will tell you whether the dbora will start automatically or not when runlevel changes or when the host reboots.
 
Old 01-19-2010, 10:28 PM   #5
pyroman59
Member
 
Registered: Jul 2005
Posts: 78

Original Poster
Rep: Reputation: 16
Hi kutty_prasad -

Thanks a lot for the info... I did the last thing you suggested, and it looked good at face-value. Although when I shutdown or reboot the machine, it appears that Oracle does not shutdown correctly. After the machine comes up, I look in the Oracle logs and do not see any entry in there of Oracle shutting down. Oracle daemons DO get started though when the system boots....

If we shutdown Oracle manually, the Oracle logfile DOES get populated with shutdown info...

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
please help to run oracle on rhel5 rameshb.mca Linux - Newbie 2 11-12-2009 10:44 PM
LXer: Oracle should relax Sun's Java Community control grip LXer Syndicated Linux News 0 09-05-2009 03:20 PM
How to run Oracle Installer? altafhk Linux - Enterprise 3 06-20-2007 01:15 PM
need a script to run oracle service shipon_97 Linux - Enterprise 5 03-02-2007 07:43 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration