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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-12-2010, 08:22 PM
|
#1
|
Member
Registered: Jul 2005
Posts: 78
Rep:
|
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???
|
|
|
01-13-2010, 02:10 AM
|
#2
|
Member
Registered: Sep 2006
Location: Bangalore,India
Distribution: RHEL,Fedora, CentOS, Slackware 12 & wrestling with LFS
Posts: 86
Rep:
|
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.
|
|
|
01-13-2010, 06:33 PM
|
#3
|
Member
Registered: Jul 2005
Posts: 78
Original Poster
Rep:
|
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 ?
|
|
|
01-14-2010, 10:32 PM
|
#4
|
Member
Registered: Sep 2006
Location: Bangalore,India
Distribution: RHEL,Fedora, CentOS, Slackware 12 & wrestling with LFS
Posts: 86
Rep:
|
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.
|
|
|
01-19-2010, 10:28 PM
|
#5
|
Member
Registered: Jul 2005
Posts: 78
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 05:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|