SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Copyright © 2007, Oracle. All rights reserved.
Exploring the Oracle Database Architecture
Copyright © 2007, Oracle. All rights reserved.1 - 2
Objectives
After completing this lesson, you should be able to:
• List the major architectural components of Oracle
Database
• Explain the memory structures
• Describe the background processes
• Correlate the logical and physical storage structures
Copyright © 2007, Oracle. All rights reserved.1 - 3
Oracle Database
The Oracle relational database management system
(RDBMS) provides an open, comprehensive, integrated
approach to information management
Copyright © 2007, Oracle. All rights reserved.1 - 4
Connecting to a Server
Client Middle tier Server
Multitier architecture shown
Copyright © 2007, Oracle. All rights reserved.1 - 6
Database
Data files
Online redo
log files
Control
files
Oracle Database Architecture: Overview
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
PMONSMON Others
Server
process
PGA
Archived
log files
User
process
Instance
RECO
ARCn
SGA
DBWn
Redo log
buffer
LGWRCKPT
Copyright © 2007, Oracle. All rights reserved.1 - 7
Connecting to the Database
• Connection: Communication between a user process
and an instance
• Session: Specific connection of a user to an instance
through a user process
SQL> Select …
Session
Connection
User
User
process
Server
process
Session
Copyright © 2007, Oracle. All rights reserved.1 - 8
Interacting with an Oracle Database
User
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
PMONSMON Others
Instance
RECOARCn
SGA
DBWn
Redo log
buffer
LGWRCKPT
User
process
Server
process
Copyright © 2007, Oracle. All rights reserved.1 - 10
Database
Oracle Database Server Structures
PMONSMON Others
Data files
Online redo
log files
Control
files
Instance
RECOARCnDBWn LGWRCKPT
Storage structures
User
process
Server
process
Memory structures
Processes
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.1 - 11
Oracle Database
Memory Structures
DB structures
Memory
- Process
- Storage
SGA
Database buffer
cache
Redo log
buffer
Java
pool
Streams
pool
Shared pool
Large pool
PGA PGA PGA
Background
process
Server
process 1
Server
process 2
Shared
SQL area
Library
cache
Data dictionary
cache
Other
I/O buffer
Response
queue
Request
queue
Free
memory
Copyright © 2007, Oracle. All rights reserved.1 - 13
Database Buffer Cache
• Is part of the SGA
• Holds copies of data blocks that are read from data files
• Is shared by all concurrent users
PMONSMON Others
Instance
RECOARCnDBWn LGWRCKPT
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.1 - 14
Redo Log Buffer
• Is a circular buffer in the SGA
• Holds information about changes made to the database
• Contains redo entries that have the information to redo
changes made by operations such as DML and DDL
PMONSMON Others
Instance
RECOARCnDBWn LGWRCKPT
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.1 - 15
Shared Pool
• Is a portion of the SGA
• Contains:
– Library cache
— Shared SQL area
– Data dictionary cache
– Control structures
PMONSMON Others
Instance
RECOARCnDBWn LGWRCKPT
Shared
SQL area
Library
cache
Data dictionary
cache
Other
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.1 - 17
Allocation and Reuse of Memory
in the Shared Pool
• Server process checks the shared pool to see if a
shared SQL area already exists for an identical
statement.
• Server process allocates a private SQL area on behalf of
the session.
Server
process
Shared
pool
Shared
SQL area
Library
cache
Data dictionary
cache
Other
Copyright © 2007, Oracle. All rights reserved.1 - 19
Large Pool
Provides large memory allocations for:
• Session memory for the shared server and the Oracle
XA interface
• I/O server processes
• Oracle Database backup and restore operations
Large pool
I/O buffer
Response
queue
Request
queue
Free
memory
Java
pool
Large pool
Shared pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Copyright © 2007, Oracle. All rights reserved.1 - 20
Java Pool
and Streams Pool
• Java pool memory is used in server memory for all
session-specific Java code and data in the JVM.
• Streams pool memory is used exclusively by Oracle
Streams to:
– Store buffered queue messages
– Provide memory for Oracle Streams processes
Java pool Streams pool
Copyright © 2007, Oracle. All rights reserved.1 - 21
Process Architecture
• User process
– Is started when a database user or a batch process
connects to Oracle Database
• Database processes
– Server process: Connects to the Oracle instance and is
started when a user establishes a session
– Background processes: Are started when an Oracle
instance is started
DB structures
- Memory
 Process
- Storage
PMONSMON Others
Instance
RECOARCnDBWn LGWRCKPT
PGA
User
process
Server
process Background processes
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.1 - 22
Process Structures
Server n
processes
SGA
Oracle
background
processes
PMON SMON OthersRECO ARCnDBWn LGWRCKPT
Server ServerServerServer Server
Database
buffer
cache
Shared pool
Data dictionary
cache
Library
cache
SGA
Redo log
buffer
Copyright © 2007, Oracle. All rights reserved.1 - 24
Database Writer Process (DBWn)
Writes modified (dirty) buffers in the database buffer cache
to disk:
• Asynchronously while performing other processing
• Periodically to advance the checkpoint
Database buffer
cache
Database writer
process
Data files
DBWn
Copyright © 2007, Oracle. All rights reserved.1 - 26
LogWriter Process (LGWR)
• Writes the redo log buffer to a redo log file on disk
• Writes:
– When a user process commits a transaction
– When the redo log buffer is one-third full
– Before a DBWn process writes modified buffers to disk
Redo log buffer LogWriter process Redo log files
LGWR
Copyright © 2007, Oracle. All rights reserved.1 - 28
Checkpoint Process (CKPT)
• Records checkpoint information in
– Control file
– Each data file header
Checkpoint
process
Data files
Control fileCKPT
Copyright © 2007, Oracle. All rights reserved.1 - 29
System Monitor Process (SMON)
• Performs recovery at instance startup
• Cleans up unused temporary segments
Instance
Temporary
segment
System Monitor
process
SMON
Copyright © 2007, Oracle. All rights reserved.1 - 30
Process Monitor Process (PMON)
• Performs process recovery when a user process fails
– Cleans up the database buffer cache
– Frees resources that are used by the user process
• Monitors sessions for idle session timeout
• Dynamically registers database services with listeners
Process Monitor
process
Database buffer
cache
Failed user
process
UserPMON
Copyright © 2007, Oracle. All rights reserved.1 - 31
Recoverer Process
• Used with the distributed database configuration
• Automatically connects to other databases involved in
in-doubt distributed transactions
• Automatically resolves all in-doubt transactions
• Removes any rows that correspond to in-doubt
transactions
Recoverer process
in database A
In-doubt transaction
in database B
RECO
Copyright © 2007, Oracle. All rights reserved.1 - 32
Archiver Processes (ARCn)
• Copy redo log files to a designated storage device after
a log switch has occurred
• Can collect transaction redo data and transmit that data
to standby destinations
Archiver process Archive destinationCopies of redo log
files
ARCn
Copyright © 2007, Oracle. All rights reserved.1 - 33
Other Processes
• MMON: Performs manageability-related background
tasks
• MMNL: Performs frequent and lightweight
manageability-related tasks
• MMAN: Performs automatic memory management tasks
• CJQ0: Runs user jobs used in batch processing
• QMNx: Monitors the Streams Advanced Queuing
message queues
Copyright © 2007, Oracle. All rights reserved.1 - 35
Server Process and Database
Buffer Cache
Buffers:
• Pinned
• Clean
• Free or unused
• Dirty
Database
writer
process
Database
buffer
cache
SGA
Data files
DBWn
Server
process
Copyright © 2007, Oracle. All rights reserved.1 - 36
Database Storage Architecture
Online redo log files
Password file
Parameter file Archived redo log
files
Control files Data files
Alert log and trace files
Backup files
DB structures
- Memory
- Process
 Storage
Copyright © 2007, Oracle. All rights reserved.1 - 38
Logical and Physical Database Structures
Database
Logical Physical
Tablespace Data file
OS block
Segment
Extent
Oracle data
block
Schema
Copyright © 2007, Oracle. All rights reserved.1 - 40
Tablespaces and Data Files
• Tablespaces consist of one or more data files.
• Data files belong to only one tablespace.
USERS tablespace
Data file 1 Data file 2
Copyright © 2007, Oracle. All rights reserved.1 - 41
SYSTEM and SYSAUX Tablespaces
• The SYSTEM and SYSAUX tablespaces are mandatory
tablespaces that are created at the time of database
creation. They must be online.
• The SYSTEM tablespace is used for core functionality
(for example, data dictionary tables).
• The auxiliary SYSAUX tablespace is used for additional
database components (such as the Enterprise Manager
Repository).
Copyright © 2007, Oracle. All rights reserved.1 - 42
Segments, Extents, and Blocks
• Segments exist in a tablespace.
• Segments are collections of extents.
• Extents are collections of data blocks.
• Data blocks are mapped to disk blocks.
Segment Extents Data
blocks
Disk
blocks
Copyright © 2007, Oracle. All rights reserved.1 - 43
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: Data files, control files, and redo log files
Copyright © 2007, Oracle. All rights reserved.1 - 44
Summary
In this lesson, you should have learned how to:
• List the major architectural components of Oracle
Database
• Explain the memory structures
• Describe the background processes
• Correlate the logical and physical storage structures
Copyright © 2007, Oracle. All rights reserved.1 - 45
Practice 1: Overview
This is a paper practice with questions about:
• Database architecture
• Memory
• Processes
• File structures

Weitere ähnliche Inhalte

Was ist angesagt?

Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recoveryYogiji Creations
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuningGuy Harrison
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Bilal Arshad
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Databasepuja_dhar
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsEnkitec
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database IntroductionChhom Karath
 
08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadata08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadatarehaniltifat
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle DatabaseMeysam Javadi
 
Less01 architecture
Less01 architectureLess01 architecture
Less01 architectureAmit Bhalla
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19cMaria Colgan
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Aaron Shilo
 
Getting started with postgresql
Getting started with postgresqlGetting started with postgresql
Getting started with postgresqlbotsplash.com
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuningSimon Huang
 
Oracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best PracticesOracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best PracticesBobby Curtis
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONMarkus Michalewicz
 

Was ist angesagt? (20)

Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuning
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
 
08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadata08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadata
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
Less01 architecture
Less01 architectureLess01 architecture
Less01 architecture
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Database Administrator
Database AdministratorDatabase Administrator
Database Administrator
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Getting started with postgresql
Getting started with postgresqlGetting started with postgresql
Getting started with postgresql
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
 
Oracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best PracticesOracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best Practices
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 

Andere mochten auch

Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and ArchitectureSidney Chen
 
Présentation Oracle DataBase 11g
Présentation Oracle DataBase 11gPrésentation Oracle DataBase 11g
Présentation Oracle DataBase 11gCynapsys It Hotspot
 
Introduction to Oracle ERP
Introduction to Oracle ERPIntroduction to Oracle ERP
Introduction to Oracle ERPBalaji Parsewar
 
MySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsMySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsTuyen Vuong
 
Best Practices - PHP and the Oracle Database
Best Practices - PHP and the Oracle DatabaseBest Practices - PHP and the Oracle Database
Best Practices - PHP and the Oracle DatabaseChristopher Jones
 
Percona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replicationPercona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replicationmysqlops
 
Oracle Applications R12 Architecture
Oracle Applications R12 ArchitectureOracle Applications R12 Architecture
Oracle Applications R12 ArchitectureViveka Solutions
 
Oracle Database Architecture - EN
Oracle Database Architecture - ENOracle Database Architecture - EN
Oracle Database Architecture - ENMichal Simonik
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptSantosh Kangane
 
Database administrator
Database administratorDatabase administrator
Database administratorTech_MX
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2Mario Redón Luz
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdfpimporn
 

Andere mochten auch (19)

Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
Présentation Oracle DataBase 11g
Présentation Oracle DataBase 11gPrésentation Oracle DataBase 11g
Présentation Oracle DataBase 11g
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Introduction to Oracle ERP
Introduction to Oracle ERPIntroduction to Oracle ERP
Introduction to Oracle ERP
 
MySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsMySQL Atchitecture and Concepts
MySQL Atchitecture and Concepts
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
 
Best Practices - PHP and the Oracle Database
Best Practices - PHP and the Oracle DatabaseBest Practices - PHP and the Oracle Database
Best Practices - PHP and the Oracle Database
 
Less01 Dba1
Less01 Dba1Less01 Dba1
Less01 Dba1
 
Oracle ERP Introduction
Oracle ERP IntroductionOracle ERP Introduction
Oracle ERP Introduction
 
Percona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replicationPercona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replication
 
Oracle 10g Installation
Oracle 10g InstallationOracle 10g Installation
Oracle 10g Installation
 
Oracle Applications R12 Architecture
Oracle Applications R12 ArchitectureOracle Applications R12 Architecture
Oracle Applications R12 Architecture
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Oracle Database Architecture - EN
Oracle Database Architecture - ENOracle Database Architecture - EN
Oracle Database Architecture - EN
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and concept
 
Database administrator
Database administratorDatabase administrator
Database administrator
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdf
 

Ähnlich wie Oracle architecture ppt

exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptAmitavaRoy49
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptMohammedHdi1
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement systemMurtazaMughal13
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfRajendra Jain
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architectureImran Ali
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.pptHODCA1
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)Gustavo Rene Antunez
 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_tricantino1973
 
Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Rati Manandhar
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architectureSoumya Das
 
Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdfNamNguynMu
 

Ähnlich wie Oracle architecture ppt (20)

exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.ppt
 
Less01_Architecture.ppt
Less01_Architecture.pptLess01_Architecture.ppt
Less01_Architecture.ppt
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
 
Resize sga
Resize sgaResize sga
Resize sga
 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
App D
App DApp D
App D
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Oracle administration classes in mumbai
Oracle administration classes in mumbaiOracle administration classes in mumbai
Oracle administration classes in mumbai
 
Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdf
 

Kürzlich hochgeladen

Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile EnvironmentVictorSzoltysek
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 

Kürzlich hochgeladen (20)

Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 

Oracle architecture ppt

  • 1. Copyright © 2007, Oracle. All rights reserved. Exploring the Oracle Database Architecture
  • 2. Copyright © 2007, Oracle. All rights reserved.1 - 2 Objectives After completing this lesson, you should be able to: • List the major architectural components of Oracle Database • Explain the memory structures • Describe the background processes • Correlate the logical and physical storage structures
  • 3. Copyright © 2007, Oracle. All rights reserved.1 - 3 Oracle Database The Oracle relational database management system (RDBMS) provides an open, comprehensive, integrated approach to information management
  • 4. Copyright © 2007, Oracle. All rights reserved.1 - 4 Connecting to a Server Client Middle tier Server Multitier architecture shown
  • 5. Copyright © 2007, Oracle. All rights reserved.1 - 6 Database Data files Online redo log files Control files Oracle Database Architecture: Overview Database buffer cache Shared pool Data dictionary cache Library cache PMONSMON Others Server process PGA Archived log files User process Instance RECO ARCn SGA DBWn Redo log buffer LGWRCKPT
  • 6. Copyright © 2007, Oracle. All rights reserved.1 - 7 Connecting to the Database • Connection: Communication between a user process and an instance • Session: Specific connection of a user to an instance through a user process SQL> Select … Session Connection User User process Server process Session
  • 7. Copyright © 2007, Oracle. All rights reserved.1 - 8 Interacting with an Oracle Database User Database buffer cache Shared pool Data dictionary cache Library cache PMONSMON Others Instance RECOARCn SGA DBWn Redo log buffer LGWRCKPT User process Server process
  • 8. Copyright © 2007, Oracle. All rights reserved.1 - 10 Database Oracle Database Server Structures PMONSMON Others Data files Online redo log files Control files Instance RECOARCnDBWn LGWRCKPT Storage structures User process Server process Memory structures Processes Database buffer cache Shared pool Data dictionary cache Library cache SGA Redo log buffer
  • 9. Copyright © 2007, Oracle. All rights reserved.1 - 11 Oracle Database Memory Structures DB structures Memory - Process - Storage SGA Database buffer cache Redo log buffer Java pool Streams pool Shared pool Large pool PGA PGA PGA Background process Server process 1 Server process 2 Shared SQL area Library cache Data dictionary cache Other I/O buffer Response queue Request queue Free memory
  • 10. Copyright © 2007, Oracle. All rights reserved.1 - 13 Database Buffer Cache • Is part of the SGA • Holds copies of data blocks that are read from data files • Is shared by all concurrent users PMONSMON Others Instance RECOARCnDBWn LGWRCKPT Database buffer cache Shared pool Data dictionary cache Library cache SGA Redo log buffer
  • 11. Copyright © 2007, Oracle. All rights reserved.1 - 14 Redo Log Buffer • Is a circular buffer in the SGA • Holds information about changes made to the database • Contains redo entries that have the information to redo changes made by operations such as DML and DDL PMONSMON Others Instance RECOARCnDBWn LGWRCKPT Database buffer cache Shared pool Data dictionary cache Library cache SGA Redo log buffer
  • 12. Copyright © 2007, Oracle. All rights reserved.1 - 15 Shared Pool • Is a portion of the SGA • Contains: – Library cache — Shared SQL area – Data dictionary cache – Control structures PMONSMON Others Instance RECOARCnDBWn LGWRCKPT Shared SQL area Library cache Data dictionary cache Other Database buffer cache Shared pool Data dictionary cache Library cache SGA Redo log buffer
  • 13. Copyright © 2007, Oracle. All rights reserved.1 - 17 Allocation and Reuse of Memory in the Shared Pool • Server process checks the shared pool to see if a shared SQL area already exists for an identical statement. • Server process allocates a private SQL area on behalf of the session. Server process Shared pool Shared SQL area Library cache Data dictionary cache Other
  • 14. Copyright © 2007, Oracle. All rights reserved.1 - 19 Large Pool Provides large memory allocations for: • Session memory for the shared server and the Oracle XA interface • I/O server processes • Oracle Database backup and restore operations Large pool I/O buffer Response queue Request queue Free memory Java pool Large pool Shared pool Database buffer cache Redo log buffer Streams pool
  • 15. Copyright © 2007, Oracle. All rights reserved.1 - 20 Java Pool and Streams Pool • Java pool memory is used in server memory for all session-specific Java code and data in the JVM. • Streams pool memory is used exclusively by Oracle Streams to: – Store buffered queue messages – Provide memory for Oracle Streams processes Java pool Streams pool
  • 16. Copyright © 2007, Oracle. All rights reserved.1 - 21 Process Architecture • User process – Is started when a database user or a batch process connects to Oracle Database • Database processes – Server process: Connects to the Oracle instance and is started when a user establishes a session – Background processes: Are started when an Oracle instance is started DB structures - Memory  Process - Storage PMONSMON Others Instance RECOARCnDBWn LGWRCKPT PGA User process Server process Background processes Database buffer cache Shared pool Data dictionary cache Library cache SGA Redo log buffer
  • 17. Copyright © 2007, Oracle. All rights reserved.1 - 22 Process Structures Server n processes SGA Oracle background processes PMON SMON OthersRECO ARCnDBWn LGWRCKPT Server ServerServerServer Server Database buffer cache Shared pool Data dictionary cache Library cache SGA Redo log buffer
  • 18. Copyright © 2007, Oracle. All rights reserved.1 - 24 Database Writer Process (DBWn) Writes modified (dirty) buffers in the database buffer cache to disk: • Asynchronously while performing other processing • Periodically to advance the checkpoint Database buffer cache Database writer process Data files DBWn
  • 19. Copyright © 2007, Oracle. All rights reserved.1 - 26 LogWriter Process (LGWR) • Writes the redo log buffer to a redo log file on disk • Writes: – When a user process commits a transaction – When the redo log buffer is one-third full – Before a DBWn process writes modified buffers to disk Redo log buffer LogWriter process Redo log files LGWR
  • 20. Copyright © 2007, Oracle. All rights reserved.1 - 28 Checkpoint Process (CKPT) • Records checkpoint information in – Control file – Each data file header Checkpoint process Data files Control fileCKPT
  • 21. Copyright © 2007, Oracle. All rights reserved.1 - 29 System Monitor Process (SMON) • Performs recovery at instance startup • Cleans up unused temporary segments Instance Temporary segment System Monitor process SMON
  • 22. Copyright © 2007, Oracle. All rights reserved.1 - 30 Process Monitor Process (PMON) • Performs process recovery when a user process fails – Cleans up the database buffer cache – Frees resources that are used by the user process • Monitors sessions for idle session timeout • Dynamically registers database services with listeners Process Monitor process Database buffer cache Failed user process UserPMON
  • 23. Copyright © 2007, Oracle. All rights reserved.1 - 31 Recoverer Process • Used with the distributed database configuration • Automatically connects to other databases involved in in-doubt distributed transactions • Automatically resolves all in-doubt transactions • Removes any rows that correspond to in-doubt transactions Recoverer process in database A In-doubt transaction in database B RECO
  • 24. Copyright © 2007, Oracle. All rights reserved.1 - 32 Archiver Processes (ARCn) • Copy redo log files to a designated storage device after a log switch has occurred • Can collect transaction redo data and transmit that data to standby destinations Archiver process Archive destinationCopies of redo log files ARCn
  • 25. Copyright © 2007, Oracle. All rights reserved.1 - 33 Other Processes • MMON: Performs manageability-related background tasks • MMNL: Performs frequent and lightweight manageability-related tasks • MMAN: Performs automatic memory management tasks • CJQ0: Runs user jobs used in batch processing • QMNx: Monitors the Streams Advanced Queuing message queues
  • 26. Copyright © 2007, Oracle. All rights reserved.1 - 35 Server Process and Database Buffer Cache Buffers: • Pinned • Clean • Free or unused • Dirty Database writer process Database buffer cache SGA Data files DBWn Server process
  • 27. Copyright © 2007, Oracle. All rights reserved.1 - 36 Database Storage Architecture Online redo log files Password file Parameter file Archived redo log files Control files Data files Alert log and trace files Backup files DB structures - Memory - Process  Storage
  • 28. Copyright © 2007, Oracle. All rights reserved.1 - 38 Logical and Physical Database Structures Database Logical Physical Tablespace Data file OS block Segment Extent Oracle data block Schema
  • 29. Copyright © 2007, Oracle. All rights reserved.1 - 40 Tablespaces and Data Files • Tablespaces consist of one or more data files. • Data files belong to only one tablespace. USERS tablespace Data file 1 Data file 2
  • 30. Copyright © 2007, Oracle. All rights reserved.1 - 41 SYSTEM and SYSAUX Tablespaces • The SYSTEM and SYSAUX tablespaces are mandatory tablespaces that are created at the time of database creation. They must be online. • The SYSTEM tablespace is used for core functionality (for example, data dictionary tables). • The auxiliary SYSAUX tablespace is used for additional database components (such as the Enterprise Manager Repository).
  • 31. Copyright © 2007, Oracle. All rights reserved.1 - 42 Segments, Extents, and Blocks • Segments exist in a tablespace. • Segments are collections of extents. • Extents are collections of data blocks. • Data blocks are mapped to disk blocks. Segment Extents Data blocks Disk blocks
  • 32. Copyright © 2007, Oracle. All rights reserved.1 - 43 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: Data files, control files, and redo log files
  • 33. Copyright © 2007, Oracle. All rights reserved.1 - 44 Summary In this lesson, you should have learned how to: • List the major architectural components of Oracle Database • Explain the memory structures • Describe the background processes • Correlate the logical and physical storage structures
  • 34. Copyright © 2007, Oracle. All rights reserved.1 - 45 Practice 1: Overview This is a paper practice with questions about: • Database architecture • Memory • Processes • File structures