SlideShare a Scribd company logo
1 of 28
OCI – Database
Backups
Flashback – Oracle
Database no OCI
Indo além dos backups
Tércio Costa
TércioCosta
• Cloud Transf & Migration Assoc Manager
• Accenture Enkitec Group
• 12/08/2023
• Linktree:
3
ace.oracle.com
OracleCertifications • Oracle Cloud Data Management 2023 Certified Foundations Associate
• Oracle Base Database Services 2023 Certified Professional
• Oracle Database Cloud Administrator 2023 Certified Professional
• Oracle Cloud Infrastructure 2023 Certified Architect Associate
• Oracle Cloud Infrastructure 2023 Certified Foundations Associate
• Oracle Cloud Infrastructure 2022 Certified Foundations Associate
• Oracle Autonomous Database Cloud 2021 Certified Specialist
• Oracle Cloud Infrastructure Foundations 2021 Certified Associate
• Oracle Certified Expert, Oracle Database 12c: RAC and Grid Infrastructure
Administrator
• Oracle Certified Expert, Oracle Database 12c Maximum Availability
• Oracle Certified Expert, Oracle Database 12c: Data Guard Administrator
• Oracle Database Administration 2019 Certified Professional
• Oracle Cloud Infrastructure 2019 Certified Architect Associate
• Oracle Cloud Infrastructure Foundations 2020 Certified Associate
• Oracle Autonomous Database Cloud 2019 Certified Specialist
• Oracle Database 12c Administrator Certified Associate
• Oracle Database PL/SQL Developer Certified Professional
• Oracle Database SQL Certified Expert
4
ace.oracle.com
3 membership tiers
Connect: @oracleace
Facebook.com/OracleACEs
aceprogram_ww@oracle.com
500+ technical experts
helping peers globally
The Oracle ACE Program recognizes and
rewards community members for their technical and community
contributions to the Oracle community
Nominate
yourself or someone you know:
ace.oracle.com/nominate
For more details on Oracle ACE Program:
ace.oracle.com
Learn more & connect with the Oracle ACE Program
6
Program Details
Nomination
ACEs in Action Blog
Twitter
Facebook
Linkedin
Email
ace.oracle.com
ace.oracle.com/nominate
blogs.oracle.com/ace
@oracleace
The Oracle ACE Program
bit.ly/OracleACEs
ACEprogram_ww@oracle.com
Oracle Database
#
Backup no OCI
7
Native Backup no OCI
Automatic Backups to Object Storage
You can choose schedule and backup retention
Restore:
You can choose from:
– Lastest
– Timestamp
– SCN
Manual Backups
Will NOT be deleted after database is terminated
Backup and Restore Types
8
9
mv2bucket
(OCI) mv2bucket - Oracle
Managed Bucket Content
Manager (Doc ID 2723911.1)
10
Oracle Database
Backup Cloud Module
Oracle Database Backup
Service - FAQ (Doc ID
1640149.1)
Além dos backups
Flashback
11
Flashback Technology
• Perform queries that return past data
• Perform queries that return metadata that shows a detailed history of changes to the database
• Recover tables or rows to a previous point in time
• Automatically track and archive transactional data changes
• Roll back a transaction and its dependent transactions while the database remains online
12
13
How undo works?
Flashback Features
• Oracle Flashback Query
• Oracle Flashback Version Query
• Oracle Flashback Transaction Query
• Oracle Flashback Transaction
• DBMS_FLASHBACK Package
• Oracle Flashback Data Archive
• Oracle Flashback Table
• Oracle Flashback Drop
• Oracle Flashback Database
14
15
Flashback Query
SELECT AS OF
Requirements:
• FLASHBACK Privilege
Example:
SELECT *
FROM employees
AS OF TIMESTAMP
TO_TIMESTAMP('2004-04-04 09:30:00', 'YYYY-MM-
DD HH:MI:SS')
WHERE last_name = 'Chung';
16
Flashback Version Query
VERSIONS BETWEEN { SCN | TIMESTAMP } start
AND end
Pseudocolumns:
• VERSIONS_STARTSCN
• VERSIONS_STARTTIME
• VERSIONS_ENDSCN
• VERSIONS_ENDTIME
• VERSIONS_XID
• VERSIONS_OPERATION
Requirements:
• FLASHBACK Privilege
Example:
SELECT versions_startscn, versions_starttime,
versions_endscn, versions_endtime,
versions_xid, versions_operation,
last_name, salary
FROM employees
VERSIONS BETWEEN TIMESTAMP
TO_TIMESTAMP('2008-12-18 14:00:00', 'YYYY-
MM-DD HH24:MI:SS')
AND TO_TIMESTAMP('2008-12-18 17:00:00',
'YYYY-MM-DD HH24:MI:SS')
WHERE first_name = 'John';
17
Flashback Transaction Query
View:
FLASHBACK_TRANSACTION_QUERY
Requirements:
• SUPPLEMENTAL LOG DATA;
• SUPPLEMENTAL LOG DATA (PRIMARY KEY)
• SUPPLEMENTAL LOG DATA (FOREIGN KEY)
• SELECT ANY TRANSACTION Privilege OR
FLASHBACK AND READ OR SELECT
Example:
SELECT xid, operation, start_scn, commit_scn,
logon_user, undo_sql
FROM flashback_transaction_query
WHERE xid = HEXTORAW('000200030000002D');
18
DBMS_FLASHBACK
Package:
DBMS_FLASHBACK
Requirements:
• EXECUTE ON DBMS_FLASHBACK Privilege
Example:
Example(Procedures):
ENABLE_AT_TIME
ENABLE_AT_SYSTEM_CHANGE_NUMBER
19
Flashback Transaction
Package:
DBMS_FLASHBACK
Requirements:
• EXECUTE ON DBMS_FLASHBACK Privilege
• ALTER DATABASE ADD SUPPLEMENTAL LOG
DATA (PRIMARY KEY) COLUMNS;
• ALTER DATABASE ADD SUPPLEMENTAL LOG
DATA (FOREIGN KEY) COLUMNS;
Example:
Example(Procedures):
• TRANSACTION_BACKOUT
Views:
• DBA_FLASHBACK_TXN_STATE
• DBA_FLASHBACK_TXN_REPORT
20
Flashback Data Archive
Once the undo information is lost, the view of the past is lost also
Privileges:
• FLASHBACK ARCHIVE ADMINISTER
• CREATE FLASHBACK ARCHIVE
• ALTER FLASHBACK ARCHIVE
• DROP FLASHBACK ARCHIVE
• FLASHBACK ARCHIVE object
Package
• DBMS_FLASHBACK_ARCHIVE
Requirements:
• Name of the first tablespace of the Flashback
Data Archive
• Name of the Flashback Data Archive
• Quota (optional)
• Retention time
• Optimize
Views:
• DBA_FLASHBACK_ARCHIVE
• DBA_FLASHBACK_ARCHIVE_TS
• DBA_FLASHBACK_ARCHIVE_TABLES
21
Flashback Table
Privileges:
• FLASHBACK ANY TABLE OR FLASHBACK
OBJECT
• READ or SELECT, INSERT, DELETE,
and ALTER privileges on the table
Requirements:
• ROW MOVEMENT (rowids)
Example:
FLASHBACK TABLE hr.employees TO
TIMESTAMP TO_TIMESTAMP('2013-10-17 09:30:00',
'YYYY-MM-DD HH:MI:SS');
Can flashback to time, scn and restore point.
Flashback the entire table
22
Flashback Drop
Database parameter: recyclebin.
Do not use UNDO!
The table is only renamed on drop!
Privileges:
• DROP
• READ or SELECT and FLASHBACK
Requirements:
• ALTER SYSTEM SET RECYCLEBIN='on'
SCOPE=SPFILE;
Example:
RESTORE TABLE HR.EMPLOYEES TO BEFORE
DROP;
Views:
• RECYCLEBIN
• USER_RECYCLEBIN
• DBA_RECYCLEBIN
• (SHOW RECYCLEBIN)
Restore a dropped table
23
Flashback Database
Use Flashback logs
Offline operation
Privileges:
• SYSDBA, SYSBACKUP OR SYSDG
View:
• V$FLASHBACK_DATABASE_LOG
Requirements:
• FRA Configured (OMF)
• ARCHIVELOG
• ALTER DATABASE FLASHBACK ON;
Parameter:
• DB_FLASHBACK_RETENTION_TARGET
Flashback the entire database!
Flashback Features per Edition
24
SE2 EE EE-ES DBCS SE DBCS EE DBCS EE-HP DBCS EE-EP ExaCS/CC AT
Flashback Query Y Y Y Y Y Y Y Y Y
Flashback Version Query Y Y Y Y Y Y Y Y Y
Flashback Transaction Query N Y Y N Y Y Y Y Y
Flashback Transaction N Y Y N Y Y Y Y N
DBMS_FLASHBACK N Y Y N Y Y Y Y Y
Flashback Data Archive Y Y Y Y Y Y Y Y N
Flashback Table N Y Y N Y Y Y Y Y
Flashback Drop Y Y Y N Y Y Y Y Y
Flashback Database N Y Y N Y Y Y Y N
SE2: Standard Edition 2, EE: Enterprise Edition, EE-ES: Enterprise Edition on Engineered Systems, DBCS: Database Cloud Service, EE-HP: Enterprise Edition - High
Performance, EE-EP - Enterprise Edition - Extreme Performance, ExaCS: Database Exadata Cloud Service, CC: Cloud@Customer, AT: Autonomous
25
Best Pratices
• UNDO RETENTION
• UNDO TABLESPACE SIZE
• ADD SUPPLEMENTAL LOG DATA AT LEAST
• DOT NOT USE TRIGGERS FOR LOG. USE FLASHBACK DATA ARCHIVE!
• CREATE YOUR OWN INDICES ON FLASBACK DATA ARCHIVE BASE TABLES
• ENABLE RECYCLEBIN
• ENABLE FLASHBACK DATABASE
26
FLASHBACK <> DBPITR
• Media recovery
• Time
• Logical <> Physical
• Redo, Undo and Flashback logs <> backupsets and image copies
?
27
Thank You

More Related Content

Similar to Flashback in OCI

2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...Marcus Vinicius Miguel Pedro
 
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
 
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...NomanKhalid56
 
AUSPC 2013 - Understanding the Five Layers of SharePoint Security
AUSPC 2013 - Understanding the Five Layers of SharePoint SecurityAUSPC 2013 - Understanding the Five Layers of SharePoint Security
AUSPC 2013 - Understanding the Five Layers of SharePoint SecurityMichael Noel
 
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...Lucas Jellema
 
Improving oracle12c security
Improving oracle12c securityImproving oracle12c security
Improving oracle12c securityLaurent Leturgez
 
Improve oracle 12c security
Improve oracle 12c securityImprove oracle 12c security
Improve oracle 12c securityLaurent Leturgez
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)Gustavo Rene Antunez
 
SOUG Day Oracle 21c New Security Features
SOUG Day Oracle 21c New Security FeaturesSOUG Day Oracle 21c New Security Features
SOUG Day Oracle 21c New Security FeaturesStefan Oehrli
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Performance Tuning Corporation
 
Take your database source code and data under control
Take your database source code and data under controlTake your database source code and data under control
Take your database source code and data under controlMarcin Przepiórowski
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierKellyn Pot'Vin-Gorman
 
Oracle-12c Online Training by Quontra Solutions
 Oracle-12c Online Training by Quontra Solutions Oracle-12c Online Training by Quontra Solutions
Oracle-12c Online Training by Quontra SolutionsQuontra Solutions
 
Oracle 12c New Features For Better Performance
Oracle 12c New Features For Better PerformanceOracle 12c New Features For Better Performance
Oracle 12c New Features For Better PerformanceZohar Elkayam
 
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
 

Similar to Flashback in OCI (20)

2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
 
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)
 
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
 
AUSPC 2013 - Understanding the Five Layers of SharePoint Security
AUSPC 2013 - Understanding the Five Layers of SharePoint SecurityAUSPC 2013 - Understanding the Five Layers of SharePoint Security
AUSPC 2013 - Understanding the Five Layers of SharePoint Security
 
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
Triple C - Centralize, Cloudify and Consolidate Dozens of Oracle Databases (O...
 
Improving oracle12c security
Improving oracle12c securityImproving oracle12c security
Improving oracle12c security
 
Improve oracle 12c security
Improve oracle 12c securityImprove oracle 12c security
Improve oracle 12c security
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)
 
SOUG Day Oracle 21c New Security Features
SOUG Day Oracle 21c New Security FeaturesSOUG Day Oracle 21c New Security Features
SOUG Day Oracle 21c New Security Features
 
Copy Data Management for the DBA
Copy Data Management for the DBACopy Data Management for the DBA
Copy Data Management for the DBA
 
Oracle 12c Architecture
Oracle 12c ArchitectureOracle 12c Architecture
Oracle 12c Architecture
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?
 
Take your database source code and data under control
Take your database source code and data under controlTake your database source code and data under control
Take your database source code and data under control
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next Frontier
 
Oracle-12c Online Training by Quontra Solutions
 Oracle-12c Online Training by Quontra Solutions Oracle-12c Online Training by Quontra Solutions
Oracle-12c Online Training by Quontra Solutions
 
Oracle 12c New Features For Better Performance
Oracle 12c New Features For Better PerformanceOracle 12c New Features For Better Performance
Oracle 12c New Features For Better Performance
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
 
Oracle administration classes in mumbai
Oracle administration classes in mumbaiOracle administration classes in mumbai
Oracle administration classes in mumbai
 
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
 

Recently uploaded

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
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
 
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
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
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
 
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
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
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
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
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
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 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
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
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
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
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?
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
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...
 

Flashback in OCI

  • 2. Flashback – Oracle Database no OCI Indo além dos backups Tércio Costa
  • 3. TércioCosta • Cloud Transf & Migration Assoc Manager • Accenture Enkitec Group • 12/08/2023 • Linktree: 3 ace.oracle.com
  • 4. OracleCertifications • Oracle Cloud Data Management 2023 Certified Foundations Associate • Oracle Base Database Services 2023 Certified Professional • Oracle Database Cloud Administrator 2023 Certified Professional • Oracle Cloud Infrastructure 2023 Certified Architect Associate • Oracle Cloud Infrastructure 2023 Certified Foundations Associate • Oracle Cloud Infrastructure 2022 Certified Foundations Associate • Oracle Autonomous Database Cloud 2021 Certified Specialist • Oracle Cloud Infrastructure Foundations 2021 Certified Associate • Oracle Certified Expert, Oracle Database 12c: RAC and Grid Infrastructure Administrator • Oracle Certified Expert, Oracle Database 12c Maximum Availability • Oracle Certified Expert, Oracle Database 12c: Data Guard Administrator • Oracle Database Administration 2019 Certified Professional • Oracle Cloud Infrastructure 2019 Certified Architect Associate • Oracle Cloud Infrastructure Foundations 2020 Certified Associate • Oracle Autonomous Database Cloud 2019 Certified Specialist • Oracle Database 12c Administrator Certified Associate • Oracle Database PL/SQL Developer Certified Professional • Oracle Database SQL Certified Expert 4 ace.oracle.com
  • 5. 3 membership tiers Connect: @oracleace Facebook.com/OracleACEs aceprogram_ww@oracle.com 500+ technical experts helping peers globally The Oracle ACE Program recognizes and rewards community members for their technical and community contributions to the Oracle community Nominate yourself or someone you know: ace.oracle.com/nominate For more details on Oracle ACE Program: ace.oracle.com
  • 6. Learn more & connect with the Oracle ACE Program 6 Program Details Nomination ACEs in Action Blog Twitter Facebook Linkedin Email ace.oracle.com ace.oracle.com/nominate blogs.oracle.com/ace @oracleace The Oracle ACE Program bit.ly/OracleACEs ACEprogram_ww@oracle.com
  • 8. Native Backup no OCI Automatic Backups to Object Storage You can choose schedule and backup retention Restore: You can choose from: – Lastest – Timestamp – SCN Manual Backups Will NOT be deleted after database is terminated Backup and Restore Types 8
  • 9. 9 mv2bucket (OCI) mv2bucket - Oracle Managed Bucket Content Manager (Doc ID 2723911.1)
  • 10. 10 Oracle Database Backup Cloud Module Oracle Database Backup Service - FAQ (Doc ID 1640149.1)
  • 12. Flashback Technology • Perform queries that return past data • Perform queries that return metadata that shows a detailed history of changes to the database • Recover tables or rows to a previous point in time • Automatically track and archive transactional data changes • Roll back a transaction and its dependent transactions while the database remains online 12
  • 14. Flashback Features • Oracle Flashback Query • Oracle Flashback Version Query • Oracle Flashback Transaction Query • Oracle Flashback Transaction • DBMS_FLASHBACK Package • Oracle Flashback Data Archive • Oracle Flashback Table • Oracle Flashback Drop • Oracle Flashback Database 14
  • 15. 15 Flashback Query SELECT AS OF Requirements: • FLASHBACK Privilege Example: SELECT * FROM employees AS OF TIMESTAMP TO_TIMESTAMP('2004-04-04 09:30:00', 'YYYY-MM- DD HH:MI:SS') WHERE last_name = 'Chung';
  • 16. 16 Flashback Version Query VERSIONS BETWEEN { SCN | TIMESTAMP } start AND end Pseudocolumns: • VERSIONS_STARTSCN • VERSIONS_STARTTIME • VERSIONS_ENDSCN • VERSIONS_ENDTIME • VERSIONS_XID • VERSIONS_OPERATION Requirements: • FLASHBACK Privilege Example: SELECT versions_startscn, versions_starttime, versions_endscn, versions_endtime, versions_xid, versions_operation, last_name, salary FROM employees VERSIONS BETWEEN TIMESTAMP TO_TIMESTAMP('2008-12-18 14:00:00', 'YYYY- MM-DD HH24:MI:SS') AND TO_TIMESTAMP('2008-12-18 17:00:00', 'YYYY-MM-DD HH24:MI:SS') WHERE first_name = 'John';
  • 17. 17 Flashback Transaction Query View: FLASHBACK_TRANSACTION_QUERY Requirements: • SUPPLEMENTAL LOG DATA; • SUPPLEMENTAL LOG DATA (PRIMARY KEY) • SUPPLEMENTAL LOG DATA (FOREIGN KEY) • SELECT ANY TRANSACTION Privilege OR FLASHBACK AND READ OR SELECT Example: SELECT xid, operation, start_scn, commit_scn, logon_user, undo_sql FROM flashback_transaction_query WHERE xid = HEXTORAW('000200030000002D');
  • 18. 18 DBMS_FLASHBACK Package: DBMS_FLASHBACK Requirements: • EXECUTE ON DBMS_FLASHBACK Privilege Example: Example(Procedures): ENABLE_AT_TIME ENABLE_AT_SYSTEM_CHANGE_NUMBER
  • 19. 19 Flashback Transaction Package: DBMS_FLASHBACK Requirements: • EXECUTE ON DBMS_FLASHBACK Privilege • ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS; • ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (FOREIGN KEY) COLUMNS; Example: Example(Procedures): • TRANSACTION_BACKOUT Views: • DBA_FLASHBACK_TXN_STATE • DBA_FLASHBACK_TXN_REPORT
  • 20. 20 Flashback Data Archive Once the undo information is lost, the view of the past is lost also Privileges: • FLASHBACK ARCHIVE ADMINISTER • CREATE FLASHBACK ARCHIVE • ALTER FLASHBACK ARCHIVE • DROP FLASHBACK ARCHIVE • FLASHBACK ARCHIVE object Package • DBMS_FLASHBACK_ARCHIVE Requirements: • Name of the first tablespace of the Flashback Data Archive • Name of the Flashback Data Archive • Quota (optional) • Retention time • Optimize Views: • DBA_FLASHBACK_ARCHIVE • DBA_FLASHBACK_ARCHIVE_TS • DBA_FLASHBACK_ARCHIVE_TABLES
  • 21. 21 Flashback Table Privileges: • FLASHBACK ANY TABLE OR FLASHBACK OBJECT • READ or SELECT, INSERT, DELETE, and ALTER privileges on the table Requirements: • ROW MOVEMENT (rowids) Example: FLASHBACK TABLE hr.employees TO TIMESTAMP TO_TIMESTAMP('2013-10-17 09:30:00', 'YYYY-MM-DD HH:MI:SS'); Can flashback to time, scn and restore point. Flashback the entire table
  • 22. 22 Flashback Drop Database parameter: recyclebin. Do not use UNDO! The table is only renamed on drop! Privileges: • DROP • READ or SELECT and FLASHBACK Requirements: • ALTER SYSTEM SET RECYCLEBIN='on' SCOPE=SPFILE; Example: RESTORE TABLE HR.EMPLOYEES TO BEFORE DROP; Views: • RECYCLEBIN • USER_RECYCLEBIN • DBA_RECYCLEBIN • (SHOW RECYCLEBIN) Restore a dropped table
  • 23. 23 Flashback Database Use Flashback logs Offline operation Privileges: • SYSDBA, SYSBACKUP OR SYSDG View: • V$FLASHBACK_DATABASE_LOG Requirements: • FRA Configured (OMF) • ARCHIVELOG • ALTER DATABASE FLASHBACK ON; Parameter: • DB_FLASHBACK_RETENTION_TARGET Flashback the entire database!
  • 24. Flashback Features per Edition 24 SE2 EE EE-ES DBCS SE DBCS EE DBCS EE-HP DBCS EE-EP ExaCS/CC AT Flashback Query Y Y Y Y Y Y Y Y Y Flashback Version Query Y Y Y Y Y Y Y Y Y Flashback Transaction Query N Y Y N Y Y Y Y Y Flashback Transaction N Y Y N Y Y Y Y N DBMS_FLASHBACK N Y Y N Y Y Y Y Y Flashback Data Archive Y Y Y Y Y Y Y Y N Flashback Table N Y Y N Y Y Y Y Y Flashback Drop Y Y Y N Y Y Y Y Y Flashback Database N Y Y N Y Y Y Y N SE2: Standard Edition 2, EE: Enterprise Edition, EE-ES: Enterprise Edition on Engineered Systems, DBCS: Database Cloud Service, EE-HP: Enterprise Edition - High Performance, EE-EP - Enterprise Edition - Extreme Performance, ExaCS: Database Exadata Cloud Service, CC: Cloud@Customer, AT: Autonomous
  • 25. 25 Best Pratices • UNDO RETENTION • UNDO TABLESPACE SIZE • ADD SUPPLEMENTAL LOG DATA AT LEAST • DOT NOT USE TRIGGERS FOR LOG. USE FLASHBACK DATA ARCHIVE! • CREATE YOUR OWN INDICES ON FLASBACK DATA ARCHIVE BASE TABLES • ENABLE RECYCLEBIN • ENABLE FLASHBACK DATABASE
  • 26. 26 FLASHBACK <> DBPITR • Media recovery • Time • Logical <> Physical • Redo, Undo and Flashback logs <> backupsets and image copies
  • 27. ? 27

Editor's Notes

  1. Slack channels- start with one for all and 3 level channels (ACE Program, Associate, Pro, ACED)
  2. Ensure the titles are not duplicated. Please check the set of best practices.
  3. Ensure the titles are not duplicated. Please check the set of best practices.
  4. Ensure the titles are not duplicated. Please check the set of best practices.
  5. Ensure the titles are not duplicated. Please check the set of best practices.
  6. Ensure the titles are not duplicated. Please check the set of best practices.
  7. Ensure the titles are not duplicated. Please check the set of best practices.
  8. Ensure the titles are not duplicated. Please check the set of best practices.
  9. Ensure the titles are not duplicated. Please check the set of best practices.
  10. Ensure the titles are not duplicated. Please check the set of best practices.
  11. Ensure the titles are not duplicated. Please check the set of best practices.
  12. Ensure the titles are not duplicated. Please check the set of best practices.
  13. Ensure the titles are not duplicated. Please check the set of best practices.
  14. Ensure the titles are not duplicated. Please check the set of best practices.
  15. Ensure the titles are not duplicated. Please check the set of best practices.