SlideShare a Scribd company logo
1 of 18
Oracle Senior DBA Group Linkedin
• Discussion started May 2016
– After a few days – Numerous Likes and Comments
– On Line Redo Logs
– Uncommitted Transactions in Redo Logs
– Log Group Switch Frequency
– Archived Redo Logs with entries still not committed
– Undo Segments
– Oracle Checkpoints
– Transaction Commits
• Response this short Presentation on
– Undo , Redo , Checkpoints , Commits
John Boyle
John.Boyle@Stormtime.co.uk
www.stormtime.co.uk
Over 30 years IT Experience
11 Years in IT Management followed by the last :
15 Years in Training & Consultancy of which :
6 Years working for Oracle University UK
Training Courses have been provided :
• Throughout UK and Ireland
• Europe : Paris, Brussels, Utrecht, Milan, Helsinki
• USA : Tampa FL, Monroe LA, Memphis TN,
Chicago IL, Minneapolis MN, Madison WI
Oracle Leadership Circle San Francisco
Copyright©2016 Stormtime Ltd
Components to Define & Understand
The Undo Tablespace
Is totally different in terms of usage and
structure when compared to
Redo Log Files
Database Checkpoints
ARE NOTHING TO DO WITH
Committing Transactions
UNDO TABLESPACE
• BEFORE images of changed Data Blocks
• USED for
– “Read Consistency”
– Transaction Rollback
– At Process Level (PMON)
– Flashback Query
– Flashback Version Query
– Flashback Transaction Query
– Flashback Transaction
– Flashback Table
Undo Tablespace
Objectives
– Reduce ORA-01555 Errors
– Allow for FLASHBACK if necessary
Decisions
– Size
– UNDO_RETENTION Parameter Value
– RETENTION [ NO ]GUARANTEE
Tools
– V$UNDOSTAT
Online Redo Log Files
• Mandatory for
– Database integrity & Good Performance
– Instance Recovery (SMON)
• Each Online Redo Log File is an
– Online Redo Log Member of an
– Online Redo Log Group
• Minimum Configuration
– 2 Groups each with 1 Member
• Suggested Minimum Configuration ?
– 3 Groups each with 2 Members (i.e. Multiplexed)
Online Redo Log File
Suggested Minimum Configuration ?
v$log.group# & v$logfile.group#
v$logfile.member
nnnnnn nnnnnn + 1 nnnnnn + 2v$log.sequence#
nnnnnn + 3
v$log.status
CURRENT
ACTIVE
INACTIVE
Redo Log File Usage
“Inactive” “Active” -> “Inactive” “Current”
Checkpoint Position ?
Sequence# 229 Sequence# 230 Sequence# 231
Sequence# 232
Redo “Tail”
V$LOG
GROUP# NUMBER
THREAD# NUMBER
SEQUENCE# NUMBER
BYTES NUMBER
BLOCKSIZE NUMBER
MEMBERS NUMBER
ARCHIVED VARCHAR2(3)
STATUS VARCHAR2(16)
FIRST_CHANGE# NUMBER
FIRST_TIME DATE
NEXT_CHANGE# NUMBER
NEXT_TIME DATE
Online Redo Logs
V$LOGFILE
GROUP# NUMBER
STATUS VARCHAR2(7)
TYPE VARCHAR2(7)
MEMBER VARCHAR2(513)
IS_RECOVERY_
DEST_FILE
VARCHAR2(3)
Join on GROUP#
• Database Inconsistent
– e.g. Server Failure, Oracle Shutdown Abort
– Redo marked Open in Controlfile(s)
• Recovery is performed by SMON
– After Database has been Mounted, upon Opening
– No DBA intervention is required (apart from restarting)
– Brings Checkpoint Position to the Redo Tail
– Roll forward Committed Changes
– Rollback Uncommitted Changes
– Only uses Redo Entries (Change Vectors)
Instance Recovery
• Full Database Checkpoint
– SHUTDOWN [ NORMAL | IMMEDIATE | TRANSACTIONAL ]
– ALTER SYSTEM CHECKPOINT ;
– Online Redo Log File switch
– ALTER DATABASE BEGIN BACKUP ;
– (Note : New Storage Snapshot Optimization in 12c R1)
• Partial Database Checkpoint
– ALTER TABLESPACE ts_name OFFLINE [ NORMAL ]
– ALTER TABLESPACE ts_name READ ONLY;
– ALTER TABLESPACE ts_name BEGIN BACKUP ;
• Incremental Database Checkpoint
Database Checkpoints
• Incremental Database Checkpoint Parameters
– LOG_CHECKPOINT_INTERVAL ( OS Blocks )
– LOG_CHECKPOINT_TIMEOUT ( Seconds )
– FAST_START_MTTR_TARGET ( Seconds )
• Also note
– Size of the smallest Online Redo Log File
– LOG_CHECKPOINTS_TO_ALERT [ FALSE | TRUE ]
– SELECT name, value FROM v$sysstat
WHERE name LIKE ‘%checkpoint%’;
Database Checkpoints
Effect of Increase size of Redo Log Files
Redo Log TailCheckpoint Position
Checkpoint Position
Redo Log Tail
RECOVERY
RECOVERY
From
To
Effect of Decrease FAST_START_MMTR_TARGET
Redo Log TailCheckpoint Position
Checkpoint Position
Redo Log Tail
RECOVERY
RECOVERY
From
To
DBA’s Objectives
• Redo Log Files
– Protect against Single Point of Failure
– Two Members in each Group (Multiplexing)
• Checkpoints
– Balance Performance & Instance Recovery Times
– Decide how to Drive Checkpoints
– Redo Logfile Size
– FAST_START_MTTR_TARGET
– Check V$INSTANCE_RECOVERY
– ESTIMATED_MTTR
– TARGET_MTTR
– OPTIMAL_LOGFILE_SIZE
• ENSURE Service Level Agreement Compliance
Transactions - Commit
• A Transaction is a logical unit of work that contains one or
more SQL statements.
• Starts with
– DML
– DDL
• Ends with
– Explicit Commit
– Implicit Commit
– Rollback
– Process Failure
Compare Checkpoint to Commit
• Checkpoint
– Synchronises Memory & Disk
– Can Reduce Recovery Time
– Detrimental to performance if too Frequent
• Commit
– Per Single Transaction
– Guarantees permanency of a Single Transaction
– Write a “Fast Commit Marker” to On Line Redo Log
●
(SCN & Transaction Id)
Short Demonstration
Showing On-line Redo Logs have nothing to do
with Undo Segments
www.stormtime.co.uk www.speak-tech.com
John.Boyle@stormtime.co.uk

More Related Content

What's hot

Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rmanitsabidhussain
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architectureSoumya Das
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database IntroductionChhom Karath
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle ArchitectureNeeraj Singh
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basicsShahed Mohamed
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administrationsreehari orienit
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architectureSimon Huang
 
SQL Server Database Backup and Restore Plan
SQL Server Database Backup and Restore PlanSQL Server Database Backup and Restore Plan
SQL Server Database Backup and Restore PlanHamid J. Fard
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recoveryasifmalik110
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architectureVimlendu Kumar
 
Oracle SQL, PL/SQL best practices
Oracle SQL, PL/SQL best practicesOracle SQL, PL/SQL best practices
Oracle SQL, PL/SQL best practicesSmitha Padmanabhan
 
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015Nelson Calero
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recoveryMustafa Khan
 

What's hot (20)

Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Manage users & tables in Oracle Database
Manage users & tables in Oracle DatabaseManage users & tables in Oracle Database
Manage users & tables in Oracle Database
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Less10 undo
Less10 undoLess10 undo
Less10 undo
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basics
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administration
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
 
SQL Server Database Backup and Restore Plan
SQL Server Database Backup and Restore PlanSQL Server Database Backup and Restore Plan
SQL Server Database Backup and Restore Plan
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recovery
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
 
Oracle SQL, PL/SQL best practices
Oracle SQL, PL/SQL best practicesOracle SQL, PL/SQL best practices
Oracle SQL, PL/SQL best practices
 
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recovery
 

Similar to Presentation Oracle Undo & Redo Structures

Unbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groupsUnbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groupsIsabelle Van Campenhoudt
 
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groupsUnbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groupsserge luca
 
DB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource ManagerDB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource ManagerMaris Elsins
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACKristofferson A
 
Redshift Chartio Event Presentation
Redshift Chartio Event PresentationRedshift Chartio Event Presentation
Redshift Chartio Event PresentationChartio
 
Orcale dba training
Orcale dba trainingOrcale dba training
Orcale dba trainingUgs8008
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in Hyderabadunited global soft
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadUgs8008
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsZohar Elkayam
 
Cloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataCloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataAbhishek M Shivalingaiah
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)Gustavo Rene Antunez
 
ebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdfebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdfElboulmaniMohamed
 
ITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just Began
ITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just BeganITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just Began
ITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just BeganITCamp
 
KoprowskiT_it_camp2013 - 2amADisasterJustBegan
KoprowskiT_it_camp2013 - 2amADisasterJustBeganKoprowskiT_it_camp2013 - 2amADisasterJustBegan
KoprowskiT_it_camp2013 - 2amADisasterJustBeganTobias Koprowski
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportAlfredo Krieg
 
2009 Collaborate IOUG Presentation
2009 Collaborate IOUG Presentation2009 Collaborate IOUG Presentation
2009 Collaborate IOUG PresentationBiju Thomas
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL DatabasePerformance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL DatabaseTung Nguyen Thanh
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basicsnitin anjankar
 
Large Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesLarge Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesCidar Mendizabal
 

Similar to Presentation Oracle Undo & Redo Structures (20)

Unbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groupsUnbreakable Sharepoint 2016 With SQL Server 2016 availability groups
Unbreakable Sharepoint 2016 With SQL Server 2016 availability groups
 
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groupsUnbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
 
DB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource ManagerDB12c: All You Need to Know About the Resource Manager
DB12c: All You Need to Know About the Resource Manager
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
 
Redshift Chartio Event Presentation
Redshift Chartio Event PresentationRedshift Chartio Event Presentation
Redshift Chartio Event Presentation
 
Orcale dba training
Orcale dba trainingOrcale dba training
Orcale dba training
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in Hyderabad
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in Hyderabad
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Cloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big DataCloudera Movies Data Science Project On Big Data
Cloudera Movies Data Science Project On Big Data
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
 
ebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdfebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdf
 
5 backuprecoveryw imp
5 backuprecoveryw imp5 backuprecoveryw imp
5 backuprecoveryw imp
 
ITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just Began
ITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just BeganITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just Began
ITCamp 2013 - Tobiasz Koprowski - 2AM A Disaster Just Began
 
KoprowskiT_it_camp2013 - 2amADisasterJustBegan
KoprowskiT_it_camp2013 - 2amADisasterJustBeganKoprowskiT_it_camp2013 - 2amADisasterJustBegan
KoprowskiT_it_camp2013 - 2amADisasterJustBegan
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR Report
 
2009 Collaborate IOUG Presentation
2009 Collaborate IOUG Presentation2009 Collaborate IOUG Presentation
2009 Collaborate IOUG Presentation
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL DatabasePerformance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
 
Oracle Database Performance Tuning Basics
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basics
 
Large Data Volume Salesforce experiences
Large Data Volume Salesforce experiencesLarge Data Volume Salesforce experiences
Large Data Volume Salesforce experiences
 

Recently uploaded

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Presentation Oracle Undo & Redo Structures

  • 1. Oracle Senior DBA Group Linkedin • Discussion started May 2016 – After a few days – Numerous Likes and Comments – On Line Redo Logs – Uncommitted Transactions in Redo Logs – Log Group Switch Frequency – Archived Redo Logs with entries still not committed – Undo Segments – Oracle Checkpoints – Transaction Commits • Response this short Presentation on – Undo , Redo , Checkpoints , Commits
  • 2. John Boyle John.Boyle@Stormtime.co.uk www.stormtime.co.uk Over 30 years IT Experience 11 Years in IT Management followed by the last : 15 Years in Training & Consultancy of which : 6 Years working for Oracle University UK Training Courses have been provided : • Throughout UK and Ireland • Europe : Paris, Brussels, Utrecht, Milan, Helsinki • USA : Tampa FL, Monroe LA, Memphis TN, Chicago IL, Minneapolis MN, Madison WI Oracle Leadership Circle San Francisco Copyright©2016 Stormtime Ltd
  • 3. Components to Define & Understand The Undo Tablespace Is totally different in terms of usage and structure when compared to Redo Log Files Database Checkpoints ARE NOTHING TO DO WITH Committing Transactions
  • 4. UNDO TABLESPACE • BEFORE images of changed Data Blocks • USED for – “Read Consistency” – Transaction Rollback – At Process Level (PMON) – Flashback Query – Flashback Version Query – Flashback Transaction Query – Flashback Transaction – Flashback Table
  • 5. Undo Tablespace Objectives – Reduce ORA-01555 Errors – Allow for FLASHBACK if necessary Decisions – Size – UNDO_RETENTION Parameter Value – RETENTION [ NO ]GUARANTEE Tools – V$UNDOSTAT
  • 6. Online Redo Log Files • Mandatory for – Database integrity & Good Performance – Instance Recovery (SMON) • Each Online Redo Log File is an – Online Redo Log Member of an – Online Redo Log Group • Minimum Configuration – 2 Groups each with 1 Member • Suggested Minimum Configuration ? – 3 Groups each with 2 Members (i.e. Multiplexed)
  • 7. Online Redo Log File Suggested Minimum Configuration ? v$log.group# & v$logfile.group# v$logfile.member nnnnnn nnnnnn + 1 nnnnnn + 2v$log.sequence# nnnnnn + 3 v$log.status CURRENT ACTIVE INACTIVE
  • 8. Redo Log File Usage “Inactive” “Active” -> “Inactive” “Current” Checkpoint Position ? Sequence# 229 Sequence# 230 Sequence# 231 Sequence# 232 Redo “Tail”
  • 9. V$LOG GROUP# NUMBER THREAD# NUMBER SEQUENCE# NUMBER BYTES NUMBER BLOCKSIZE NUMBER MEMBERS NUMBER ARCHIVED VARCHAR2(3) STATUS VARCHAR2(16) FIRST_CHANGE# NUMBER FIRST_TIME DATE NEXT_CHANGE# NUMBER NEXT_TIME DATE Online Redo Logs V$LOGFILE GROUP# NUMBER STATUS VARCHAR2(7) TYPE VARCHAR2(7) MEMBER VARCHAR2(513) IS_RECOVERY_ DEST_FILE VARCHAR2(3) Join on GROUP#
  • 10. • Database Inconsistent – e.g. Server Failure, Oracle Shutdown Abort – Redo marked Open in Controlfile(s) • Recovery is performed by SMON – After Database has been Mounted, upon Opening – No DBA intervention is required (apart from restarting) – Brings Checkpoint Position to the Redo Tail – Roll forward Committed Changes – Rollback Uncommitted Changes – Only uses Redo Entries (Change Vectors) Instance Recovery
  • 11. • Full Database Checkpoint – SHUTDOWN [ NORMAL | IMMEDIATE | TRANSACTIONAL ] – ALTER SYSTEM CHECKPOINT ; – Online Redo Log File switch – ALTER DATABASE BEGIN BACKUP ; – (Note : New Storage Snapshot Optimization in 12c R1) • Partial Database Checkpoint – ALTER TABLESPACE ts_name OFFLINE [ NORMAL ] – ALTER TABLESPACE ts_name READ ONLY; – ALTER TABLESPACE ts_name BEGIN BACKUP ; • Incremental Database Checkpoint Database Checkpoints
  • 12. • Incremental Database Checkpoint Parameters – LOG_CHECKPOINT_INTERVAL ( OS Blocks ) – LOG_CHECKPOINT_TIMEOUT ( Seconds ) – FAST_START_MTTR_TARGET ( Seconds ) • Also note – Size of the smallest Online Redo Log File – LOG_CHECKPOINTS_TO_ALERT [ FALSE | TRUE ] – SELECT name, value FROM v$sysstat WHERE name LIKE ‘%checkpoint%’; Database Checkpoints
  • 13. Effect of Increase size of Redo Log Files Redo Log TailCheckpoint Position Checkpoint Position Redo Log Tail RECOVERY RECOVERY From To
  • 14. Effect of Decrease FAST_START_MMTR_TARGET Redo Log TailCheckpoint Position Checkpoint Position Redo Log Tail RECOVERY RECOVERY From To
  • 15. DBA’s Objectives • Redo Log Files – Protect against Single Point of Failure – Two Members in each Group (Multiplexing) • Checkpoints – Balance Performance & Instance Recovery Times – Decide how to Drive Checkpoints – Redo Logfile Size – FAST_START_MTTR_TARGET – Check V$INSTANCE_RECOVERY – ESTIMATED_MTTR – TARGET_MTTR – OPTIMAL_LOGFILE_SIZE • ENSURE Service Level Agreement Compliance
  • 16. Transactions - Commit • A Transaction is a logical unit of work that contains one or more SQL statements. • Starts with – DML – DDL • Ends with – Explicit Commit – Implicit Commit – Rollback – Process Failure
  • 17. Compare Checkpoint to Commit • Checkpoint – Synchronises Memory & Disk – Can Reduce Recovery Time – Detrimental to performance if too Frequent • Commit – Per Single Transaction – Guarantees permanency of a Single Transaction – Write a “Fast Commit Marker” to On Line Redo Log ● (SCN & Transaction Id)
  • 18. Short Demonstration Showing On-line Redo Logs have nothing to do with Undo Segments www.stormtime.co.uk www.speak-tech.com John.Boyle@stormtime.co.uk

Editor's Notes

  1. <number>
  2. <number>
  3. <number>
  4. <number>
  5. <number>
  6. <number>