Starting And Shutting Down The Oracle9I Database - Red Hat ENTERPRISE LINUX 5.1 - LINUX ORACLE Tuning Manual

Oracle 9i and 10g tuning guide
Table of Contents

Advertisement

Chapter 37.
Starting and Shutting down the
Oracle9i Database
This chapter shows two separate ways to start and shut down an Oracle9i Database; Using SQLplus
and using the ORACLE_HOME binaries.
sqlplus
Note
In Oracle9i svrmgrl is no longer supported, however, you can now do everything with
sqlplus so nothing is lost.
To start up the database, run the following commands:
oracle$ sqlplus /nolog
SQL> connect / as sysdba
SQL> startup
The slash connects you to the schema owned by SYS. So in this example you will be connected to the
schema owned by SYS with the privilege SYSDBA. SYSDBA gives you the following privileges:
• sysoper privileges WITH ADMIN OPTION
• create databases
• recover one or more databases to a point
Using the Oracle binaries dbstart and dbstop
Tip
The dbstart and dbstop commands are in the $ORACLE_HOME/bin/dbstart and
$ORACLE_HOME/bin/dbshut directories respectively.
You can use $ORACLE_HOME/bin/dbstart to start up the database, and $ORACLE_HOME/bin/
dbshut to shut down the database. To get $ORACLE_HOME/bin/dbstart and $ORACLE_HOME/
bin/dbshut working, you need to change the third field for your Oracle SID in /etc/oratab from
"N" to "Y".
No to read:
test:/u01/app/oracle/product/9.2.0:N
Yes to read:
test:/u01/app/oracle/product/9.2.0:Y
In some cases you may have to copy the init file for your SID (in this example "test") from /u01/
app/oracle/admin/test/pfile to $ORACLE_HOME/dbs to get dbstart and dbshut working.
In the Below command remember to change test to something appropriate.
141

Advertisement

Table of Contents
loading

Table of Contents