iSelfSchooling.com - Copyright © 1999-2009  References  |  Job Openings  | Login (Staff | Members)
    Home  | Search more...  | Community of Sharing Knowledge (with FREE Online Video Training)
    Oracle Syntax  | Suggestions  | Private Tutoring  | Member Collaboration  | Get Translations...

  Copyright & User Agreement

    Email2aFriend  | Homepage us! |  Bookmark

Services

 Vision/Mission

 Services

 Biography

 Contact Us

 

 FREE Training

 SQL

 PL/SQL

 Forms 

 Reports

 Other TOOLS

 Fundamentals

 Performance

 OEM

 Application Server

 Grid Control

 Articles

 Prepare for OCP

 

More to know...

Acknowledgement___

 Who is who

 University Directory

 Links...

 

 

 

 

FREE Online Oracle Training for beginners and advanced - The most comprehensive Oracle tutorial

The authors do not guarantee or take any responsibility for the accuracy, or completeness of the information.

BASICS

SQL | PL/SQL

DEVELOPERS

FORMS 2 | REPORTS | Other TOOLS

DBAs

FUNDAMENTALS 2 | PERFORMANCE | OEM

ADVANCE

APPLICATION SERVER | GRID CONTROL | ARTICLES 2 3 4

Advanced - Articles I

Lesson 01 | Lesson 02 | Lesson 03 | Lesson 04 | Lesson 05 | Lesson 06 | Lesson 07 | Lesson 08 | Lesson 09 | Lesson 10 | Lesson 11 | Lesson 12 | Lesson 13 | Lesson 14 | Lesson 15 | Lesson 16 | Lesson 17 | Lesson 18 | Lesson 19 | Lesson 20 | Lesson 21 | Lesson 22 | Lesson 23 | Lesson 24 | Lesson 25 | Lesson 26 | Lesson 27 | Lesson 28 | Lesson 29 | Lesson 30 | Lesson 31 | Lesson 32 | Lesson 33 | Lesson 34 | Lesson 35 |

Lesson 29

"Because man and woman are the complement of one another, we need woman's thought in national affairs to make a safe and stable government."

-Elizabeth Cady Stanton (1815-1902)

AUTOMATIC STARTUP AND SHUTDOWN OF ORACLE DATABASE INSTANCES...

 

The following is a basic steps for an automatic start up and shutdown Oracle instances during UNIX system startup or shutdown.

 

The process of startup and shutdown for Oracle on different UNIX Operating Systems are similar to each other. But you should always, for more accurate Information refer to Oracle Installation

 

Guide.

The following are files which are invoked during system startup and shutdown, respectively.

 

Script Description

----------------------------------------------------------------

$ORACLE_HOME/bin/dbstart -- Ensures a clean startup of instance(s), even after system failure

----------------------------------------------------------------

$ORACLE_HOME/bin/dbshut -- Ensures a clean shutdown for instances

----------------------------------------------------------------

/etc/init.d or /var/opt/oracle/oratab  -- Contains a field that specifies whether a particular instance should be brought |up/down at system startup/shutdown time.

----------------------------------------------------------------

 

Solaris: (This is only applicable for Solaris Operating System.)

- - - - - -

Relevant Files

- - - - - - - -

/etc/rc2.d/S99dbstart -- Link to the script /etc/init.d/dbora

/etc/rc0.d/K01dbshut -- Link to the script /etc/init.d/dbora

/etc/init.d/oratab -- Oracle oratab file

Before explaining how to automatically start and shutdown your instances, consider the process by which this happens. If the startup or shutdown is not working, you will have a better chance of determining what went wrong.

 

When an UNIX machine boots, it runs scripts beginning with S<nn><name> in /etc/rc3.d. The number <nn> indicates the order in which these scripts will be run. The <name> is a reminder to the Unix administrator as to the function of the script.

 

Similarly, on shutdown scripts named K<nn><name> are run from /etc/rc0.d.

 

Setting Up:

-----------

1. Ensure the /var/opt/oracle/oratab file is complete and correct.

Database entries in the oratab file have the following format:

 

ORACLE_SID:ORACLE_HOME:Y

Where Y specifies you want to startup the database automatically.

2. Copy dbora to /etc/init.d/dbora.

3. As root create the following links.

# ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora

# ln -s /etc/init.d/dbora /etc/rc0.d/K01dbora

4. Test the script created in Step 2.

To test the script created above, without rebooting do the

following:

# su – root

# /etc/init.d/dbora start (for startup)

# /etc/init.d/dbora stop (for shutdown)

 

 

 
 
Google
 
Web web site