SlideShare a Scribd company logo
Oracle Instance Architecture
CIS417
Oracle
Architecture
Overview
Oracle Architecture
The Oracle Server
Oracle Architecture
Instance Architecture
Shared pool
Library
Cache
Data
Dictionary
Cache
Redo
Log
Buffer
Database
Buffer
Cache
SGA
Instance
DBWR LGWR SMON PMON ARCn
RECO CKPT LCKn SNPn Dnnn
Snnn
Oracle Architecture
Instance
 An Oracle instance:
– Is a means to access an Oracle database
– Always opens one and only one database
 Consists of:
– Internal memory structures
– Processes
Oracle Architecture
Interaction with the Database ( Dedicated Server )
Oracle Architecture
Interaction with the Database ( Shared Server )
Oracle Architecture
Internal Memory Structures SGA
System or ‘shared’ Global Area (SGA)
– Database buffer cache
– Redo log buffer
– Shared pool
– Request & response queues (shared server)
Oracle Architecture
Database buffer cache
 Used to hold data blocks read from datafiles by server
processes
 Contains ‘dirty’ or modified blocks and ‘clean’ or
unused or unchanged bocks
 ‘Dirty’ and ‘clean’ blocks are managed in lists called the
dirty list and the LRU
 Free space is created by DBWR writing out ‘dirty’
blocks or aging out blocks from the LRU
 Size is managed by the parameter
DB_BLOCK_BUFFERS
Oracle Architecture
Least Recently Used (LRU)
 LRU and the database buffer cache
– Every time a data block is read from disk it is placed
in the database buffer cache at the head of the LRU
list
– If a block is already in the cache and it is read again
it is moved to the head of the list
– Data not used frequently is ‘aged’ out of the cache
while frequently used data remains
Oracle Architecture
Redo Log Buffer
 A circular buffer that contains redo entries
– Redo entries reflect changes made to the database
 Redo entries take up contiguous, sequential
space in the buffer
 Data stored in the redo log buffer is periodically
written to the online redo log files
 Size is managed by the parameter
LOG_BUFFER
– Default is 4 times the maximum data block size for
the operating system
Oracle Architecture
Shared Pool
 Consists of multiple smaller memory areas
– Library cache
 Shared SQL area
– Contains parsed SQL and execution plans for statements already
run against the database
 Procedure and package storage
– Dictionary cache
 Names of all tables and views in the database
 Names and datatypes of columns in the database tables
 Privileges of all users
 Managed via an LRU algorithm
 Size determined by the parameter
SHARED_POOL_SIZE
Oracle Architecture
Least Recently Used (LRU)
 LRU and the shared pool
– Every time a SQL statement is parsed it is placed in
the shared pool for reuse
– If a SQL statement is already in the shared pool it
will not re-parse but it is placed at the head of the
LRU
– SQL statements not used frequently are ‘aged’ out
of the shared pool while frequently used statements
remain
– A SQL statement may be artificially retained at the
head of the LRU by ‘pinning’ the statement
Oracle Architecture
Internal Memory Structures PGA
Program or ‘process’ Global Area (PGA)
– Used for a single process
– Not shareable with other processes
– Writable only by the server process
– Allocated when a process is created and
deallocated when a process is terminated
– Contains:
 Sort area – Used for any sorts required by SQL processing
 Session information – Includes user privileges
 Cursor state – Indicates stage of SQL processing
 Stack space – Contains session variables
Oracle Architecture
Background Processes - DBWR
 Writes contents of database buffers to datafiles
 Primary job is to keep the database buffer
‘clean’
 Writes least recently used (LRU) ‘dirty’ buffers
to disk first
 Writes to datafiles in optimal batch writes
 Only process that writes directly to datafiles
 Mandatory process
Oracle Architecture
Background Processes - DBWR
 DBWR writes to disk when:
– A server process cannot find a clean reusable buffer
– A timeout occurs (3 sec)
– A checkpoint occurs
– DBWR cannot write out ‘dirty’ buffers before they
have been written to the online redo log files
Oracle Architecture
Commit Command
The SQL command COMMIT allows users to
save transactions that have been made against
a database. This functionality is available for
any UPDATE, INSERT, or DELETE
transaction; it is not available for changes to
database objects (such as ALTER TABLE
commands)
Oracle Architecture
Background Processes - LGWR
 Writes contents of redo log buffers to online
redo log files
 Primary job is to keep the redo log buffer
‘clean’
 Writes out redo log buffer blocks sequentially
to the redo log files
 May write multiple redo entries per write during
high utilization periods
 Mandatory process
Oracle Architecture
Background Processes - LGWR
 LGWR writes to disk when:
– A transaction is COMMITED
– A timeout occurs (3 sec)
– The redo log buffer is 1/3 full
– There is more than 1 megabyte of redo entries
– Before DBWR writes out ‘dirty’ blocks to datafiles
Oracle Architecture
Background Processes - SMON
 Performs automatic instance recovery
 Reclaims space used by temporary segments
no longer in use
 Merges contiguous areas of free space in the
datafiles (if PCTINCREASE > 0)
 SMON ‘wakes up’ regularly to check whether it
is needed or it may be called directly
 Mandatory process
Oracle Architecture
Background Processes - SMON
 SMON recovers transactions marked as DEAD
within the instance during instance recovery
– All non committed work will be rolled back by SMON
in the event of server failure
– SMON makes multiple passes through DEAD
transactions and only applies a specified number of
undo records per pass, this prevents short
transactions having to wait for long transactions to
recover
 SMON primarily cleans up server-side failures
Oracle Architecture
Background Processes - PMON
 Performs automatic process recovery
– Cleans up abnormally terminated connections
– Rolls back non committed transactions
– Releases resources held by abnormally terminated
transactions
 Restarts failed shared server and dispatcher
processes
 PMON ‘wakes up’ regularly to check whether it
is needed or it may be called directly
 Mandatory process
Oracle Architecture
Background Processes - PMON
 Detects both user and server aborted database
processes
 Automatically resolves aborted processes
– PMON rolls back the current transaction of the
aborted process
– Releases resources used by the process
– If the process is a background process the instance
most likely cannot continue and will be shut down
 PMON primarily cleans up client-side failures
Oracle Architecture
Background Processes - CKPT
 Forces all modified data in the SGA to be written to
datafile
– Occurs whether or not the data has been committed
– CKPT does not actually write out buffer data only DBWR can
write to the datafiles
 Updates the datafile headers
– This ensures all datafiles are synchronized
 Helps reduce the amount of time needed to perform
instance recovery
 Frequency can be adjusted with parameters
Oracle Architecture
Background Processes - ARCH
 Automatically copies online redo log files to
designated storage once they have become full
Oracle Architecture
Server Processes
 Services a single user process in the dedicated
server configuration or many user processes in
the shared server configuration
 Use an exclusive PGA
 Include the Oracle Program Interface (OPI)
 Process calls generated by the client
 Return results to the client in the dedicated
server configuration or to the dispatcher in the
shared server configuration
Oracle Architecture
User Processes
 Run on the client machine
 Are spawned when a tool or an application is
invoked
– SQL*Plus, Server Manager, Oracle Enterprise
Manager, Developer/2000
– Custom applications
 Include the User Program Interface (UPI)
 Generate calls to the Oracle server
Oracle Architecture
Transaction Example - Update
UPDATE table
SET user = ‘SHIPERT’
WHERE id = 12345
Oracle Architecture
Transaction Example - Update
Oracle Architecture
Transaction Example - Update
Oracle Architecture
Transaction Example - Update
Oracle Architecture
Transaction Example - Update
Oracle Architecture
Transaction Example - Update
Oracle Architecture
Transaction Example - Update
1 ROW UPDATED
Oracle Architecture
Transaction Example - Update
COMMIT
Oracle Architecture
Transaction Example - Update
COMMIT
SUCCESSFUL
Oracle Architecture
Transaction Example - Update
Ad

More Related Content

What's hot (20)

All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
Jeff Smith
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
Satishbabu Gunukula
 
In memory databases presentation
In memory databases presentationIn memory databases presentation
In memory databases presentation
Michael Keane
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
Deepak Shetty
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
dilip nayak
 
Oracle SQL Performance Tuning and Optimization v26 chapter 1
Oracle SQL Performance Tuning and Optimization v26 chapter 1Oracle SQL Performance Tuning and Optimization v26 chapter 1
Oracle SQL Performance Tuning and Optimization v26 chapter 1
Kevin Meade
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
Simon Huang
 
Oracle User Management
Oracle User ManagementOracle User Management
Oracle User Management
Arun Sharma
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
Simon Huang
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 
A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN
Riyaj Shamsudeen
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
Anne Lee
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
Pini Dibask
 
SKILLWISE-DB2 DBA
SKILLWISE-DB2 DBASKILLWISE-DB2 DBA
SKILLWISE-DB2 DBA
Skillwise Group
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
Vimlendu Kumar
 
Oracle Tablespace - Basic
Oracle Tablespace - BasicOracle Tablespace - Basic
Oracle Tablespace - Basic
Eryk Budi Pratama
 
Oracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning Concept
Chien Chung Shen
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Alfredo Krieg
 
Less07 storage
Less07 storageLess07 storage
Less07 storage
Amit Bhalla
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
Akash Pramanik
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
Jeff Smith
 
In memory databases presentation
In memory databases presentationIn memory databases presentation
In memory databases presentation
Michael Keane
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
Deepak Shetty
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
dilip nayak
 
Oracle SQL Performance Tuning and Optimization v26 chapter 1
Oracle SQL Performance Tuning and Optimization v26 chapter 1Oracle SQL Performance Tuning and Optimization v26 chapter 1
Oracle SQL Performance Tuning and Optimization v26 chapter 1
Kevin Meade
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
Simon Huang
 
Oracle User Management
Oracle User ManagementOracle User Management
Oracle User Management
Arun Sharma
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
Simon Huang
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 
A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN A deep dive about VIP,HAIP, and SCAN
A deep dive about VIP,HAIP, and SCAN
Riyaj Shamsudeen
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
Anne Lee
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
Pini Dibask
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
Vimlendu Kumar
 
Oracle Database Performance Tuning Concept
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning Concept
Chien Chung Shen
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Alfredo Krieg
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
Akash Pramanik
 

Similar to Oracle Instance 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
MohammedHdi1
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
AmitavaRoy49
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
AmitavaRoy49
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
Eryk Budi Pratama
 
oraclearchitectureppt-150805094353-lva1-app6891.pptx
oraclearchitectureppt-150805094353-lva1-app6891.pptxoraclearchitectureppt-150805094353-lva1-app6891.pptx
oraclearchitectureppt-150805094353-lva1-app6891.pptx
ayesha420248
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
durgaprasad1407
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
Sandeep Kamath
 
Less01_Architecture.ppt
Less01_Architecture.pptLess01_Architecture.ppt
Less01_Architecture.ppt
MuhammadUmair833474
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
Hitesh Kumar Markam
 
Overview of Primary Components of the Oracle
Overview of Primary Components of the OracleOverview of Primary Components of the Oracle
Overview of Primary Components of the Oracle
umarodnguj
 
Oracle RBMS Architecture SVG PVG background process
Oracle RBMS Architecture SVG PVG background processOracle RBMS Architecture SVG PVG background process
Oracle RBMS Architecture SVG PVG background process
BhawanaMayankKothari
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
Femi Adeyemi
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
SoloParaTi7
 
Conceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11gConceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11g
188882
 
les_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.pptles_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.ppt
mhmdfoad66
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
MurtazaMughal13
 
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
 
Less01 Dba1
Less01 Dba1Less01 Dba1
Less01 Dba1
vivaankumar
 
Oracle Architecture software overview ppts
Oracle Architecture software overview pptsOracle Architecture software overview ppts
Oracle Architecture software overview ppts
ssuserf272701
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
Ram Naani
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.ppt
MohammedHdi1
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
AmitavaRoy49
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
AmitavaRoy49
 
oraclearchitectureppt-150805094353-lva1-app6891.pptx
oraclearchitectureppt-150805094353-lva1-app6891.pptxoraclearchitectureppt-150805094353-lva1-app6891.pptx
oraclearchitectureppt-150805094353-lva1-app6891.pptx
ayesha420248
 
Overview of Primary Components of the Oracle
Overview of Primary Components of the OracleOverview of Primary Components of the Oracle
Overview of Primary Components of the Oracle
umarodnguj
 
Oracle RBMS Architecture SVG PVG background process
Oracle RBMS Architecture SVG PVG background processOracle RBMS Architecture SVG PVG background process
Oracle RBMS Architecture SVG PVG background process
BhawanaMayankKothari
 
Conceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11gConceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11g
188882
 
les_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.pptles_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.ppt
mhmdfoad66
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
MurtazaMughal13
 
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
 
Oracle Architecture software overview ppts
Oracle Architecture software overview pptsOracle Architecture software overview ppts
Oracle Architecture software overview ppts
ssuserf272701
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
Ram Naani
 
Ad

More from HODCA1 (9)

Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdf
HODCA1
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdf
HODCA1
 
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdfmariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
HODCA1
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdf
HODCA1
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
HODCA1
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdf
HODCA1
 
ordbms.ppt
ordbms.pptordbms.ppt
ordbms.ppt
HODCA1
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptx
HODCA1
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdf
HODCA1
 
Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdf
HODCA1
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdf
HODCA1
 
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdfmariadb-platform-high-availability-guide_whitepaper_1001.pdf
mariadb-platform-high-availability-guide_whitepaper_1001.pdf
HODCA1
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdf
HODCA1
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
HODCA1
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdf
HODCA1
 
ordbms.ppt
ordbms.pptordbms.ppt
ordbms.ppt
HODCA1
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptx
HODCA1
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdf
HODCA1
 
Ad

Recently uploaded (20)

How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Maxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINKMaxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINK
younisnoman75
 
Xforce Keygen 64-bit AutoCAD 2025 Crack
Xforce Keygen 64-bit AutoCAD 2025  CrackXforce Keygen 64-bit AutoCAD 2025  Crack
Xforce Keygen 64-bit AutoCAD 2025 Crack
usmanhidray
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025
Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025
Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025
wareshashahzadiii
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Maxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINKMaxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINK
younisnoman75
 
Xforce Keygen 64-bit AutoCAD 2025 Crack
Xforce Keygen 64-bit AutoCAD 2025  CrackXforce Keygen 64-bit AutoCAD 2025  Crack
Xforce Keygen 64-bit AutoCAD 2025 Crack
usmanhidray
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025
Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025
Minitab 22 Full Crack Plus Product Key Free Download [Latest] 2025
wareshashahzadiii
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 

Oracle Instance Architecture.ppt

  • 4. Oracle Architecture Instance Architecture Shared pool Library Cache Data Dictionary Cache Redo Log Buffer Database Buffer Cache SGA Instance DBWR LGWR SMON PMON ARCn RECO CKPT LCKn SNPn Dnnn Snnn
  • 5. Oracle Architecture Instance  An Oracle instance: – Is a means to access an Oracle database – Always opens one and only one database  Consists of: – Internal memory structures – Processes
  • 6. Oracle Architecture Interaction with the Database ( Dedicated Server )
  • 7. Oracle Architecture Interaction with the Database ( Shared Server )
  • 8. Oracle Architecture Internal Memory Structures SGA System or ‘shared’ Global Area (SGA) – Database buffer cache – Redo log buffer – Shared pool – Request & response queues (shared server)
  • 9. Oracle Architecture Database buffer cache  Used to hold data blocks read from datafiles by server processes  Contains ‘dirty’ or modified blocks and ‘clean’ or unused or unchanged bocks  ‘Dirty’ and ‘clean’ blocks are managed in lists called the dirty list and the LRU  Free space is created by DBWR writing out ‘dirty’ blocks or aging out blocks from the LRU  Size is managed by the parameter DB_BLOCK_BUFFERS
  • 10. Oracle Architecture Least Recently Used (LRU)  LRU and the database buffer cache – Every time a data block is read from disk it is placed in the database buffer cache at the head of the LRU list – If a block is already in the cache and it is read again it is moved to the head of the list – Data not used frequently is ‘aged’ out of the cache while frequently used data remains
  • 11. Oracle Architecture Redo Log Buffer  A circular buffer that contains redo entries – Redo entries reflect changes made to the database  Redo entries take up contiguous, sequential space in the buffer  Data stored in the redo log buffer is periodically written to the online redo log files  Size is managed by the parameter LOG_BUFFER – Default is 4 times the maximum data block size for the operating system
  • 12. Oracle Architecture Shared Pool  Consists of multiple smaller memory areas – Library cache  Shared SQL area – Contains parsed SQL and execution plans for statements already run against the database  Procedure and package storage – Dictionary cache  Names of all tables and views in the database  Names and datatypes of columns in the database tables  Privileges of all users  Managed via an LRU algorithm  Size determined by the parameter SHARED_POOL_SIZE
  • 13. Oracle Architecture Least Recently Used (LRU)  LRU and the shared pool – Every time a SQL statement is parsed it is placed in the shared pool for reuse – If a SQL statement is already in the shared pool it will not re-parse but it is placed at the head of the LRU – SQL statements not used frequently are ‘aged’ out of the shared pool while frequently used statements remain – A SQL statement may be artificially retained at the head of the LRU by ‘pinning’ the statement
  • 14. Oracle Architecture Internal Memory Structures PGA Program or ‘process’ Global Area (PGA) – Used for a single process – Not shareable with other processes – Writable only by the server process – Allocated when a process is created and deallocated when a process is terminated – Contains:  Sort area – Used for any sorts required by SQL processing  Session information – Includes user privileges  Cursor state – Indicates stage of SQL processing  Stack space – Contains session variables
  • 15. Oracle Architecture Background Processes - DBWR  Writes contents of database buffers to datafiles  Primary job is to keep the database buffer ‘clean’  Writes least recently used (LRU) ‘dirty’ buffers to disk first  Writes to datafiles in optimal batch writes  Only process that writes directly to datafiles  Mandatory process
  • 16. Oracle Architecture Background Processes - DBWR  DBWR writes to disk when: – A server process cannot find a clean reusable buffer – A timeout occurs (3 sec) – A checkpoint occurs – DBWR cannot write out ‘dirty’ buffers before they have been written to the online redo log files
  • 17. Oracle Architecture Commit Command The SQL command COMMIT allows users to save transactions that have been made against a database. This functionality is available for any UPDATE, INSERT, or DELETE transaction; it is not available for changes to database objects (such as ALTER TABLE commands)
  • 18. Oracle Architecture Background Processes - LGWR  Writes contents of redo log buffers to online redo log files  Primary job is to keep the redo log buffer ‘clean’  Writes out redo log buffer blocks sequentially to the redo log files  May write multiple redo entries per write during high utilization periods  Mandatory process
  • 19. Oracle Architecture Background Processes - LGWR  LGWR writes to disk when: – A transaction is COMMITED – A timeout occurs (3 sec) – The redo log buffer is 1/3 full – There is more than 1 megabyte of redo entries – Before DBWR writes out ‘dirty’ blocks to datafiles
  • 20. Oracle Architecture Background Processes - SMON  Performs automatic instance recovery  Reclaims space used by temporary segments no longer in use  Merges contiguous areas of free space in the datafiles (if PCTINCREASE > 0)  SMON ‘wakes up’ regularly to check whether it is needed or it may be called directly  Mandatory process
  • 21. Oracle Architecture Background Processes - SMON  SMON recovers transactions marked as DEAD within the instance during instance recovery – All non committed work will be rolled back by SMON in the event of server failure – SMON makes multiple passes through DEAD transactions and only applies a specified number of undo records per pass, this prevents short transactions having to wait for long transactions to recover  SMON primarily cleans up server-side failures
  • 22. Oracle Architecture Background Processes - PMON  Performs automatic process recovery – Cleans up abnormally terminated connections – Rolls back non committed transactions – Releases resources held by abnormally terminated transactions  Restarts failed shared server and dispatcher processes  PMON ‘wakes up’ regularly to check whether it is needed or it may be called directly  Mandatory process
  • 23. Oracle Architecture Background Processes - PMON  Detects both user and server aborted database processes  Automatically resolves aborted processes – PMON rolls back the current transaction of the aborted process – Releases resources used by the process – If the process is a background process the instance most likely cannot continue and will be shut down  PMON primarily cleans up client-side failures
  • 24. Oracle Architecture Background Processes - CKPT  Forces all modified data in the SGA to be written to datafile – Occurs whether or not the data has been committed – CKPT does not actually write out buffer data only DBWR can write to the datafiles  Updates the datafile headers – This ensures all datafiles are synchronized  Helps reduce the amount of time needed to perform instance recovery  Frequency can be adjusted with parameters
  • 25. Oracle Architecture Background Processes - ARCH  Automatically copies online redo log files to designated storage once they have become full
  • 26. Oracle Architecture Server Processes  Services a single user process in the dedicated server configuration or many user processes in the shared server configuration  Use an exclusive PGA  Include the Oracle Program Interface (OPI)  Process calls generated by the client  Return results to the client in the dedicated server configuration or to the dispatcher in the shared server configuration
  • 27. Oracle Architecture User Processes  Run on the client machine  Are spawned when a tool or an application is invoked – SQL*Plus, Server Manager, Oracle Enterprise Manager, Developer/2000 – Custom applications  Include the User Program Interface (UPI)  Generate calls to the Oracle server
  • 28. Oracle Architecture Transaction Example - Update UPDATE table SET user = ‘SHIPERT’ WHERE id = 12345
  • 34. Oracle Architecture Transaction Example - Update 1 ROW UPDATED
  • 36. Oracle Architecture Transaction Example - Update COMMIT SUCCESSFUL