SlideShare une entreprise Scribd logo
1  sur  37
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

Contenu connexe

Tendances

Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxKavya990096
 
Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2Sudarshan Dhondaley
 
Cloud computing lecture 1
Cloud computing lecture 1Cloud computing lecture 1
Cloud computing lecture 1ADEOLA ADISA
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management SystemAjay Jha
 
Advanced Dimensional Modelling
Advanced Dimensional ModellingAdvanced Dimensional Modelling
Advanced Dimensional ModellingVincent Rainardi
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database modelPAQUIAAIZEL
 
Oracle User Management
Oracle User ManagementOracle User Management
Oracle User ManagementArun Sharma
 
The State Design Pattern
The State Design PatternThe State Design Pattern
The State Design PatternJosh Candish
 
Sql database object
Sql database objectSql database object
Sql database objectHarry Potter
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approachLuina Pani
 
User, roles and privileges
User, roles and privilegesUser, roles and privileges
User, roles and privilegesYogiji Creations
 
Domain model Refinement
Domain model RefinementDomain model Refinement
Domain model RefinementAnjan Kumar
 

Tendances (20)

Data base management system
Data base management systemData base management system
Data base management system
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
 
Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2
 
Dbms and rdbms ppt
Dbms and rdbms pptDbms and rdbms ppt
Dbms and rdbms ppt
 
Cloud computing lecture 1
Cloud computing lecture 1Cloud computing lecture 1
Cloud computing lecture 1
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management System
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
Advanced Dimensional Modelling
Advanced Dimensional ModellingAdvanced Dimensional Modelling
Advanced Dimensional Modelling
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
Database design
Database designDatabase design
Database design
 
Oracle User Management
Oracle User ManagementOracle User Management
Oracle User Management
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Middleware
MiddlewareMiddleware
Middleware
 
The State Design Pattern
The State Design PatternThe State Design Pattern
The State Design Pattern
 
Sql database object
Sql database objectSql database object
Sql database object
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approach
 
User, roles and privileges
User, roles and privilegesUser, roles and privileges
User, roles and privileges
 
Domain model Refinement
Domain model RefinementDomain model Refinement
Domain model Refinement
 

Similaire à Oracle Instance 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
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture pptDeepak Shetty
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement systemMurtazaMughal13
 
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
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1Ram Naani
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database IntroductionChhom Karath
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabadsreehari orienit
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architectureSimon Huang
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuningAbishek V S
 

Similaire à 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
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.ppt
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Less01_Architecture.ppt
Less01_Architecture.pptLess01_Architecture.ppt
Less01_Architecture.ppt
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
 
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)
 
Less01 Dba1
Less01 Dba1Less01 Dba1
Less01 Dba1
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
 
App D
App DApp D
App D
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
 

Plus de HODCA1

Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdfHODCA1
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdfHODCA1
 
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.pdfHODCA1
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdfHODCA1
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.pptHODCA1
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfHODCA1
 
ordbms.ppt
ordbms.pptordbms.ppt
ordbms.pptHODCA1
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptxHODCA1
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdfHODCA1
 

Plus de HODCA1 (9)

Quick-Start-UNIX.pdf
Quick-Start-UNIX.pdfQuick-Start-UNIX.pdf
Quick-Start-UNIX.pdf
 
12c-install.pdf
12c-install.pdf12c-install.pdf
12c-install.pdf
 
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
 
5db-security.pdf
5db-security.pdf5db-security.pdf
5db-security.pdf
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
 
rac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdfrac_for_beginners_ppt.pdf
rac_for_beginners_ppt.pdf
 
ordbms.ppt
ordbms.pptordbms.ppt
ordbms.ppt
 
1DATABASE.pptx
1DATABASE.pptx1DATABASE.pptx
1DATABASE.pptx
 
agile_tutorial.pdf
agile_tutorial.pdfagile_tutorial.pdf
agile_tutorial.pdf
 

Dernier

How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...software pro Development
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
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
 
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 studentsHimanshiGarg82
 
+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
 
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
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfVishalKumarJha10
 
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
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
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
 

Dernier (20)

How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
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 🔝✔️✔️
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.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...
 
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
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
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-...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
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
 

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