SlideShare a Scribd company logo
Oracle
Architecture
Oracle RDBMS basics
about me

with Oracle since 2000
DBA @H3G since 2003
my private (most technical related) thoughts:
                     http://berxblog.blogspot.com
@martinberx
martin.a.berger@gmail.com
no official presentations / trainings so far

                   "it depends"
roadmap

● Database                 ●   Instance
  ○ spfile                 ●   Processes
  ○ controlfile            ●   Session
  ○ datafile               ●   Statement
  ○ redo-logs / archives   ●   Transaction
                           ●   Cluster
● Cluster                  ●   Listener

                           + Cluster failover
                           + Data Dictionary
Oracle Database 11g: Interactive Quick Reference - Your Essential Guide to Oracle Database 11g Release 2




http://www.oracle.com/webapps/dialogue/ns/dlgwelcome.jsp?p_ext=Y&p_dlg_id=9575302&src=7027600&Act=54
Database
 ○ spfile   *.compatible='11.1.0.0.0'
            *.control_files='/appl/oracle/oradata/BERX2/control01.
            ctl','/appl/oracle/oradata/BERX2/control02.
            ctl','/appl/oracle/oradata/BERX2/control03.ctl'
            *.db_block_size=8192
            *.db_name='BERX2'
            ...
Database
 ○ spfile        *.compatible='11.1.0.0.0'
                 *.control_files='/appl/oracle/oradata/BERX2/control01.
                 ctl','/appl/oracle/oradata/BERX2/control02.
                 ctl','/appl/oracle/oradata/BERX2/control03.ctl'
                 *.db_block_size=8192
                 *.db_name='BERX2'
                        ●    The database name
 ○ controlfile          ●
                        ●
                             Names and locations of associated datafiles and redo log files
                             The timestamp of the database creation
                        ●    The current log sequence number
                        ●    Checkpoint information (SCN)
Database
 ○ spfile          *.compatible='11.1.0.0.0'
                   *.control_files='/appl/oracle/oradata/BERX2/control01.
                   ctl','/appl/oracle/oradata/BERX2/control02.
                   ctl','/appl/oracle/oradata/BERX2/control03.ctl'
                   *.db_block_size=8192
                   *.db_name='BERX2'
                          ●    The database name
 ○ controlfile            ●
                          ●
                               Names and locations of associated datafiles and redo log files
                               The timestamp of the database creation
                          ●    The current log sequence number
                          ●    Checkpoint information (SCN)

                                   ●    datafiles keeps persistent data
                                   ●    Each tablespace in an Oracle database
 ○ datafile / tablespace           ●
                                        consists of one or more datafiles
                                        Tablespaces: SYSTEM, UNDO,
                                        TEMP, data
Database
 ○ spfile          *.compatible='11.1.0.0.0'
                   *.control_files='/appl/oracle/oradata/BERX2/control01.
                   ctl','/appl/oracle/oradata/BERX2/control02.
                   ctl','/appl/oracle/oradata/BERX2/control03.ctl'
                   *.db_block_size=8192
                   *.db_name='BERX2'
                          ●    The database name
 ○ controlfile            ●
                          ●
                               Names and locations of associated datafiles and redo log files
                               The timestamp of the database creation
                          ●    The current log sequence number
                          ●    Checkpoint information (SCN)

                                   ●     datafiles keeps persistent data
                                   ●     Each tablespace in an Oracle database
 ○ datafile / tablespace           ●
                                         consists of one or more datafiles
                                         Tablespaces: SYSTEM, UNDO,
                                         TEMP, data




 ○ redo-logs / archives
Cluster
Instance
A database instance is a set of memory structures that
manage database files.

● SGA
● PGA
● processes
  ○ background
  ○ server
Processes

● background process
  DBWR, LGWR, SMON, PMON, CKPK, ARCH, MMON, MMNL, RECO, etc.


● server process
  Oracle Database creates server processes to handle the requests of client processes connected to the
  instance. A client process always communicates with a database through a separate server process.
  Server processes created on behalf of a database application can perform one or more of the following tasks:

  ●     Parse and run SQL statements issued through the application, including creating and executing the query

        plan (see "Stages of SQL Processing")

  ●     Execute PL/SQL code


  ●     Read data blocks from data files into the database buffer cache (the DBWn background process has the

        task of writing modified blocks back to disk)

  ●     Return results in such a way that the application can process the information
Session
A session is a logical entity in the database
instance memory that represents the state of a
current user login to a database.
For example, when a user is authenticated by
the database with a password, a session is
established for this user.
A session lasts from the time the user is
authenticated by the database until the time
the user disconnects or exits the database
application.
Statement
● DDL
  CREATE, ALTER, DROP, TRUNCATE, GRANT, AUDIT, COMMENT
  implicit commit


● DML
  SELECT, INSERT, UPDATE, MERGE, DELETE, EXPLAIN PLAN, LOCK TABLE


● Transaction Control
  SET TRANSACTION, SAVEPOINT, COMMIT, ROLLBACK


● ALTER (session, system)

● embedded (into procedural program)
Statement - lifecycle
Transaction
Logical unit of work that contains one or more SQL statements. All statements in a transaction commit or roll back
together. The use of transactions is one of the most important ways that a database management system differs from
a file system.



ACID
● Atomicy
             all or nothing

● Consistency
             from one valid state to another

● Isolation
             transactions does not interfer

● Durability
             just stored
Transaction - Isolation Levels
1. Read committed (default)

A query will only be able access committed data. However, the transaction may be affected by changes made by other
transactions.

This can be set by:
SET TRANSACTION ISOLATION LEVEL READ COMMITTED; (transaction level)
ALTER SESSION SET ISOLATION_LEVEL READ COMMITTED; (session level)

2. Serializable transactions

A query can only access data that was committed at the start of the transaction. Modification from DML operations performed
from the same transaction will be visible.

The Serializable transaction isolation level is not supported with distributed transactions.

This can be set by:
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; (transaction level)
ALTER SESSION SET ISOLATION_LEVEL SERIALIZABLE; (session level)

3. Read only

A query can only access data that was committed at the start of the transaction. Modification to the data is not allowed.

This can be set by:
SET TRANSACTION ISOLATION LEVEL READONLY; (transaction level)
ALTER SESSION SET ISOLATION_LEVEL READONLY; (session level)
Transaction - flow
select sal from emp where ename in ('SMITH', 'ALLEN'); -- 800, 1600
set transaction name 'my trans 1';

UPDATE emp
  SET sal = 7000
  WHERE ename = 'SMITH';

SAVEPOINT after_banda_sal;

UPDATE emp
  SET sal = sal+10400
  WHERE ename = 'ALLEN';


select sal from emp where ename in ('SMITH', 'ALLEN'); --7000, 12000

SAVEPOINT after_greene_sal;

ROLLBACK TO SAVEPOINT         after_banda_sal;

UPDATE emp
  SET sal = sal+10300
  WHERE ename = 'ALLEN';
select sal from emp where ename in ('SMITH', 'ALLEN'); -- 7000, 11900
rollback;
Transaction - redo/undo
Cluster
Cluster - Listener
Cluster - Listener II
Cluster - Listener III
Failover

Transparent Application Failover
if one instance dies, the client restarts the whole listener-connection-sequence,
cursors are re-opened, statement re-run

limitations:

 ●   The effect of any ALTER SESSION statements will be lost.
 ●   Global temporary tables will be lost.
 ●   Any PL/SQL package states will be lost.
 ●   Transactions involving INSERT, UPDATE, or DELETE statements cannot be handled
     automatically by TAF.


If there is a failure you will most likely see an ORA-25402 error. Applications should be prepared to
handle errors in the 25400-25425 range and rollback appropriately.
TAF - errors
ORA-25400: must replay fetch                                                            ORA-25406: could not generate a connect address
Cause: A failure occured since the last fetch on this statement. Failover was able to   Cause: Failover was unable to generate an address for a backup instance.
bring the statement to its original state to allow continued fetches.
                                                                                        Action: Contact Oracle customer support.
Action: This is an internally used error message and should not be seen by the
                                                                                        ORA-25407: connection terminated
user.
                                                                                        Cause: The connection was lost while doing a fetch.
ORA-25401: can not continue fetches
                                                                                        Action: This is an internally used error message and should not be seen by the
Cause: A failure occured since the last fetch on this statement. Failover was unable
                                                                                        user.
to bring the statement to its original state to allow continued fetches.
                                                                                        ORA-25408: can not safely replay call
Action: Reexecute the statement and start fetching from the beginning
                                                                                        Cause: The connection was lost while doing this call. It may not be safe to replay it
ORA-25402: transaction must roll back
                                                                                        after failover.
Cause: A failure occured while a transaction was active on this connection.
                                                                                        Action: Check to see if the results of the call have taken place, and then replay it if
Action: The client must roll back.                                                      desired.
ORA-25403: could not reconnect                                                          ORA-25409: failover happened during the network operation,cannot continue
Cause: The connection to the database has been lost, and attempts to reconnect          Cause: The connection was lost when fetching a LOB column.
have failed.
                                                                                        Action: Failover happened when fetching LOB data directly or indirectly. Please
Action: Manually reconnect.                                                             replay the top level statement.
ORA-25404: lost instance                                                                ORA-25425: connection lost during rollback
Cause: The primary instance has died.                                                   Cause: The connection was lost while issuing a rollback and the application failed
                                                                                        over.
Action: This is an internally used error message and should not be seen by the
user.                                                                                   Action: The connection was lost and failover happened during rollback. If the
                                                                                        transaction is not externally coordinated, then Oracle implicitly rolled back, so no
ORA-25405: transaction status unknown
                                                                                        action is required. Otherwise examine pending_trans$ to determine if "rollback
Cause: A failure occured while a transaction was attempting to commit. Failover         force" is required.
could not automatically determine instance status.
                                                                                        ORA-25426: remote instance does not support shared dblinks
Action: The user must determine the transaction's status manually.
                                                                                        Cause: A shared dblink is being used to connect to a remote instance that does not
                                                                                        support this feature because it is an older version.
                                                                                        Action: Use a normal dblink if you need to connect to this instance.
Data Dictionary

● Informations about the database
  ○ Meta-info about all objects, schemata, user,
    privileges, audit
  ○ DBA_*


● Informations about the instances
  ○ many informations about structures in memory
  ○ v$* / gv$*


● Nearly everything Oracle knows you can
  select
further informations

Oracle Documentation - Concepts Guide
               http://docs.oracle.com/cd/E11882_01/server.112/e25789/toc.htm

ask
●   Ops.Oracle team
●   forums.oracle.com
●   http://www.freelists.org/list/oracle-l


read
credits

Arup Nanda - discussions about listener
Aman Sharma - review of connect-flow
Surachart Opun - general review
Martin Schretzmeier - infrastructure infos
Ops.Oracle team - review
Next Presentations


● Physical structures & (SQL) tuning

● Capacity planning basics

● anything else?
Ad

More Related Content

What's hot (20)

Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
shivankuniversity
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
Hitesh Kumar Markam
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
Hitesh Kumar Markam
 
Oracle Tablespace - Basic
Oracle Tablespace - BasicOracle Tablespace - Basic
Oracle Tablespace - Basic
Eryk Budi Pratama
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
Chhom Karath
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
Amit Bhalla
 
database
databasedatabase
database
Shwetanshu Gupta
 
Oracle 資料庫檔案介紹
Oracle 資料庫檔案介紹Oracle 資料庫檔案介紹
Oracle 資料庫檔案介紹
Chien Chung Shen
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
itsabidhussain
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
Rick van Ek
 
Oracle GoldenGate
Oracle GoldenGate Oracle GoldenGate
Oracle GoldenGate
oracleonthebrain
 
Oracle db performance tuning
Oracle db performance tuningOracle db performance tuning
Oracle db performance tuning
Simon Huang
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training
P S Rani
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
satish Gaddipati
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
honglee71
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
Meysam Javadi
 
Oracle DB
Oracle DBOracle DB
Oracle DB
R KRISHNA DEEKSHITH VINNAKOTA
 
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RACAIOUG-GroundBreakers-Jul 2019 - 19c RAC
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
Sandesh Rao
 

Viewers also liked (13)

DBAAS – Database As a Service avec Oracle
DBAAS – Database As a Service avec OracleDBAAS – Database As a Service avec Oracle
DBAAS – Database As a Service avec Oracle
EASYTEAM
 
OPN 2.0 Programme en français
OPN 2.0 Programme en françaisOPN 2.0 Programme en français
OPN 2.0 Programme en français
Oracle
 
Oracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client ConnectionsOracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client Connections
Markus Michalewicz
 
Webséminaire DBaaS (Novembre 2014)
Webséminaire DBaaS (Novembre 2014)Webséminaire DBaaS (Novembre 2014)
Webséminaire DBaaS (Novembre 2014)
Jean-Philippe PINTE
 
Oracle Database Vault
Oracle Database VaultOracle Database Vault
Oracle Database Vault
Khalid ALLILI
 
Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2
Yury Velikanov
 
Oracle 11g exploitation
Oracle 11g exploitationOracle 11g exploitation
Oracle 11g exploitation
Dieudonné M'sago
 
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 InternalsUnderstanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Markus Michalewicz
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and concept
Santosh Kangane
 
Administration des base de donnees sous oracle 10g
Administration des base de donnees sous oracle 10g Administration des base de donnees sous oracle 10g
Administration des base de donnees sous oracle 10g
noble Bajoli
 
Presentation corporate hitachi data systems 2012
Presentation corporate hitachi data systems 2012Presentation corporate hitachi data systems 2012
Presentation corporate hitachi data systems 2012
Hitachi Data Systems France
 
Toad lsi ziane bilal
Toad lsi ziane bilalToad lsi ziane bilal
Toad lsi ziane bilal
Bilal ZIANE
 
DBAAS – Database As a Service avec Oracle
DBAAS – Database As a Service avec OracleDBAAS – Database As a Service avec Oracle
DBAAS – Database As a Service avec Oracle
EASYTEAM
 
OPN 2.0 Programme en français
OPN 2.0 Programme en françaisOPN 2.0 Programme en français
OPN 2.0 Programme en français
Oracle
 
Oracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client ConnectionsOracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client Connections
Markus Michalewicz
 
Webséminaire DBaaS (Novembre 2014)
Webséminaire DBaaS (Novembre 2014)Webséminaire DBaaS (Novembre 2014)
Webséminaire DBaaS (Novembre 2014)
Jean-Philippe PINTE
 
Oracle Database Vault
Oracle Database VaultOracle Database Vault
Oracle Database Vault
Khalid ALLILI
 
Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2Oracle e-Business Suite & RAC 11GR2
Oracle e-Business Suite & RAC 11GR2
Yury Velikanov
 
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 InternalsUnderstanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Markus Michalewicz
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and concept
Santosh Kangane
 
Administration des base de donnees sous oracle 10g
Administration des base de donnees sous oracle 10g Administration des base de donnees sous oracle 10g
Administration des base de donnees sous oracle 10g
noble Bajoli
 
Presentation corporate hitachi data systems 2012
Presentation corporate hitachi data systems 2012Presentation corporate hitachi data systems 2012
Presentation corporate hitachi data systems 2012
Hitachi Data Systems France
 
Toad lsi ziane bilal
Toad lsi ziane bilalToad lsi ziane bilal
Toad lsi ziane bilal
Bilal ZIANE
 
Ad

Similar to Oracle RDBMS architecture (20)

Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
durgaprasad1407
 
Sql introduction
Sql introductionSql introduction
Sql introduction
vimal_guru
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
Sandeep Kamath
 
PHP Oracle
PHP OraclePHP Oracle
PHP Oracle
Nur Hidayat
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
Eryk Budi Pratama
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
thysothea
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
KlausePaulino
 
ORACLE Architechture.ppt
ORACLE Architechture.pptORACLE Architechture.ppt
ORACLE Architechture.ppt
aggarwalb
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
Oracle11g notes
Oracle11g notesOracle11g notes
Oracle11g notes
Manish Mudhliyar
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
Chien Chung Shen
 
2008 Collaborate IOUG Presentation
2008 Collaborate IOUG Presentation2008 Collaborate IOUG Presentation
2008 Collaborate IOUG Presentation
Biju Thomas
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous Database
Sandesh Rao
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
Mario Redón Luz
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
AiougVizagChapter
 
Less04 Instance
Less04 InstanceLess04 Instance
Less04 Instance
vivaankumar
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
Ram Naani
 
Oracle Goldengate Architecture & Setup.pptx
Oracle Goldengate Architecture & Setup.pptxOracle Goldengate Architecture & Setup.pptx
Oracle Goldengate Architecture & Setup.pptx
AmirShahirRoslan
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
sreehari orienit
 
Sql introduction
Sql introductionSql introduction
Sql introduction
vimal_guru
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
KlausePaulino
 
ORACLE Architechture.ppt
ORACLE Architechture.pptORACLE Architechture.ppt
ORACLE Architechture.ppt
aggarwalb
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Alex Zaballa
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
Chien Chung Shen
 
2008 Collaborate IOUG Presentation
2008 Collaborate IOUG Presentation2008 Collaborate IOUG Presentation
2008 Collaborate IOUG Presentation
Biju Thomas
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous Database
Sandesh Rao
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
Mario Redón Luz
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
AiougVizagChapter
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
Ram Naani
 
Oracle Goldengate Architecture & Setup.pptx
Oracle Goldengate Architecture & Setup.pptxOracle Goldengate Architecture & Setup.pptx
Oracle Goldengate Architecture & Setup.pptx
AmirShahirRoslan
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
sreehari orienit
 
Ad

Recently uploaded (20)

Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Rock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning JourneyRock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning Journey
Lynda Kane
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
Learn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step GuideLearn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step Guide
Marcel David
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Rock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning JourneyRock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning Journey
Lynda Kane
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
Learn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step GuideLearn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step Guide
Marcel David
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 

Oracle RDBMS architecture

  • 2. about me with Oracle since 2000 DBA @H3G since 2003 my private (most technical related) thoughts: http://berxblog.blogspot.com @martinberx [email protected] no official presentations / trainings so far "it depends"
  • 3. roadmap ● Database ● Instance ○ spfile ● Processes ○ controlfile ● Session ○ datafile ● Statement ○ redo-logs / archives ● Transaction ● Cluster ● Cluster ● Listener + Cluster failover + Data Dictionary
  • 4. Oracle Database 11g: Interactive Quick Reference - Your Essential Guide to Oracle Database 11g Release 2 http://www.oracle.com/webapps/dialogue/ns/dlgwelcome.jsp?p_ext=Y&p_dlg_id=9575302&src=7027600&Act=54
  • 5. Database ○ spfile *.compatible='11.1.0.0.0' *.control_files='/appl/oracle/oradata/BERX2/control01. ctl','/appl/oracle/oradata/BERX2/control02. ctl','/appl/oracle/oradata/BERX2/control03.ctl' *.db_block_size=8192 *.db_name='BERX2' ...
  • 6. Database ○ spfile *.compatible='11.1.0.0.0' *.control_files='/appl/oracle/oradata/BERX2/control01. ctl','/appl/oracle/oradata/BERX2/control02. ctl','/appl/oracle/oradata/BERX2/control03.ctl' *.db_block_size=8192 *.db_name='BERX2' ● The database name ○ controlfile ● ● Names and locations of associated datafiles and redo log files The timestamp of the database creation ● The current log sequence number ● Checkpoint information (SCN)
  • 7. Database ○ spfile *.compatible='11.1.0.0.0' *.control_files='/appl/oracle/oradata/BERX2/control01. ctl','/appl/oracle/oradata/BERX2/control02. ctl','/appl/oracle/oradata/BERX2/control03.ctl' *.db_block_size=8192 *.db_name='BERX2' ● The database name ○ controlfile ● ● Names and locations of associated datafiles and redo log files The timestamp of the database creation ● The current log sequence number ● Checkpoint information (SCN) ● datafiles keeps persistent data ● Each tablespace in an Oracle database ○ datafile / tablespace ● consists of one or more datafiles Tablespaces: SYSTEM, UNDO, TEMP, data
  • 8. Database ○ spfile *.compatible='11.1.0.0.0' *.control_files='/appl/oracle/oradata/BERX2/control01. ctl','/appl/oracle/oradata/BERX2/control02. ctl','/appl/oracle/oradata/BERX2/control03.ctl' *.db_block_size=8192 *.db_name='BERX2' ● The database name ○ controlfile ● ● Names and locations of associated datafiles and redo log files The timestamp of the database creation ● The current log sequence number ● Checkpoint information (SCN) ● datafiles keeps persistent data ● Each tablespace in an Oracle database ○ datafile / tablespace ● consists of one or more datafiles Tablespaces: SYSTEM, UNDO, TEMP, data ○ redo-logs / archives
  • 10. Instance A database instance is a set of memory structures that manage database files. ● SGA ● PGA ● processes ○ background ○ server
  • 11. Processes ● background process DBWR, LGWR, SMON, PMON, CKPK, ARCH, MMON, MMNL, RECO, etc. ● server process Oracle Database creates server processes to handle the requests of client processes connected to the instance. A client process always communicates with a database through a separate server process. Server processes created on behalf of a database application can perform one or more of the following tasks: ● Parse and run SQL statements issued through the application, including creating and executing the query plan (see "Stages of SQL Processing") ● Execute PL/SQL code ● Read data blocks from data files into the database buffer cache (the DBWn background process has the task of writing modified blocks back to disk) ● Return results in such a way that the application can process the information
  • 12. Session A session is a logical entity in the database instance memory that represents the state of a current user login to a database. For example, when a user is authenticated by the database with a password, a session is established for this user. A session lasts from the time the user is authenticated by the database until the time the user disconnects or exits the database application.
  • 13. Statement ● DDL CREATE, ALTER, DROP, TRUNCATE, GRANT, AUDIT, COMMENT implicit commit ● DML SELECT, INSERT, UPDATE, MERGE, DELETE, EXPLAIN PLAN, LOCK TABLE ● Transaction Control SET TRANSACTION, SAVEPOINT, COMMIT, ROLLBACK ● ALTER (session, system) ● embedded (into procedural program)
  • 15. Transaction Logical unit of work that contains one or more SQL statements. All statements in a transaction commit or roll back together. The use of transactions is one of the most important ways that a database management system differs from a file system. ACID ● Atomicy all or nothing ● Consistency from one valid state to another ● Isolation transactions does not interfer ● Durability just stored
  • 16. Transaction - Isolation Levels 1. Read committed (default) A query will only be able access committed data. However, the transaction may be affected by changes made by other transactions. This can be set by: SET TRANSACTION ISOLATION LEVEL READ COMMITTED; (transaction level) ALTER SESSION SET ISOLATION_LEVEL READ COMMITTED; (session level) 2. Serializable transactions A query can only access data that was committed at the start of the transaction. Modification from DML operations performed from the same transaction will be visible. The Serializable transaction isolation level is not supported with distributed transactions. This can be set by: SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; (transaction level) ALTER SESSION SET ISOLATION_LEVEL SERIALIZABLE; (session level) 3. Read only A query can only access data that was committed at the start of the transaction. Modification to the data is not allowed. This can be set by: SET TRANSACTION ISOLATION LEVEL READONLY; (transaction level) ALTER SESSION SET ISOLATION_LEVEL READONLY; (session level)
  • 17. Transaction - flow select sal from emp where ename in ('SMITH', 'ALLEN'); -- 800, 1600 set transaction name 'my trans 1'; UPDATE emp SET sal = 7000 WHERE ename = 'SMITH'; SAVEPOINT after_banda_sal; UPDATE emp SET sal = sal+10400 WHERE ename = 'ALLEN'; select sal from emp where ename in ('SMITH', 'ALLEN'); --7000, 12000 SAVEPOINT after_greene_sal; ROLLBACK TO SAVEPOINT after_banda_sal; UPDATE emp SET sal = sal+10300 WHERE ename = 'ALLEN'; select sal from emp where ename in ('SMITH', 'ALLEN'); -- 7000, 11900 rollback;
  • 23. Failover Transparent Application Failover if one instance dies, the client restarts the whole listener-connection-sequence, cursors are re-opened, statement re-run limitations: ● The effect of any ALTER SESSION statements will be lost. ● Global temporary tables will be lost. ● Any PL/SQL package states will be lost. ● Transactions involving INSERT, UPDATE, or DELETE statements cannot be handled automatically by TAF. If there is a failure you will most likely see an ORA-25402 error. Applications should be prepared to handle errors in the 25400-25425 range and rollback appropriately.
  • 24. TAF - errors ORA-25400: must replay fetch ORA-25406: could not generate a connect address Cause: A failure occured since the last fetch on this statement. Failover was able to Cause: Failover was unable to generate an address for a backup instance. bring the statement to its original state to allow continued fetches. Action: Contact Oracle customer support. Action: This is an internally used error message and should not be seen by the ORA-25407: connection terminated user. Cause: The connection was lost while doing a fetch. ORA-25401: can not continue fetches Action: This is an internally used error message and should not be seen by the Cause: A failure occured since the last fetch on this statement. Failover was unable user. to bring the statement to its original state to allow continued fetches. ORA-25408: can not safely replay call Action: Reexecute the statement and start fetching from the beginning Cause: The connection was lost while doing this call. It may not be safe to replay it ORA-25402: transaction must roll back after failover. Cause: A failure occured while a transaction was active on this connection. Action: Check to see if the results of the call have taken place, and then replay it if Action: The client must roll back. desired. ORA-25403: could not reconnect ORA-25409: failover happened during the network operation,cannot continue Cause: The connection to the database has been lost, and attempts to reconnect Cause: The connection was lost when fetching a LOB column. have failed. Action: Failover happened when fetching LOB data directly or indirectly. Please Action: Manually reconnect. replay the top level statement. ORA-25404: lost instance ORA-25425: connection lost during rollback Cause: The primary instance has died. Cause: The connection was lost while issuing a rollback and the application failed over. Action: This is an internally used error message and should not be seen by the user. Action: The connection was lost and failover happened during rollback. If the transaction is not externally coordinated, then Oracle implicitly rolled back, so no ORA-25405: transaction status unknown action is required. Otherwise examine pending_trans$ to determine if "rollback Cause: A failure occured while a transaction was attempting to commit. Failover force" is required. could not automatically determine instance status. ORA-25426: remote instance does not support shared dblinks Action: The user must determine the transaction's status manually. Cause: A shared dblink is being used to connect to a remote instance that does not support this feature because it is an older version. Action: Use a normal dblink if you need to connect to this instance.
  • 25. Data Dictionary ● Informations about the database ○ Meta-info about all objects, schemata, user, privileges, audit ○ DBA_* ● Informations about the instances ○ many informations about structures in memory ○ v$* / gv$* ● Nearly everything Oracle knows you can select
  • 26. further informations Oracle Documentation - Concepts Guide http://docs.oracle.com/cd/E11882_01/server.112/e25789/toc.htm ask ● Ops.Oracle team ● forums.oracle.com ● http://www.freelists.org/list/oracle-l read
  • 27. credits Arup Nanda - discussions about listener Aman Sharma - review of connect-flow Surachart Opun - general review Martin Schretzmeier - infrastructure infos Ops.Oracle team - review
  • 28. Next Presentations ● Physical structures & (SQL) tuning ● Capacity planning basics ● anything else?