The Internet is a great thing but when a top Oracle site posts a method for doing something that ain’t quite right you are going to be able to see a cut and paste job when you see it. I was speaking with a friend last week who received some expensivly produced documents and with a simple google she found internet cut and paste. Cut and paste is no substitute for actually knowing what you are doing.
Therefore – to go off at a slight angle and with my own cut and paste but with corrections…
If you want to autostart Oracle on AIX – easy.
1. Create the script /etc/rc/oracle and make it executable… chmod +x /etc/rc.oracle
su – oracle <<EOF
2. Add the script to the inittab using the mkitab utility.
$ /usr/sbin/mkitab “rcoracle:2:wait:/etc/rc.oracle >/dev/console 2>&1”
All references to <$ORACLE_HOME> should be replaced with the actual Oracle Home directory. Now upon system startup, the dbstart utility is invoked at run level 2.
Check your /etc/oratab and they will have entries like:
In the file the entries will be like :
ORACLE_SID:ORACLE_HOME:AUTOSTART(Y or N)
Eg as below :
I hope this saves you a bit of time…