SlideShare une entreprise Scribd logo
1  sur  27
Oracle DBA Training
Relational Database Management System
(RDBMS)
 RDBMS is based on the relational model. Data and
relations are stored in the form of tables. Tables are
accessed via Primary Keys, Foreign Keys and Indexes.
 RDBMS provides consistency which means transactions
are either completed fully or no effect at all
 RDBMS provides concurrency which means multiple
users accessing the same group of resources (such as
tables, rows)
RDBMS & SQL
Database Market Share is 40 % dominated by
Oracle whereas IBM occupies 31%, Microsoft
12% and remaining by others.
User interface with RDBMS in SQL – a standard
interactive and programming language for
querying and modifying data and managing
databases.
Installing and upgrading Database software and
application tools
 Allocating system storage and planning future
allocation
 Creating Database and its storage parameters .
 Creating Database structures , objects, users and
granting privileges
DBA Tasks
DBA Tasks
 Set up Database security and auditing
 Set up Database Backup and Recovery when
required
 Set up Database Monitoring
 Database Optimization and Performance Tuning
 Maintaining Database and implementing High
Availability
Oracle Database Architecture
Oracle Architecture contd…
What is an Oracle Instance ?
An Oracle instance is a means to access the Oracle Database
Always opens one and only one database
What is SGA ?
SGA is System Global Area . It constitutes DBBC ( Database
Buffer Cache ), RBC(Redolog Buffer Cache) , Shared Pool and
Shared Server.
What is server process ?
Services a single user process in the dedicated server and
multiple user processes in a shared server.
What is user process?
Runs on a client machine using tools like SQL Plus , OEM etc.
Significant Terms to be known
What is an Instance ?
• An Instance is made up of background
processes and memory structures .
• An instance controls zero or more databases.
• A database can have one or more instances.
• Examples : PMON, SMON, DBWR, LOGWR
etc..
Oracle Instance and Database
Oracle Instance constitutes :
 Background Processes and
 Memory Structures
Oracle Database constitutes :
Data files
Redo log files
Control files
Archive log files
Parameter files
Oracle Instance Architecture
Oracle Process Architecture
Background Processes
Performs functions on behalf of user process
Input, Output and Monitor other Oracle Processes
to provide improved parallelism for better
performance and reliability
Background Processes
DBWR:
When it writes into datafiles :
When dirty buffer of the whole block reaches
threshold limit
When Checkpoint occurs
When there are no free buffers
Time out Occurs
Tablespace is taken offline /read only/begin
backup
Drop/truncate a table
BGP
Log Writer:
Performs sequential writes from Redolog Buffer
When LGWR writes:
Commit
When 1/3 of memory is full
Every 3 seconds
When it reaches 1 MB
Before DBWR writes
Calls on DBWR to write into data files
Used for Recovery purposes
BGP
SYSTEM MONITOR ( SMON )
Used for Instance Recovery (System/Media Failure )
Rollforward committed transactions (changes in redolog files)
Open Database for access
Rollback uncommitted transactions
Coalesces free spaces
Deallocates Temporary Segmen
PROCESS MONITOR (PMON )
Cleans the failed process
Rolls back user’s current transactions
Releasing locks
Releasing other resources
Restoring dead dispatchers
BGP
CheckPoint:
Checkpoint is an event that occurs whenever the
log switches
Signals the DBWR to flush the data from DBBC to DF
Updates SCN and LSN
Stages of Redolog:
Active – written over, ready to move to archive
Inactive – ready to overwrite , information passed to
archive
Current – currently writing
Unused - Freshly created group
BGP
Members Status
1. Stale – Half-written and switched log
2. Blank - Currently Writing
3. delete - dropped members
4. invalid – corrupted, inaccessible
System Global Area (SGA)
SGA is dynamic
Allocated and tracked in granules by SGA
Components
Contiguous Virtual Memory Allocation
A Granule is the unit of contiguous Memory
Allocation
DBBC and Shared Pool grow and Shrink
sga
SGA_MAX_SIZE
v$buffer_pool
Fixed SGA – Shared Pool, DBBC ,RLBC
Dynamic SGA – Changes made while DB is up
DB_CACHE_SIZE
LOG_BUFFER
SHARED_POOL_SIZE
LARGE_POOL_SIZE
JAVA_POOL_SIZE
Shared Pool
This is used for objects shared globally such as
reusable execution plans, pl/sql packages,
procedures, functions, cursor information etc.,
LRU Algorithm : As the Cache fills, less recently
used execution plans and parse trees are removed
from LC to make room for the new entries
Shared Pool Contains : Library Cache and Data
Dictionary Cache
Library Cache
Stores information about the shared sql and pl/sql
statements
Enables the sharing of commonly used statements
LRU Algorithm
SharedSQL
Shared PL/SQL
Shared_pool_size
Memory is allocated when a statement is parsed or a
program unit is called
Shared SQL
Stores and Shares the execution plan and parse
trees for sql statements run against the database
If second time an sql statement is run, it can take
parse information already available is reused
The text,schema and bind variables must be
same to ensure that sql statements share the
shared SQL Area
Shared PL/SQL
Stores and shares the most recently used pl/sql
statements. Parsed and compiled programs with
units and Procedures are stored in this area
Data Dictionary Cache
Also called as Row Cache
Most recently used data definitions in the Database
Includes information about database files, users,
privileges, tables, indexes, column and other
database objects
To resolve object names and validate access the
server process looks at data dictionary Information
about user data,data file names,segment
names,extent location,table description

Contenu connexe

Tendances

12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architectureAmrit Kaur
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insightsKirill Loifman
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1Satishbabu Gunukula
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administrationsreehari orienit
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperJeff Smith
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recoveryYogiji Creations
 
Physical architecture of sql server
Physical architecture of sql serverPhysical architecture of sql server
Physical architecture of sql serverDivya Sharma
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databasesJames Serra
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle databaseSamar Prasad
 
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSCuneyt Goksu
 
User, roles and privileges
User, roles and privilegesUser, roles and privileges
User, roles and privilegesYogiji Creations
 
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
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture pptDeepak Shetty
 
Active Directory Services
Active Directory ServicesActive Directory Services
Active Directory ServicesVarun Arora
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cSatishbabu Gunukula
 
Microsoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureMicrosoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureKevin Kline
 
Snowflake Architecture.pptx
Snowflake Architecture.pptxSnowflake Architecture.pptx
Snowflake Architecture.pptxchennakesava44
 

Tendances (20)

12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Db2
Db2Db2
Db2
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administration
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
Physical architecture of sql server
Physical architecture of sql serverPhysical architecture of sql server
Physical architecture of sql server
 
Oracle Tablespace - Basic
Oracle Tablespace - BasicOracle Tablespace - Basic
Oracle Tablespace - Basic
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
 
User, roles and privileges
User, roles and privilegesUser, roles and privileges
User, roles and privileges
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
Active Directory Services
Active Directory ServicesActive Directory Services
Active Directory Services
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
Microsoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureMicrosoft SQL Server internals & architecture
Microsoft SQL Server internals & architecture
 
Snowflake Architecture.pptx
Snowflake Architecture.pptxSnowflake Architecture.pptx
Snowflake Architecture.pptx
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
 

Similaire à Oracle DBA Training: Learn Relational Database Management Systems and SQL

Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overviewhonglee71
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database IntroductionChhom Karath
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architectureSoumya Das
 
R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07zeesniper
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.pptHODCA1
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architectureAkash Pramanik
 
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
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle databaseSamar Prasad
 
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docxhoney725342
 

Similaire à Oracle DBA Training: Learn Relational Database Management Systems and SQL (20)

Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
App D
App DApp D
App D
 
Less01 Dba1
Less01 Dba1Less01 Dba1
Less01 Dba1
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
ORACLE ARCHITECTURE
ORACLE ARCHITECTUREORACLE ARCHITECTURE
ORACLE ARCHITECTURE
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
Oracle11g notes
Oracle11g notesOracle11g notes
Oracle11g notes
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
Oracle tutorial
Oracle tutorialOracle tutorial
Oracle tutorial
 
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)
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
 
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
 
Less01_Architecture.ppt
Less01_Architecture.pptLess01_Architecture.ppt
Less01_Architecture.ppt
 

Dernier

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Dernier (20)

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

Oracle DBA Training: Learn Relational Database Management Systems and SQL

  • 2. Relational Database Management System (RDBMS)  RDBMS is based on the relational model. Data and relations are stored in the form of tables. Tables are accessed via Primary Keys, Foreign Keys and Indexes.  RDBMS provides consistency which means transactions are either completed fully or no effect at all  RDBMS provides concurrency which means multiple users accessing the same group of resources (such as tables, rows)
  • 3. RDBMS & SQL Database Market Share is 40 % dominated by Oracle whereas IBM occupies 31%, Microsoft 12% and remaining by others. User interface with RDBMS in SQL – a standard interactive and programming language for querying and modifying data and managing databases.
  • 4. Installing and upgrading Database software and application tools  Allocating system storage and planning future allocation  Creating Database and its storage parameters .  Creating Database structures , objects, users and granting privileges DBA Tasks
  • 5. DBA Tasks  Set up Database security and auditing  Set up Database Backup and Recovery when required  Set up Database Monitoring  Database Optimization and Performance Tuning  Maintaining Database and implementing High Availability
  • 7.
  • 9.
  • 10. What is an Oracle Instance ? An Oracle instance is a means to access the Oracle Database Always opens one and only one database What is SGA ? SGA is System Global Area . It constitutes DBBC ( Database Buffer Cache ), RBC(Redolog Buffer Cache) , Shared Pool and Shared Server. What is server process ? Services a single user process in the dedicated server and multiple user processes in a shared server. What is user process? Runs on a client machine using tools like SQL Plus , OEM etc. Significant Terms to be known
  • 11. What is an Instance ? • An Instance is made up of background processes and memory structures . • An instance controls zero or more databases. • A database can have one or more instances. • Examples : PMON, SMON, DBWR, LOGWR etc..
  • 12. Oracle Instance and Database Oracle Instance constitutes :  Background Processes and  Memory Structures Oracle Database constitutes : Data files Redo log files Control files Archive log files Parameter files
  • 14.
  • 16. Background Processes Performs functions on behalf of user process Input, Output and Monitor other Oracle Processes to provide improved parallelism for better performance and reliability
  • 17. Background Processes DBWR: When it writes into datafiles : When dirty buffer of the whole block reaches threshold limit When Checkpoint occurs When there are no free buffers Time out Occurs Tablespace is taken offline /read only/begin backup Drop/truncate a table
  • 18. BGP Log Writer: Performs sequential writes from Redolog Buffer When LGWR writes: Commit When 1/3 of memory is full Every 3 seconds When it reaches 1 MB Before DBWR writes Calls on DBWR to write into data files Used for Recovery purposes
  • 19. BGP SYSTEM MONITOR ( SMON ) Used for Instance Recovery (System/Media Failure ) Rollforward committed transactions (changes in redolog files) Open Database for access Rollback uncommitted transactions Coalesces free spaces Deallocates Temporary Segmen PROCESS MONITOR (PMON ) Cleans the failed process Rolls back user’s current transactions Releasing locks Releasing other resources Restoring dead dispatchers
  • 20. BGP CheckPoint: Checkpoint is an event that occurs whenever the log switches Signals the DBWR to flush the data from DBBC to DF Updates SCN and LSN Stages of Redolog: Active – written over, ready to move to archive Inactive – ready to overwrite , information passed to archive Current – currently writing Unused - Freshly created group
  • 21. BGP Members Status 1. Stale – Half-written and switched log 2. Blank - Currently Writing 3. delete - dropped members 4. invalid – corrupted, inaccessible
  • 22. System Global Area (SGA) SGA is dynamic Allocated and tracked in granules by SGA Components Contiguous Virtual Memory Allocation A Granule is the unit of contiguous Memory Allocation DBBC and Shared Pool grow and Shrink
  • 23. sga SGA_MAX_SIZE v$buffer_pool Fixed SGA – Shared Pool, DBBC ,RLBC Dynamic SGA – Changes made while DB is up DB_CACHE_SIZE LOG_BUFFER SHARED_POOL_SIZE LARGE_POOL_SIZE JAVA_POOL_SIZE
  • 24. Shared Pool This is used for objects shared globally such as reusable execution plans, pl/sql packages, procedures, functions, cursor information etc., LRU Algorithm : As the Cache fills, less recently used execution plans and parse trees are removed from LC to make room for the new entries Shared Pool Contains : Library Cache and Data Dictionary Cache
  • 25. Library Cache Stores information about the shared sql and pl/sql statements Enables the sharing of commonly used statements LRU Algorithm SharedSQL Shared PL/SQL Shared_pool_size Memory is allocated when a statement is parsed or a program unit is called
  • 26. Shared SQL Stores and Shares the execution plan and parse trees for sql statements run against the database If second time an sql statement is run, it can take parse information already available is reused The text,schema and bind variables must be same to ensure that sql statements share the shared SQL Area Shared PL/SQL Stores and shares the most recently used pl/sql statements. Parsed and compiled programs with units and Procedures are stored in this area
  • 27. Data Dictionary Cache Also called as Row Cache Most recently used data definitions in the Database Includes information about database files, users, privileges, tables, indexes, column and other database objects To resolve object names and validate access the server process looks at data dictionary Information about user data,data file names,segment names,extent location,table description