Tải bản đầy đủ (.pdf) (313 trang)

Tài liệu Oracle Database 10g : New Features For Administrators ppt

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (3.63 MB, 313 trang )

Oracle Database 10g : New Features For
Administrators


Oracle Database 10g: New
Features for Administrators
Volume III • Student Guide

D17079GC20
Edition 2.0
August 2005
D19871

®


Authors

Copyright © 2005, Oracle. All rights reserved.

Christine Jeal

Disclaimer

Janet Stern

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.

Jean-Francois Verrier

Technical Contributors
and Reviewers
Troy Anthony
David Austin
Mirella Avila

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.

John Beresniewicz
Tom Best
Harald van Breederode
Mary Bryksa
Timothy Chien
Donna Cooksey
Andy Fortunak
Joel Goodman
Donna Hamby
Magnus Isaksson
Pete Jones
Pierre Labrousse
Dominique Laugraud
Stefan Lindblad

Yi Lu
Venkat Maddali
Paul Manning
Sabiha Miri
Srinivas Putrevu
Mark Ramacher
James Spiller
S Matt Taylor
Branislav Valny
Anthony Woodell

Editors
Atanu Raychaudhuri
Aju Kumar

Graphic Designer
Samir Mozumdar

Publisher
Joseph Fernandez

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. Government’s 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, JD Edwards, PeopleSoft, and Retek are registered trademarks of Oracle
Corporation and/or its affiliates. Other names may be trademarks of their respective
owners.


Contents
I

Introduction
Overview I-2
Today’s IT Infrastructure I-3
How DBAs Spent Their Time Before Oracle Database 10g I-4
Grid Computing I-5
Oracle Ecosystem I-6
Enterprise Grid Computing I-7
Implement One from Many I-8
Manage Many as One I-10
Readily Available Product Controls I-12
Oracle Enterprise Manager 10g Grid Control I-13
Oracle Database 10g: The Database for the Grid I-14
Suggested Additional Courses I-15
Oracle Database 10g Manageability Goals I-16
Database Management Challenges I-17
Oracle Database 10g Solution: Self-Managing Database I-18
How Oracle Database 10g DBAs Spend Their Time I-19
Further Information I-20
Suggested Schedule I-21

1


Installation
Objectives 1-2
Installation Methods 1-3
Installation: New Feature Support 1-4
Performance Enhancements to Installation 1-5
Checking the Preinstallation Requirements 1-6
Miscellaneous Installation Enhancements 1-7
Response File Improvements 1-8
CD Pack Contents 1-9
Management Options 1-10
File Storage Options 1-11
Backup and Recovery Options 1-12
Passwords 1-13
Grid Control Components 1-14
Managed Targets for Grid Control 1-16
Oracle Management Service 1-17
Oracle Management Repository 1-18
Grid Control Console: Home 1-19
Grid Control Console: Targets 1-20
Managing Very Large Grids 1-21
Summary 1-22

iii


2

Server Configuration
Objectives 2-2
Database Configuration Assistant (DBCA) Enhancements 2-3

Using Database Control for Management 2-5
SYSAUX and DBCA 2-6
Database Control: Overview 2-7
Important EM Agent Directories 2-8
Configuring Database Control 2-9
Managing Database Control Components 2-10
Database Home Page: Overview 2-11
Database Control Setup Pages 2-13
Database Control Preferences Pages 2-14
Net Services Administration Pages 2-15
Database Feature Usage: Statistics Collection 2-16
Database Feature Usage: EM Interface 2-17
Database Feature Usage: HWM Page 2-18
Policy Framework 2-19
Policy Violations Page 2-20
Manage Policy Violations Page 2-22
Rule Violation Page 2-24
Manage Policy Library Page 2-25
Simplified Initialization Parameters 2-26
Viewing Initialization Parameters 2-27
Irreversible Data File Compatibility 2-28
Enabling iSQL*Plus DBA Access 2-29
Accessing iSQL*Plus DBA from EM 2-30
Summary 2-31
Practice 2: Overview 2-32

3

Data Pump, SQL*Loader, and External Tables
Objectives 3-2

Data Pump: Overview 3-3
Data Pump: General Architecture 3-4
Data Pump Export and Import: Overview 3-5
Data Pump Export and Import: Benefits 3-6
General Implementation: Overview 3-8
Data Pump Direct Path: Considerations 3-9
Data Pump File Locations 3-10
Data Pump File Naming and Size 3-12
Data Pump Utility: Interfaces and Modes 3-13
Data Pump and Filtering 3-14
Data Pump Import Transformations 3-15
Data Pump Job Monitoring Views 3-17

iv


Database Control and Data Pump 3-18
Using EM to Monitor Data Pump Jobs 3-19
Parallel Full Export and Import: Examples 3-20
Limited Schema Export: Example 3-21
Network Mode Import: Example 3-22
Attaching to Existing Job: Example 3-23
Restarting a Stopped Job: Example 3-24
Data-Only Unload: Example 3-25
Loading Data from Flat Files by Using EM 3-26
External Table Population: Overview 3-27
External Table Population Operation 3-28
External Table Parallel Populate Operation 3-29
External Table Population: Example 3-30
External Table Projected Columns 3-31

External Table Projected Column: Examples 3-32
Summary 3-33
Practice 3: Overview 3-34
4

Database and Tablespace Data Movements
Objectives 4-2
Cross-Platform Transportable Tablespaces 4-3
Minimum Compatibility Level 4-4
Transportable Tablespace Procedure 4-5
Determining the Endian Format of a Platform 4-6
Data File Conversion: Examples 4-7
CLOB Exception 4-8
Using Database Control to Transport Tablespaces 4-9
Generating Transportable Tablespace Sets 4-10
Specifying Destination Characteristics 4-11
Specifying Conversion Information 4-12
Specifying the Files Transfer Mode 4-13
Database Transportation: Overview 4-14
Database Transportation Procedure 4-15
Database Transportation: Conversion 4-16
Database Transportation: Example 1 4-17
Database Transportation: Example 2 4-18
Database Transportation: Generated Pfile 4-19
Database Transportation: Generated SQL Script 4-20
Database Transportation: Generated RMAN Script 4-22
Database Transportation: Considerations 4-23
DBMS_TDB Package 4-24
Database Cloning Using Database Control 4-25
Transport Tablespace from Backup: Overview 4-26

Transport Tablespace from Backup: Implementation 4-27

v


Transport Tablespace from Backup: Example 4-28
Versioning Tablespaces 4-29
Versioned Tablespaces: Usage Scenarios 4-30
Tablespace Repository 4-31
CLONE_TABLESPACES 4-32
CLONE_TABLESPACES: Example 4-33
DETACH_TABLESPACES 4-34
DETACH_TABLESPACES: Example 4-35
ATTACH_TABLESPACES 4-36
ATTACH_TABLESPACES: Example 4-37
Managing a File Group Repository 4-38
File Group Repository Catalog 4-41
File Group Repository Catalog Views 4-42
File Group Repository Privileges 4-43
Privileges for Versioning Tablespaces 4-45
Summary 4-46
Practice 4: Overview 4-47
5

Automatic Management
Objectives 5-2
Oracle Database 10g Solution: Self-Managing Database 5-3
Automatic Database Diagnostic Monitor: Overview 5-4
ADDM Performance Monitoring 5-5
ADDM Methodology 5-6

Top Performance Issues Detected 5-7
Database Control and ADDM Findings 5-8
ADDM Analysis Results 5-9
ADDM Recommendations 5-10
Database Control and ADDM Task 5-11
Changing ADDM Attributes 5-12
Retrieving ADDM Reports by Using SQL 5-13
Automatic Shared Memory Management: Overview 5-14
SGA Tuning Principles 5-15
Benefits of Automatic Shared Memory Management 5-16
Automatic Shared Memory Management 5-17
SGA Advisor 5-18
Manual Configuration 5-19
Behavior of Autotuned SGA Parameters 5-20
Behavior of Manually Tuned SGA Parameters 5-21
Using the V$PARAMETER View 5-22
Resizing SGA_TARGET 5-23
Disabling Automatic Shared Memory Management 5-24
Manually Resizing Dynamic SGA Parameters 5-25
Automatic Segment Advisor: Overview 5-26

vi


AUTO_SPACE_ADVISOR_JOB 5-27
Controlling AUTO_SPACE_ADVISOR_JOB 5-28
Viewing Latest Automatic Segment Advisor Recommendations 5-29
Automatic Optimizer Statistics Collection: Overview 5-30
GATHER_STATS_JOB 5-31
Controlling GATHER_STATS_JOB 5-32

Changing the Default Schedule 5-33
Automatic Undo Retention Tuning 5-34
Automatic Checkpoint Tuning 5-35
Automatically Tuned Multiblock Reads 5-36
Summary 5-37
Practice 5: Overview 5-38
6

Manageability Infrastructure
Objectives 6-2
Oracle Database 10g Solution: Self-Managing Database 6-3
Automatic Workload Repository 6-4
Automatic Workload Repository: Overview 6-5
Automatic Workload Repository Data 6-6
Active Session History 6-7
Generate ASH Reports 6-8
Base Statistics and Metrics 6-9
Workload Repository 6-10
Statistic Levels 6-11
AWR Snapshot Sets 6-12
AWR Snapshot Purging Policy 6-13
Database Control and AWR 6-14
Generating AWR Reports 6-15
Snapshot Sets and Period Comparisons 6-16
Compare Periods: Results 6-17
Statspack and AWR 6-18
Server-Generated Alerts 6-19
Server-Generated Alerts: Overview 6-20
Alert Models Architecture 6-21
Server-Generated Alert Types 6-22

Readily Available Server-Generated Alerts 6-23
Database Control Usage Model 6-24
Database Control Interface to Alerts 6-25
Setting Alert Thresholds 6-26
Alerts Notification 6-27
Metric Details Severity History 6-28
Metric and Alert Views 6-29
PL/SQL Interface for Threshold Settings 6-30
Alert Consumption: Manual Configuration 6-31

vii


User-Defined SQL Metrics 6-32
Automatic Routine Administration Tasks 6-33
DBCA and Automated Tasks 6-34
Common Manageability Infrastructure: Advisory Framework 6-35
Advisory Framework: Overview 6-36
Typical Advisor Tuning Session 6-37
Database Control and Advisors 6-38
DBMS_ADVISOR Package 6-39
Dictionary Changes 6-40
Using PL/SQL: Example 6-41
Summary 6-42
Practice 6: Overview 6-43
7

Adaptive Thresholds and Metric Baselines
Objectives 7-2
Cyclic Nature of Workloads 7-3

Thresholds and Metric Baselines Overview: Fixed Thresholds 7-4
Thresholds and Metric Baselines Overview: Adaptive Thresholds 7-5
Metric Baselines and Thresholds Concepts 7-6
Metric Baselines and Time Groups 7-8
Enabling Metric Baselining 7-9
Activating the Moving Window Metric Baseline 7-10
Setting Adaptive Alert Thresholds 7-11
Visualizing Metric Baseline Statistics 7-12
Creating Static Metric Baselines 7-13
Time Grouping: Considerations 7-14
Metric Baseline and Adaptive Threshold: Considerations 7-15
Classification of Eligible Metrics 7-16
Metric Baseline: Normalized View 7-17
Configuring Normalization Metrics 7-19
Adaptive Thresholds and the All Metrics Page 7-20
Summary 7-21
Practice 7: Overview 7-22

8

Application Tuning
Objectives 8-2
Oracle Database 10g Solution: Self-Managing Database 8-3
Automatic Statistics Gathering 8-4
Enhanced Query Optimization 8-5
Statistics on Dictionary Objects 8-6
Dictionary Statistics: Best Practices 8-7
Miscellaneous Statistics-Related Changes 8-8
Locking Statistics 8-9
Using the DBMS_STATS Package 8-10

Automatic Statistics Collection: Considerations 8-11

viii


History of Optimizer Statistics 8-12
Managing Historical Optimizer Statistics 8-13
Managing Optimizer Statistics Using EM 8-14
DML Table Monitoring Changes 8-15
Rule-Based Optimizer Obsolescence 8-16
Automatic SQL Tuning: Overview 8-17
Application Tuning Challenges 8-18
SQL Tuning Advisor: Overview 8-19
Stale or Missing Object Statistics 8-20
SQL Statement Profiling 8-21
Plan Tuning Flow and SQL Profile Creation 8-22
SQL Tuning Loop 8-23
Access Path Analysis 8-24
SQL Structure Analysis 8-25
SQL Tuning Advisor: Usage Model 8-26
Database Control and SQL Tuning Advisor 8-27
Implementing Recommendations 8-28
DBMS_SQLTUNE Package 8-29
DBMS_SQLTUNE: Examples 8-30
Exporting or Importing SQL Profiles 8-31
Automatic SQL Tuning Categories 8-32
SQL Access Advisor: Overview 8-33
SQL Access Advisor: Usage Model 8-34
Possible Recommendations 8-35
Typical SQL Access Advisor Session 8-36

Workload Source 8-37
Recommendation Options 8-38
Reviewing Recommendations 8-40
SQL Access Advisor: Procedure Flow 8-41
Performance Monitoring Solutions 8-42
Performance Management Approach 8-43
Database Home Page 8-44
Database Performance Page 8-45
Active Sessions Waiting Pages 8-46
SQL Details 8-47
Historical Data View 8-48
Summary 8-49
Practice 8: Overview 8-50
9

Services
Objectives 9-2
Traditional Workload Dispatching 9-3
Grid Workload Dispatching 9-4
What Is a Service? 9-5

ix


High Availability of Services in RAC 9-6
Possible Service Configuration with RAC 9-7
Service Attributes 9-8
Service Types 9-9
Service Goodness 9-10
Fast Application Notification for Continuous Service 9-11

Fast Connection Failover: Overview 9-12
Load Balancing Advisory 9-13
JDBC Runtime Connection Load Balancing: Benefit 9-14
Connection Load Balancing in RAC 9-15
Load Balancing Workflow in RAC 9-16
Creating Services 9-17
Managing Services in a Single-Instance Environment 9-18
Everything Switches to Services 9-19
Using Services with Client Applications 9-20
Using Services with the Resource Manager 9-21
Services and Resource Manager with EM 9-22
Services and the Resource Manager: Example 9-23
Using Services with the Scheduler 9-24
Services and the Scheduler with EM 9-25
Services and the Scheduler: Example 9-27
Using Services with Parallel Operations 9-28
Using Services with Metric Thresholds 9-29
Changing Service Thresholds by Using EM 9-30
Services and Metric Thresholds: Example 9-31
Service Aggregation and Tracing 9-32
Top Services Performance Page 9-33
Service Aggregation Configuration 9-34
Service Aggregation: Example 9-35
trcsess Utility 9-36
Service Performance Views 9-37
Generalized Trace Enabling 9-38
Summary 9-39
Practice 9: Overview 9-40
10 System Resource Management
Objectives 10-2

Oracle Database 10g Solution: Self-Managing Database 10-3
Database Resource Manager 10-4
Switching Plans at Scheduler Window Boundaries 10-5
Setting Idle Timeouts 10-6
Switching Back to the Initial Consumer Group at the End of Call 10-7
Creating a Mapping by Using Database Control 10-9
Creating a Mapping by Using DBMS_RESOURCE_MANAGER 10-10

x


Assigning Priorities by Using DBMS_RESOURCE_MANAGER 10-11
Changes to the DBMS_RESOURCE_MANAGER Package 10-13
Using the RATIO Allocation Method 10-15
Monitoring the Database Resource Manager 10-16
Monitoring the Resource Manager by Using EM 10-17
New V$ Views 10-18
Changed V$ Views 10-19
Summary 10-20
11 Automating Tasks with the Scheduler
Objectives 11-2
Scheduling Needs 11-3
Scheduler Concepts 11-4
Creating a Program 11-6
Creating a Program by Using EM 11-7
Creating and Using Schedules 11-8
Using EM to Create Schedules 11-9
Calendaring Expressions 11-10
Creating a Job 11-12
Creating a Time-Based Job 11-13

Setting the Repeat Interval for a Job 11-15
Using Events with Jobs 11-16
Event-Based Scheduling 11-17
Creating an Event-Based Job 11-18
Events Raised by the Scheduler 11-19
Using Events Raised by Jobs 11-21
Using EM to Create Event-Based Schedules 11-22
Creating Complex Schedules 11-23
Privileges for Scheduler Components 11-24
Enabling and Disabling Scheduler Components 11-26
Managing Scheduler Components 11-27
Managing Scheduler Components with EM 11-29
Viewing Attributes of Scheduler Components 11-30
Viewing Job Execution Details 11-31
Viewing Job Logs 11-32
Scheduler Job Chain Concepts 11-33
Creating Chains 11-34
Creating a Chain Object 11-36
Defining Chain Steps 11-37
Defining Chain Rules 11-39
Specifying Chain Rule Conditions 11-40
Starting the Chain 11-42
Creating a Job Chain with EM 11-43
Managing Job Chains 11-45

xi


Managing Job Chains with EM 11-46
Monitoring Job Chains 11-47

Advanced Scheduler Concepts 11-48
Creating a Window 11-49
Prioritizing Jobs Within a Window 11-50
Creating a Job Class 11-52
Summary 11-53
Practice 11: Overview 11-54
12 Space Management
Objectives 12-2
Oracle Database 10g Solution: Self-Managing Database 12-3
Proactive Tablespace Monitoring: Overview 12-4
Tablespace Space Usage Monitoring 12-5
Edit Tablespace Space Usage Thresholds 12-6
Edit Tablespace Page 12-7
PL/SQL and Tablespace Space Usage Thresholds 12-8
Proactive Undo Tablespace Monitoring 12-10
Shrinking Segments: Overview 12-11
Shrinking Segments: Considerations 12-12
Shrinking Segments by Using SQL 12-13
Segment Shrink: Basic Execution 12-14
Segment Shrink: Execution Considerations 12-15
Database Control and Segment Shrink 12-16
Segment Advisor: Overview 12-17
Running the Segment Advisor Manually 12-18
Using the Segment Advisor with EM 12-19
Growth Trend Report 12-20
Segment Resource Estimation 12-21
Undo Management Page 12-22
Undo Advisor Page 12-23
Fast Ramp-Up 12-24
Sorted Hash Cluster: Overview 12-25

Sorted Hash Cluster: Example 12-26
Sorted Hash Cluster: Basic Architecture 12-27
Sorted Hash Cluster: Considerations 12-28
Viewing Tablespace Contents 12-29
Summary 12-30
Practice 12: Overview 12-31
13 Improved Very Large Database (VDLB) Support
Objectives 13-2
Bigfile Tablespaces: Overview 13-3
Benefits of Bigfile Tablespaces 13-4

xii


Bigfile Tablespace: Usage Model 13-5
Creating Bigfile Tablespaces 13-6
SQL Statement Changes and Additions 13-7
BFTs and SQL Statements: Examples 13-8
Data Dictionary Changes and Additions 13-9
Bigfile Tablespaces and DBVERIFY 13-10
DBMS_UTILITY Package and BFTs 13-11
Migration and Bigfile Tablespaces 13-12
Extended ROWID Format and BFTs 13-13
DBMS_ROWID Package Changes 13-14
Temporary Tablespace Group: Overview 13-15
Temporary Tablespace Group: Benefits 13-16
Creating Temporary Tablespace Groups 13-17
Maintaining Temporary Tablespace Groups 13-18
Temporary Tablespace Group SQL: Examples 13-19
Data Dictionary Changes 13-21

Database Control: Creating a Partition 13-22
Database Control: Partition Maintenance 13-23
Partitioned IOT Enhancements 13-24
Local Partitioned Index Enhancements 13-25
Skipping Unusable Indexes 13-26
Hash-Partitioned Global Indexes: Overview 13-27
Contention Scenario 13-28
Hash-Partitioned Global Indexes: Benefits 13-29
Creating Hash-Partitioned Global Indexes 13-30
Adding and Coalescing Partitions 13-31
Range and Hash Global Index Commands 13-32
Operations Not Supported 13-33
Usage Example 13-34
Bitmap Index Storage Enhancements 13-35
DML Error Logging: Overview 13-36
DML Error Logging: Example 13-37
Error-Logging Table 13-38
DML Error Logging: Considerations 13-39
Summary 13-40
Practice 13: Overview 13-41
14 Backup and Recovery Enhancements
Objectives 14-2
Oracle Database 10g Solution: Self-Managing Database 14-3
Flash Recovery Area 14-4
Defining Flash Recovery Area by Using Database Control 14-6
Defining a Flash Recovery Area by Using SQL 14-7
Flash Recovery Area Space Management 14-8

xiii



Backing Up Data Files to a Flash Recovery Area 14-9
Modifying the Flash Recovery Area 14-10
Backing Up the Flash Recovery Area 14-11
Dynamic Flash Recovery Area Views 14-12
Flash Recovery Area Columns in Other Views 14-14
Best Practices for the Database and Flash Recovery Area 14-15
Changes in SQL Statement Behavior 14-16
Fast Incremental Backup 14-18
Enabling Fast Incremental Backup 14-19
Monitoring Block Change Tracking 14-20
Incrementally Updated Backups 14-21
Oracle-Suggested Strategy 14-22
Incremental Roll Forward of a Database Copy 14-23
RMAN Backup Command Changes 14-24
Backup Type Enhancements by Using Database Control 14-26
Backup Maintenance 14-27
Backing Up the Entire Database 14-28
Backing Up Individual Tablespaces 14-29
Backing Up Data Files and Control Files 14-30
Implementing Fast Recovery 14-31
Automated Instance Creation and TSPITR 14-32
Auxiliary Location in EM 14-33
Creating Compressed Backups 14-34
Monitoring Compressed Backups 14-35
Simplified Recovery Through RESETLOGS 14-36
Recovery Through RESETLOGS: Changes 14-37
Recovering Data Files Not Backed Up 14-38
Dropping a Database 14-39
Placing All Files in Online Backup Mode 14-40

How Does File Status Affect BEGIN BACKUP? 14-41
Changes to the END BACKUP Command 14-42
RMAN and Configuration Changes 14-43
Automatic Channel Failover 14-44
RMAN Channel Support for the Grid 14-45
Enhanced RMAN Scripts 14-46
Setting Duration and Throttling Option 14-47
Database Control: Backup Reports 14-48
Summary 14-49
Practice 14: Overview 14-50
15 Oracle Secure Backup Overview
Objectives 15-2
Data Protection to Tape for the Oracle Stack 15-3
The Customer Advantage Complete Oracle Solution 15-4

xiv


Oracle Secure Backup for Centralized Tape Backup Management 15-5
Oracle Secure Backup Administrative Domain 15-6
Oracle Secure Backup: Backup Management Overview 15-7
Oracle Secure Backup Catalog 15-8
Oracle Secure Backup Users 15-9
Predefined Classes 15-10
Oracle Secure Backup Interface Options 15-11
Managing Data to Be Protected 15-12
Oracle Secure Backup Media Concepts 15-13
Volume Set Recycling 15-14
Automated Device Management 15-15
Library Management Operations 15-16

Oracle Secure Backup: Installation 15-17
Installing Oracle Secure Backup Software 15-18
Administrative Server Installation: Example 15-19
Defining Your Administrative Server in EM 15-20
The Oracle Secure Backup Device and Media Page 15-21
Adding Devices 15-22
Manage Devices by Using EM 15-23
RMAN and Oracle Secure Backup 15-24
Accessing Oracle Secure Backup from RMAN 15-25
User Preauthorization 15-26
Database Backup Storage Selector 15-27
RMAN and Oracle Secure Backup Usage Model 15-28
Defining Database Storage Selector 15-29
Testing Your Tape Drives 15-30
Scheduling Backups by Using EM Database Control 15-31
Oracle-Suggested Strategy for Backups 15-32
Managing Tape Backups 15-33
Performing Database Recovery by Using Tape Backups 15-34
Backing Up File-System Files with Oracle Secure Backup 15-35
Oracle Secure Backup Web Tool 15-36
Oracle Secure Backup Data Set Scripts 15-37
Data Set Script: Examples 15-38
Data Set Organization 15-39
Creating Data Sets Using the Web Interface 15-40
File-System Files Backup Concepts 15-41
Oracle Secure Backup Jobs 15-42
Creating On-Demand Backup Requests 15-43
Sending Backup Requests to the Scheduler 15-44
Creating Backup Schedules 15-45
Creating Backup Triggers 15-46

Viewing Job Properties and Transcripts 15-47

xv


Restoring File-System Files with Oracle Secure Backup 15-48
Creating a Catalog-Based Restore Request 15-49
Sending Catalog-Based Restore Requests to the Scheduler 15-51
Listing All Backups of a Client 15-52
Summary 15-53
Practice 15: Overview 15-54
16 Flash Back Any Error
Objectives 16-2
Flashback Time Navigation 16-3
Flashback Error Correction 16-4
Flashback Database: Overview 16-5
Flashback Database: Eliminating Restore Time 16-6
Flashback Database Architecture 16-7
Configuring Flashback Database Using EM 16-8
Flashing Back Your Database by Using EM 16-9
Manually Configuring Flashback Database 16-10
Flashback Database: Examples 16-11
Monitoring Flashback Database 16-12
Excluding Tablespaces from Flashback Database 16-13
Flashback Database: Considerations 16-14
Flashing Back RESETLOGS 16-15
Flashback Drop: Overview 16-16
Recycle Bin 16-17
Flashing Back Dropped Tables by Using EM 16-18
Querying the Recycle Bin 16-19

Restoring Tables from the Recycle Bin 16-20
Recycle Bin: Automatic Space Reclamation 16-21
Recycle Bin: Manual Space Reclamation 16-22
Bypassing the Recycle Bin 16-23
Querying Dropped Tables 16-24
Flashback Drop: Considerations 16-25
Flashback Versions Query: Overview 16-26
Flashback Versions Query Using EM 16-27
Flashback Versions Query Syntax 16-28
Flashback Versions Query: Example 16-29
Flashback Versions Query: Considerations 16-30
Flashback Transaction Query: Overview 16-31
Flashback Transaction Query Using EM 16-32
Querying FLASHBACK_TRANSACTION_QUERY 16-33
Using Flashback Versions Query and Flashback Transaction Query 16-34
Flashback Transaction Query: Considerations 16-35
Flashback Table: Overview 16-36
Using EM to Flash Back Tables 16-37

xvi


Flashback Table: Example 16-38
Rolling Back a Flashback Table Operation 16-39
Flashback Table: Considerations 16-40
Restore Points: Overview 16-41
Guaranteed Restore Points 16-42
Guaranteed Restore Points: Properties 16-43
Restore Point Creation and Usage 16-44
Guaranteed Undo Retention 16-45

SCN and Time Mapping Enhancements 16-46
Granting Flashback Privileges 16-47
When to Use Flashback Technology 16-48
Flashback Technology: Benefits 16-49
Summary 16-50
Practice 16: Overview 16-51
17 General Space Management Enhancements
Objectives 17-2
Oracle Database 10g Solution: Self-Managing Database 17-3
SYSAUX Tablespace: Overview 17-4
SYSAUX Tablespace: Benefits 17-5
SYSAUX Occupants 17-6
CREATE DATABASE 17-7
ALTER TABLESPACE SYSAUX 17-8
SYSAUX Tablespace: General Usage 17-9
SYSAUX Occupants: Visualization 17-10
SYSAUX Occupants: Relocation 17-11
SYSAUX Occupants: Relocation Using SQL 17-12
Tablespace Rename: Overview 17-13
Tablespace Rename: Usage Example 17-14
Tablespace Rename: Considerations 17-15
Tablespace Rename: Best Practices 17-16
Default Permanent Tablespace: Overview 17-17
Designating a Default Permanent Tablespace 17-18
Default Permanent Tablespace: SQL Examples 17-19
Copying Files by Using the Database Server 17-20
Local Copy: Example 17-21
Transferring Files: Example 17-22
Copying Files: Considerations 17-23
Redo Logfile Size Advisor 17-24

Dropping an Empty Data File 17-26
Summary 17-27
Practice 17: Overview 17-28

xvii


18 Automatic Storage Management
Objectives 18-2
What Is Automatic Storage Management? 18-3
ASM: Key Features and Benefits 18-4
ASM: New Concepts 18-5
ASM: General Architecture 18-6
ASM Administration 18-8
ASM Instance Functionalities 18-9
Installing ASM: Overview 18-10
Transparent Multiversion Support 18-11
Creating a Database on ASM 18-12
Creating an ASM Instance on Its Own 18-13
ASM Instance Initialization Parameters 18-14
Accessing an ASM Instance 18-15
Dynamic Performance View Additions 18-16
ASM Home Page 18-17
ASM Performance Page 18-18
ASM Configuration Page 18-19
Starting Up an ASM Instance 18-20
Shutting Down an ASM Instance 18-21
ASM Administration 18-22
ASM Disk Group 18-23
Failure Group 18-24

Disk Group Mirroring 18-25
Disk Group Dynamic Rebalancing 18-26
ASM: Administration Page 18-27
Create Disk Group Page 18-28
Creating or Deleting Disk Groups 18-29
Adding Disks to Disk Groups 18-30
Miscellaneous Alter Commands 18-31
Monitoring Long-Running Operations by Using V$ASM_OPERATION 18-33
ASM Administration 18-34
ASM Files 18-35
ASM File Names 18-36
ASM File Name Syntax 18-37
ASM File Name Mapping 18-39
ASM File Templates 18-40
Template and Alias: Examples 18-41
Retrieving Aliases 18-42
SQL Commands and File Naming 18-43
ASM Command-Line Interface: Overview 18-44
ASM Command-Line Interface Commands 18-45
Database Instance Parameter Changes 18-46

xviii


Migrate Database To ASM Wizard 18-48
Manually Migrating Your Database to ASM 18-49
ASM and Transportable Tablespaces 18-50
ASM and XML DB: Overview 18-51
ASM Virtual Folder Hierarchy 18-52
ASM Virtual Folder: Typical Use 18-53

Summary 18-54
Practice 18: Overview 18-55
19 Maintaining Software
Objectives 19-2
Oracle Database 10g Upgrade Paths 19-3
Choosing an Upgrade Method 19-4
Advantages of Using DBUA 19-5
Manual Upgrade: Advantages and Disadvantages 19-6
New Preupgrade Information Utility 19-7
Oracle Database 10g: Simplified Upgrade 19-8
New Postupgrade Status Utility 19-9
Properly Prepared Upgrade 19-10
Using Database Upgrade Assistant 19-11
Recompiling Invalid Objects 19-12
Backing Up the Database Before Upgrade 19-13
Upgrade Summary 19-14
Performing the Manual Upgrade 19-15
Downgrading Using a Single Script 19-20
MetaLink Integration 19-21
OPatch Utility 19-22
OPatch Operations 19-24
Support for RAC Environments 19-25
OPatch Process Flow 19-26
Patch Conflict Detection 19-28
Summary 19-29
20 Security
Objectives 20-2
Virtual Private Database: Overview 20-3
Virtual Private Database: Enhancements 20-4
Column-Level VPD: Example 20-5

Creating a Column-Level Policy 20-6
Policy Types: Overview 20-7
Static Policies 20-8
Context-Sensitive Policies 20-9
Sharing Policy Functions 20-10
Auditing Mechanisms: Overview 20-11

xix


Uniform Audit Trails 20-12
Enhanced Enterprise User Auditing 20-13
Audit EM Page 20-14
Audit Enhancements 20-15
Fine-Grained Auditing: Enhancements 20-16
Fine-Grained Auditing Policy: Example 20-17
Audited DML Statement: Considerations 20-18
Transparent Data Encryption: Overview 20-19
Implementing Transparent Data Encryption 20-20
Existing Tables and Transparent Data Encryption 20-22
Transparent Data Encryption: Considerations 20-23
Data Pump and Transparent Data Encryption 20-24
RMAN Encrypted Backups: Overview 20-25
Transparent Mode Setup 20-26
Password Mode Setup 20-27
Dual Mode Setup 20-28
RMAN Encrypted Backups: Considerations 20-29
CONNECT Role Change 20-30
Wallet Support for Usernames and Passwords 20-31
Summary 20-32

Practice 20: Overview 20-33
21 Miscellaneous New Features
Objectives 21-2
Transaction Monitoring 21-3
Dynamic Performance View Changes 21-4
V$FAST_START_TRANSACTIONS View 21-5
Configurationless Client Connect 21-6
Simplified Shared-Server Configuration 21-8
Viewing the Dispatcher Configuration 21-9
Resumable Space Allocation Enhancements 21-10
Flushing the Buffer Cache 21-11
MAXTRANS and Maximum Concurrency 21-12
Large Object (LOB) Data Type Changes 21-13
Implicit Conversion Between CLOB and NCLOB 21-14
Regular Expression Support 21-15
Matching Mechanism 21-16
Syntax: Example 21-17
Using REGEXP_LIKE in SQL 21-18
Case- and Accent-Insensitive Query and Sort 21-19
Changes in Configuration Parameters 21-20
Support in SQL and Functions 21-21
Quote Operator q 21-22
UTL_MAIL Package 21-23

xx


UTL_MAIL: Examples 21-24
LogMiner Enhancements 21-25
Enhanced Initialization Parameters 21-26

Faster Instance Startup for Ultralarge Buffer Caches 21-27
Asynchronous COMMIT 21-28
How to Use Asynchronous COMMIT 21-29
Diagnosis of Hung or Extremely Slow Databases 21-30
Using Memory Access Mode 21-31
Using the Hang Analysis Page 21-32
Summary 21-34
Practice 21: Overview 21-35
Appendix A: Practices
Appendix B: Solutions

xxi



Oracle Secure Backup Overview

Copyright © 2005, Oracle. All rights reserved.


Objectives

After completing this lesson, you should be able to do
the following:
• Describe the Oracle Secure Backup architecture
and how it benefits your environment
• Discuss the basic Oracle Secure Backup media
management concepts
• Install and configure Oracle Secure Backup
• Use RMAN and Oracle Secure Backup to back up

and restore the Oracle database
• Use Oracle Secure Backup to back up and restore
file-system files

15-2

Copyright © 2005, Oracle. All rights reserved.

Oracle Database 10g: New Features for Administrators 15-2


×