SlideShare a Scribd company logo
Oracle Database Architecture
Database and Instance
• Database
– A database is a set of physical files,
– located on disk, that store data and
– are created by the CREATE DATABASE statement.
Database and Instance
• Database instance
– An instance is a set of memory structures that
manage database files.
– The instance serves the users of the database.
– Because an instance exists in memory and a
database exists on disk, an instance can exist
without a database and a database can exist
without an instance.
Database and Instance
• Database instance
– When an instance is started, Oracle Database
allocates a memory area called the system global area
(SGA) and starts one or more background processes.
– An instance begins when it is created with
the STARTUP command and ends when it is
terminated.
– An instance can associate itself with one and only
one database.
Oracle System Identifier (SID)
• The system identifier (SID) is a unique name
for an Oracle database instance on a specific
host.
• Oracle Database uses the SID to create a key
to shared memory.
DATABASE STORAGE STRUCTURE
• Oracle Database used following storage
structure
– Physical Storage Structures
– Logical Storage Structures
PHYSICAL STORAGE STRUCTURE
Physical Storage Structure
• Physical structures are viewable at the
operating system level.
• Following database files generated on issue of
CREATE DATABASE statement:
– Data files and temp Files
– Control Files
– Online redo log files
Physical Storage Structure
• Data files
– A data file contains data structures such as tables
and indexes.
– The maximum number of data files in a database
is limited (usually to 64 KB files),
Physical Storage Structure
• Temp files
– A temp file is a data file that belongs to a
temporary tablespace
– Cannot be read by other programs.
Physical Storage Structure
• Control Files
– A control file is a root file that tracks the physical
components of the database.
– Control File contain following information
• The database name and database unique identifier
(DBID)
• The time stamp of database creation
• Information about data files, online redo log files, and
archived redo log files
• Tablespace information
Physical Data Structure
• Control File
– Purpose
• The control file tracks structural changes to the
database.
• It contains metadata that must be accessible
when the database is not open.
Physical Storage Structure
• Online redo log files
– The online redo log is a set of files containing
records of changes made to data.
– The database maintains online redo log files to
protect against data loss.
• After an instance failure the online redo log files enable
Oracle Database to recover committed data not yet
written to the data files.
Archived Redo Log Files
• An archived redo log file is a copy of a an online redo
log group.
• This file is not considered part of the database, but is
an offline copy of an online redo log file created by the
database and written to a user-specified location.
• You can use archived redo log files to:
– Recover a database backup
– Update a standby database
– Obtain information about the history of a database
LOGICAL STORAGE SPACE
Logical Storage Space
• These structures are created and recognized by
Oracle Database and are not known to the
operating system.
• Oracle Database allocates logical space for all
data in the database.
• Logical storage structures enable Oracle Database
to have fine-grained control of disk space use.
Logical Storage Space
• Logical Storages Space Hierarchy
– Data blocks
– Extents
– Segments
– Tablespaces
Logical Storage Space
• Data blocks
– Oracle Database data is stored in data blocks.
– One data block corresponds to a specific number of
bytes on disk.
– Data blocks are the smallest units of storage that
Oracle Database can use or allocate.
– The standard data block size for a database is 4 KB or
8 KB.
– The DB_BLOCK_SIZE initialization parameter sets the
data block size for a database when it is created
Logical Storage Structure
• Extents
– An extent is a specific number of logically
contiguous data blocks, allocated for storing a
specific type of information
Logical Storage Structure
• Segments
– A segment is a set of extents allocated for a user
object (for example, a table or index).
– Every database object that consumes storage
consists of a single segment.
Logical Storage Structure
• Segments
– A single data segment in a database stores the
data for one user object.
– There are different types of segments.
• Table
• LOB
• Index
Relation between Object Creation and
Segment Creation
CREATE TABLE test_table (my_column NUMBER);
Relation between Object Creation and
Segment Creation
CREATE TABLE lob_table (my_column NUMBER PRIMARY
KEY, clob_column CLOB);
Logical Storage Structure
• Tablespaces
– Oracle Database physically stores tablespace data
in data files.
– A database is divided into logical storage units
called tablespaces.
– A tablespace is the logical container for a
segment.
– A database must have
the SYSTEM and SYSAUX tablespaces
Logical Storage Structure
• Tablespace
– Each tablespace consists of one or more data files.
• The data for a database is collectively stored in the data
files located in each tablespace of the database.
– A segment can span one or more data files, but it
cannot span multiple tablespaces.
Logical Storage Structue
• SYSTEM Tablespace
– The data dictionary
– Tables and views that contain administrative
information about the database
– Compiled stored objects such as triggers, procedures,
and packages
– All information is owned by the SYS user
Logical Storage Structure
• SYSAUX tablespace
– an auxiliary tablespace to the SYSTEM tablespace.
– provides a centralized location for database
metadata.
– created automatically during database creation or
upgrade.
Logical Storage Structure
• Undo Tablespaces
– reserved for system-managed undo data.
• Temporary Tablespaces
– contains transient data that persists only for the
duration of a session.
– No permanent schema objects can reside in a
temporary tablespace.
– The database stores temporary tablespace data in
temp files.
Logical Storage Structure
• Online and Offline Tablespace
– A tablespace is usually online so that its data is
available to users.
– The SYSTEM tablespace and temporary
tablespaces cannot be taken offline.
Ad

More Related Content

What's hot (20)

Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
Neeraj Singh
 
ORACLE ARCHITECTURE
ORACLE ARCHITECTUREORACLE ARCHITECTURE
ORACLE ARCHITECTURE
Manohar Tatwawadi
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
Hitesh Kumar Markam
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
Chhom Karath
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
Meysam Javadi
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
honglee71
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
Bilal Arshad
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
Amit Bhalla
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
shivankuniversity
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
Yogiji Creations
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
Martin Berger
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
Rick van Ek
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
maryeem
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
Akash Pramanik
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
itsabidhussain
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
rahulrathore725
 
Oracle Database | Computer Science
Oracle Database | Computer ScienceOracle Database | Computer Science
Oracle Database | Computer Science
Transweb Global Inc
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
Hitesh Kumar Markam
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
Neeraj Singh
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
Chhom Karath
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
Meysam Javadi
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
honglee71
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
Bilal Arshad
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
Amit Bhalla
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
Yogiji Creations
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
Martin Berger
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
Rick van Ek
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
maryeem
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
Akash Pramanik
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
itsabidhussain
 
Oracle Database | Computer Science
Oracle Database | Computer ScienceOracle Database | Computer Science
Oracle Database | Computer Science
Transweb Global Inc
 

Similar to 12. oracle database architecture (20)

Oracle Database Architecture
Oracle Database ArchitectureOracle Database Architecture
Oracle Database Architecture
Hamzaakmak1
 
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
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
Eryk Budi Pratama
 
Oracle DB
Oracle DBOracle DB
Oracle DB
R KRISHNA DEEKSHITH VINNAKOTA
 
1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
KalsoomTahir2
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
Madhavendra Dutt
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
durgaprasad1407
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
Sumit Tambe
 
Introduction to oracle(2)
Introduction to oracle(2)Introduction to oracle(2)
Introduction to oracle(2)
Sumit Tambe
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
Sandeep Kamath
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
subbu998029
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
Iftikhar70
 
Less05 storage
Less05 storageLess05 storage
Less05 storage
Imran Ali
 
file system.pdfnnnnnnnnnfffffffffggggggg
file system.pdfnnnnnnnnnfffffffffgggggggfile system.pdfnnnnnnnnnfffffffffggggggg
file system.pdfnnnnnnnnnfffffffffggggggg
efootballarjuns
 
Oracle Architecture software overview ppts
Oracle Architecture software overview pptsOracle Architecture software overview ppts
Oracle Architecture software overview ppts
ssuserf272701
 
storage techniques_overview-1.pptx
storage techniques_overview-1.pptxstorage techniques_overview-1.pptx
storage techniques_overview-1.pptx
20CS102RAMMPRASHATHK
 
object_storage.pptx
object_storage.pptxobject_storage.pptx
object_storage.pptx
ArtyomChernyshov
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
thysothea
 
Oracle administration classes in mumbai
Oracle administration classes in mumbaiOracle administration classes in mumbai
Oracle administration classes in mumbai
Vibrant Technologies & Computers
 
Database storage structures for DA&DS.pptx
Database storage structures for DA&DS.pptxDatabase storage structures for DA&DS.pptx
Database storage structures for DA&DS.pptx
darshanvaghasiya76
 
Oracle Database Architecture
Oracle Database ArchitectureOracle Database Architecture
Oracle Database Architecture
Hamzaakmak1
 
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
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
Sumit Tambe
 
Introduction to oracle(2)
Introduction to oracle(2)Introduction to oracle(2)
Introduction to oracle(2)
Sumit Tambe
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
subbu998029
 
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.pptdatabase-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
Iftikhar70
 
Less05 storage
Less05 storageLess05 storage
Less05 storage
Imran Ali
 
file system.pdfnnnnnnnnnfffffffffggggggg
file system.pdfnnnnnnnnnfffffffffgggggggfile system.pdfnnnnnnnnnfffffffffggggggg
file system.pdfnnnnnnnnnfffffffffggggggg
efootballarjuns
 
Oracle Architecture software overview ppts
Oracle Architecture software overview pptsOracle Architecture software overview ppts
Oracle Architecture software overview ppts
ssuserf272701
 
storage techniques_overview-1.pptx
storage techniques_overview-1.pptxstorage techniques_overview-1.pptx
storage techniques_overview-1.pptx
20CS102RAMMPRASHATHK
 
Database storage structures for DA&DS.pptx
Database storage structures for DA&DS.pptxDatabase storage structures for DA&DS.pptx
Database storage structures for DA&DS.pptx
darshanvaghasiya76
 
Ad

More from Amrit Kaur (20)

File Organization
File OrganizationFile Organization
File Organization
Amrit Kaur
 
Introduction to transaction processing
Introduction to transaction processingIntroduction to transaction processing
Introduction to transaction processing
Amrit Kaur
 
ER diagram
ER diagramER diagram
ER diagram
Amrit Kaur
 
Transaction Processing
Transaction ProcessingTransaction Processing
Transaction Processing
Amrit Kaur
 
Normalization
NormalizationNormalization
Normalization
Amrit Kaur
 
Sample Interview Question
Sample Interview QuestionSample Interview Question
Sample Interview Question
Amrit Kaur
 
11. using regular expressions with oracle database
11. using regular expressions with oracle database11. using regular expressions with oracle database
11. using regular expressions with oracle database
Amrit Kaur
 
10. timestamp
10. timestamp10. timestamp
10. timestamp
Amrit Kaur
 
9. index and index organized table
9. index and index organized table9. index and index organized table
9. index and index organized table
Amrit Kaur
 
8. transactions
8. transactions8. transactions
8. transactions
Amrit Kaur
 
7. exceptions handling in pl
7. exceptions handling in pl7. exceptions handling in pl
7. exceptions handling in pl
Amrit Kaur
 
6. triggers
6. triggers6. triggers
6. triggers
Amrit Kaur
 
5. stored procedure and functions
5. stored procedure and functions5. stored procedure and functions
5. stored procedure and functions
Amrit Kaur
 
4. plsql
4. plsql4. plsql
4. plsql
Amrit Kaur
 
3. ddl create
3. ddl create3. ddl create
3. ddl create
Amrit Kaur
 
2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATE2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATE
Amrit Kaur
 
1. dml select statement reterive data
1. dml select statement reterive data1. dml select statement reterive data
1. dml select statement reterive data
Amrit Kaur
 
Chapter 8 Inheritance
Chapter 8 InheritanceChapter 8 Inheritance
Chapter 8 Inheritance
Amrit Kaur
 
Chapter 7 C++ As OOP
Chapter 7 C++ As OOPChapter 7 C++ As OOP
Chapter 7 C++ As OOP
Amrit Kaur
 
Chapter 6 OOPS Concept
Chapter 6 OOPS ConceptChapter 6 OOPS Concept
Chapter 6 OOPS Concept
Amrit Kaur
 
File Organization
File OrganizationFile Organization
File Organization
Amrit Kaur
 
Introduction to transaction processing
Introduction to transaction processingIntroduction to transaction processing
Introduction to transaction processing
Amrit Kaur
 
Transaction Processing
Transaction ProcessingTransaction Processing
Transaction Processing
Amrit Kaur
 
Sample Interview Question
Sample Interview QuestionSample Interview Question
Sample Interview Question
Amrit Kaur
 
11. using regular expressions with oracle database
11. using regular expressions with oracle database11. using regular expressions with oracle database
11. using regular expressions with oracle database
Amrit Kaur
 
9. index and index organized table
9. index and index organized table9. index and index organized table
9. index and index organized table
Amrit Kaur
 
8. transactions
8. transactions8. transactions
8. transactions
Amrit Kaur
 
7. exceptions handling in pl
7. exceptions handling in pl7. exceptions handling in pl
7. exceptions handling in pl
Amrit Kaur
 
5. stored procedure and functions
5. stored procedure and functions5. stored procedure and functions
5. stored procedure and functions
Amrit Kaur
 
2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATE2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATE
Amrit Kaur
 
1. dml select statement reterive data
1. dml select statement reterive data1. dml select statement reterive data
1. dml select statement reterive data
Amrit Kaur
 
Chapter 8 Inheritance
Chapter 8 InheritanceChapter 8 Inheritance
Chapter 8 Inheritance
Amrit Kaur
 
Chapter 7 C++ As OOP
Chapter 7 C++ As OOPChapter 7 C++ As OOP
Chapter 7 C++ As OOP
Amrit Kaur
 
Chapter 6 OOPS Concept
Chapter 6 OOPS ConceptChapter 6 OOPS Concept
Chapter 6 OOPS Concept
Amrit Kaur
 
Ad

Recently uploaded (20)

Fundamentals of PR: Wk 4 - Strategic Communications
Fundamentals of PR: Wk 4 - Strategic CommunicationsFundamentals of PR: Wk 4 - Strategic Communications
Fundamentals of PR: Wk 4 - Strategic Communications
Jordan Williams
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Timber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptxTimber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptx
Tantish QS, UTM
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Studying Drama: Definition, types and elements
Studying Drama: Definition, types and elementsStudying Drama: Definition, types and elements
Studying Drama: Definition, types and elements
AbdelFattahAdel2
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Envenomation---Clinical Toxicology. pptx
Envenomation---Clinical Toxicology. pptxEnvenomation---Clinical Toxicology. pptx
Envenomation---Clinical Toxicology. pptx
rekhapositivity
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Unit 4: Long term- Capital budgeting and its types
Unit 4: Long term- Capital budgeting and its typesUnit 4: Long term- Capital budgeting and its types
Unit 4: Long term- Capital budgeting and its types
bharath321164
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Fundamentals of PR: Wk 4 - Strategic Communications
Fundamentals of PR: Wk 4 - Strategic CommunicationsFundamentals of PR: Wk 4 - Strategic Communications
Fundamentals of PR: Wk 4 - Strategic Communications
Jordan Williams
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Timber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptxTimber Pitch Roof Construction Measurement-2024.pptx
Timber Pitch Roof Construction Measurement-2024.pptx
Tantish QS, UTM
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Studying Drama: Definition, types and elements
Studying Drama: Definition, types and elementsStudying Drama: Definition, types and elements
Studying Drama: Definition, types and elements
AbdelFattahAdel2
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Envenomation---Clinical Toxicology. pptx
Envenomation---Clinical Toxicology. pptxEnvenomation---Clinical Toxicology. pptx
Envenomation---Clinical Toxicology. pptx
rekhapositivity
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Unit 4: Long term- Capital budgeting and its types
Unit 4: Long term- Capital budgeting and its typesUnit 4: Long term- Capital budgeting and its types
Unit 4: Long term- Capital budgeting and its types
bharath321164
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 

12. oracle database architecture

  • 2. Database and Instance • Database – A database is a set of physical files, – located on disk, that store data and – are created by the CREATE DATABASE statement.
  • 3. Database and Instance • Database instance – An instance is a set of memory structures that manage database files. – The instance serves the users of the database. – Because an instance exists in memory and a database exists on disk, an instance can exist without a database and a database can exist without an instance.
  • 4. Database and Instance • Database instance – When an instance is started, Oracle Database allocates a memory area called the system global area (SGA) and starts one or more background processes. – An instance begins when it is created with the STARTUP command and ends when it is terminated. – An instance can associate itself with one and only one database.
  • 5. Oracle System Identifier (SID) • The system identifier (SID) is a unique name for an Oracle database instance on a specific host. • Oracle Database uses the SID to create a key to shared memory.
  • 7. • Oracle Database used following storage structure – Physical Storage Structures – Logical Storage Structures
  • 9. Physical Storage Structure • Physical structures are viewable at the operating system level. • Following database files generated on issue of CREATE DATABASE statement: – Data files and temp Files – Control Files – Online redo log files
  • 10. Physical Storage Structure • Data files – A data file contains data structures such as tables and indexes. – The maximum number of data files in a database is limited (usually to 64 KB files),
  • 11. Physical Storage Structure • Temp files – A temp file is a data file that belongs to a temporary tablespace – Cannot be read by other programs.
  • 12. Physical Storage Structure • Control Files – A control file is a root file that tracks the physical components of the database. – Control File contain following information • The database name and database unique identifier (DBID) • The time stamp of database creation • Information about data files, online redo log files, and archived redo log files • Tablespace information
  • 13. Physical Data Structure • Control File – Purpose • The control file tracks structural changes to the database. • It contains metadata that must be accessible when the database is not open.
  • 14. Physical Storage Structure • Online redo log files – The online redo log is a set of files containing records of changes made to data. – The database maintains online redo log files to protect against data loss. • After an instance failure the online redo log files enable Oracle Database to recover committed data not yet written to the data files.
  • 15. Archived Redo Log Files • An archived redo log file is a copy of a an online redo log group. • This file is not considered part of the database, but is an offline copy of an online redo log file created by the database and written to a user-specified location. • You can use archived redo log files to: – Recover a database backup – Update a standby database – Obtain information about the history of a database
  • 17. Logical Storage Space • These structures are created and recognized by Oracle Database and are not known to the operating system. • Oracle Database allocates logical space for all data in the database. • Logical storage structures enable Oracle Database to have fine-grained control of disk space use.
  • 18. Logical Storage Space • Logical Storages Space Hierarchy – Data blocks – Extents – Segments – Tablespaces
  • 19. Logical Storage Space • Data blocks – Oracle Database data is stored in data blocks. – One data block corresponds to a specific number of bytes on disk. – Data blocks are the smallest units of storage that Oracle Database can use or allocate. – The standard data block size for a database is 4 KB or 8 KB. – The DB_BLOCK_SIZE initialization parameter sets the data block size for a database when it is created
  • 20. Logical Storage Structure • Extents – An extent is a specific number of logically contiguous data blocks, allocated for storing a specific type of information
  • 21. Logical Storage Structure • Segments – A segment is a set of extents allocated for a user object (for example, a table or index). – Every database object that consumes storage consists of a single segment.
  • 22. Logical Storage Structure • Segments – A single data segment in a database stores the data for one user object. – There are different types of segments. • Table • LOB • Index
  • 23. Relation between Object Creation and Segment Creation CREATE TABLE test_table (my_column NUMBER);
  • 24. Relation between Object Creation and Segment Creation CREATE TABLE lob_table (my_column NUMBER PRIMARY KEY, clob_column CLOB);
  • 25. Logical Storage Structure • Tablespaces – Oracle Database physically stores tablespace data in data files. – A database is divided into logical storage units called tablespaces. – A tablespace is the logical container for a segment. – A database must have the SYSTEM and SYSAUX tablespaces
  • 26. Logical Storage Structure • Tablespace – Each tablespace consists of one or more data files. • The data for a database is collectively stored in the data files located in each tablespace of the database. – A segment can span one or more data files, but it cannot span multiple tablespaces.
  • 27. Logical Storage Structue • SYSTEM Tablespace – The data dictionary – Tables and views that contain administrative information about the database – Compiled stored objects such as triggers, procedures, and packages – All information is owned by the SYS user
  • 28. Logical Storage Structure • SYSAUX tablespace – an auxiliary tablespace to the SYSTEM tablespace. – provides a centralized location for database metadata. – created automatically during database creation or upgrade.
  • 29. Logical Storage Structure • Undo Tablespaces – reserved for system-managed undo data. • Temporary Tablespaces – contains transient data that persists only for the duration of a session. – No permanent schema objects can reside in a temporary tablespace. – The database stores temporary tablespace data in temp files.
  • 30. Logical Storage Structure • Online and Offline Tablespace – A tablespace is usually online so that its data is available to users. – The SYSTEM tablespace and temporary tablespaces cannot be taken offline.

Editor's Notes

  • #5: the instance can mount a database only once, close it only once, and open it only once. After a database has been closed or shut down, you must start a different instance to mount and open this database.
  • #14: 1. For example, when an administrator adds, renames, or drops a data file or online redo log file, the database updates the control file to reflect this change. 2. For example, the control file contains information required to recover the database, including checkpoints. 
  • #30: Oracle Database maintains records of the actions of transactions, collectively known as undo data Oracle Database uses undo to do the following: Roll back an active transaction Recover a terminated transaction Provide read consistency. Perform some logical flashback operations