SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
Simon Huang
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
Simon Huang
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 

What's hot (20)

Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Extreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGateExtreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGate
 
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
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administration
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
Disaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDBDisaster Recovery Planning for MySQL & MariaDB
Disaster Recovery Planning for MySQL & MariaDB
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified [❤PDF❤] Oracle 19c Database Administration Oracle Simplified
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified
 

Viewers also liked

Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
honglee71
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
Sidney Chen
 
Oracle Applications R12 Architecture
Oracle Applications R12 ArchitectureOracle Applications R12 Architecture
Oracle Applications R12 Architecture
Viveka Solutions
 
Database administrator
Database administratorDatabase administrator
Database administrator
Tech_MX
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdf
pimporn
 

Viewers also liked (19)

Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
 
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
 
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
 

Similar to Oracle architecture ppt

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
Rajendra Jain
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
Imran Ali
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
HODCA1
 
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
 

Similar to 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
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
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
 

Recently uploaded

+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
 
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...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Recently uploaded (20)

WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
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
 
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
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
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
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%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
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
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
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
+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...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
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 🔝✔️✔️
 
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...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%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
 

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