SlideShare a Scribd company logo
1 of 30
Expert One-on-One Oracle
Chapter 2 - Architecture
Overview
• Oracle is designed to be a very portable database
that's why the physical architecture of Oracle
looks different on different operating systems.
• The physical mechanisms used to implement
Oracle from platform to platform vary, the
architecture is sufficiently generalized enough
that you can get a good understanding of how
Oracle works on all platforms.
Major Components Of The Oracle
Architecture
• Files
• Memory Structures
• Physical processes and threads
• Parameter files ‐ These files tell the Oracle instance where to find the
control files.
For example, how big certain memory structures are, and so on.
• Data files ‐ For the database (these hold your tables, indexes and all other
segments).
• Redo log files ‐ Our transaction logs.
• Control files ‐ Which tell us where these data files are, and other relevant
information about their state.
• Temp files ‐ Used for disk‐based sorts and temporary storage.
• Password files ‐ Used to authenticate users performing administrative
activities
over the network. We will not discuss these files in any detail.
The files
associated with an instance are :
• Parameter files
These files tell the Oracle instance where to find
the control files.
For example, how big certain memory structures
are, and so on.
The Files that make up database:
• Data files
For the database (these hold your tables, indexes and all other
segments).
• Redo log files
Our transaction logs.
• Control files
Which tell us where these data files are, and other relevant
information about their state.
• Temp files
Used for disk‐based sorts and temporary storage.
• Password files
Used to authenticate users performing administrative
activities over the network. We will not discuss these files in
any detail.
Parameter files
• The parameter file for a database is commonly
known as an init file, or an init.ora file.
• Without a parameter file, you cannot start an Oracle
database.
• The Oracle init.ora file is a very simple file in its
construction. It is a series of variable
name/value pairs. It’s look like this.
• db_name = ʺtkyte816ʺ
• db_block_size = 8192
• control_files = (ʺC:oradatacontrol01.ctlʺ,
ʺC:oradatacontrol02.ctlʺ)
Data files
• Data files, along with redo log files, are the most
important set of files in the database. This
is where all of your data will ultimately be
stored.
• Every database has at least one data file
associated with it, and typically will have many
more than one.
• What we will discuss in this section is how
Oracle organizes
these files, and how data is organized within
them. In order to understand this we will
have to understand what a tablespace, segment,
extent, and block are.
• Segments are simply your database objects that
consume storage ‐ objects such as tables,
indexes, rollback segments, and so on.
• Every object that consumes storage is ultimately
stored in a single segment.
• Segments themselves consist of one or more
extent. An extent is a contiguous allocation of
space in a file.
• Extents, in turn, consist of blocks. A block is the
smallest unit of space allocation in Oracle.
• Blocks are where your rows of data, or index
entries, or temporary sort results will be
stored. Blocks in
Oracle are generally one of three common sizes ‐
2 KB, 4 KB, or 8 KB (although 16 KB and
32 KB are also permissible).
The relationship between segments,
extents, and blocks looks
like this:
• The block size for a database is a constant once
the database is. All blocks have the same general
format, which looks something like this:
Table Space
• A tablespace is a container ‐ it holds segments.
Each and every segment belongs to
exactly one tablespace.
• In summary, the hierarchy of storage in Oracle is as
follows:
• 1. A database is made up of one or more tablespaces.
• 2. A tablespace is made up of one or more data files.
A tablespace contains segments.
• 3. A segment is made up of one or more extents. A
segment exists in a tablespace.
• 4. An extent is a contiguous set of blocks on disk.
• 5. A block is the smallest unit of allocation in the
database. A block is the smallest unit
of I/O used by a database.
Temp Files
• Temporary data files (temp files) in Oracle are a
special type of data file. Oracle will use
temporary files to store the intermediate results
of a large sort operation, or result set,
when there is insufficient memory to hold it all
in RAM.
• Data objects like table or an index never stored
in these type of files because data objects must
be stored permanently.
Control files
• The control file is a fairly small file that
contains a directory of the other files Oracle
needs.
• The parameter file (init.ora file) tells
the instance where the control files are, the
control files tell the instance where the
database and online redo log files are.
Redo Log Files
• Redo log files are extremely crucial to the Oracle
database. These are the transaction logs
for the database. They are used only for recovery
purposes ‐ their only purpose in life is to
be used in the event of an instance or media
failure, or as a method of maintaining a
standby database for failover.
• There is a online redo log files either.
Online Redo Log
• Every Oracle database has at least two online
redo log files.
• Oracle will write to log file 1, and when it
gets to the end of this file, it will switch to log file
2, and rewrite the contents of that file
from start to end.
• When it has filled log file 2, it will switch back to
log file 1.
Assume we have three log files.
The Memory Structures
• SGA, System Global Area
This is a large, shared memory segment that virtually all Oracle
processes will access at one point or another.
• PGA, Process Global Area
This is memory, which is private to a single process or thread, and is
not accessible from other processes/threads.
• UGA, User Global Area
This is memory associated with your session. It will be found either
in the SGA or the PGA depending on whether you are running in
MTS mode (then itʹll be in the SGA), or dedicated server (itʹll be in
the PGA).
• We will briefly discuss the PGA and UGA, and then move onto the
really big structure, the SGA.
PGA
• The PGA, the Program Global Area or Process
Global Area, is some sort of memory and
allocates a small amount to each connecting user
to Oracle (default 5M). It keeps data and control
information.
• The PGA is never allocated out of Oracleʹs SGA.
UGA
• The UGA is in effect, your sessionʹs state. It is
memory that your session must always be able to
get to. The location of the UGA is wholly
dependent on how Oracle has been configured to
accept connections.
SGA
• SGA, ie System (Shared) Global Area. It consists
of memory groups that hold data and control
information for the Oracle instance. The
components of the SGA,
• Redo Log buffer (log_buffer)
• Buffer cache (db_cache_size)
• Shared pool (shared_pool_size)
• Large pool (large_pool_size)
• Java pool (java_pool_size)
Redo log buffer
• The redo buffer is where data that needs to be
written to the online redo logs will be cached
temporarily before it is written to disk.
Buffer cache
• The buffer cache is where Oracle will store
database blocks before writing them to disk, and
after reading them in from disk.
• This is a crucial area of the SGA for us.
Shared Pool
• The shared pool is one of the most critical pieces
of memory in the SGA, especially in regards to
performance and scalability. A shared pool that
is used incorrectly will be a disaster.
• The shared pool is where Oracle caches many
bits of ʹprogramʹ data. When we parse a query,
the results of that are cached here.
Large Pool
• Fields dedicated to I/O server processes and
backup/restore operations.
• Oracle does not expect the database
administrator to set these values most of the
time. In fact, it has a structure that dynamically
adjusts these values.
Java Pool
• Field where Java procedures are used. If you are
running any java code on Oracle this memory
should be set to a certain amount.
Thanks for listening.

More Related Content

What's hot (20)

Oracle DB
Oracle DBOracle DB
Oracle DB
 
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
 
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
 
Oracle10g New Features I
Oracle10g New Features IOracle10g New Features I
Oracle10g New Features I
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
 
ORACLE ARCHITECTURE
ORACLE ARCHITECTUREORACLE ARCHITECTURE
ORACLE ARCHITECTURE
 
Oracle Tablespace - Basic
Oracle Tablespace - BasicOracle Tablespace - Basic
Oracle Tablespace - Basic
 
Resize sga
Resize sgaResize sga
Resize sga
 
Less02 installation
Less02 installationLess02 installation
Less02 installation
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
 
Less05 storage
Less05 storageLess05 storage
Less05 storage
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Introduction to oracle(2)
Introduction to oracle(2)Introduction to oracle(2)
Introduction to oracle(2)
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
DBA oracle
DBA oracleDBA oracle
DBA oracle
 
Less03 db dbca
Less03 db dbcaLess03 db dbca
Less03 db dbca
 

Similar to Oracle Database Architecture

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 (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)Gustavo Rene Antunez
 
02 Oracle _Instance_Architecture_2.pdf
02 Oracle     _Instance_Architecture_2.pdf02 Oracle     _Instance_Architecture_2.pdf
02 Oracle _Instance_Architecture_2.pdfbszool006
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle DatabaseMeysam Javadi
 
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
 
DBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxDBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxJayendranath3
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptIftikhar70
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptsubbu998029
 
Trace File Database admanistartion and manegment
Trace File Database admanistartion and manegmentTrace File Database admanistartion and manegment
Trace File Database admanistartion and manegmentKainat Ilyas
 
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 Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfRajendra Jain
 
Remote Dba Team Oracle Architecture In Nutshell
Remote Dba Team   Oracle Architecture In NutshellRemote Dba Team   Oracle Architecture In Nutshell
Remote Dba Team Oracle Architecture In NutshellRemote DBA Services
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training P S Rani
 

Similar to Oracle Database Architecture (20)

Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
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 (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)
 
02 Oracle _Instance_Architecture_2.pdf
02 Oracle     _Instance_Architecture_2.pdf02 Oracle     _Instance_Architecture_2.pdf
02 Oracle _Instance_Architecture_2.pdf
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
 
Less01_Architecture.ppt
Less01_Architecture.pptLess01_Architecture.ppt
Less01_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
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.ppt
 
DBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxDBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptx
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
 
Trace File Database admanistartion and manegment
Trace File Database admanistartion and manegmentTrace File Database admanistartion and manegment
Trace File Database admanistartion and manegment
 
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)
 
Ora 4 the_sqldba
Ora 4 the_sqldbaOra 4 the_sqldba
Ora 4 the_sqldba
 
Os
OsOs
Os
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
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
 
Remote Dba Team Oracle Architecture In Nutshell
Remote Dba Team   Oracle Architecture In NutshellRemote Dba Team   Oracle Architecture In Nutshell
Remote Dba Team Oracle Architecture In Nutshell
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training
 

Recently uploaded

WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
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?WSO2
 
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2
 
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 SoftwareJim McKeeth
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfryanfarris8
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
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...WSO2
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 

Recently uploaded (20)

WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in Uganda
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
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?
 
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
WSO2CON 2024 - Lessons from the Field: Legacy Platforms – It's Time to Let Go...
 
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
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
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...
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
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
 

Oracle Database Architecture

  • 2. Overview • Oracle is designed to be a very portable database that's why the physical architecture of Oracle looks different on different operating systems. • The physical mechanisms used to implement Oracle from platform to platform vary, the architecture is sufficiently generalized enough that you can get a good understanding of how Oracle works on all platforms.
  • 3. Major Components Of The Oracle Architecture • Files • Memory Structures • Physical processes and threads
  • 4. • Parameter files ‐ These files tell the Oracle instance where to find the control files. For example, how big certain memory structures are, and so on. • Data files ‐ For the database (these hold your tables, indexes and all other segments). • Redo log files ‐ Our transaction logs. • Control files ‐ Which tell us where these data files are, and other relevant information about their state. • Temp files ‐ Used for disk‐based sorts and temporary storage. • Password files ‐ Used to authenticate users performing administrative activities over the network. We will not discuss these files in any detail.
  • 5. The files associated with an instance are : • Parameter files These files tell the Oracle instance where to find the control files. For example, how big certain memory structures are, and so on.
  • 6. The Files that make up database: • Data files For the database (these hold your tables, indexes and all other segments). • Redo log files Our transaction logs. • Control files Which tell us where these data files are, and other relevant information about their state. • Temp files Used for disk‐based sorts and temporary storage. • Password files Used to authenticate users performing administrative activities over the network. We will not discuss these files in any detail.
  • 7. Parameter files • The parameter file for a database is commonly known as an init file, or an init.ora file. • Without a parameter file, you cannot start an Oracle database. • The Oracle init.ora file is a very simple file in its construction. It is a series of variable name/value pairs. It’s look like this. • db_name = ʺtkyte816ʺ • db_block_size = 8192 • control_files = (ʺC:oradatacontrol01.ctlʺ, ʺC:oradatacontrol02.ctlʺ)
  • 8. Data files • Data files, along with redo log files, are the most important set of files in the database. This is where all of your data will ultimately be stored. • Every database has at least one data file associated with it, and typically will have many more than one.
  • 9. • What we will discuss in this section is how Oracle organizes these files, and how data is organized within them. In order to understand this we will have to understand what a tablespace, segment, extent, and block are.
  • 10. • Segments are simply your database objects that consume storage ‐ objects such as tables, indexes, rollback segments, and so on. • Every object that consumes storage is ultimately stored in a single segment. • Segments themselves consist of one or more extent. An extent is a contiguous allocation of space in a file. • Extents, in turn, consist of blocks. A block is the smallest unit of space allocation in Oracle.
  • 11. • Blocks are where your rows of data, or index entries, or temporary sort results will be stored. Blocks in Oracle are generally one of three common sizes ‐ 2 KB, 4 KB, or 8 KB (although 16 KB and 32 KB are also permissible).
  • 12. The relationship between segments, extents, and blocks looks like this:
  • 13. • The block size for a database is a constant once the database is. All blocks have the same general format, which looks something like this:
  • 14. Table Space • A tablespace is a container ‐ it holds segments. Each and every segment belongs to exactly one tablespace.
  • 15. • In summary, the hierarchy of storage in Oracle is as follows: • 1. A database is made up of one or more tablespaces. • 2. A tablespace is made up of one or more data files. A tablespace contains segments. • 3. A segment is made up of one or more extents. A segment exists in a tablespace. • 4. An extent is a contiguous set of blocks on disk. • 5. A block is the smallest unit of allocation in the database. A block is the smallest unit of I/O used by a database.
  • 16. Temp Files • Temporary data files (temp files) in Oracle are a special type of data file. Oracle will use temporary files to store the intermediate results of a large sort operation, or result set, when there is insufficient memory to hold it all in RAM. • Data objects like table or an index never stored in these type of files because data objects must be stored permanently.
  • 17. Control files • The control file is a fairly small file that contains a directory of the other files Oracle needs. • The parameter file (init.ora file) tells the instance where the control files are, the control files tell the instance where the database and online redo log files are.
  • 18. Redo Log Files • Redo log files are extremely crucial to the Oracle database. These are the transaction logs for the database. They are used only for recovery purposes ‐ their only purpose in life is to be used in the event of an instance or media failure, or as a method of maintaining a standby database for failover. • There is a online redo log files either.
  • 19. Online Redo Log • Every Oracle database has at least two online redo log files. • Oracle will write to log file 1, and when it gets to the end of this file, it will switch to log file 2, and rewrite the contents of that file from start to end. • When it has filled log file 2, it will switch back to log file 1.
  • 20. Assume we have three log files.
  • 21. The Memory Structures • SGA, System Global Area This is a large, shared memory segment that virtually all Oracle processes will access at one point or another. • PGA, Process Global Area This is memory, which is private to a single process or thread, and is not accessible from other processes/threads. • UGA, User Global Area This is memory associated with your session. It will be found either in the SGA or the PGA depending on whether you are running in MTS mode (then itʹll be in the SGA), or dedicated server (itʹll be in the PGA). • We will briefly discuss the PGA and UGA, and then move onto the really big structure, the SGA.
  • 22. PGA • The PGA, the Program Global Area or Process Global Area, is some sort of memory and allocates a small amount to each connecting user to Oracle (default 5M). It keeps data and control information. • The PGA is never allocated out of Oracleʹs SGA.
  • 23. UGA • The UGA is in effect, your sessionʹs state. It is memory that your session must always be able to get to. The location of the UGA is wholly dependent on how Oracle has been configured to accept connections.
  • 24. SGA • SGA, ie System (Shared) Global Area. It consists of memory groups that hold data and control information for the Oracle instance. The components of the SGA, • Redo Log buffer (log_buffer) • Buffer cache (db_cache_size) • Shared pool (shared_pool_size) • Large pool (large_pool_size) • Java pool (java_pool_size)
  • 25. Redo log buffer • The redo buffer is where data that needs to be written to the online redo logs will be cached temporarily before it is written to disk.
  • 26. Buffer cache • The buffer cache is where Oracle will store database blocks before writing them to disk, and after reading them in from disk. • This is a crucial area of the SGA for us.
  • 27. Shared Pool • The shared pool is one of the most critical pieces of memory in the SGA, especially in regards to performance and scalability. A shared pool that is used incorrectly will be a disaster. • The shared pool is where Oracle caches many bits of ʹprogramʹ data. When we parse a query, the results of that are cached here.
  • 28. Large Pool • Fields dedicated to I/O server processes and backup/restore operations. • Oracle does not expect the database administrator to set these values most of the time. In fact, it has a structure that dynamically adjusts these values.
  • 29. Java Pool • Field where Java procedures are used. If you are running any java code on Oracle this memory should be set to a certain amount.