SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Oracle Architecture in Nutshell
1Z0-042 Oracle Administration I
                      Chapter-2
DBA learning by presentation offered by
    DBAMETRIX Solutions.
    This all presentations have been prepared by





    Gitesh P Trivedi.
    Gitesh Trivedi has work excellent 14 years





    experience in DBA field and as consultant
    faculty.





    For more details please contact to
    www.dbametrix.com or gitesh@dbametrix.com
    or giteshtrivedi@yahoo.com

There are two components of Oracle
    Software.
    First is Database component.





    Second is Instance component.





    There are lots of sub components attached
    with these parent components.





    In this chapter we will get depth study of





    each component.

There are 2 sub-components of Database
    layout.
    First called as Physical Structure of





    Database.
    Second called as Logical Structure of





    Database.
    Both sub-components have own properties.





    Both sub-components have own
    importance.



Database




                               LOGICAL Database
PHYSICAL Database
Physical database structure contains following
    layouts.
    Control files





    Datafiles
    Redo Log files





    Parameter file (init.ora and spfile.ora)





    Password file





    Trace files (including alert.log)





    Audit files (if sys audit is enabled in database).





    All are equally important for database.





There is no physical identity for logical
    structure of database.
    Schema





    Tablespace





    Segment





    Extent





    Oracle block



Each database logically divides in to one or more
    tablespaces.
    Each tablespace consists with one or more physical





    datafile.
    Total size of datafiles in the database is the total size





    of database.
    Each tablespace contains one or more logical





    segments.
    Each segment contains with extents.





    Each tablespace contains more than one extents.
    Each extents contains contagious Oracle data blocks.





Tablespace contains
number of schema or
      extents




                                                  Schema contains
                                                 number of segments


                                          Segment contains No of
                                                extents




                                          Extent contains Oracle
                                               cont. blocks

                      Oracle Data Block
Oracle data block is the finest unit of Oracle database.
    Extent is made by contiguous oracle blocks.
    Segment contains one or more extents.





    Schema is made up by one or more segments.





    Tablespace contains one or more schema.





    Means logical tablespace divides in to logical Oracle data





    blocks.





    Logical tablespace contains one or more PHYSICAL





    datafile.
    Each Oracle data block occupies physical Operating





    system’s block.
    Actually finest physical unit is Operating System block.





Instance populates in Memory.
    It consists with System Global Area and
    background processes.





    When Database starts Oracle server reads





    parameter meter file for allocating SGA.
    Sub-components of SGA and background





    processes started called “instance started”.
    Populated in memory region of server.






rrrrr Irrrrrrr
O



                                                           C
                      Log                                  o
      Buffer Cache                   Shared Pool           n
                     Buffer
                                                           S
                                                           tr



      Java Pool         Large Pool           Stream Pool




                         LGWR
At startup of database Oracle server reads
    Parameter file for parameters about SGA’s sub-
    components like buffer cache, log buffer, shared





    pool, java pool etc.
    It allocating granules for these all sub parts of SGA.
    Simultaneously mandatory background processes
    are started like SMON, DBWR, LGWR, CKPT, PMON.





    If instance was crashed during past shutdown or





    abnormal shutdown was performed then Instance
    recovery will be enabling during Instance start.





   Instance recovery held by SMON.
SMON is called System Monitor.
    Performs Instance recovery.





    Performs temporary segment allocation and
    de-allocation.





    Performs coal lesion of tablespace





    fragmentations.
    Mandatory background process for Instance.





    If died or killed then Oracle instance will crash.



DBWR is called Database Writer.
    Writes buffers from Database Buffer Cache to
    datafiles.





    May be one or more DBWR process available in





    Database. Shadow process called slave process
    can be configured.





    More DBWR writes faster on disk.
    When CKPT triggers, DBWR writes data dirty
    buffers in to datafiles.





    Maximum processes are available 20.





CKPT is called as Checkpoint process.
    It triggers when empty buffers are needed in Buffer Cache.
    It updates control file and data file’s header with system change no.





    It is very useful for synchronization of data.





    Types of ckpt are full checkpoint, fast checkpoint, local checkpoint and





    global checkpoint.





    During fast checkpoint it contains checkpoint queue which reflects in





    controlfile and log buffer with respective SCN number.
    It controls instance recovery time.





    During redo log switch it also occurs.
     We can perform manual checkpoint using command “alter system





    checkpoint”





    During shutdown normal, transactional, immediate it occurs.





    During tablespace taking online or offline it also occurs.
    It occurs while issuing command “alter system switch logfile”





LGWR is called as Log Writer Process.
     It writes from Redo log buffer to Redo log files.
    During commit operation, LGWR writes data





    from log buffer to redo log file.





    If log buffer is 1/3 full then also it flushes data





    in to redo log file.
    It writes data in to redo files every 3 sec.





    It flushes data while DBWR singled.
    Only one process is available.





PMON is called as Process Monitor.
    It clears locks.
    It clears resource of dead user process.





    It wakes up periodically (every 3 seconds) and





    pings every user process connection for





    housekeeping.





    It registers connection between dispatcher and
    instance to listener in MTS server.
    It clears up and rollback uncommitted





    transactions.

Oracle Server has 2 primary components.
    Called Database and Instance.
    Both part contains 2 sub components.





    Physical and Logical are sub-parts of Database.





    SGA and Background processes are sub-parts





    of Instance.





    All part has own characteristic & importance.





    After clearing this, learning of DBA becomes
    very easy.



Oracle Architecture in Nutshell
1Z0-042 Oracle Administration I
                      Chapter-2
 Prepared by Gitesh Trivedi
gitesh@www.dbametrix.com

Weitere ähnliche Inhalte

Was ist angesagt?

Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ Autodesk
Alan Williams
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
Anar Godjaev
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
Manoj Kumar
 
Memory management in oracle
Memory management in oracleMemory management in oracle
Memory management in oracle
Davin Abraham
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slides
Saiful
 

Was ist angesagt? (20)

Rac questions
Rac questionsRac questions
Rac questions
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
Less01 Dba1
Less01 Dba1Less01 Dba1
Less01 Dba1
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
Presentation oracle net services
Presentation    oracle net servicesPresentation    oracle net services
Presentation oracle net services
 
Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ Autodesk
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
 
Memory management in oracle
Memory management in oracleMemory management in oracle
Memory management in oracle
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Présentation Oracle DataBase 11g
Présentation Oracle DataBase 11gPrésentation Oracle DataBase 11g
Présentation Oracle DataBase 11g
 
Les 01 Arch
Les 01 ArchLes 01 Arch
Les 01 Arch
 
Database recovery techniques
Database recovery techniquesDatabase recovery techniques
Database recovery techniques
 
Oracle rac cachefusion - High Availability Day 2015
Oracle rac cachefusion - High Availability Day 2015Oracle rac cachefusion - High Availability Day 2015
Oracle rac cachefusion - High Availability Day 2015
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slides
 
Sap basis administrator user guide
Sap basis administrator   user guideSap basis administrator   user guide
Sap basis administrator user guide
 
What is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationWhat is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? Presentation
 

Andere mochten auch

Company Profile SAP and Oracle 2016 1.1
Company Profile SAP and Oracle 2016 1.1Company Profile SAP and Oracle 2016 1.1
Company Profile SAP and Oracle 2016 1.1
Sajjad Syed
 

Andere mochten auch (20)

Baaer Oracle services
Baaer Oracle servicesBaaer Oracle services
Baaer Oracle services
 
Offshore DBA Services
Offshore DBA ServicesOffshore DBA Services
Offshore DBA Services
 
marubesystems.com: Web Design, Web Development, Digital Marketing, SAP/Oracle...
marubesystems.com: Web Design, Web Development, Digital Marketing, SAP/Oracle...marubesystems.com: Web Design, Web Development, Digital Marketing, SAP/Oracle...
marubesystems.com: Web Design, Web Development, Digital Marketing, SAP/Oracle...
 
YKP CONSULTING - ORACLE, JD EDWARDS, IBM, THOMSON REUTERS, SOFTWAY
YKP CONSULTING - ORACLE, JD EDWARDS, IBM, THOMSON REUTERS, SOFTWAYYKP CONSULTING - ORACLE, JD EDWARDS, IBM, THOMSON REUTERS, SOFTWAY
YKP CONSULTING - ORACLE, JD EDWARDS, IBM, THOMSON REUTERS, SOFTWAY
 
iWare Logic Oracle Applications And Technologies Services Company
iWare Logic Oracle Applications And Technologies Services Company iWare Logic Oracle Applications And Technologies Services Company
iWare Logic Oracle Applications And Technologies Services Company
 
Company Profile SAP and Oracle 2016 1.1
Company Profile SAP and Oracle 2016 1.1Company Profile SAP and Oracle 2016 1.1
Company Profile SAP and Oracle 2016 1.1
 
Financial Advisor
Financial AdvisorFinancial Advisor
Financial Advisor
 
Raport z monitoringu budżetu obywatelskiego w Kętach
Raport z monitoringu budżetu obywatelskiego w KętachRaport z monitoringu budżetu obywatelskiego w Kętach
Raport z monitoringu budżetu obywatelskiego w Kętach
 
Raport z monitoringu polityki senioralnej w Kluczborku
Raport z monitoringu polityki senioralnej w KluczborkuRaport z monitoringu polityki senioralnej w Kluczborku
Raport z monitoringu polityki senioralnej w Kluczborku
 
Corporate Reward Program US
Corporate Reward Program USCorporate Reward Program US
Corporate Reward Program US
 
Presentation 3d5x group
Presentation 3d5x groupPresentation 3d5x group
Presentation 3d5x group
 
Internet Data Center the Business
Internet Data Center   the BusinessInternet Data Center   the Business
Internet Data Center the Business
 
Resume
ResumeResume
Resume
 
Забавин Г.Н
Забавин Г.НЗабавин Г.Н
Забавин Г.Н
 
Evs w archipelagos
Evs w archipelagosEvs w archipelagos
Evs w archipelagos
 
Port as a paradim
Port as a paradimPort as a paradim
Port as a paradim
 
Split
SplitSplit
Split
 
simasamar
simasamarsimasamar
simasamar
 
Publication
PublicationPublication
Publication
 
CV Johan Toennessen
CV   Johan ToennessenCV   Johan Toennessen
CV Johan Toennessen
 

Ähnlich wie Remote Dba Team Oracle Architecture In Nutshell

Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
HODCA1
 
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
Rajendra Jain
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Concepts
vivaankumar
 

Ähnlich wie Remote Dba Team Oracle Architecture In Nutshell (20)

Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
515689311-Postgresql-DBA-Architecture.pptx
515689311-Postgresql-DBA-Architecture.pptx515689311-Postgresql-DBA-Architecture.pptx
515689311-Postgresql-DBA-Architecture.pptx
 
Remote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By Presentation
Remote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By PresentationRemote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By Presentation
Remote DBA team-1Z0-042 Oracle Sga In Nutshell Oracle Dba Learn By Presentation
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
App D
App DApp D
App D
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Oracle11g notes
Oracle11g notesOracle11g notes
Oracle11g notes
 
Oracle Database Architecture
Oracle Database ArchitectureOracle Database Architecture
Oracle Database Architecture
 
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.ppt
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdf
 
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
 
Oracle dba training
Oracle  dba    training Oracle  dba    training
Oracle dba training
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Concepts
 
SAP HANA System Replication (HSR) versus SAP Replication Server (SRS)
SAP HANA System Replication (HSR) versus SAP Replication Server (SRS)SAP HANA System Replication (HSR) versus SAP Replication Server (SRS)
SAP HANA System Replication (HSR) versus SAP Replication Server (SRS)
 

Mehr von Remote DBA Services

Mehr von Remote DBA Services (10)

Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
do's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of Jobdo's and don'ts in Telephone Interview of Job
do's and don'ts in Telephone Interview of Job
 
logical backup of Oracle Datapump-detailed.pptx
logical backup of Oracle Datapump-detailed.pptxlogical backup of Oracle Datapump-detailed.pptx
logical backup of Oracle Datapump-detailed.pptx
 
oracle 23c new features for developer and dba
oracle 23c new features for developer and dbaoracle 23c new features for developer and dba
oracle 23c new features for developer and dba
 
Oracle Database Buffer Cache Management.pptx
Oracle Database Buffer Cache Management.pptxOracle Database Buffer Cache Management.pptx
Oracle Database Buffer Cache Management.pptx
 
What is the Oracle Database Buffer Cache
What is the Oracle Database Buffer CacheWhat is the Oracle Database Buffer Cache
What is the Oracle Database Buffer Cache
 
Oracle dba advance-24-7-running databases
Oracle dba advance-24-7-running databasesOracle dba advance-24-7-running databases
Oracle dba advance-24-7-running databases
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
1Z0-052 Oracle 11g Administration I
1Z0-052 Oracle 11g Administration I1Z0-052 Oracle 11g Administration I
1Z0-052 Oracle 11g Administration I
 

Kürzlich hochgeladen

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Remote Dba Team Oracle Architecture In Nutshell

  • 1. Oracle Architecture in Nutshell 1Z0-042 Oracle Administration I Chapter-2
  • 2. DBA learning by presentation offered by DBAMETRIX Solutions. This all presentations have been prepared by  Gitesh P Trivedi. Gitesh Trivedi has work excellent 14 years  experience in DBA field and as consultant faculty.  For more details please contact to www.dbametrix.com or gitesh@dbametrix.com or giteshtrivedi@yahoo.com 
  • 3. There are two components of Oracle Software. First is Database component.  Second is Instance component.  There are lots of sub components attached with these parent components.  In this chapter we will get depth study of  each component. 
  • 4.
  • 5. There are 2 sub-components of Database layout. First called as Physical Structure of  Database. Second called as Logical Structure of  Database. Both sub-components have own properties.  Both sub-components have own importance.  
  • 6. Database LOGICAL Database PHYSICAL Database
  • 7. Physical database structure contains following layouts. Control files  Datafiles Redo Log files  Parameter file (init.ora and spfile.ora)  Password file  Trace files (including alert.log)  Audit files (if sys audit is enabled in database).  All are equally important for database.   
  • 8.
  • 9. There is no physical identity for logical structure of database. Schema  Tablespace  Segment  Extent  Oracle block  
  • 10.
  • 11. Each database logically divides in to one or more tablespaces. Each tablespace consists with one or more physical  datafile. Total size of datafiles in the database is the total size  of database. Each tablespace contains one or more logical  segments. Each segment contains with extents.  Each tablespace contains more than one extents. Each extents contains contagious Oracle data blocks.   
  • 12. Tablespace contains number of schema or extents Schema contains number of segments Segment contains No of extents Extent contains Oracle cont. blocks Oracle Data Block
  • 13. Oracle data block is the finest unit of Oracle database. Extent is made by contiguous oracle blocks. Segment contains one or more extents.  Schema is made up by one or more segments.  Tablespace contains one or more schema.  Means logical tablespace divides in to logical Oracle data  blocks.  Logical tablespace contains one or more PHYSICAL  datafile. Each Oracle data block occupies physical Operating  system’s block. Actually finest physical unit is Operating System block.  
  • 14. Instance populates in Memory. It consists with System Global Area and background processes.  When Database starts Oracle server reads  parameter meter file for allocating SGA. Sub-components of SGA and background  processes started called “instance started”. Populated in memory region of server.  
  • 15. rrrrr Irrrrrrr O C Log o Buffer Cache Shared Pool n Buffer S tr Java Pool Large Pool Stream Pool LGWR
  • 16. At startup of database Oracle server reads Parameter file for parameters about SGA’s sub- components like buffer cache, log buffer, shared  pool, java pool etc. It allocating granules for these all sub parts of SGA. Simultaneously mandatory background processes are started like SMON, DBWR, LGWR, CKPT, PMON.  If instance was crashed during past shutdown or  abnormal shutdown was performed then Instance recovery will be enabling during Instance start.   Instance recovery held by SMON.
  • 17. SMON is called System Monitor. Performs Instance recovery.  Performs temporary segment allocation and de-allocation.  Performs coal lesion of tablespace  fragmentations. Mandatory background process for Instance.  If died or killed then Oracle instance will crash.  
  • 18. DBWR is called Database Writer. Writes buffers from Database Buffer Cache to datafiles.  May be one or more DBWR process available in  Database. Shadow process called slave process can be configured.  More DBWR writes faster on disk. When CKPT triggers, DBWR writes data dirty buffers in to datafiles.  Maximum processes are available 20.  
  • 19. CKPT is called as Checkpoint process. It triggers when empty buffers are needed in Buffer Cache. It updates control file and data file’s header with system change no.  It is very useful for synchronization of data.  Types of ckpt are full checkpoint, fast checkpoint, local checkpoint and  global checkpoint.  During fast checkpoint it contains checkpoint queue which reflects in  controlfile and log buffer with respective SCN number. It controls instance recovery time.  During redo log switch it also occurs. We can perform manual checkpoint using command “alter system  checkpoint”  During shutdown normal, transactional, immediate it occurs.  During tablespace taking online or offline it also occurs. It occurs while issuing command “alter system switch logfile”   
  • 20. LGWR is called as Log Writer Process. It writes from Redo log buffer to Redo log files. During commit operation, LGWR writes data  from log buffer to redo log file.  If log buffer is 1/3 full then also it flushes data  in to redo log file. It writes data in to redo files every 3 sec.  It flushes data while DBWR singled. Only one process is available.   
  • 21. PMON is called as Process Monitor. It clears locks. It clears resource of dead user process.  It wakes up periodically (every 3 seconds) and  pings every user process connection for  housekeeping.  It registers connection between dispatcher and instance to listener in MTS server. It clears up and rollback uncommitted  transactions. 
  • 22.
  • 23. Oracle Server has 2 primary components. Called Database and Instance. Both part contains 2 sub components.  Physical and Logical are sub-parts of Database.  SGA and Background processes are sub-parts  of Instance.  All part has own characteristic & importance.  After clearing this, learning of DBA becomes very easy.  
  • 24. Oracle Architecture in Nutshell 1Z0-042 Oracle Administration I Chapter-2 Prepared by Gitesh Trivedi gitesh@www.dbametrix.com