SlideShare a Scribd company logo
1 of 7
Rabobank Nederland
               B&E IS Oracle ECO/Koppelingen




               Create Guaranteed Restore Point



Versie,Datum   ,07 March 2013
     Project




               Coöperatieve Centrale Raiffeisen Boerenleenbank B.A.
               Ingeschreven bij de KvK onder nummer 3004.6259
Colofon

 Versie,Datum ,07 March 2013


Onze referentie AMP/


      Namens D’ Alfonso, GFM(Gino


       Auteur


       Project




    Document Create Guaranteed Restore point.docx



  Contactadres




                 ©Rabobank Nederland, 2013


                 Niets uit deze uitgave mag worden verveelvoudigd en/of openbaar gemaakt door middel van druk, fotokopie of op welke
                 andere wijze dan daaronder mede begrepen gehele of gedeeltelijke bewerking van het werk, zonder voorafgaande
                 toestemming van Rabobank Nederland.


                 No part of this publication may be reproduced in any form by print, photo print, microfilm or any other means without
                 written permission byRabobank Nederland.
Inhoudsopgave



       1. Create Guaranteed Restore Point Using Sql   1
       2. Flashback Database using Sql                2
       3. Rman To Create Guaranteed Restore Point      3
          3.1 Flashback Database Using Rman            4




R
1. Create Guaranteed Restore Point using sql
      A guaranteed restore point will never go out of the flashback area and
      does not use the parameter db_flashback _retention_target.
      It will never be deleted even if there is space pressure in the flashback area.
      You must manually delete the guaranteed restore point to reclaim space in the
      flashback area.

      To create a guaranteed restore point, you must have the
      SYSDBA system privileges.

      We create a guaranteed restore point only if it is requested in the change.
      If so we do this off course before we start the change


      Connect to the database as sysdba

      SQL> conn / as sysdba

      Now we create the restore poimt.

      SQL>create restore point C000365807 guarantee flashback database;
      Restore point created.

      Check to see if the restore pint is created.

      SQL>select NAME,GUARANTEE_FLASHBACK_DATABASE,SCN from v$restore_point;

      NAME           GUARANTEE                      SCN
      ---------- --------- ------------------------
      C000365807             YES            21093820677


      Now you ready to do you change.




R     Create Guaranteed Restore Point,                                                  1
2. Flashback Database Using Sql
      If you need to rollback the change you can now use the restore point to flashback the database
      as it was before the change.
      You must shutdown the database and start 1 instance in the mount fase.

      Shutdown the database.

      SQL> !srvctl stop database -d ODBA6_01

      Start 1 instance in the mount fase.

      SQL> !srvctl start instance -d ODBA6_01 -i ODBA61 -o mount

      Now you are ready to flashback the database.

      SQL> flashback database to restore point C000365807;
      Flashback complete.

      We have to open the database with the resetlogs option.

      SQL> alter database open resetlogs;

      Now you can start the other instance’s

      SQL !srvctl start instance -d ODBA6_01 -i ODBA62

      SQL!srvctl status database -d odba6_01
      Instance ODBA61 is running on node oesv0044
      Instance ODBA62 is running on node oesv0045

      Now we have to drop the restore point as this is a guaranteed restore point
      you must delete or otherwise it will exist forever.

      SQL> drop restore point C000365807;
      Restore point dropped.




R     Create Guaranteed Restore Point,                                                    2
3. Rman To Create Guaranteed Restore Point.
        You can also use rman for the whole process if you want.

        RMAN> connect target /
        connected to target database: ODBA6 (DBID=459400142)

        RMAN> create restore point C000365807guarantee flashback database;
        using target database control file instead of recovery catalog

        RMAN> list restore point all;
        SCN               RSP Time                Type         Time                Name
        ---------------- ------------------- ---------- ------------------- ----------
        21093823902                             GUARANTEED 06-03-2013:14:37:46 C000365807




    3.1. Flashback Database Using Rman

        If you need to rollback the change you can now use the restore point to flashback the database
        as it was before the change.
        You must shutdown the database and start 1 instance in the mount fase.

        Shutdown the database

        $ srvctl stop database -d ODBA6_01

        Start 1 instance

        $srvctl start instance -d ODBA6_01 -i ODBA61 -o mount

        Now we going to Rman to flashback the database.

        RMAN> connect target /

        RMAN> flashback database to restore point C000365807;
        Starting flashback at 04-MAR-13
        using target database control file instead of recovery catalog
        allocated channel: ORA_DISK_1
        channel ORA_DISK_1: SID=11instance=ODBA61 device type=DISK
        starting media recovery
        media recovery complete, elapsed time: 00:00:04
        Finished flashback at 04-MAR-13

        RMAN> alter database open resetlogs;
        database opened




R       Create Guaranteed Restore Point,                                                    3
RMAN> drop restore point C000365807;
    Now you can start the other instance’s

    SQL !srvctl start instance -d ODBA6_01 -i ODBA62

    SQL!srvctl status database -d odba6_01
    Instance ODBA61 is running on node oesv0044
    Instance ODBA62 is running on node oesv0045




R   Create Guaranteed Restore Point,                   4

More Related Content

What's hot

Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12cuzzal basak
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
ConFoo  MySQL Replication Evolution : From Simple to Group ReplicationConFoo  MySQL Replication Evolution : From Simple to Group Replication
ConFoo MySQL Replication Evolution : From Simple to Group ReplicationDave Stokes
 
Debunking myths about_redo_ppt
Debunking myths about_redo_pptDebunking myths about_redo_ppt
Debunking myths about_redo_pptRiyaj Shamsudeen
 
Optimizer Cost Model MySQL 5.7
Optimizer Cost Model MySQL 5.7Optimizer Cost Model MySQL 5.7
Optimizer Cost Model MySQL 5.7I Goo Lee
 
Oracle Flashback Query 3
Oracle Flashback Query 3Oracle Flashback Query 3
Oracle Flashback Query 3grogers1124
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupArun Sharma
 
Dataguard physical stand by setup
Dataguard physical stand by setupDataguard physical stand by setup
Dataguard physical stand by setupsmajeed1
 
Dataguard fsfo-implementation
Dataguard fsfo-implementationDataguard fsfo-implementation
Dataguard fsfo-implementationمسلم islam
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Biju Thomas
 
Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2nesmaddy
 
Puppet: Orchestration framework?
Puppet: Orchestration framework?Puppet: Orchestration framework?
Puppet: Orchestration framework?bodepd
 
12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan DirectivesFranck Pachot
 
Part1 create sequence,dual table
Part1 create sequence,dual tablePart1 create sequence,dual table
Part1 create sequence,dual tableGirija Muscut
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overviewaguswahyudi09
 
Things you should know about Oracle truncate
Things you should know about Oracle truncateThings you should know about Oracle truncate
Things you should know about Oracle truncateKazuhiro Takahashi
 
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESLudovico Caldara
 

What's hot (20)

Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
ConFoo  MySQL Replication Evolution : From Simple to Group ReplicationConFoo  MySQL Replication Evolution : From Simple to Group Replication
ConFoo MySQL Replication Evolution : From Simple to Group Replication
 
Debunking myths about_redo_ppt
Debunking myths about_redo_pptDebunking myths about_redo_ppt
Debunking myths about_redo_ppt
 
Oracle backup
Oracle backupOracle backup
Oracle backup
 
Optimizer Cost Model MySQL 5.7
Optimizer Cost Model MySQL 5.7Optimizer Cost Model MySQL 5.7
Optimizer Cost Model MySQL 5.7
 
Cdc
CdcCdc
Cdc
 
Oracle Flashback Query 3
Oracle Flashback Query 3Oracle Flashback Query 3
Oracle Flashback Query 3
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Dataguard physical stand by setup
Dataguard physical stand by setupDataguard physical stand by setup
Dataguard physical stand by setup
 
Dataguard fsfo-implementation
Dataguard fsfo-implementationDataguard fsfo-implementation
Dataguard fsfo-implementation
 
1 z0 052
1 z0 0521 z0 052
1 z0 052
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
 
Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2Steps for upgrading the database to 10g release 2
Steps for upgrading the database to 10g release 2
 
Puppet: Orchestration framework?
Puppet: Orchestration framework?Puppet: Orchestration framework?
Puppet: Orchestration framework?
 
12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan Directives
 
Part1 create sequence,dual table
Part1 create sequence,dual tablePart1 create sequence,dual table
Part1 create sequence,dual table
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
Things you should know about Oracle truncate
Things you should know about Oracle truncateThings you should know about Oracle truncate
Things you should know about Oracle truncate
 
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIESORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
 

Viewers also liked

Viewers also liked (17)

Evaluation Q3 powerpoint
Evaluation Q3 powerpointEvaluation Q3 powerpoint
Evaluation Q3 powerpoint
 
Evaluation Q4 powerpoint
Evaluation Q4 powerpointEvaluation Q4 powerpoint
Evaluation Q4 powerpoint
 
Greenbeard backstage
Greenbeard backstageGreenbeard backstage
Greenbeard backstage
 
Truly rich club bo sanchez
Truly rich club bo sanchezTruly rich club bo sanchez
Truly rich club bo sanchez
 
Greenbeard
GreenbeardGreenbeard
Greenbeard
 
Oracle Connection Manager
Oracle Connection ManagerOracle Connection Manager
Oracle Connection Manager
 
rtsp
rtsprtsp
rtsp
 
Revised q3
Revised q3Revised q3
Revised q3
 
Q3 powerpoint
Q3 powerpointQ3 powerpoint
Q3 powerpoint
 
Clone database using_active_duplicate
Clone database using_active_duplicateClone database using_active_duplicate
Clone database using_active_duplicate
 
Q2 powerpoint
Q2 powerpointQ2 powerpoint
Q2 powerpoint
 
Truly rich club
Truly rich clubTruly rich club
Truly rich club
 
Powerpoint
PowerpointPowerpoint
Powerpoint
 
Ofw guide in investing for newbies
Ofw guide in investing for newbiesOfw guide in investing for newbies
Ofw guide in investing for newbies
 
Odv oracle customer_demo
Odv oracle customer_demoOdv oracle customer_demo
Odv oracle customer_demo
 
Kritikal book metopel for merge123
Kritikal book metopel   for merge123Kritikal book metopel   for merge123
Kritikal book metopel for merge123
 
Tde oracle customer_demo
Tde oracle customer_demoTde oracle customer_demo
Tde oracle customer_demo
 

Similar to Create guaranteed restore point

还原Oracle中真实的cache recovery
还原Oracle中真实的cache recovery还原Oracle中真实的cache recovery
还原Oracle中真实的cache recoverymaclean liu
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezInsight Technology, Inc.
 
Oracle Database Backup Cloud Service
Oracle Database Backup Cloud ServiceOracle Database Backup Cloud Service
Oracle Database Backup Cloud ServiceMarketingArrowECS_CZ
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in DataguardJason Arneil
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2Osama Mustafa
 
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups Niklas Iveslatt
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Raheel Syed
 
Oracle10g New Features I
Oracle10g New Features IOracle10g New Features I
Oracle10g New Features IDenish Patel
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different hostOsama Mustafa
 
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfClone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfAlireza Kamrani
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission processK Kumar Guduru
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)Satishbabu Gunukula
 
LinuxFest Northwest 2022 - The Evolution of a MySQL Database System
LinuxFest Northwest 2022 - The Evolution of a MySQL Database SystemLinuxFest Northwest 2022 - The Evolution of a MySQL Database System
LinuxFest Northwest 2022 - The Evolution of a MySQL Database SystemFrederic Descamps
 

Similar to Create guaranteed restore point (20)

还原Oracle中真实的cache recovery
还原Oracle中真实的cache recovery还原Oracle中真实的cache recovery
还原Oracle中真实的cache recovery
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
 
Oracle Database Backup Cloud Service
Oracle Database Backup Cloud ServiceOracle Database Backup Cloud Service
Oracle Database Backup Cloud Service
 
Missing redo logs in oracle
Missing redo logs in oracleMissing redo logs in oracle
Missing redo logs in oracle
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2
 
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
Oracle Open World Presentation - Oracle RMAN Best Practices for Cloud Backups
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
 
oracle dba
oracle dbaoracle dba
oracle dba
 
Log shipping pdf
Log shipping pdfLog shipping pdf
Log shipping pdf
 
Database upgradation
Database upgradationDatabase upgradation
Database upgradation
 
Oracle10g New Features I
Oracle10g New Features IOracle10g New Features I
Oracle10g New Features I
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 
Les 07 rman_rec
Les 07 rman_recLes 07 rman_rec
Les 07 rman_rec
 
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfClone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission process
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
Backup DB to Cloud and Restore
Backup DB to Cloud and RestoreBackup DB to Cloud and Restore
Backup DB to Cloud and Restore
 
LinuxFest Northwest 2022 - The Evolution of a MySQL Database System
LinuxFest Northwest 2022 - The Evolution of a MySQL Database SystemLinuxFest Northwest 2022 - The Evolution of a MySQL Database System
LinuxFest Northwest 2022 - The Evolution of a MySQL Database System
 
less08.ppt
less08.pptless08.ppt
less08.ppt
 

Create guaranteed restore point

  • 1. Rabobank Nederland B&E IS Oracle ECO/Koppelingen Create Guaranteed Restore Point Versie,Datum ,07 March 2013 Project Coöperatieve Centrale Raiffeisen Boerenleenbank B.A. Ingeschreven bij de KvK onder nummer 3004.6259
  • 2. Colofon Versie,Datum ,07 March 2013 Onze referentie AMP/ Namens D’ Alfonso, GFM(Gino Auteur Project Document Create Guaranteed Restore point.docx Contactadres ©Rabobank Nederland, 2013 Niets uit deze uitgave mag worden verveelvoudigd en/of openbaar gemaakt door middel van druk, fotokopie of op welke andere wijze dan daaronder mede begrepen gehele of gedeeltelijke bewerking van het werk, zonder voorafgaande toestemming van Rabobank Nederland. No part of this publication may be reproduced in any form by print, photo print, microfilm or any other means without written permission byRabobank Nederland.
  • 3. Inhoudsopgave 1. Create Guaranteed Restore Point Using Sql 1 2. Flashback Database using Sql 2 3. Rman To Create Guaranteed Restore Point 3 3.1 Flashback Database Using Rman 4 R
  • 4. 1. Create Guaranteed Restore Point using sql A guaranteed restore point will never go out of the flashback area and does not use the parameter db_flashback _retention_target. It will never be deleted even if there is space pressure in the flashback area. You must manually delete the guaranteed restore point to reclaim space in the flashback area. To create a guaranteed restore point, you must have the SYSDBA system privileges. We create a guaranteed restore point only if it is requested in the change. If so we do this off course before we start the change Connect to the database as sysdba SQL> conn / as sysdba Now we create the restore poimt. SQL>create restore point C000365807 guarantee flashback database; Restore point created. Check to see if the restore pint is created. SQL>select NAME,GUARANTEE_FLASHBACK_DATABASE,SCN from v$restore_point; NAME GUARANTEE SCN ---------- --------- ------------------------ C000365807 YES 21093820677 Now you ready to do you change. R Create Guaranteed Restore Point, 1
  • 5. 2. Flashback Database Using Sql If you need to rollback the change you can now use the restore point to flashback the database as it was before the change. You must shutdown the database and start 1 instance in the mount fase. Shutdown the database. SQL> !srvctl stop database -d ODBA6_01 Start 1 instance in the mount fase. SQL> !srvctl start instance -d ODBA6_01 -i ODBA61 -o mount Now you are ready to flashback the database. SQL> flashback database to restore point C000365807; Flashback complete. We have to open the database with the resetlogs option. SQL> alter database open resetlogs; Now you can start the other instance’s SQL !srvctl start instance -d ODBA6_01 -i ODBA62 SQL!srvctl status database -d odba6_01 Instance ODBA61 is running on node oesv0044 Instance ODBA62 is running on node oesv0045 Now we have to drop the restore point as this is a guaranteed restore point you must delete or otherwise it will exist forever. SQL> drop restore point C000365807; Restore point dropped. R Create Guaranteed Restore Point, 2
  • 6. 3. Rman To Create Guaranteed Restore Point. You can also use rman for the whole process if you want. RMAN> connect target / connected to target database: ODBA6 (DBID=459400142) RMAN> create restore point C000365807guarantee flashback database; using target database control file instead of recovery catalog RMAN> list restore point all; SCN RSP Time Type Time Name ---------------- ------------------- ---------- ------------------- ---------- 21093823902 GUARANTEED 06-03-2013:14:37:46 C000365807 3.1. Flashback Database Using Rman If you need to rollback the change you can now use the restore point to flashback the database as it was before the change. You must shutdown the database and start 1 instance in the mount fase. Shutdown the database $ srvctl stop database -d ODBA6_01 Start 1 instance $srvctl start instance -d ODBA6_01 -i ODBA61 -o mount Now we going to Rman to flashback the database. RMAN> connect target / RMAN> flashback database to restore point C000365807; Starting flashback at 04-MAR-13 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=11instance=ODBA61 device type=DISK starting media recovery media recovery complete, elapsed time: 00:00:04 Finished flashback at 04-MAR-13 RMAN> alter database open resetlogs; database opened R Create Guaranteed Restore Point, 3
  • 7. RMAN> drop restore point C000365807; Now you can start the other instance’s SQL !srvctl start instance -d ODBA6_01 -i ODBA62 SQL!srvctl status database -d odba6_01 Instance ODBA61 is running on node oesv0044 Instance ODBA62 is running on node oesv0045 R Create Guaranteed Restore Point, 4