Vous êtes sur la page 1sur 17

Introduction

Copyright 2008, Oracle. All rights reserved.

Lesson Objectives

After completing this lesson, you should be able to do the following: List the course objectives and explain the class structure Review the Oracle Database 10g architecture

1-2

Copyright 2008, Oracle. All rights reserved.

Course Objectives

In this course, you gain experience in: Using Recovery Manager (RMAN) for advanced backup and recovery Employing database monitoring practices for memory, performance, and storage Managing resources, job schedules, security, and globalization issues

1-3

Copyright 2008, Oracle. All rights reserved.

Suggested Schedule

1: Introduction 2: Configuring RMAN 3: Using RMAN 4: Non-Critical Recovery 5: Recovery 6: Flashback 7: Corruption 8: Memory 9: Performance

10: Schema 11: Storage 12: ASM 13: Resources 14: Scheduler 15: Security 16: Globalization 17: Workshop Appendixes

1-4

Copyright 2008, Oracle. All rights reserved.

What Is Covered in the DBAI Course


1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.
1-5

Introduction Installation DB Creation Instance Storage Users Schema Data & Concurrency Undo Security Network Proactive Maintenance

13. Performance 14. Backup & Recovery Concepts 15. Backup 16. Recovery 17. Flashback 18. Moving Data

Copyright 2008, Oracle. All rights reserved.

Course Examples: The HR Schema


REGIONS
REGION_ID (PK) REGION_NAME

COUNTRIES
COUNTRY_ID (PK) COUNTRY_NAME REGION_ID (FK)

JOBS
JOB_ID (PK) JOB_TITLE MIN_SALARY MAX_SALARY

JOB_HISTORY
EMPLOYEE_ID (PK) START_DATE (PK) END_DATE JOB_ID (FK) DEPARTMENT_ID (FK)

LOCATIONS
LOCATION_ID (PK) STREET_ADDRESS POSTAL_CODE CITY STATE_PROVINCE COUNTRY_ID (FK)

EMPLOYEES
EMPLOYEE_ID (PK) FIRST_NAME LAST_NAME EMAIL PHONE_NUMBER HIRE_DATE JOB_ID (FK) SALARY COMMISION_PCT MANAGER_ID (FK) DEPARTMENT_ID (FK)

DEPARTMENTS
DEPARTMENT_ID (PK) DEPARTMENT_NAME MANAGER_ID LOCATION_ID (FK)

1-6

Copyright 2008, Oracle. All rights reserved.

Oracle Database 10g: The Database for the Grid


Automatic Storage Management Portable clusterware Real Application Clusters and automatic workload management Resource Manager Oracle Streams Centralized management with Enterprise Manager Grid Control Oracle Database 10g new self-management features

1-7

Copyright 2008, Oracle. All rights reserved.

Database Architecture: Review

Memory structures

Instance System Global Area (SGA)

Process structures Background processes

Storage structures

Database files

1-8

Copyright 2008, Oracle. All rights reserved.

Oracle Memory Structures

Server process 1

PGA

Server process 2

PGA

Background process

PGA

SGA Shared pool Streams pool Large pool

Java pool

Database buffer cache

Redo log buffer

1-9

Copyright 2008, Oracle. All rights reserved.

Oracle Processes

Server process

Server process

Server process

Server process

System Global Area (SGA)

System Monitor (SMON)

Process Monitor (PMON)

Database Writer (DBWn)

Checkpoint (CKPT)

LogWriter (LGWR)

Archiver (ARCn)

Background processes

1 - 11

Copyright 2008, Oracle. All rights reserved.

Reviewing Oracle Instance Management


Example: Starting a database instance Establishing a connection 1 Instance SGA Database buffer cache Redo log buffer

System Monitor (SMON)

Process Monitor (PMON) Server

3 process 2 User process

Database Writer (DBWn)

LogWriter (LGWR)

Data files
1 - 12 Copyright 2008, Oracle. All rights reserved.

Redo log files

Reviewing Oracle Instance Management


Instance Example: Processing a SQL statement SGA 5 7 Database buffer cache Redo log buffer

10 User process

Server process

Database Checkpoint LogWriter Archiver Writer (CKPT) (LGWR) (ARCn) (DBWn)

9 6
Data files Control file

4 The user updates a row.

Redo log files

Archive logs

1 - 13

Copyright 2008, Oracle. All rights reserved.

Physical Database Structure

Control files

Data files

Online redo log files

Parameter file

Backup files

Archive log files

Password file

Alert and trace log files

1 - 14

Copyright 2008, Oracle. All rights reserved.

Oracle Managed Files (OMF)


Specify file operations in terms of database objects rather than file names.
Parameter
DB_CREATE_FILE_DEST

Description Defines the location of the default file system directory for data files and temporary files Defines the location for redo log files and control file creation Defines the location for RMAN backups

DB_CREATE_ONLINE_LOG_DEST_n DB_RECOVERY_FILE_DEST

Example:
SQL> ALTER SYSTEM SET DB_CREATE_FILE_DEST = '/u01/oradata'; SQL> CREATE TABLESPACE tbs_1;

1 - 16

Copyright 2008, Oracle. All rights reserved.

Logical and Physical Database Structures


Logical Database Physical

Schema

Tablespace

Data file

Segment

Extent

Oracle data block

OS block

1 - 17

Copyright 2008, Oracle. All rights reserved.

Database Architecture: Summary of Structural Components


Memory structures
System Global Area (SGA): Database buffer cache, redo buffer, and various pools Program Global Area (PGA)

Process structures
User process and server process Background processes: SMON, PMON, DBWn, CKPT, LGWR, ARCn, and so on

Storage structures
Logical: Database, schema, tablespace, segment, extent, and Oracle block Physical: Files for data, parameters, redo, and OS block

1 - 19

Copyright 2008, Oracle. All rights reserved.

Summary

In this lesson, you should have learned how to: List the course objectives Review the Oracle Database 10g architecture

1 - 20

Copyright 2008, Oracle. All rights reserved.

Vous aimerez peut-être aussi