Download presentation
Presentation is loading. Please wait.
Published byDouglas Elliott Modified over 9 years ago
1
Backup and Recovery Protects From Data Loss
2
Backup and Recovery Protects From Data Loss Provides for Media Recovery
3
Backup and Recovery Protects From Data Loss Provides for Media Recovery Backup Types Physical Logical
4
Backup and Recovery Protects From Data Loss Provides for Media Recovery Backup Types Physical Logical Types of Backups Recovery Manager (RMAN) User-Managed (including third party utility)
5
Backup Strategy Comprehensive RMAN Database files, including datafiles, control files, and the server parameter file ( SPFILE ) Archived redo logs OS Network configuration files ( listener.ora, tnsnames.ora, et cetera) Password files External tables Oracle home
6
RMAN BACKUP Command Basic BACKUP Commands: BACKUP DATABASE BACKUP CURRENT CONTROLFILE BACKUP SPFILE BACKUP ARCHIVELOG ALL
7
RMAN Default Configuration Backup Location OS Dependent Backup Type Disk Backup Channels One MAXSETSIZE Unlimited
8
Backup Example $ rman Recovery Manager: Release 10.2.0.3.0 - Production on Thu Jun 15 10:28:59 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. RMAN> connect target tsb@mylrep target database Password: connected to target database: MYLREP (DBID=518368273) RMAN> backup database; Starting backup at 12-JUN-08.Output from backup is printed here. Finished backup at 12-JUN-08 RMAN> exit
9
BACKUPSET vs. COPIES BACKUP SET Consists of BACKUP PIECES Proprietary Format Backup "USED" blocks Only RMAN can be used to restore/recover
10
BACKUPSET vs. COPIES BACKUP SET Consists of BACKUP PIECES Proprietary Format Backup "USED" blocks Only RMAN can be used to restore/recover COPIES Identical to OS copies. Can be used as replacement to datafile. Can be used in user-controlled recover/restores.
11
Block Change Tracking Used for Incremental Backups Traditional incremental backup read entire datafile. Enabled Block Change Tracking Creates Change Tracking File ( CTF ) Use CTF to determine blocks to backup Consider Environment
12
Enabling and Disabling Change Tracking Current State: SQL> SELECT * FROM V$BLOCK_CHANGE_TRACKING; Enabling/Disabling: SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING; SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE '/oracle/bu/rman_change_track.f' REUSE; SQL> ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;
13
RMAN> list backup; List of Backup Sets =================== BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 1 Full 1.80G DISK 00:02:49 12-JUN-08 BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20080612T102922 Piece Name: /opt/oracle/product/10g/dbs/01jio142_1_1 List of Datafiles in backup set 1 File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- --------- ---- 1 Full 23722948433 12-JUN-08 /oracle/mylrep/sxfbf35/ora/system01.dbf 11 Full 23722948433 12-JUN-08 /oracle/mylrep/sxfbf35/ora/mgmt_ecm_depot1.dbf BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 2 Full 6.92M DISK 00:00:01 12-JUN-08 BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20080612T102922 Piece Name: /opt/oracle/product/10g/dbs/02jio19j_1_1 Control File Included: Ckp SCN: 23722948667 Ckp time: 12-JUN-08 SPFILE Included: Modification time: 11-JUN-08
14
LIST COMMANDS LIST BACKUP; LIST BACKUPSET; LIST COPY; LIST EXPIRED BACKUP;
15
CROSSCHECK and DELETE RMAN> CROSSCHECK BACKUP; RMAN> DELETE EXPIRED BACKUP;
16
REPORT REPORT NEED BACKUP; REPORT OBSOLETE; REPORT SCHEMA; REPORT UNRECOVERABLE;
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.