02 Managing DB Instance
02 Managing DB Instance
Chapter 2
Managing Oracle Database
1
Objectives
2
Oracle Enterprise Manager
3
Database Home Page
Property pages
4
Other Oracle Tools
• SQL Developer:
▪ Is a graphical user interface for accessing your instance of Oracle Database
▪ Supports development in both SQL and PL/SQL
▪ Is available in the default installation of Oracle Database
5
Initialization Parameter Files
spfileorcl.ora
or
initorcl.ora
6
Simplified Initialization Parameters
Basic Advanced
CONTROL_FILES DB_CACHE_SIZE
DB_BLOCK_SIZE DB_FILE_MULTIBLOCK
PROCESSES _READ_COUNT
UNDO_TABLESPACE SHARED_POOL_SIZE
… …
8
Initialization Parameters: Examples
Parameter Specifies
9
Initialization Parameters: Examples
PGA PGA
KEEP
Database buffer pool
Redo log
Shared pool buffer
buffer
cache RECYCLE
buffer pool
10
Initialization Parameters: Examples
Parameter Specifies
12
Using SQL*Plus to View Parameters
13
Changing Initialization Parameter Values
• Static parameters:
▪ Can be changed only in the parameter file
▪ Require restarting the instance before taking effect
▪ Account for about 110 parameters
• Dynamic parameters:
▪ Can be changed while database is online
▪ Can be altered at:
⁃ Session level
⁃ System level
▪ Are valid for duration of session or based on SCOPE setting
▪ Are changed by using ALTER SESSION and ALTER SYSTEM commands
▪ Account for about 234 parameters
15
Changing Parameter Values: Examples
Session altered.
SYSDATE
-----------
jun 18 2009
System altered.
17
Quiz
18
Quiz
19
Starting Up an Oracle Database Instance
2
1
5
4
20
Database Startup and Shutdown: Credentials
or 1
21
Starting Up an Oracle Database Instance: NOMOUNT
OPEN
STARTUP
MOUNT
NOMOUNT
Instance
started
SHUTDOWN
22
Starting Up an Oracle Database Instance:
MOUNT
OPEN
STARTUP
MOUNT
Control file
opened for this
NOMOUNT instance
Instance
started
SHUTDOWN
23
Starting Up an Oracle Database Instance:
OPEN
OPEN
STARTUP All files opened as
described by the control
MOUNT file for this instance
Control file
opened for this
NOMOUNT instance
Instance
started
SHUTDOWN
24
Startup Options: Examples
25
Shutting Down
an Oracle Database Instance
26
Shutdown Modes
Shutdown Modes A I T N
Shutdown modes:
• A = ABORT
• I = IMMEDIATE
• T = TRANSACTIONAL
• N = NORMAL
27
Shutdown Options
Consistent database
28
Shutdown Options
• Using SQL*Plus:
SQL> shutdown 1
31
Viewing the Alert Log
32
Summary
34
Practice 2 Overview:
Managing the Oracle Instance
35