how to use crontab [message #265373] |
Thu, 06 September 2007 03:49 |
vgyanchandani
Messages: 5 Registered: May 2007 Location: block no A/276 Room No. 5...
|
Junior Member |
|
|
Hello frineds,
Anybody knows how to use crontab in IBM-AIX 5.3?
Actually, I know only Red-Hat AS 4.
In fact I want to know How to start start the oracle 9i database and listener automatically after every reboot. If somebody knows How to use crontab that is also sufficient for me?
With Regards
Vikas
|
|
|
Re: how to use crontab [message #265381 is a reply to message #265373] |
Thu, 06 September 2007 04:07 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
crontab has nothing to do with boot, it's used to execute commands at specific times.
AIX uses the /etc/inittab file and /etc/rc.* files for boot startup scripts.
You could create a file /etc/rc.oracle with (for example) :
su oracle <<EOF
<$ORACLE_HOME>/bin/dbstart
EOF
(replace <$ORACLE_HOME> with your actual oracle home directory)
And add that to /etc/inittab with the follwing command (runlevel 2 for example) :
/usr/sbin/mkitab “rcoracle:2:wait:/etc/rc.oracle >/dev/console 2>&1”
Have a look at the mkitab man page for more details.
|
|
|