Professional Documents
Culture Documents
Preface
1 Introduction
Course Objectives 1-2
Suggested Schedule 1-3
Lesson Objectives 1-4
Oracle Products and Services 1-5
Oracle Database 10g: “g” Stands for Grid 1-6
Oracle Database Architecture 1-8
Database Structures 1-9
Oracle Memory Structures 1-10
Process Structures 1-12
Oracle Instance Management 1-13
Server Process and Database Buffer Cache 1-14
Physical Database Structure 1-15
Tablespaces and Data Files 1-17
SYSTEM and SYSAUX Tablespaces 1-18
Segments, Extents, and Blocks 1-19
Logical and Physical Database Structures 1-20
Course Examples: The HR Schema 1-22
Database Architecture: Summary of Structural Components 1-23
Summary 1-24
iii
3 Creating an Oracle Database
Objectives 3-2
Planning the Database 3-3
Databases: Examples 3-4
Database Configuration Assistant (DBCA) 3-5
Using the DBCA to Create a Database 3-6
Password Management 3-12
Creating a Database Design Template 3-13
Using the DBCA to Delete a Database 3-14
Summary 3-16
Practice Overview: Using the DBCA 3-17
iv
Dynamic Performance Views: Usage Examples 4-33
Dynamic Performance Views: Considerations 4-34
Summary 4-35
Practice Overview: Managing the Oracle Instance 4-36
v
Revoking System Privileges with ADMIN OPTION 6-15
Revoking Object Privileges with GRANT OPTION 6-16
Benefits of Roles 6-17
Assigning Privileges to Roles and Roles to Users 6-18
Predefined Roles 6-19
Creating a Role 6-20
Secure Roles 6-21
Assigning Roles to Users 6-22
Profiles and Users 6-23
Implementing Password Security Features 6-25
Creating a Password Profile 6-27
Supplied Password Verification Function: VERIFY_FUNCTION 6-28
Assigning Quota to Users 6-29
Summary 6-31
Practice Overview: Administering Users 6-32
vi
What Is a View? 7-35
Creating Views 7-36
Sequences 7-37
Creating a Sequence 7-38
Using a Sequence 7-40
Temporary Tables 7-41
Temporary Tables: Considerations 7-43
Data Dictionary: Overview 7-44
Data Dictionary Views 7-45
Data Dictionary: Usage Examples 7-47
Summary 7-48
Practice Overview: Administering Schema Objects 7-49
vii
Resolving Lock Conflicts Using SQL 8-31
Deadlocks 8-32
Summary 8-33
Practice Overview: Managing Data and Concurrency 8-34
viii
Maintaining the Audit Trail 10-26
Security Updates 10-27
Applying Security Patches 10-28
Summary 10-29
Practice Overview: Implementing Oracle Database Security 10-30
12 Proactive Maintenance
Objectives 12-2
Proactive Maintenance 12-3
Introducing Terminology 12-4
ix
Optimizer Statistics 12-5
Using the Manage Optimizer Statistics Page 12-7
Statistic Levels 12-9
Automatic Workload Repository (AWR) 12-10
AWR Infrastructure 12-11
AWR Snapshot Sets 12-12
Enterprise Manager and AWR 12-13
Managing the AWR 12-14
Automatic Database Diagnostic Monitor (ADDM) 12-15
ADDM Findings 12-16
ADDM Recommendations 12-17
Advisory Framework 12-18
Enterprise Manager and Advisors 12-20
The DBMS_ADVISOR Package 12-21
Server-Generated Alerts 12-22
Default Server-Generated Alerts 12-23
Setting Thresholds 12-24
Creating and Testing an Alert 12-25
Alerts Notification 12-26
Reacting to Alerts 12-28
Alert Types and Clearing Alerts 12-29
Automated Maintenance Tasks 12-30
Summary 12-31
Practice Overview: Proactive Maintenance 12-32
13 Performance Management
Objectives 13-2
Performance Monitoring 13-3
Performance Monitoring: Top Sessions 13-7
Performance Monitoring: Top Services 13-8
SQL Tuning Advisor: Overview 13-9
SQL Tuning Advisor Options and Recommendations 13-10
Using the SQL Tuning Advisor 13-11
Using the SQL Tuning Advisor: Example 13-12
SQL Tuning Advisor: SQL Statistics 13-13
SQL Tuning Advisor: Identifying Duplicate SQL 13-14
Using the SQL Access Advisor 13-15
Managing Memory Components 13-17
Enabling Automatic Shared Memory Management (ASMM) 13-18
Manually Setting Shared Memory Management 13-20
x
Using the Memory Advisor 13-21
Dynamic Performance Statistics 13-22
Troubleshooting and Tuning Views 13-24
Invalid and Unusable Objects 13-25
Summary 13-27
Practice Overview: Monitoring and Improving Performance 13-28
xi
Configuring Backup Settings 15-9
Scheduling Backups: Strategy 15-11
Scheduling Backups: Options 15-12
Scheduling Backups: Settings 15-13
Scheduling Backups: Schedule 15-14
Scheduling Backups: Review 15-15
Backing Up the Control File to a Trace File 15-16
Managing Backups 15-18
Flash Recovery Area 15-19
Summary 15-20
Practice Overview: Creating Database Backups 15-21
17 Performing Flashback
Objectives 17-2
Flashback Technology: Benefits 17-3
When to Use the Flashback Technology 17-4
Flashing Back Any Error 17-5
Flashback Database: Overview 17-6
Flashback Database: Reducing Restore Time 17-7
Flashback Database: Considerations 17-8
Flashback Database: Limitations 17-9
Enabling Flashback Database 17-10
Flashback Table: Overview 17-11
Flashback Table 17-12
Enabling Row Movement on a Table 17-13
Performing Flashback Table 17-14
Flashback Table: Considerations 17-16
Flashback Drop: Overview 17-17
xii
Flashing Back Dropped Tables Through Enterprise Manager 17-18
Flashback Drop: Considerations 17-19
Flashback Time Navigation 17-20
Flashback Query: Overview 17-21
Flashback Query: Example 17-22
Flashback Versions Query: Overview 17-23
Flashback Versions Query Through Enterprise Manager 17-24
Flashback Versions Query: Considerations 17-25
Flashback Transaction Query: Overview 17-26
Flashback Transaction Query Through Enterprise Manager 17-27
Flashback Transaction Query: Considerations 17-28
Summary 17-29
Practice Overview: Using Flashback 17-30
18 Moving Data
Objectives 18-2
Moving Data: General Architecture 18-3
Directory Object: Overview 18-4
Creating Directory Objects 18-5
SQL*Loader: Overview 18-6
Loading Data with SQL*Loader 18-8
SQL*Loader Control File 18-9
Loading Methods 18-11
Data Pump: Overview 18-13
Data Pump: Benefits 18-14
Data Pump Export and Import: Overview 18-15
Data Pump Utility: Interfaces and Modes 18-16
Fine-Grained Object Selection 18-17
Advanced Feature: Sampling 18-18
Export Options: Files 18-19
Data Pump File Locations 18-20
Scheduling and Running a Job 18-22
Data Pump File Naming and Size 18-23
Data Pump Import 18-24
Data Pump Import: Transformations 18-25
Data Pump: Performance Consideration 18-27
Performance Initialization Parameters 18-28
Data Pump Access Path: Considerations 18-29
Using Enterprise Manager to Monitor Data Pump Jobs 18-30
External Table Population 18-31
xiii
Using External Tables 18-32
External Table Population with ORACLE_DATAPUMP 18-33
External Table Population with ORACLE_LOADER 18-34
Data Dictionary 18-35
Summary 18-36
Practice Overview: Moving Data 18-37
Appendix A: Practices
Appendix B: Solutions
Index
xiv