|
|
 |
Oracle Utilities - Using Hidden
Programs, Import/Export, SQL Loader, oradebug, Dbverify, Tkprof and
More |
Auto Start on HP-UX and Solaris
For HP-UX version 10 and above, the system initialization scripts are
contained in /etc/rc<n>.d directories, where “n” is the operating system
run-level. These directories contain scripts that begin with a K or S,
followed by a number, and then a file name (S75cron). All scripts that
begin with “S” are executed at system startup in ascending order of
their number. Scripts beginning with “K” (Kill) are called at system
shutdown time.
As a general rule of thumb, the Oracle startup script should have a high
sequence number (S99dbstart), which will ensure that other system
processes have been started prior to Oracle. Likewise, the kill scripts
should have a low sequence number in order to shutdown Oracle early in
the process (K01dbshut).
Auto Start on AIX
For AIX servers, the system initialization file is /etc/inittab and the
initialization script is /etc/rc. A utility (/usr/sbin/mkitab) can be
used to make an entry in the inittab file. The shutdown script for AIX
is /usr/sbin/shutdown, although it should not be modified to support
dbshut.
To add the dbstart utility to the AIX initialization process, the
following steps can be performed:
1. Create the script /etc/rc.oracle. The script should contain the
following:
su oracle <<EOF
<$ORACLE_HOME>/bin/dbstart
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.
The above is an excerpt from Oracle Utilities - Using
Hidden Programs, Import/Export, SQL Loader, oradebug, Dbverify, Tkprof
and More by Rampant TechPress.
 |
For more details on Oracle
utilities, see the book "Advanced
Oracle Utilities" by Bert Scalzo, Donald K. Burleson, and Steve Callan.
You can buy it direct from the publisher
for 30% off directly from
Rampant TechPress.
|
 |
For more details and scripts, see my new book "
Oracle
Tuning: The Definitive Reference", over 900 pages
of BC's favorite tuning tips & scripts.
You can buy it direct from the publisher for 30%-off and get
instant access to the code depot. |
|
|