- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Crontab, Startup scripts
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2001 08:23 PM
тАО01-24-2001 08:23 PM
Crontab, Startup scripts
Why it happens so?
2. I want my Oracle database to startup when the server starts. So, I prepared one "test" script and put in /sbin/init.d and then created start and kill links and put them in /sbin/rc3.d and /sbin/rc0.d respectively. I gave file name as S300test.rc and K500test.
But, it has no effect when the server starts.
What should be the problem?
Pl. help.
Thanks in advance.
Samir Shah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2001 09:06 PM
тАО01-24-2001 09:06 PM
Re: Crontab, Startup scripts
On the crontab issue, please check if you have the latest cron patch.
On the startup script, I noticed that you named the SXXX script differently as compared to the KXXX script. Aside from the prefix SXXX and KXXX, both should bear the same script name, e.g., S340test.bak and K400test.bak.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2001 12:59 AM
тАО01-25-2001 12:59 AM
Re: Crontab, Startup scripts
Its very usual that you need add PATH, ORACLE_SID and other variables to your script, that are set in your interactive session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2001 02:18 AM
тАО01-25-2001 02:18 AM
Re: Crontab, Startup scripts
/sbin/init.d/sendmail start
/sbin/init.d/sendmail stop
To get it to start automatically, you configure /etc/rc.config.d/mailservs. Could there be an equivalent file there for Oracle?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2001 02:23 AM
тАО01-25-2001 02:23 AM
Re: Crontab, Startup scripts
Here is an example of rc.oracle that you should put in /sbin/init.d:
#!/usr/bin/ksh
export ORACTI_EXPLOIT=/opt/oracle/admin/exploit
export PATH=$PATH:/usr/bin:$ORACTI_EXPLOIT/proc
case "$1" in
start_msg)
echo "Start Oracle"
;;
stop_msg)
echo "Stop Oracle"
;;
start)
$ORACTI_EXPLOIT/proc/db_start
su - oracle -c $ORACTI_EXPLOIT/proc/net_start
;;
stop)
su - oracle -c $ORACTI_EXPLOIT/proc/net_stop
$ORACTI_EXPLOIT/proc/db_shut
;;
*)
echo "usage: $0 {start|stop}"
#rval=1
;;
esac
==================
Then you will have to make the links Sxxxoracle and Kxxxoracle in the runlevel you have chosen.
You have have to adapt it to your needs...
As already mentionned by Carlos, the env has to be defined (ORACLE_HOME if you use it , PATH...)
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2001 05:31 AM
тАО01-25-2001 05:31 AM
Re: Crontab, Startup scripts
You might also want to edit your oratab file to read:
if your scripts is utilizing the Oracle-supplied scripts dbstart / dbshut located in $ORACLE_HOME/bin
Y in the last column starts the corresponding db at system start(assuming the rest of the scripts are set up correct).
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2001 09:00 AM
тАО01-26-2001 09:00 AM
Re: Crontab, Startup scripts
On the Oracle start/stop. I have attached a copy of my /sbin/init.d/oracle file I use to start and stop. This uses the oracle release dbshut and dbstart.
You will need to put your links in your respective rc directory. Plus you will need the file /etc/rc.config.d/oracle stating ORACLE_START=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2001 09:11 AM
тАО01-26-2001 09:11 AM
Re: Crontab, Startup scripts
Also, you need to make sure the /etc/oratab file has a Y at the end of the instances you want started and stopped.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2001 10:25 AM
тАО01-26-2001 10:25 AM
Re: Crontab, Startup scripts
Try to check also the actual script file mode/permission if it's executable.