Session 3
Session 3
Slide 2
Summary of Previous Session
Slide 3
Session Outline
The key topics to be covered in the session are as follows:
• Starting up and stopping a database instance.
• Managing database instance
• Initialization parameter file
Slide 4
Startup Options
Slide 5
Instance shutdown
Slide 6
The Three(3) Shutdown Modes
1. ABORT: Performs the least amount of work before shutting down.
Because this mode requires recovery before startup, use it only when
necessary. It is typically used when no other form of shutdown works,
or when you need to shut down immediately because of an impending
situation (such as notice of a power outage within seconds).
Slide 8
Shutdown Modes (SQL* Plus)
SQL> shutdown;
Same results
SQL> shutdown normal;
Slide 9
Shutdown Modes (SQL* Plus)
A I T N
Allows new connections No No No No
Waits until current sessions end No No No Yes
Waits until current transactions end No No Yes Yes
Forces a checkpoint and closes files No Yes Yes Yes
Slide 10
Initialization parameters
• Managing an instance includes configuring parameters
that affect the basic operation of the instance.
Slide 11
Initialization parameters
• There are two types of files from which these
parameters can be read:
– A text initialization parameter file
• Init<SID>.ora
Slide 12
Server Parameter File:
• is the preferred type of initialization parameter file,
• is a binary file,
• can be written to and read by the database server,
• must not be edited manually,
• resides on the server on which the Oracle instance
is executing
• is persistent across shutdown and startup,
• The default name of this file, which is automatically
sought at startup, is spfile<SID>.ora
Slide 13
Text initialization parameter file:
• can be read by the database server, but it is not written to
by the server.
• parameter settings must be set and changed manually by
using a text editor
• The default name of this file (which is automatically sought
at startup if an SPFILE is not found) is init<SID>.ora
• To create text initialisation file from server parameter file
use: SQL> create pfile from spfile
• To create server parameter file from text init file use: SQL>
create spfile from pfile
Slide 14
Types of initialization parameters:
There are two kinds of initialization parameters:
• Static - cannot be changed for the current instance. You must change
Slide 15
Other Types of initialization parameters:
Slide 17
Connecting to the Database
Slide 18
What is the Listener?
Slide 19
Using the Listener Control Utility
Slide 20
Interacting with a Database
Slide 22
Questions
Slide 23