LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2006, 03:40 PM   #1
chucker8
Member
 
Registered: Nov 2005
Posts: 52

Rep: Reputation: 15
shutting down Oracle 10G on RedHat 4


Hello,

I've added the Kill scripts for Oracle (ln -s /etc/init.d/dbora K10dbora) and added them to /etc/rc6.d and /etc/rc0.d - yet Oracle is still not shutting down.

Is there a required directory that the symbloic links have to be put into for redHat?
thanks!
 
Old 06-23-2006, 12:57 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The links need to be in the runlevel (and the one below it) that you have Oracle running in. If "who -r" shows your run level as 3 then put the K10... in rc3.d AND rc2.d.
 
Old 06-26-2006, 01:04 PM   #3
chucker8
Member
 
Registered: Nov 2005
Posts: 52

Original Poster
Rep: Reputation: 15
jilightner, thx for reply.

According to some info I've read:

At run levels 1 and 6 the script is run with a stop parameter, and in run levels 2,3,4,5 it receives a start parameter.

So either this or you is wrong...

Last edited by chucker8; 06-26-2006 at 01:13 PM.
 
Old 06-26-2006, 01:13 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Scripts in the format "K##command" are stop scripts and those in the format "S##command" are start scripts.

Since S and 0 are stop runlevels they would ONLY have K## scripts in them. All other run levels can have both K## and S##.

Its always possible there's a distro that does this differently but so far what I've seen only differs in where the files actually are located and additional links to where it wants them. What I wrote works for SVR4 based UNIX, as well as RedHat, Fedora and Debian Linux.
 
Old 06-26-2006, 03:45 PM   #5
chucker8
Member
 
Registered: Nov 2005
Posts: 52

Original Poster
Rep: Reputation: 15
thx for your help.

The software I'm working with actually has a script which makes a call to dbora stop. But the script was looking for a /var/lock/subsys/oracle. In Oracle 10G, it looks as though file no longer gets created - therefore our script was failing.

Added this line to /etc/init.d/dbora to resove issue.

touch /var/lock/subsys/oracle

thanks again
 
  


Reply



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
Help with Oracle 10g brazilian_user Linux - Networking 2 02-09-2006 02:47 PM
New install - need to update redhat rpms for oracle 10g davidtcw Linux - Newbie 2 02-08-2006 12:36 PM
oracle 10g on SUSE 9.3 caulfiek SUSE / openSUSE 4 10-13-2005 09:10 AM
Oracle 10g on Mandrake 10.0 ? cafletch Mandriva 0 09-15-2004 07:40 PM
Oracle 10G vs 9i sashie Linux - Software 0 06-07-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:49 AM.

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