Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA - Backup

Back


Backup Strategies and Terminology

Backup Solutions

backup_solution_diagram


Backup Terminology


Balancing Backup and Restore Requirements


Backup Strategies


Full and Incremental Backups


Incrementally Updated Disk Backups


Offloading Backups to Physical Standby Database


Backing Up Read-Only Tablespaces


Data Warehouse Backup and Recovery: Best Practices


Backup Terminology

# command is to create a physical copy of the specified datafile
BACKUP AS COPY DATAFILE '/ORADATA/users_01_db01.dbf';
# to create physical copies of archivelogs that match the specified pattern.
BACKUP AS COPY ARCHIVELOG LIKE '/arch%';
# perform a backup of a specific tablespace
BACKUP AS BACKUPSET
FORMAT '/BACKUP/df_%d_%s_%p.bus'
TABLESPACE hr_data;

# default backup type, which is a backup set.
# 等效
BACKUP
FORMAT '/BACKUP/df_%d_%s_%p.bus'
TABLESPACE hr_data;

Whole Database Backup

# perform a complete database backup, including both datafiles and archived redo logs.
BACKUP DATABASE PLUS ARCHIVELOG;
# DATABASE: backup of the entire database
#  all datafiles, control files, and the server parameter file

Full Backup VS Whole Backup

# backs up all datafiles, control files, and the server parameter file.
BACKUP DATABASE

# if the database is in ARCHIVELOG mode
BACKUP DATABASE PLUS ARCHIVELOG;
# The backup is typically stored in the Fast Recovery Area (FRA) or another designated location.
# perform a Level 0 backup
BACKUP LEVEL 0 DATABASE;

# perform a Level 1 backup
BACKUP INCREMENTAL LEVEL 1 DATABASE;

Case Study 1: How to Protect an OLTP Database


Case Study 2: How to Protect a DSS Database


Case Study 3: How to Protect the Recovery Catalog Database


TOP