You are on page 1of 0

Oracle Database 11g: New

Features for Oracle9i DBAs


Volume I Student Guide
D53042GC10
Edition 1.0
August 2008
D55670
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
Copyright 2008, Oracle. All rights reserved.
Disclaimer
This document contains proprietary information and is protected by copyright and
other intellectual property laws. You may copy and print this document solely for your
own use in an Oracle training course. The document may not be modified or altered in
any way. Except where your use constitutes "fair use" under copyright law, you may
not use, share, download, upload, copy, print, display, perform, reproduce, publish,
license, post, transmit, or distribute this document in whole or in part without the
express authorization of Oracle.
The information contained in this document is subject to change without notice. If you
find any problems in the document, please report them in writing to: Oracle University,
500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not
warranted to be error-free.
Restricted Rights Notice
If this documentation is delivered to the United States Government or anyone using
the documentation on behalf of the United States Government, the following notice is
applicable:
U.S. GOVERNMENT RIGHTS
The U.S. Governments rights to use, modify, reproduce, release, perform, display, or
disclose these training materials are restricted by the terms of the applicable Oracle
license agreement and/or the applicable U.S. Government contract.
Trademark Notice
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other
names may be trademarks of their respective owners.
Authors
Christine Jeal
Jean-Francois Verrier
Technical Contributors
and Reviewers
Anirban Banerjee
Herbert Bradbury
Andy Fortunak
Joel Goodman
Yash Jain
Ingor Joergensen
Donna Keesling
Linda Smalley
Branislav Valny
PamWelford
Anthony Woodell
Editors
Arijit Ghosh
Raj Kumar
Aju Kumar
Vijayalakshmi Narasimhan
Graphic Designer
Satish Bettegowda
Publisher
Joseph Fernandez
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
iii
Contents




I Introduction
Overview I-2
Oracle Database Innovation I-3
Oracle Database 11g: The Database for Grid I-4
Enterprise Grid Computing I-6
Oracle Database 11g: Focus Areas I-7
Familiarizing with Oracle Database New Features Before Installation I-8
Simplified Configuration I-9
Automatic Storage Management: Overview I-10
ASM: Key Features and Benefits I-11
Flash Recovery Area: Overview I-12
Suggested Schedule I-13

1 Planning Your Upgrade to Oracle Database 11g
Objectives 1-2
Installation: New Feature Support 1-3
Changes to the Database Product Set 1-6
Confirming the Hardware Requirements 1-7
Checking the Preinstallation Requirements 1-8
Performing the Upgrade 1-9
Preparing the Oracle9i Database 1-10
Steps to Upgrade to Oracle Database 11g 1-12
Preparing to Upgrade 1-13
Planning the Upgrade 1-14
Oracle Database 11g, Release 1: Upgrade Paths 1-15
Choosing an Upgrade Method 1-16
Database Upgrade Assistant: Advantages and Disadvantages 1-17
Manual Upgrade: Advantages and Disadvantages 1-18
Upgrade Method Limitations 1-19
Using the Export and Import Method 1-20
Character Sets 1-21
Using the Character Set Scanner 1-22
Invoking the Character Set Scanner 1-23
Performing Character Conversion 1-24
Changing Word Size 1-26
Using Optimal Flexible Architecture (OFA) 1-27

O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
iv
Summary 1-28
Practice 1 Overview: Preparing to Upgrade Your Oracle9i Database to Oracle
Database 11g 1-29

2 Upgrading the Oracle Database 11g
Objectives 2-2
Performing the Upgrade 2-3
Installing Oracle Database 11g Software 2-4
Compatibility 2-5
Using Oracle Universal Installer 2-6
Using Oracle Universal Installer to Install Oracle Database 11g 2-7
Installation Prerequisites 2-8
Setting Environment Variables 2-9
Oracle Database 11g: Software Installation 2-11
Oracle Net Configuration Assistant 2-13
Upgrading a Database with Database Upgrade Assistant 2-14
Database Upgrade Assistant 2-15
Key DBUA Features 2-16
Command-Line Syntax 2-19
Selecting the Database to Upgrade 2-20
Setting File Destinations 2-21
Configuring Recovery Options and SYSAUX Tablespace 2-22
Setting Management and Recompilation Options 2-23
Setting Backup Options 2-24
Creating a Database with Database Configuration Assistant 2-25
Selecting Configuration Options 2-26
Specifying Passwords and Storage Options 2-27
Specifying File Locations and Backup Options 2-28
Defining Content and Initialization Parameters 2-29
Setting Security and Maintenance Options 2-31
Specifying Storage and Creating the Database 2-32
Completing Database Creation 2-33
Performing Other Actions with DBCA 2-34
Summary 2-35
Practice 2 Overview: Installing Oracle Database 11g Software 2-36

3 Real Application Testing
Objectives 3-2
Managing Change in Oracle Database 11g 3-3
Why Use Database Replay 3-4
System Architecture: Capture 3-5
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
v
System Architecture: Processing the Workload 3-6
System Architecture: Replay 3-7
The Big Picture 3-8
Prechange Production System 3-9
Workloads Supported 3-10
Capture Considerations 3-11
Replay Considerations 3-12
Replay Analysis 3-14
Replay Data Divergence 3-15
Using Enterprise Manager for Workload Capture 3-16
Using Enterprise Manager for Workload Replay 3-19
Data Dictionary Views: Database Replay 3-26
SQL Performance Analyzer: Overview 3-27
1: Capture SQL Workload 3-28
2: Transport to a Test System 3-29
3: Build Before-Change Performance 3-30
4: Build After-Change Performance 3-31
5: Compare and Analyze Performance 3-32
Creating a SQL Performance Analyzer Task 3-33
SQL Performance Analyzer Task Page 3-34
Comparison Report 3-35
Tuning Regressing Statements 3-36
SQL Performance Analyzer: Summary 3-37
Summary 3-39
Practice 3 Overview: Real Application Testing 3-40

4 Upgrading Your Database by Using Other Methods
Objectives 4-2
The Manual Upgrade 4-3
Oracle Database Upgrade Enhancements 4-4
Pre-Upgrade Information Tool 4-5
Pre-Upgrade Information Analysis 4-6
STARTUP UPGRADE 4-7
Using the Post-Upgrade Status Utility 4-8
Rerunning the Upgrade 4-9
Performing the Manual Upgrade 4-10
Abandoning the Upgrade 4-14
The EXPORT / IMPORT Upgrade 4-15
Using Export and Import to Upgrade to Oracle Database 11g 4-16
Applying Oracle Software Patches 4-19
Installing a Hot Patch 4-20
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
vi
Conventional Patching and Hot Patching 4-21
Hot Patching Considerations 4-22
Using the Oracle Patch Utility 4-23
Using the Oracle Relink Utility 4-24
Summary 4-25
Practice 4 Overview: Upgrading Your Database to Oracle Database 11g 4-26

5 Performing Postupgrade Steps
Objectives 5-2
Required Tasks After Database Upgrade 5-3
Updating Environment Variables 5-4
Upgrading the Recovery Catalog 5-5
Upgrading the Statistics Tables 5-7
Recommended Tasks After Database Upgrade 5-8
Adjusting the Initialization Parameters 5-9
Using New Features in Your Upgraded Database 5-11
Implementing New Features 5-12
Summary 5-13
Practice 5 Overview: Performing Postupgrade Operations 5-14

6 Using Enterprise Manager: Database Control and Grid Control
Objectives 6-2
Using Enterprise Manager to Manage Oracle Database 11g 6-3
Oracle Enterprise Manager Framework 6-4
Grid Control Components 6-5
Managed Targets 6-6
Management Framework 6-7
Managing with Database Control 6-8
Starting and Stopping Database Control 6-9
Enterprise Manager: Database Control Login 6-10
Enterprise Manager Navigation 6-11
Oracle Enterprise Manager: Database Home Page 6-12
Using the Enterprise Manager Job System 6-13
Job Activity Page 6-14
Granting EM Administrative Privileges 6-15
Configuring Enterprise Manager Settings and Preferences 6-16
Defining Blackout Time Periods 6-17
Setting Preferred Credentials 6-18
MetaLink Integration 6-19
Simplified Initialization Parameters 6-20
Summary 6-21
Practice 6 Overview: Using Enterprise Manager Database Control 6-22
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
vii
7 Proactively Maintaining the Database
Objectives 7-2
The Self-Managing Database 7-3
Database Maintenance 7-4
Terminology 7-5
Automatic Workload Repository 7-6
AWR Infrastructure 7-7
Active Session History 7-8
Base Statistics and Metrics 7-9
Baselines 7-10
Enterprise Manager and AWR 7-11
Managing AWR 7-12
Statistic Levels 7-13
Statspack and AWR 7-14
Automatic Database Diagnostic Monitor (ADDM) 7-15
ADDM Findings 7-16
ADDM Recommendations 7-17
ADDM for Oracle RAC 7-18
Automatic Database Diagnostic Monitor for RAC 7-19
Server-Generated Alerts 7-20
Setting Thresholds 7-21
Creating and Testing an Alert 7-22
Alerts Notification 7-23
Reacting to Alerts 7-25
Alert Types and Clearing Alerts 7-26
Advisory Framework 7-27
Enterprise Manager and Advisors 7-29
DBMS_ADVISOR Package 7-30
Viewing Advisor Information 7-31
Detecting Top Performance Issues 7-32
Job Scheduler Concepts 7-33
Summary 7-34
Practice 7 Overview: Using Server-Generated Alerts 7-35

8 Managing System Resources
Objectives 8-2
Database Resource Manager: Concepts 8-3
Using Database Resource Manager 8-4
Oracle-Supplied Plans 8-5
Resource Manager: EM Interface 8-6
Resource Plans Created by Default 8-7
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
viii
Default Plan 8-8
I/O Resource Limit Thresholds 8-9
Resource Manager Statistics 8-10
Maintenance Windows 8-11
Default Maintenance Plan 8-12
Management Allocation Methods 8-13
Using the RATIO Allocation Method 8-14
Active Session Pool 8-15
Active Session Pool Mechanism 8-16
Active Session Pool Parameters 8-17
Setting the Active Session Pool: Example 8-18
Maximum Estimated Execution Time 8-19
Automatic Consumer Group Switching 8-20
Switching Consumer Groups at End of Call 8-21
Undo Quota 8-22
Changing Undo Quota 8-23
Using Several Resource Allocation Methods: Example 8-24
Summary 8-26
Practice 8 Overview: Using the Resource Manager 8-27

9 Automating Tasks with the Scheduler
Objectives 9-2
Scheduling Needs 9-3
Basic Scheduler Concepts 9-4
Privileges for Scheduler Administration 9-6
Privileges for Scheduler Components 9-7
Creating a Scheduler Job 9-8
Creating a Scheduler Job: Stand-Alone Job 9-9
Setting the Repeat Interval for a Job 9-10
Calendaring Expressions 9-11
Using Scheduler Programs 9-12
Specifying Schedules for a Job 9-13
Creating and Using Schedules 9-14
Using Enterprise Manager to Create Schedules 9-15
Enabling and Disabling Scheduler Components 9-16
Managing Jobs 9-17
Managing Programs with Enterprise Manager 9-18
Managing Schedules 9-19
Advanced Scheduler Concepts 9-20
Creating a Job Class 9-21
Using Enterprise Manager to Create a Job Class 9-22
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
ix
Job Logging 9-23
Scheduler Concepts: Windows 9-24
Scheduler Concepts: Window Groups 9-25
Creating a Window 9-26
Windows and Resources 9-27
Windows and Jobs 9-28
Adding a New Task to a Window with PL/SQL 9-29
Prioritizing Jobs 9-30
Prioritizing Jobs in a Job Class 9-31
Opening Windows 9-32
Closing Windows 9-33
Window Priority 9-34
Managing the Attributes of Scheduler Components 9-35
Viewing the Attributes of Scheduler Components 9-36
Setting Global Attributes of the Scheduler 9-37
Viewing Job Execution Details 9-38
Viewing Job Logs 9-39
Viewing PURGE_LOG Job Information 9-40
Purging Job Logs 9-41
Lightweight Jobs 9-42
Remote Jobs 9-43
Summary 9-44
Practice 9 Overview: Using the Scheduler 9-45

10 Managing Memory Structures
Objectives 10-2
Oracle Database SGA Parameters 10-3
Managing Autotuned SGA Parameters 10-4
Managing Manually Tuned SGA Parameters 10-6
Oracle Database PGA Parameters 10-7
Memory Management in Oracle 11g: Overview 10-9
Automatic Memory Management: Overview 10-10
Oracle Database 11g Memory Parameters 10-11
Automatic Memory Management: Architecture 10-12
Oracle Database Memory Advisors 10-13
Enabling Memory Management 10-15
Monitoring Automatic Memory Management 10-16
DBCA and Automatic Shared Memory Management 10-18
Using Shared Pool Advisory Statistics 10-19
Using the Enterprise Manager Memory Advisors 10-21
Dynamically Resizing the Large Pool 10-22
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
x
Tuning PGA_AGGREGATE_TARGET 10-23
Using the Memory Advisor for PGA Aggregate Target 10-24
Summary 10-25
Practice 10 Overview: Using Automatic Memory Management 10-26

11 Managing Database Storage Structures
Objectives 11-2
SYSAUX Tablespace: Overview 11-3
Creating SYSAUX with DBCA 11-4
Creating and Altering the SYSAUX Tablespace 11-5
Using EM to View SYSAUX Occupants 11-6
Relocating SYSAUX Occupants with EM 11-7
Default Permanent Tablespace: Overview 11-8
Specifying a Default Permanent Tablespace 11-9
Bigfile Tablespaces: Overview 11-10
Bigfile Tablespace: Benefits 11-12
Using Bigfile Tablespaces 11-13
Creating Bigfile Tablespaces 11-14
SQL Statement Changes and Additions 11-15
Specifying Bigfile Tablespaces in SQL Commands 11-16
Viewing Information About Bigfile Tablespaces 11-17
Using DBVERIFY with Bigfile Tablespaces 11-18
Migrating Objects to Bigfile Tablespaces 11-19
Extended ROWID Format and Bigfile Tablespaces 11-20
DBMS_ROWID Package Changes 11-22
Default Temporary Tablespace: Overview 11-23
Obtaining Information About the Default Temporary Tablespace 11-24
Creating and Altering Default Temporary Tablespace 11-25
Managing Default Temporary Tablespace Restrictions 11-26
Temporary Tablespace Group: Overview 11-27
Temporary Tablespace Group: Benefits 11-28
Using Temporary Tablespace Groups 11-29
Using SQL to Create a Temporary Tablespace Group 11-30
Using SQL to Manage Temporary Tablespace Groups 11-31
Renaming Tablespaces: Considerations 11-32
Renaming Tablespaces 11-33
Renaming Tablespaces: Best Practices 11-34
Proactive Tablespace Monitoring: Overview 11-35
Space Usage Monitoring of Tablespaces 11-36
Edit Thresholds of Tablespace Space Usage 11-37
Using the Redo Logfile Size Advisor 11-38
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xi
Invoking the Redo Logfile Size Advisor 11-39
Viewing the Optimal Redo Log File Size 11-40
Using DML Error Logging 11-41
DML Error Logging: Example 11-42
Oracle SecureFiles 11-43
Enabling SecureFiles Storage 11-44
SecureFiles: Advanced Features 11-45
Summary 11-46
Practice 11 Overview: Monitoring Storage Structures 11-47

12 Implementing Automatic Storage Management (ASM)
Objectives 12-2
Automatic Storage Management: Overview 12-3
ASM: General Architecture 12-5
Creating an ASM Instance 12-6
ASM Instance Initialization Parameters 12-7
Starting Up an ASM Instance 12-8
SYSASM Role 12-9
Accessing an ASM Instance 12-10
Using Enterprise Manager to Manage ASM Users 12-11
Shutting Down an ASM Instance 12-12
ASM Storage: Concepts 12-13
ASM Disk Group 12-14
Failure Group 12-16
Disk Group Mirroring 12-17
Disk Group Dynamic Rebalancing 12-18
ASM Fast Mirror Resync: Overview 12-19
Setting Up ASM Fast Mirror Resync 12-20
ASM-Preferred Mirror Read: Overview 12-21
ASM-Preferred Mirror Read: Setup 12-22
ASM-Preferred Mirror Read: Best Practice 12-23
ASM Disk Group Compatibility 12-24
ASM Disk Group Attributes 12-26
ASM Scalability and Performance 12-27
Managing Disk Groups 12-28
Creating and Dropping Disk Groups 12-29
Adding Disks to Disk Groups 12-30
Using Enterprise Manager to Edit Disk Group Attributes 12-31
Miscellaneous ALTER Commands 12-32
ASMCMD Utility 12-33
ASMCMD Extensions 12-34
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xii
ASMCMD Extension: Examples 12-35
Migrate Database To ASM Wizard 12-36
Summary 12-37
Practice 12: Implementing Automatic Storage Management 12-38

13 Managing Database Space
Objectives 13-2
Configuring Automatic Undo Management 13-3
Retaining Undo Information 13-4
Automatic Undo Retention Tuning 13-5
Undo Management Page: General 13-6
Undo Management Page: System Activity 13-7
Proactive Undo Tablespace Monitoring 13-8
Fast Start Up 13-9
Specifying Guaranteed Undo Retention 13-10
Oracle Partitioning 13-11
Partitioning Enhancements 13-12
Interval Partitioning 13-13
Interval Partitioning: Example 13-14
Moving the Transition Point 13-15
System Partitioning 13-16
System Partitioning: Guidelines 13-17
System Partitioning: Example 13-18
Composite Partitioning Enhancements 13-19
Composite Range-Range Partitioning: Example 13-20
Virtual ColumnBased Partitioning 13-21
Virtual ColumnBased Partitioning: Example 13-22
Reference Partitioning 13-23
Reference Partitioning: Example 13-24
Summary 13-26
Practice 13 Overview: Managing Database Space 13-27

14 Administering Users and Database Security
Objectives 14-2
Fine-Grained Auditing Concepts 14-3
Security Enhancements 14-5
Secure Default Configuration 14-6
Enabling the Built-in Password Complexity Checker 14-7
Adjusting Security Settings 14-8
Setting Security Parameters 14-9
Setting Database Administrator Authentication 14-10
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xiii
Transparent Data Encryption: Using Tablespace Encryption 14-11
Transparent Data Encryption: Encryption for LOB Columns 14-12
Enterprise Manager Security Management 14-13
Uniform Audit Trails 14-14
Managing Default Audits 14-15
Privileges Audited by Default 14-16
Enhanced Enterprise User Auditing 14-17
Oracle Audit Vault 14-18
Setting Up Directory Authentication for Administrative Users 14-19
Summary 14-20
Practice 14 Overview: Managing Database Security 14-21

15 Managing Schema Objects
Objectives 15-2
Using Automatic Segment Space Management 15-3
Online Table Redefinition: Overview 15-4
Support for Data Types and Tables 15-5
Reorganize Objects Using Enterprise Manager Wizard 15-7
Resumable Space Allocation: Overview 15-8
Table Compression: Overview 15-9
Table Compression Concepts 15-10
Using Table Compression 15-11
Shrinking Segments: Overview 15-12
Shrinking Segments: Benefits 15-13
Shrinking Segments: Candidate Segments 15-14
Shrinking Segments: Dependency Maintenance 15-15
How to Shrink Segments 15-16
Online Segment Shrink: How It Works 15-17
Using EM to Shrink Segments 15-19
Segment Advisor 15-20
Automatic Segment Advisor 15-21
Automatic Segment Advisor Views 15-22
Growth Trend Report 15-23
Migrating to the Cost-Based Optimizer 15-24
Optimizer Statistics Collection: Overview 15-25
Automatically Collecting Statistics 15-26
GATHER_STATS_JOB 15-27
Changing the GATHER_STATS_JOB Schedule 15-28
Locking Statistics 15-29
Using the DBMS_STATS Package 15-30
Automatic Statistics Collection: Considerations 15-31
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xiv
Life Cycle of Optimizer Statistics 15-32
Managing Historical Optimizer Statistics 15-33
Statistic Preferences: Overview 15-35
Partitioned Tables and Incremental Statistics: Overview 15-36
Partitioned Tables and Incremental Statistics in Oracle Database 11g 15-37
Hash-Based Sampling for Column Statistics 15-38
Multicolumn Statistics: Overview 15-39
Deferred Statistics Publishing: Overview 15-40
Deferred Statistics Publishing: Example 15-42
Summary 15-43
Practice 15 Overview: Managing Schema Objects 15-44

16 Accessing and Loading Data
Objectives 16-2
Data Pump: Overview 16-3
Data Pump Export and Import: Overview 16-4
Data Pump Export and Import: Benefits 16-5
Data Pump Access Methods 16-6
Data Pump Direct Path Considerations 16-7
Data Pump File Locations 16-8
Data Pump File Naming and Size 16-9
Data Pump Utility: Interfaces and Modes 16-10
Data Pump and Filtering 16-11
Data Pump Import Transformations 16-12
Data Pump Job Monitoring Views 16-13
Database Control and Data Pump 16-14
Parallel Full Export and Import: Example 16-15
Limited Schema Export: Example 16-16
External Table Population: Overview 16-17
External Table Population Operation 16-19
External Table Parallel Populate Operation 16-21
External Table Population: Example 16-22
Cross-Platform Transportable Tablespaces 16-23
Minimum Compatibility Level 16-24
Transportable Tablespace Procedure 16-25
Determining the Endian Format of a Platform 16-26
Data File Conversion: Examples 16-27
CLOB Exception 16-28
Dynamic Performance View Changes 16-29
Summary 16-30
Practice 16 Overview: Using Data Pump 16-31
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xv
17 Performing Backup and Recovery Operations
Objectives 17-2
Limiting Instance Recovery Time 17-3
Automatic Checkpoint Tuning 17-4
Overview of RMAN Changes 17-5
Persistent Configuration Parameters 17-6
Using RMAN to Back Up the SPFILE 17-7
Block Media Recovery 17-8
Reducing MTTR by Using Block Media Recovery 17-9
Using the RMAN Interface for Block Media Recovery 17-10
Creating Change-Aware Incremental Backups 17-12
Enabling Fast Incremental Backup Using Database Control 17-13
Monitoring Block Change Tracking 17-14
Recovering with Incrementally Updated Backups 17-15
Oracle-Suggested Strategy 17-16
Simplified Recovery Through RESETLOGS 17-17
Recovery Through RESETLOGS: Changes 17-18
Using RMAN: Automatic File Creation During Recovery 17-19
Working Through a Stuck Recovery 17-20
Allowing Corruptions of Data Blocks 17-21
Performing a Trial Recovery 17-22
Flash Recovery Area 17-24
Defining the Flash Recovery Area by Using Database Control 17-25
Defining the Flash Recovery Area by Using SQL 17-26
Flash Recovery Area Space Management 17-27
Backing Up Data Files to a Flash Recovery Area 17-28
Modifying the Disk Backup Location 17-29
Backing Up the Flash Recovery Area 17-30
New Flash Recovery Area View 17-31
Best Practices for the Database and Flash Recovery Area 17-32
Flashback Database: Overview 17-33
Flashback Database Eliminates Restore Time 17-34
Flashback Database Architecture 17-35
Configuring Flashback Database with EM 17-36
Manually Configuring Flashback Database 17-37
Flashback Database: Examples 17-38
Monitoring Flashback Database 17-39
Excluding Tablespaces from Flashback Database 17-40
Flashback Database Considerations 17-41
Data Recovery Advisor: Overview 17-42
Listing Data Failures 17-44
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xvi
Setting Corruption-Detection Parameters 17-45
Summary 17-46
Practice 17 Overview: Performing Backup and Recovery Operations 17-47

18 Recovering from User Errors
Objectives 18-2
Flashback Features: Overview 18-3
Configuring UNDO_RETENTION for Flashback Features 18-4
Flashback Versions Query: Overview 18-5
Granting Privileges for Flashback Versions Query 18-6
Flashback Versions Query: Syntax 18-7
Flashback Versions Query: Example 18-8
Flashback Versions Query: Considerations 18-9
Flashback Transaction Query: Overview 18-10
Enabling Supplemental Logging 18-11
Granting Privileges for Flashback Transaction Query 18-12
Querying FLASHBACK_TRANSACTION_QUERY 18-13
Using Flashback Versions Query and Flashback Transaction Query 18-14
Flashback Transaction Query: Considerations 18-15
Flashback Table: Overview 18-16
Granting Privileges for Flashback Table 18-17
Flashback Table: Example 18-18
Rolling Back a Flashback Table Operation 18-19
Flashback Table: Considerations 18-20
Flashback Drop: Overview 18-21
Changes in the DROP TABLE Operation 18-22
Recycle Bin 18-23
Querying the Recycle Bin 18-24
Restoring Tables from the Recycle Bin 18-25
Recycle Bin Automatic Space Reclamation 18-26
Recycle Bin Manual Space Reclamation 18-28
Bypassing the Recycle Bin 18-29
Querying Dropped Tables 18-30
Flashback Drop Considerations 18-31
Using Oracle Database 10g LogMiner Enhancements 18-32
Summary 18-33
Practice 18 Overview: Using Flashback Features 18-34

19 Managing Performance
Objectives 19-2
SQL Tuning Advisor: Overview 19-3
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xvii
Stale or Missing Object Statistics 19-4
SQL Statement Profiling 19-5
Plan Tuning Flow and SQL Profile Creation 19-6
SQL Tuning Loop 19-7
Access Path Analysis 19-8
SQL Structure Analysis 19-9
Using SQL Tuning Advisor 19-10
Database Control and SQL Tuning Advisor 19-11
SQL Access Advisor: Overview 19-12
SQL Access Advisor: Usage Model 19-13
Possible Recommendations 19-14
Typical SQL Access Advisor Session 19-15
Automatic SQL Tuning 19-16
Automatic Tuning Process 19-17
SQL Plan Management: Overview 19-19
SQL Plan Baseline Architecture 19-20
Loading SQL Plan Baselines 19-21
Possible SQL Plan Manageability Scenarios 19-23
SQL Management Base: Purging Policy 19-24
End-to-End Tracing 19-25
The trcsess Utility 19-26
Invoking the trcsess Utility 19-27
New Statistics Aggregation Dimensions 19-28
Enabling Statistics Aggregation 19-29
Generalized Trace Enabling 19-30
Enabling and Viewing SQL Tracing 19-31
Summary 19-32
Practice 19 Overview: Using SQL Advisors 19-33

20 Diagnosing Problems
Objectives 20-2
Oracle Database 11g Fault Management 20-3
Ease Diagnosis: Automatic Diagnostic Workflow 20-4
Automatic Diagnostic Repository 20-5
ADRCI: ADR Command-Line Tool 20-7
V$DIAG_INFO 20-8
Location for Diagnostic Traces 20-9
Using ADRCI to View the Alert Log 20-10
Problems Versus Incidents 20-11
Incident Packaging Service (IPS) 20-13
Incident Packages 20-14
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D
xviii
EM Support Workbench: Overview 20-15
Oracle Configuration Manager 20-16
EM Support Workbench: Roadmap 20-17
Viewing Critical Error Alerts in Enterprise Manager 20-18
Creating a Service Request 20-19
Health Monitor: Overview 20-20
Running Health Checks Manually: EM Example 20-21
Viewing HM Reports Using the ADRCI Utility 20-22
SQL Repair Advisor: Overview 20-23
Using EM to Access SQL Repair Advisor 20-24
Viewing, Disabling, and Removing a SQL Patch 20-25
Summary 20-26
Practice 20 Overview: Diagnosing Problems 20-27

21 Using Additional New Features
Objectives 21-2
Minimizing Dependent Recompilations 21-3
Locking Enhancements 21-4
Invisible Index: Overview 21-5
Invisible Indexes: Examples 21-6
Query Result Cache 21-7
Setting Up the Query Result Cache 21-8
Using the RESULT_CACHE Hint 21-9
Managing the Query Result Cache 21-10
Using the DBMS_RESULT_CACHE Package 21-11
Viewing Information About the Query Result Cache 21-12
Adaptive Cursor Sharing: Overview 21-13
Adaptive Cursor Sharing: Architecture 21-14
Adaptive Cursor Sharing Views 21-16
Skipping Unusable Indexes 21-17
MAXTRANS and Maximum Concurrency 21-18
Summary 21-19
Practice 21: Overview 21-20

Index

Appendix A: Practices and Solutions
O
r
a
c
l
e

U
n
i
v
e
r
s
i
t
y

a
n
d

F
o
r
s

t
r
a
i
n
i
n
g
&
C
o
n
s
u
l
t
i
n
g

u
s
e

o
n
l
y
T
H
E
S
E

e
K
I
T

M
A
T
E
R
I
A
L
S

A
R
E

F
O
R

Y
O
U
R

U
S
E

I
N

T
H
I
S

C
L
A
S
S
R
O
O
M

O
N
L
Y
.


C
O
P
Y
I
N
G

e
K
I
T

M
A
T
E
R
I
A
L
S

F
R
O
M

T
H
I
S

C
O
M
P
U
T
E
R

I
S

S
T
R
I
C
T
L
Y

P
R
O
H
I
B
I
T
E
D

You might also like