SlideShare uma empresa Scribd logo
1 de 53
Baixar para ler offline
1/53
High Availability Boot Camp:
RMAN - Eliminate the Mystery

Eng. Nelson Calero, OCP
UYOUG



                               2/53
High Availability Boot Camp:
                             RMAN - Eliminate the Mystery

About me:


     http://www.linkedin.com/in/ncalero
     Working with Oracle tools and Linux environments since 1996
     DBA Oracle (since 2001) & MySQL (since 2005)
     Oracle University Instructor since 2011
     Co-founder and President of the Oracle user Group of Uruguay
     (UYOUG) since 2009
     Computer Engineer. OCP DBA 10g


                                                                    3/53
Uruguay




          4/53
AGENDA


•   Introduction
•   RMAN Concepts
•   Backups
•   Recovery
•   Integrity validation
•   Monitoring
•   Maintenance
•   When errors
•   Optimization
•   Examples – time permitted

                                5/53
What is RMAN?


  Utility with many features to use in backup and recovery tasks.

  Included for free with Oracle database installation ($ORACLE_HOME/bin)

  Command line interface.
    
       some functionality available inside Enterprise Manager

  Written in Pro * C, executes PL / SQL

  Since Oracle 8 – 1997

  Documented bugs in all versions: less than 1283, more than 170.

  Known RMAN Performance Problems (MOS note 247611.1)
    
       32 bugs, all fixed by 11g (some even before)


                                                                       6/53
Best practices of backup & recovery Today?

    Some. Those using RMAN

    More technology is needed apart from RMAN in a DR/HA policy:
      • Datapump
      • Flashback
      • Secure backup
      • ….

   RMAN is one solution among 20 from Oracle for unplanned downtime, used
   for site and storage failures, and data corruption
http://docs.oracle.com/cd/E11882_01/server.112/e17157/planned.htm#CIHDCJCE
                                                                             7/53
Backups without Rman (user managed)

Consistent (cold):
               cp path/* dest-bkp

Inconsistent (hot):
               alter tablespace nnn begin backup;
               cp path/datafile.dbf destbkp
               alter tablespace nnn end backup;
               cp /archivelogs-path/* dest-bkp




                                                            8/53
RMAN backups


Consistent (cold):
          rman target /
          startup mount;
          backup database plus archivelog;

Inconsistent (hot):
          rman target /
          backup database plus archivelog;




                                             9/53
RMAN Backup - files

• Which files were generated by a backup?
    – list backup;

• Which files are copied?
    –   datafiles
    –   controlfiles
    –   archived logs
    –   spfile

• Which files are not copied?
    –   temporary files (tempfiles) and online redo logs (not needed for recovery)
    –   files from external tabes or bfiles
    –   database binary files
    –   database network configuration files


                                                                                     10/53
RMAN backups


Differences between RMAN and user-managed backups:

   – RMAN sets the rules, but is flexible
   – RMAN commands implement sophisticated tasks, which lead to less
     code to be written to perform the same tasks, when possible.
   – RMAN has many functionalities
   – RMAN requires training to use effectively




                                                                   11/53
RMAN Concepts

– Device
– Channel
– Backupset and Copies
    • Backup pieces
    • Status: expired/available
– Retention policy
    • Obsolete
– Incarnation


                                        12/53
RMAN Configuration

RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters for database with db_unique_name XE are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE 
; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 
'/u01/app/oracle/product/11.2.0/xe/dbs/snapcf_XE.f'; # default

                                                                                    13/53
RMAN Configuration

Per target (in controlfile or Catalog):
 
    Device
 
    Parallelism
 
    Retention Policy
 
    Backup optimization
 
    Encryption

If using Fast Recovery Area, database parameters:
   
     DB_RECOVERY_FILE_DEST_SIZE ( DB_RECOVERY_FILE_DEST is set)

If not using a recovery Catalog, set according to your policy
   
     CONTROL_FILE_RECORD_KEEP_TIME

NOTE: Since 11.2.0.3 destination can be ASM Cluster File System (ACFS)

                                                                         14/53
Back to RMAN Backups

See what has been backed up:
  oracle@oraculo:~> rman
  Recovery Manager: Release 11.2.0.2.0 - Production on Fri Feb 17 11:00:13 2012
  Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  RMAN> connect target
  connected to target database: ENT11G (DBID=410442782)

  RMAN> list backup summary;
  List of Backups
  ===============
  Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
  ------- -- -- - ----------- --------------- ------- ------- ---------- ---
  1       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122058
  2       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122238
  3       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122421
  4       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122440




                                                                                              15/53
RMAN Backups
Details:

  RMAN> list backup tag TAG20120213T122058;               
  using target database control file instead of recovery catalog

  List of Backup Sets
  ===================
  BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  ------- ---- -- ---------- ----------- ------------ ---------------
  1       Full    1.03M      DISK        00:00:01     13-FEB-12      
       BP Key: 1   Status: AVAILABLE  Compressed: NO  Tag: TAG20120213T122058
       Piece Name: 
/u01/app/oracle/fast_recovery_area/ENT11G/backupset/2012_02_13/o1_mf_nnndf_TAG20120213T122058_7ml
72cnz_.bkp

    List of Datafiles in backup set 1
    File LV Type Ckp SCN    Ckp Time  Name
    ---- -- ---- ---------- --------- ----
    5       Full 1044143    13-FEB-12 /u02/oradata/ent11g/prueba.dbf




                                                                                           16/53
RMAN Backups
TIP - change date format inside RMAN
  [oracle@oraculo ~]$ export NLS_DATE_FORMAT='DD/MON/YYYY HH24:MI:SS'
  [oracle@oraculo ~]$ rman target /
  Recovery Manager: Release 10.2.0.3.0 - Production on Wed Dec 21 20:31:46 2011
  Copyright (c) 1982, 2005, Oracle.  All rights reserved.
  connected to target database: Ent11g (DBID=943234298)

  RMAN> list backup summary tag bkp_prod_121511060003;
  using target database control file instead of recovery catalog

  List of Backups
  ===============
  Key     TY LV S Device Type Completion Time      #Pieces #Copies Compressed Tag
  ------- -- -- - ----------- -------------------- ------- ------- ---------- ---
  1       B  F  A DISK        13/FEB/2012 03:21:03 1       1       NO         TAG20120213T122058
  2       B  F  A DISK        13/FEB/2012 03:25:42 1       1       NO         TAG20120213T122238
  3       B  F  A DISK        13/FEB/2012 03:29:28 1       1       NO         TAG20120213T122421




                                                                                           17/53
RMAN backups


Using Oracle XE:

   $ORACLE_HOME/config/scripts/
     • backup.sh
     • restore.sh




                                         18/53
RMAN backups - Incremental


  
      Differential: copy only the changes since the last incremental backup
  
      Cumulative: copy all changes from the last full backup.

Incremental backups are differential by default

To restore a database one of this is needed:
 
    all differential backups since the last full backup, or
 
    last cumulative backup following the last full backup



                                                                              19/53
RMAN incremental backups

Examples


    First incremental backup must be complete, and is identified with the level 0.
          backup incremental level 0 tablespace users; 


    Next is level 1. If no level 0 backup exists,it creates a level 0 backup:
          backup incremental level 1 tablespace users;


    Cumulative backup:
          backup incremental level 1 cumulative tablespace users;




                                                                                20/53
RMAN incremental backups

(more)


    Incremental updated Backups (or merged)
     apply an incremental backup to the last full backup to get a new full backup

  run {
    backup incremental level 1 for recover of copy with tag 'BKP_L0' database;
    recover copy of database with tag 'BKP_L0';
  }


    requires more disk space


    to have more than redundancy 1, add UNTIL TIME – MOS note 745798.1



                                                                                    21/53
RMAN space usage

Built in functionality, no need to enable
  
       NULL BLOCK COMPRESSION (8i) - does not copy empty blocks never used
          (ie: unformatted above High Water Mark (HWM))
  
       UNUSED BLOCK COMPRESSION (10.2) - does not copy unused blocks
          (ie: empty under HWM)
  
       UNDO OPTIMIZATION (11.1) – does not copy undo segments not needed


Must be explicitly enabled
 – BINARY COMPRESSION (10g)
      Compress data before sending it to the destination. Supports incremental backups.
      Algorithm can be changed using the Advanced compression option (11.2)
                                                                                  22/53
NULL COMPRESSION in action

oracle@oraculo:~> du -hs oradata/XE
    1.5G    .oradata/XE

oracle@oraculo:~> ls -lrt $ORACLE_BASE/flash_recovery_area/XE/backupset/2010_06_03/
total 1176688
-rw-r----- 1 oracle dba 1203748864 2010-06-03 00:57 o1_mf_nnndf_TAG.._60g9xpkz_.bkp


Free space on the database:

       01:41:16 XE> select sum(bytes)/1024/1024 mb from dba_free_space;
                 MB
           ----------
             135.8125




                                                                              23/53
RMAN COMPRESSION

Two ways to enable:

backup as compressed backupset ...
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET;


Files generated:
-rw-r----- 1 oracle dba 1203986432 2010-06-03 01:31 o1_mf_nnndf_TAG.._60gcywnl_.bkp
-rw-r----- 1 oracle dba  235642880 2010-06-03 01:38 o1_mf_nnndf_TAG.._60gdd066_.bkp



Almost 1GB saved and more CPU used


                                                                              24/53
RMAN COMPRESSION – XE

Can we configure compression as the default backup method?

    rman target /
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET; 
    exit;
   ./backup.sh

       -rw-r----- 1 oracle dba 1203748864 o1_mf_nnndf_TAG.._60g9xpkz_.bkp


    rman target /
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET; 
    exit
   ./backup.sh

       -rw-r----- 1 oracle dba 120398643 o1_mf_nnndf_TAG.._60gcywnl_.bkp


                                                                            25/53
RMAN COMPRESSION – XE

backup.sh code:
           echo "Backup in progress..."
           rman target / >> $rman_backup << EOF
              set echo on;
              shutdown immediate;
              startup mount;
              configure retention policy to redundancy 2;
              configure controlfile autobackup format for device type disk clear;
              configure controlfile autobackup on;
              sql "create pfile=''$rman_spfile2init'' from spfile";
              backup as backupset device type disk database;
              configure controlfile autobackup off;
              alter database open;
              delete noprompt obsolete;




                                                                              26/53
RMAN COMPRESSION – XE

backup.sh needs to be modified to enable compression:
           echo "Backup in progress..."
           rman target / >> $rman_backup << EOF
              set echo on;
              shutdown immediate;
              startup mount;
              configure retention policy to redundancy 2;
              configure controlfile autobackup format for device type disk clear;
              configure controlfile autobackup on;
              sql "create pfile=''$rman_spfile2init'' from spfile";
              backup as compressed backupset device type disk database;
              configure controlfile autobackup off;
              alter database open;
              delete noprompt obsolete;




                                                                              27/53
RMAN COMPRESSION – XE

Really necessary?

   – maximum amount of user data is 11G in XE 11.2 (was 4Gb in 10.2)

   – backup.sh uses redundancy 2




                                                                   28/53
Corruption detection


Backup validates block checksum when writing (physical) by default


To detect logical corruption while taking the backup:
    – backup blocks all check logical database;


To validate already taken backups, and their availability for the restore operation
    – restore validate database;
    – restore validate controlfile to 'c:tempcontrol01.ctl';
    – restore validate archivelog from sequence N1 until sequence N2;




                                                                                      29/53
Validation – integrity and corruption


VALIDATE command (11.1) – independent of backup/recovery

        validate database;
        VALIDATE BACKUPSET 5;
        validate datafile 3;
        validate datafile 3 BLOCK 5 TO 20;


If some detected, see which ones:

        select * from V$DATABASE_BLOCK_CORRUPTION;

NOTE: This view is also populated by other Oracle process (11.2)


                                                                   30/53
Corruption prevention

To prevent and detect corruption, these initialization parameters must be used:

    – DB_BLOCK_CHECKING – in memory checks. Overhead up to 10%.
                          OFF / LOW / MEDIUM / FULL
    – DB_BLOCK_CHECKSUM – calculated and stored checksum of data and logs.
                           Overhead up to 5%. OFF / TYPICAL / FULL
    – DB_LOST_WRITE_PROTECT – detect lost writes on standby.
                               NONE / TYPICAL / FULL

    – DB_ULTRA_SAFE: set the proper combination of the previous three.
       • NONE: no changes are made
       • DATA_ONLY:         MEDIUM / FULL / TYPICAL
       • DATA_AND_INDEX: FULL / FULL / TYPICAL
                                                                                  31/53
Recovery scenarios
basic – 2:
     – complete and tablespace

advanced – 12:
    – Recovering After the Loss of Datafiles: Scenarios
    – Recovering Through an Added Datafile with a Backup Control File: Scenario
    – Re-Creating Datafiles When Backups Are Unavailable: Scenario
    – Recovering Through RESETLOGS with Created Control File: Scenario
    – Recovering NOLOGGING Tables and Indexes: Scenario
    – Recovering Read-Only Tablespaces with a Backup Control File: Scenario
    – Recovering Transportable Tablespaces: Scenario
    – Recovering After the Loss of Online Redo Log Files: Scenarios
    – Recovering After the Loss of Archived Redo Log Files: Scenario
    – Recovering from a Dropped Table: Scenario
    – Performing Media Recovery in a Distributed Environment: Scenario


                                                                                  32/53
Basic recovery examples


Recover the last full backup, using the existing controlfile
      RMAN> STARTUP MOUNT; 
      RMAN> RESTORE DATABASE;
      RMAN> RECOVER DATABASE;
      RMAN> ALTER DATABASE OPEN;

Recover only one tablespace in an open instance
      RMAN> SQL 'ALTER TABLESPACE mytbs OFFLINE IMMEDIATE';
      RMAN> RESTORE TABLESPACE mytbs;
      RMAN> RECOVER TABLESPACE mytbs;
      RMAN> SQL 'ALTER TABLESPACE mytbs ONLINE';




                                                               33/53
Summary of RMAN benefits
– Incremental backups
– automated recovery
    • block media recovery
– compression
    • skipping blocks and binary
– encryption
– backup history and catalog
– logical and physical corruption detection
– backup optimization
– improved and new features in new releases
    • 11 in version 11.2, 21 in version 11.1 (from Backup and Recovery User's
      Guide, “What's New in Backup and Recovery?”)
                                                                           34/53
using RMAN for the first time

    – Learn RMAN functionality and usage

    – Practice recovery scenarios


NOTE: RMAN generated files are not portable between platforms.
   – Intel 32-bit (x86) backup cannot be restored on Intel 64-bit (x86_64).
    – CONVERT DATABASE command can be used over platforms which share
      endian format.




                                                                              35/53
using RMAN for the first time

Define the backup policy
    – acceptable level of service
        • time frame for implementation and execution
        • disk consumption and CPU usage to define using of compression
    – retention
    – destination
    – file names, size limits
    – parallelism
    – use of encryption


                                                                          36/53
using RMAN for the first time

Create complete scripts
    – Configuration can be used to recreate the database
    – Delete obsolete backups
    – List catalog (documentation)
    – Validate logical integrity
    – Detect errors in the execution of the script and notify operators

Test recovery periodically
    – automated to validate health of backup media
    – manually to practice different recovery scenarios
         • one team to break, one to recover



                                                                          37/53
Monitoring RMAN operations


    Running tasks: V$SESSION_LONGOPS
         SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK,
                ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE"
         FROM   V$SESSION_LONGOPS
         WHERE  OPNAME LIKE 'RMAN%'
         AND    OPNAME NOT LIKE '%aggregate%'
         AND    TOTALWORK != 0
         AND    SOFAR <> TOTALWORK;


    History:
      – V$BACKUP_*
      – V$RMAN*

    If using catalog:
       – RC_*
                                                            38/53
Maintenance


    CrossCheck

    Delete obsolete


    If using standby

     
         Above 11.1:
            ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY

     
         Older versions:
            Split backup from delete obsolete tasks




                                                               39/53
Features not available in Standard Edition:

– allocate disk parallel channels

– block change tracking

– encryption -- Advanced Security option (disk) or Oracle Secure Backup
  license (tape)




                                                                   40/53
When errors

• Manuals: http://otn.oracle.com

• Support: http://support.oracle.com

• Debug:
           rman target / log rman.log trace rman.trc
           run{
             allocate channel t1 type sbt………trace=2;
             allocate channel t2 type sbt………trace=2;
             allocate channel t3 type sbt………trace=2;
             debug on;
             restore database;
             debug off;
           }



                                                       41/53
When errors


  Media manager libraries (MML) are from third parties

  Trace generates sbtio.log file

  Simulate and compare:

          run {
            allocate channel t1 type sbt parms
            'SBT_LIBRARY=oracle.disksbt,ENV=(BACK
            UP_DIR=d:temp)' trace=2;
            backup database;
          }




                                                         42/53
Optimizing backup operations


    mainly I/O activity

    detailed process architecture: MOS note 360443.1

    use async I/O (O.S. Configuration)

    channels adequate to the hardware in use

    performance of the MML

    comparing the time of "backup validate" (read-only operation) with the time of backup.

    enable block change tracking for incremental backups (Enterprise Edition)

    use standby database if Active DataGuard is available.




                                                                                     43/53
Optimizing Recovery

• Scripts commands are executed serially

• This does not work in parallel:
            run {
             allocate channel t1 type sbt....;
             allocate channel t2 type sbt....;
             allocate channel t3 type sbt....;
             restore datafile 2;
             restore datafile 3;
             restore datafile 5;
             restore datafile 7;
             restore datafile 11; }



                                                   44/53
Optimizing Recovery
• This works:
        run {
           allocate channel t1 type sbt....;
           allocate channel t2 type sbt....;
           allocate channel t3 type sbt....;
           restore datafile 2,3,5,7,11; }

• For big datafiles, from 11.1, use SECTION SIZE:

    CONFIGURE DEVICE TYPE sbt PARALLELISM 3;
    CONFIGURE DEFAULT DEVICE TYPE TO sbt;
    RUN {
      BACKUP SECTION SIZE 300M TABLESPACE prueba; }


                                                      45/53
Next steps?

–   Exercise recovery scenarios
–   Use Enterprise Manager whenever possible
–   Use Data Recovery Advisor
–   Incorporate the use of Dataguard and Flashback




                                                     46/53
Questions?




             nelson.calero@gmail.com
                                       47/53
Some time for examples?


– Instance cloning
    • Classic (10g)
    • From active instance (11.1)
    • RAC

– Using Data Recovery Advisor – only on the white paper




                                                          48/53
Instance cloning

Classic (10g) using pre-existing backups

1) Set destination database environment: parameter file, password file and directories
    – db_file_name_convert y log_file_name_convert if using different directory structure

2) Reboot the destination database in nomount mode

3) Get the SCN to which you want to restore from source. There are several ways to do it. One is:

          select next_change#
          from v$archived_log
          where recid = (select max(recid) from v$archived_log
                         where backup_count>0);



                                                                                            49/53
Instance cloning

Classic (10g) using pre-existing backups

4) execute the duplication on destination server :

          rman catalog rman/clave@rman target sys/clave@origen
          connect auxiliary /
          run {
            allocate auxiliary channel dupdb1 type disk;
            set until scn $MAX_SCN;
            duplicate target database to COPIA NOFILENAMECHECK;
          }

5) disable archivelog on the cloned database



                                                                  50/53
Instance cloning

From active instance (11.1)

Same steps 1 and 2, then 4th is:

          rman nocatalog target sys/clave@origen
          connect AUXILIARY sys/clave@copia
          run {
             DUPLICATE TARGET DATABASE TO 'COPIA'
               FROM ACTIVE DATABASE;
          }
          exit;




                                                      51/53
Instance cloning

RAC databases

    MOS notes 452868.1 and 461479.1

    changes to single instance duplication:
    
        destination database configured as single instance (removing RAC configuration)
    
        clone the same way as single instance
    
        pfile parameters are adjusted, adding RAC settings removed before:
            
                correct names for control files and the new database.
    
        restart the database to use the new parameters
    
        configure the new database in all the remaining RAC nodes:
            
                pfile, pwfile, tnsnames.ora
    
        register the new database in CRS
                                                                                    52/53
53/53

Mais conteúdo relacionado

Mais procurados

Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskAlan Williams
 
Server control utility reference
Server control utility referenceServer control utility reference
Server control utility referenceFemi Adeyemi
 
Presentation recovery manager (rman) configuration and performance tuning ...
Presentation    recovery manager (rman) configuration and performance tuning ...Presentation    recovery manager (rman) configuration and performance tuning ...
Presentation recovery manager (rman) configuration and performance tuning ...xKinAnx
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Dale McInnis
 
[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recoveryaltistory
 

Mais procurados (20)

Les 16 resource
Les 16 resourceLes 16 resource
Les 16 resource
 
Les 02 config
Les 02 configLes 02 config
Les 02 config
 
Les 13 memory
Les 13 memoryLes 13 memory
Les 13 memory
 
Les 20 dup_db
Les 20 dup_dbLes 20 dup_db
Les 20 dup_db
 
Xpp b tspitr
Xpp b tspitrXpp b tspitr
Xpp b tspitr
 
Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ Autodesk
 
Les 18 space
Les 18 spaceLes 18 space
Les 18 space
 
Les 05 create_bu
Les 05 create_buLes 05 create_bu
Les 05 create_bu
 
Server control utility reference
Server control utility referenceServer control utility reference
Server control utility reference
 
Les 00 intro
Les 00 introLes 00 intro
Les 00 intro
 
Presentation recovery manager (rman) configuration and performance tuning ...
Presentation    recovery manager (rman) configuration and performance tuning ...Presentation    recovery manager (rman) configuration and performance tuning ...
Presentation recovery manager (rman) configuration and performance tuning ...
 
Les 09 diag
Les 09 diagLes 09 diag
Les 09 diag
 
Les 11 fl2
Les 11 fl2Les 11 fl2
Les 11 fl2
 
Les 12 fl_db
Les 12 fl_dbLes 12 fl_db
Les 12 fl_db
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
 
[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery
 
Les 14 perf_db
Les 14 perf_dbLes 14 perf_db
Les 14 perf_db
 
Les 19 space_db
Les 19 space_dbLes 19 space_db
Les 19 space_db
 
Les 10 fl1
Les 10 fl1Les 10 fl1
Les 10 fl1
 
Rmanpres
RmanpresRmanpres
Rmanpres
 

Destaque

Oracle RAC sin sorpresas - v2014
Oracle RAC sin sorpresas - v2014Oracle RAC sin sorpresas - v2014
Oracle RAC sin sorpresas - v2014Nelson Calero
 
My Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12cMy Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12cNelson Calero
 
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Nelson Calero
 
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
 
Protect Sensitive Data: Implementing Fine-Grained Access Control in Oracle
Protect Sensitive Data: Implementing Fine-Grained Access Control in OracleProtect Sensitive Data: Implementing Fine-Grained Access Control in Oracle
Protect Sensitive Data: Implementing Fine-Grained Access Control in OracleNelson Calero
 
Curso de marketing em mídias sociais
Curso de marketing em mídias sociaisCurso de marketing em mídias sociais
Curso de marketing em mídias sociaisEdney Souza
 
2011 New Product Showcase
2011 New Product Showcase2011 New Product Showcase
2011 New Product Showcasebmmitt
 
Comparative analysis on E-Gov web sites
Comparative analysis on E-Gov web sitesComparative analysis on E-Gov web sites
Comparative analysis on E-Gov web sitesAndrea Tino
 
Attack_Simulation_and_Threat_Modeling
Attack_Simulation_and_Threat_ModelingAttack_Simulation_and_Threat_Modeling
Attack_Simulation_and_Threat_ModelingOluseyi Akindeinde
 
Ajax, JSF, Facelets, Eclipse & Maven tutorials
Ajax, JSF, Facelets, Eclipse & Maven tutorialsAjax, JSF, Facelets, Eclipse & Maven tutorials
Ajax, JSF, Facelets, Eclipse & Maven tutorialsRaghavan Mohan
 
IBM Web Content Management - Melhores práticas
IBM Web Content Management - Melhores práticasIBM Web Content Management - Melhores práticas
IBM Web Content Management - Melhores práticasrodrigoareis
 
Adobe Digital Publishing Suite by dualpixel
Adobe Digital Publishing Suite by dualpixelAdobe Digital Publishing Suite by dualpixel
Adobe Digital Publishing Suite by dualpixeldualpixel
 

Destaque (20)

Oracle RAC sin sorpresas - v2014
Oracle RAC sin sorpresas - v2014Oracle RAC sin sorpresas - v2014
Oracle RAC sin sorpresas - v2014
 
My Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12cMy Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12c
 
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
 
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
 
Protect Sensitive Data: Implementing Fine-Grained Access Control in Oracle
Protect Sensitive Data: Implementing Fine-Grained Access Control in OracleProtect Sensitive Data: Implementing Fine-Grained Access Control in Oracle
Protect Sensitive Data: Implementing Fine-Grained Access Control in Oracle
 
Curso de marketing em mídias sociais
Curso de marketing em mídias sociaisCurso de marketing em mídias sociais
Curso de marketing em mídias sociais
 
2011 New Product Showcase
2011 New Product Showcase2011 New Product Showcase
2011 New Product Showcase
 
Comparative analysis on E-Gov web sites
Comparative analysis on E-Gov web sitesComparative analysis on E-Gov web sites
Comparative analysis on E-Gov web sites
 
JSF2 and JSP
JSF2 and JSPJSF2 and JSP
JSF2 and JSP
 
Recherche
RechercheRecherche
Recherche
 
Attack_Simulation_and_Threat_Modeling
Attack_Simulation_and_Threat_ModelingAttack_Simulation_and_Threat_Modeling
Attack_Simulation_and_Threat_Modeling
 
Ajax, JSF, Facelets, Eclipse & Maven tutorials
Ajax, JSF, Facelets, Eclipse & Maven tutorialsAjax, JSF, Facelets, Eclipse & Maven tutorials
Ajax, JSF, Facelets, Eclipse & Maven tutorials
 
Bollean Search - NageshRao
Bollean Search - NageshRaoBollean Search - NageshRao
Bollean Search - NageshRao
 
IBM Web Content Management - Melhores práticas
IBM Web Content Management - Melhores práticasIBM Web Content Management - Melhores práticas
IBM Web Content Management - Melhores práticas
 
Adobe Digital Publishing Suite by dualpixel
Adobe Digital Publishing Suite by dualpixelAdobe Digital Publishing Suite by dualpixel
Adobe Digital Publishing Suite by dualpixel
 
Google
GoogleGoogle
Google
 
Ijm 06 10_012
Ijm 06 10_012Ijm 06 10_012
Ijm 06 10_012
 
Funciones A1t2
Funciones A1t2Funciones A1t2
Funciones A1t2
 
Catalog
CatalogCatalog
Catalog
 
document
documentdocument
document
 

Semelhante a Collaborate 2012 - RMAN Eliminate the mystery

Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Dan Glasscock
 
How to survive a disaster with RMAN
How to survive a disaster with RMANHow to survive a disaster with RMAN
How to survive a disaster with RMANGustavo Rene Antunez
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)Gustavo Rene Antunez
 
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
 
Rman workshop short
Rman workshop shortRman workshop short
Rman workshop shortNabi Abdul
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery ProcedureAnar Godjaev
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1Dan Glasscock
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_featuresNabi Abdul
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman scriptMaris Elsins
 
Rman backup and recovery 11g new features
Rman backup and recovery 11g new featuresRman backup and recovery 11g new features
Rman backup and recovery 11g new featuresNabi Abdul
 
FIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11GFIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11GN/A
 
Les 02 Config Rec
Les 02 Config RecLes 02 Config Rec
Les 02 Config Recvivaankumar
 
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
 
Oracle Database Backup Cloud Service
Oracle Database Backup Cloud ServiceOracle Database Backup Cloud Service
Oracle Database Backup Cloud ServiceMarketingArrowECS_CZ
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recoveryasifmalik110
 
Rman 11g new features
Rman 11g new featuresRman 11g new features
Rman 11g new featuresNabi Abdul
 

Semelhante a Collaborate 2012 - RMAN Eliminate the mystery (20)

Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018
 
How to survive a disaster with RMAN
How to survive a disaster with RMANHow to survive a disaster with RMAN
How to survive a disaster with RMAN
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
 
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)
 
Rman workshop short
Rman workshop shortRman workshop short
Rman workshop short
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
 
Ioug tip book11_gunukula
Ioug tip book11_gunukulaIoug tip book11_gunukula
Ioug tip book11_gunukula
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman script
 
Rman backup and recovery 11g new features
Rman backup and recovery 11g new featuresRman backup and recovery 11g new features
Rman backup and recovery 11g new features
 
FIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11GFIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11G
 
Les 02 Config Rec
Les 02 Config RecLes 02 Config Rec
Les 02 Config Rec
 
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)
 
Oracle Database Backup Cloud Service
Oracle Database Backup Cloud ServiceOracle Database Backup Cloud Service
Oracle Database Backup Cloud Service
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recovery
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Oracle backup
Oracle backupOracle backup
Oracle backup
 
Rman 11g new features
Rman 11g new featuresRman 11g new features
Rman 11g new features
 

Mais de Nelson Calero

Database automation guide - Oracle Community Tour LATAM 2023
Database automation guide - Oracle Community Tour LATAM 2023Database automation guide - Oracle Community Tour LATAM 2023
Database automation guide - Oracle Community Tour LATAM 2023Nelson Calero
 
Terraform Tips and Tricks - LAOUC 2022
Terraform Tips and Tricks - LAOUC 2022Terraform Tips and Tricks - LAOUC 2022
Terraform Tips and Tricks - LAOUC 2022Nelson Calero
 
Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021Nelson Calero
 
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Nelson Calero
 
Oracle Exadata Cloud Services guide from practical experience - OOW19
Oracle Exadata Cloud Services guide from practical experience - OOW19Oracle Exadata Cloud Services guide from practical experience - OOW19
Oracle Exadata Cloud Services guide from practical experience - OOW19Nelson Calero
 
Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19Nelson Calero
 
Automate the operation of your Oracle Cloud infrastructure v2.0
Automate the operation of your Oracle Cloud infrastructure v2.0Automate the operation of your Oracle Cloud infrastructure v2.0
Automate the operation of your Oracle Cloud infrastructure v2.0Nelson Calero
 
SSL certificates in the Oracle Database without surprises
SSL certificates in the Oracle Database without surprisesSSL certificates in the Oracle Database without surprises
SSL certificates in the Oracle Database without surprisesNelson Calero
 
Practical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environmentsPractical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environmentsNelson Calero
 
Automate your Oracle Cloud Infrastructure operation
Automate your Oracle Cloud Infrastructure operationAutomate your Oracle Cloud Infrastructure operation
Automate your Oracle Cloud Infrastructure operationNelson Calero
 
Welcome to databases in the Cloud
Welcome to databases in the CloudWelcome to databases in the Cloud
Welcome to databases in the CloudNelson Calero
 
Redefining tables online without surprises
Redefining tables online without surprisesRedefining tables online without surprises
Redefining tables online without surprisesNelson Calero
 
Alta disponibilidad con Pacemaker
Alta disponibilidad con PacemakerAlta disponibilidad con Pacemaker
Alta disponibilidad con PacemakerNelson Calero
 
AROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQL
AROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQLAROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQL
AROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQLNelson Calero
 
MariaDB y FOSS en infraestructura de salud y estándares
MariaDB y FOSS en infraestructura de salud y estándaresMariaDB y FOSS en infraestructura de salud y estándares
MariaDB y FOSS en infraestructura de salud y estándaresNelson Calero
 
UYOUG 2012 - Oracle RAC 11gR2 - New features
UYOUG 2012 - Oracle RAC 11gR2 - New featuresUYOUG 2012 - Oracle RAC 11gR2 - New features
UYOUG 2012 - Oracle RAC 11gR2 - New featuresNelson Calero
 
Collaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsCollaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsNelson Calero
 
Collaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsCollaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsNelson Calero
 
Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...
Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...
Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...Nelson Calero
 
Difusión UYOUG 2012 - Oracle Developer Day - Montevideo
Difusión UYOUG 2012 - Oracle Developer Day - MontevideoDifusión UYOUG 2012 - Oracle Developer Day - Montevideo
Difusión UYOUG 2012 - Oracle Developer Day - MontevideoNelson Calero
 

Mais de Nelson Calero (20)

Database automation guide - Oracle Community Tour LATAM 2023
Database automation guide - Oracle Community Tour LATAM 2023Database automation guide - Oracle Community Tour LATAM 2023
Database automation guide - Oracle Community Tour LATAM 2023
 
Terraform Tips and Tricks - LAOUC 2022
Terraform Tips and Tricks - LAOUC 2022Terraform Tips and Tricks - LAOUC 2022
Terraform Tips and Tricks - LAOUC 2022
 
Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021Oracle on kubernetes 101 - Dec/2021
Oracle on kubernetes 101 - Dec/2021
 
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
 
Oracle Exadata Cloud Services guide from practical experience - OOW19
Oracle Exadata Cloud Services guide from practical experience - OOW19Oracle Exadata Cloud Services guide from practical experience - OOW19
Oracle Exadata Cloud Services guide from practical experience - OOW19
 
Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19Automate your oracle cloud infrastructure operations v2.0 - OOW19
Automate your oracle cloud infrastructure operations v2.0 - OOW19
 
Automate the operation of your Oracle Cloud infrastructure v2.0
Automate the operation of your Oracle Cloud infrastructure v2.0Automate the operation of your Oracle Cloud infrastructure v2.0
Automate the operation of your Oracle Cloud infrastructure v2.0
 
SSL certificates in the Oracle Database without surprises
SSL certificates in the Oracle Database without surprisesSSL certificates in the Oracle Database without surprises
SSL certificates in the Oracle Database without surprises
 
Practical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environmentsPractical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environments
 
Automate your Oracle Cloud Infrastructure operation
Automate your Oracle Cloud Infrastructure operationAutomate your Oracle Cloud Infrastructure operation
Automate your Oracle Cloud Infrastructure operation
 
Welcome to databases in the Cloud
Welcome to databases in the CloudWelcome to databases in the Cloud
Welcome to databases in the Cloud
 
Redefining tables online without surprises
Redefining tables online without surprisesRedefining tables online without surprises
Redefining tables online without surprises
 
Alta disponibilidad con Pacemaker
Alta disponibilidad con PacemakerAlta disponibilidad con Pacemaker
Alta disponibilidad con Pacemaker
 
AROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQL
AROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQLAROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQL
AROUG BIDAY 2013 - Automatizar procesos de ETL con PL/SQL
 
MariaDB y FOSS en infraestructura de salud y estándares
MariaDB y FOSS en infraestructura de salud y estándaresMariaDB y FOSS en infraestructura de salud y estándares
MariaDB y FOSS en infraestructura de salud y estándares
 
UYOUG 2012 - Oracle RAC 11gR2 - New features
UYOUG 2012 - Oracle RAC 11gR2 - New featuresUYOUG 2012 - Oracle RAC 11gR2 - New features
UYOUG 2012 - Oracle RAC 11gR2 - New features
 
Collaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsCollaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAs
 
Collaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsCollaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAs
 
Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...
Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...
Alternativas de alta disponiblidad en MySQL - MySQL Meetup - Montevideo - Mar...
 
Difusión UYOUG 2012 - Oracle Developer Day - Montevideo
Difusión UYOUG 2012 - Oracle Developer Day - MontevideoDifusión UYOUG 2012 - Oracle Developer Day - Montevideo
Difusión UYOUG 2012 - Oracle Developer Day - Montevideo
 

Último

How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
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
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 

Último (20)

How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
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
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 

Collaborate 2012 - RMAN Eliminate the mystery

  • 2. High Availability Boot Camp: RMAN - Eliminate the Mystery Eng. Nelson Calero, OCP UYOUG 2/53
  • 3. High Availability Boot Camp: RMAN - Eliminate the Mystery About me: http://www.linkedin.com/in/ncalero Working with Oracle tools and Linux environments since 1996 DBA Oracle (since 2001) & MySQL (since 2005) Oracle University Instructor since 2011 Co-founder and President of the Oracle user Group of Uruguay (UYOUG) since 2009 Computer Engineer. OCP DBA 10g 3/53
  • 4. Uruguay 4/53
  • 5. AGENDA • Introduction • RMAN Concepts • Backups • Recovery • Integrity validation • Monitoring • Maintenance • When errors • Optimization • Examples – time permitted 5/53
  • 6. What is RMAN?  Utility with many features to use in backup and recovery tasks.  Included for free with Oracle database installation ($ORACLE_HOME/bin)  Command line interface.  some functionality available inside Enterprise Manager  Written in Pro * C, executes PL / SQL  Since Oracle 8 – 1997  Documented bugs in all versions: less than 1283, more than 170.  Known RMAN Performance Problems (MOS note 247611.1)  32 bugs, all fixed by 11g (some even before) 6/53
  • 7. Best practices of backup & recovery Today? Some. Those using RMAN More technology is needed apart from RMAN in a DR/HA policy: • Datapump • Flashback • Secure backup • …. RMAN is one solution among 20 from Oracle for unplanned downtime, used for site and storage failures, and data corruption http://docs.oracle.com/cd/E11882_01/server.112/e17157/planned.htm#CIHDCJCE 7/53
  • 8. Backups without Rman (user managed) Consistent (cold): cp path/* dest-bkp Inconsistent (hot): alter tablespace nnn begin backup; cp path/datafile.dbf destbkp alter tablespace nnn end backup; cp /archivelogs-path/* dest-bkp 8/53
  • 10. RMAN Backup - files • Which files were generated by a backup? – list backup; • Which files are copied? – datafiles – controlfiles – archived logs – spfile • Which files are not copied? – temporary files (tempfiles) and online redo logs (not needed for recovery) – files from external tabes or bfiles – database binary files – database network configuration files 10/53
  • 11. RMAN backups Differences between RMAN and user-managed backups: – RMAN sets the rules, but is flexible – RMAN commands implement sophisticated tasks, which lead to less code to be written to perform the same tasks, when possible. – RMAN has many functionalities – RMAN requires training to use effectively 11/53
  • 12. RMAN Concepts – Device – Channel – Backupset and Copies • Backup pieces • Status: expired/available – Retention policy • Obsolete – Incarnation 12/53
  • 13. RMAN Configuration RMAN> show all;     using target database control file instead of recovery catalog     RMAN configuration parameters for database with db_unique_name XE are:     CONFIGURE RETENTION POLICY TO REDUNDANCY 2;     CONFIGURE BACKUP OPTIMIZATION ON;     CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default     CONFIGURE CONTROLFILE AUTOBACKUP OFF;     CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default     CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default     CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default     CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default     CONFIGURE MAXSETSIZE TO UNLIMITED; # default     CONFIGURE ENCRYPTION FOR DATABASE OFF; # default     CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default     CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE  ; # default     CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default     CONFIGURE SNAPSHOT CONTROLFILE NAME TO  '/u01/app/oracle/product/11.2.0/xe/dbs/snapcf_XE.f'; # default 13/53
  • 14. RMAN Configuration Per target (in controlfile or Catalog):  Device  Parallelism  Retention Policy  Backup optimization  Encryption If using Fast Recovery Area, database parameters:  DB_RECOVERY_FILE_DEST_SIZE ( DB_RECOVERY_FILE_DEST is set) If not using a recovery Catalog, set according to your policy  CONTROL_FILE_RECORD_KEEP_TIME NOTE: Since 11.2.0.3 destination can be ASM Cluster File System (ACFS) 14/53
  • 15. Back to RMAN Backups See what has been backed up:   oracle@oraculo:~> rman   Recovery Manager: Release 11.2.0.2.0 - Production on Fri Feb 17 11:00:13 2012   Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.   RMAN> connect target   connected to target database: ENT11G (DBID=410442782)   RMAN> list backup summary;   List of Backups   ===============   Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag   ------- -- -- - ----------- --------------- ------- ------- ---------- ---   1       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122058   2       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122238   3       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122421   4       B  F  A DISK        13-FEB-12       1       1       NO         TAG20120213T122440 15/53
  • 16. RMAN Backups Details:   RMAN> list backup tag TAG20120213T122058;                  using target database control file instead of recovery catalog   List of Backup Sets   ===================   BS Key  Type LV Size       Device Type Elapsed Time Completion Time   ------- ---- -- ---------- ----------- ------------ ---------------   1       Full    1.03M      DISK        00:00:01     13-FEB-12         BP Key: 1   Status: AVAILABLE  Compressed: NO  Tag: TAG20120213T122058   Piece Name:  /u01/app/oracle/fast_recovery_area/ENT11G/backupset/2012_02_13/o1_mf_nnndf_TAG20120213T122058_7ml 72cnz_.bkp     List of Datafiles in backup set 1     File LV Type Ckp SCN    Ckp Time  Name     ---- -- ---- ---------- --------- ----     5       Full 1044143    13-FEB-12 /u02/oradata/ent11g/prueba.dbf 16/53
  • 17. RMAN Backups TIP - change date format inside RMAN   [oracle@oraculo ~]$ export NLS_DATE_FORMAT='DD/MON/YYYY HH24:MI:SS'   [oracle@oraculo ~]$ rman target /   Recovery Manager: Release 10.2.0.3.0 - Production on Wed Dec 21 20:31:46 2011   Copyright (c) 1982, 2005, Oracle.  All rights reserved.   connected to target database: Ent11g (DBID=943234298)   RMAN> list backup summary tag bkp_prod_121511060003;   using target database control file instead of recovery catalog   List of Backups   ===============   Key     TY LV S Device Type Completion Time      #Pieces #Copies Compressed Tag   ------- -- -- - ----------- -------------------- ------- ------- ---------- ---   1       B  F  A DISK        13/FEB/2012 03:21:03 1       1       NO         TAG20120213T122058   2       B  F  A DISK        13/FEB/2012 03:25:42 1       1       NO         TAG20120213T122238   3       B  F  A DISK        13/FEB/2012 03:29:28 1       1       NO         TAG20120213T122421 17/53
  • 18. RMAN backups Using Oracle XE: $ORACLE_HOME/config/scripts/ • backup.sh • restore.sh 18/53
  • 19. RMAN backups - Incremental  Differential: copy only the changes since the last incremental backup  Cumulative: copy all changes from the last full backup. Incremental backups are differential by default To restore a database one of this is needed:  all differential backups since the last full backup, or  last cumulative backup following the last full backup 19/53
  • 20. RMAN incremental backups Examples  First incremental backup must be complete, and is identified with the level 0. backup incremental level 0 tablespace users;   Next is level 1. If no level 0 backup exists,it creates a level 0 backup: backup incremental level 1 tablespace users;  Cumulative backup: backup incremental level 1 cumulative tablespace users; 20/53
  • 21. RMAN incremental backups (more)  Incremental updated Backups (or merged) apply an incremental backup to the last full backup to get a new full backup   run {     backup incremental level 1 for recover of copy with tag 'BKP_L0' database;     recover copy of database with tag 'BKP_L0';   }  requires more disk space  to have more than redundancy 1, add UNTIL TIME – MOS note 745798.1 21/53
  • 22. RMAN space usage Built in functionality, no need to enable  NULL BLOCK COMPRESSION (8i) - does not copy empty blocks never used (ie: unformatted above High Water Mark (HWM))  UNUSED BLOCK COMPRESSION (10.2) - does not copy unused blocks (ie: empty under HWM)  UNDO OPTIMIZATION (11.1) – does not copy undo segments not needed Must be explicitly enabled – BINARY COMPRESSION (10g) Compress data before sending it to the destination. Supports incremental backups. Algorithm can be changed using the Advanced compression option (11.2) 22/53
  • 23. NULL COMPRESSION in action oracle@oraculo:~> du -hs oradata/XE     1.5G    .oradata/XE oracle@oraculo:~> ls -lrt $ORACLE_BASE/flash_recovery_area/XE/backupset/2010_06_03/ total 1176688 -rw-r----- 1 oracle dba 1203748864 2010-06-03 00:57 o1_mf_nnndf_TAG.._60g9xpkz_.bkp Free space on the database: 01:41:16 XE> select sum(bytes)/1024/1024 mb from dba_free_space;       MB     ----------       135.8125 23/53
  • 24. RMAN COMPRESSION Two ways to enable: backup as compressed backupset ... CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET; Files generated: -rw-r----- 1 oracle dba 1203986432 2010-06-03 01:31 o1_mf_nnndf_TAG.._60gcywnl_.bkp -rw-r----- 1 oracle dba  235642880 2010-06-03 01:38 o1_mf_nnndf_TAG.._60gdd066_.bkp Almost 1GB saved and more CPU used 24/53
  • 25. RMAN COMPRESSION – XE Can we configure compression as the default backup method?     rman target /     CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET;      exit;    ./backup.sh -rw-r----- 1 oracle dba 1203748864 o1_mf_nnndf_TAG.._60g9xpkz_.bkp     rman target /     CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET;      exit    ./backup.sh -rw-r----- 1 oracle dba 120398643 o1_mf_nnndf_TAG.._60gcywnl_.bkp 25/53
  • 26. RMAN COMPRESSION – XE backup.sh code:            echo "Backup in progress..."            rman target / >> $rman_backup << EOF               set echo on;               shutdown immediate;               startup mount;               configure retention policy to redundancy 2;               configure controlfile autobackup format for device type disk clear;               configure controlfile autobackup on;               sql "create pfile=''$rman_spfile2init'' from spfile";               backup as backupset device type disk database;               configure controlfile autobackup off;               alter database open;               delete noprompt obsolete; 26/53
  • 27. RMAN COMPRESSION – XE backup.sh needs to be modified to enable compression:            echo "Backup in progress..."            rman target / >> $rman_backup << EOF               set echo on;               shutdown immediate;               startup mount;               configure retention policy to redundancy 2;               configure controlfile autobackup format for device type disk clear;               configure controlfile autobackup on;               sql "create pfile=''$rman_spfile2init'' from spfile";               backup as compressed backupset device type disk database;               configure controlfile autobackup off;               alter database open;               delete noprompt obsolete; 27/53
  • 28. RMAN COMPRESSION – XE Really necessary? – maximum amount of user data is 11G in XE 11.2 (was 4Gb in 10.2) – backup.sh uses redundancy 2 28/53
  • 29. Corruption detection Backup validates block checksum when writing (physical) by default To detect logical corruption while taking the backup: – backup blocks all check logical database; To validate already taken backups, and their availability for the restore operation – restore validate database; – restore validate controlfile to 'c:tempcontrol01.ctl'; – restore validate archivelog from sequence N1 until sequence N2; 29/53
  • 30. Validation – integrity and corruption VALIDATE command (11.1) – independent of backup/recovery validate database; VALIDATE BACKUPSET 5; validate datafile 3; validate datafile 3 BLOCK 5 TO 20; If some detected, see which ones: select * from V$DATABASE_BLOCK_CORRUPTION; NOTE: This view is also populated by other Oracle process (11.2) 30/53
  • 31. Corruption prevention To prevent and detect corruption, these initialization parameters must be used: – DB_BLOCK_CHECKING – in memory checks. Overhead up to 10%. OFF / LOW / MEDIUM / FULL – DB_BLOCK_CHECKSUM – calculated and stored checksum of data and logs. Overhead up to 5%. OFF / TYPICAL / FULL – DB_LOST_WRITE_PROTECT – detect lost writes on standby. NONE / TYPICAL / FULL – DB_ULTRA_SAFE: set the proper combination of the previous three. • NONE: no changes are made • DATA_ONLY: MEDIUM / FULL / TYPICAL • DATA_AND_INDEX: FULL / FULL / TYPICAL 31/53
  • 32. Recovery scenarios basic – 2: – complete and tablespace advanced – 12: – Recovering After the Loss of Datafiles: Scenarios – Recovering Through an Added Datafile with a Backup Control File: Scenario – Re-Creating Datafiles When Backups Are Unavailable: Scenario – Recovering Through RESETLOGS with Created Control File: Scenario – Recovering NOLOGGING Tables and Indexes: Scenario – Recovering Read-Only Tablespaces with a Backup Control File: Scenario – Recovering Transportable Tablespaces: Scenario – Recovering After the Loss of Online Redo Log Files: Scenarios – Recovering After the Loss of Archived Redo Log Files: Scenario – Recovering from a Dropped Table: Scenario – Performing Media Recovery in a Distributed Environment: Scenario 32/53
  • 33. Basic recovery examples Recover the last full backup, using the existing controlfile   RMAN> STARTUP MOUNT;    RMAN> RESTORE DATABASE;   RMAN> RECOVER DATABASE;   RMAN> ALTER DATABASE OPEN; Recover only one tablespace in an open instance   RMAN> SQL 'ALTER TABLESPACE mytbs OFFLINE IMMEDIATE';   RMAN> RESTORE TABLESPACE mytbs;   RMAN> RECOVER TABLESPACE mytbs;   RMAN> SQL 'ALTER TABLESPACE mytbs ONLINE'; 33/53
  • 34. Summary of RMAN benefits – Incremental backups – automated recovery • block media recovery – compression • skipping blocks and binary – encryption – backup history and catalog – logical and physical corruption detection – backup optimization – improved and new features in new releases • 11 in version 11.2, 21 in version 11.1 (from Backup and Recovery User's Guide, “What's New in Backup and Recovery?”) 34/53
  • 35. using RMAN for the first time – Learn RMAN functionality and usage – Practice recovery scenarios NOTE: RMAN generated files are not portable between platforms. – Intel 32-bit (x86) backup cannot be restored on Intel 64-bit (x86_64). – CONVERT DATABASE command can be used over platforms which share endian format. 35/53
  • 36. using RMAN for the first time Define the backup policy – acceptable level of service • time frame for implementation and execution • disk consumption and CPU usage to define using of compression – retention – destination – file names, size limits – parallelism – use of encryption 36/53
  • 37. using RMAN for the first time Create complete scripts – Configuration can be used to recreate the database – Delete obsolete backups – List catalog (documentation) – Validate logical integrity – Detect errors in the execution of the script and notify operators Test recovery periodically – automated to validate health of backup media – manually to practice different recovery scenarios • one team to break, one to recover 37/53
  • 38. Monitoring RMAN operations  Running tasks: V$SESSION_LONGOPS SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK,        ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE" FROM   V$SESSION_LONGOPS WHERE  OPNAME LIKE 'RMAN%' AND    OPNAME NOT LIKE '%aggregate%' AND    TOTALWORK != 0 AND    SOFAR <> TOTALWORK;  History: – V$BACKUP_* – V$RMAN*  If using catalog: – RC_* 38/53
  • 39. Maintenance  CrossCheck  Delete obsolete  If using standby  Above 11.1:    ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY  Older versions: Split backup from delete obsolete tasks 39/53
  • 40. Features not available in Standard Edition: – allocate disk parallel channels – block change tracking – encryption -- Advanced Security option (disk) or Oracle Secure Backup license (tape) 40/53
  • 41. When errors • Manuals: http://otn.oracle.com • Support: http://support.oracle.com • Debug:            rman target / log rman.log trace rman.trc            run{              allocate channel t1 type sbt………trace=2;              allocate channel t2 type sbt………trace=2;              allocate channel t3 type sbt………trace=2;              debug on;              restore database;              debug off;            } 41/53
  • 42. When errors  Media manager libraries (MML) are from third parties  Trace generates sbtio.log file  Simulate and compare:           run {             allocate channel t1 type sbt parms             'SBT_LIBRARY=oracle.disksbt,ENV=(BACK             UP_DIR=d:temp)' trace=2;             backup database;           } 42/53
  • 43. Optimizing backup operations  mainly I/O activity  detailed process architecture: MOS note 360443.1  use async I/O (O.S. Configuration)  channels adequate to the hardware in use  performance of the MML  comparing the time of "backup validate" (read-only operation) with the time of backup.  enable block change tracking for incremental backups (Enterprise Edition)  use standby database if Active DataGuard is available. 43/53
  • 44. Optimizing Recovery • Scripts commands are executed serially • This does not work in parallel:             run {              allocate channel t1 type sbt....;              allocate channel t2 type sbt....;              allocate channel t3 type sbt....;              restore datafile 2;              restore datafile 3;              restore datafile 5;              restore datafile 7;              restore datafile 11; } 44/53
  • 45. Optimizing Recovery • This works:         run {            allocate channel t1 type sbt....;            allocate channel t2 type sbt....;            allocate channel t3 type sbt....;            restore datafile 2,3,5,7,11; } • For big datafiles, from 11.1, use SECTION SIZE: CONFIGURE DEVICE TYPE sbt PARALLELISM 3; CONFIGURE DEFAULT DEVICE TYPE TO sbt; RUN {   BACKUP SECTION SIZE 300M TABLESPACE prueba; } 45/53
  • 46. Next steps? – Exercise recovery scenarios – Use Enterprise Manager whenever possible – Use Data Recovery Advisor – Incorporate the use of Dataguard and Flashback 46/53
  • 47. Questions? nelson.calero@gmail.com 47/53
  • 48. Some time for examples? – Instance cloning • Classic (10g) • From active instance (11.1) • RAC – Using Data Recovery Advisor – only on the white paper 48/53
  • 49. Instance cloning Classic (10g) using pre-existing backups 1) Set destination database environment: parameter file, password file and directories – db_file_name_convert y log_file_name_convert if using different directory structure 2) Reboot the destination database in nomount mode 3) Get the SCN to which you want to restore from source. There are several ways to do it. One is:           select next_change#           from v$archived_log           where recid = (select max(recid) from v$archived_log                          where backup_count>0); 49/53
  • 50. Instance cloning Classic (10g) using pre-existing backups 4) execute the duplication on destination server :           rman catalog rman/clave@rman target sys/clave@origen           connect auxiliary /           run {             allocate auxiliary channel dupdb1 type disk;             set until scn $MAX_SCN;             duplicate target database to COPIA NOFILENAMECHECK;           } 5) disable archivelog on the cloned database 50/53
  • 51. Instance cloning From active instance (11.1) Same steps 1 and 2, then 4th is:           rman nocatalog target sys/clave@origen           connect AUXILIARY sys/clave@copia           run {              DUPLICATE TARGET DATABASE TO 'COPIA'                FROM ACTIVE DATABASE;           }           exit; 51/53
  • 52. Instance cloning RAC databases  MOS notes 452868.1 and 461479.1  changes to single instance duplication:  destination database configured as single instance (removing RAC configuration)  clone the same way as single instance  pfile parameters are adjusted, adding RAC settings removed before:  correct names for control files and the new database.  restart the database to use the new parameters  configure the new database in all the remaining RAC nodes:  pfile, pwfile, tnsnames.ora  register the new database in CRS 52/53
  • 53. 53/53