+ All Categories
Home > Documents > Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Date post: 29-Dec-2015
Category:
Upload: owen-gilbert
View: 230 times
Download: 0 times
Share this document with a friend
Popular Tags:
21
Backup & Recovery Backup & Recovery Backup and Recovery Strategies on Windows Backup and Recovery Strategies on Windows Server 2003 Server 2003
Transcript
Page 1: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Backup amp RecoveryBackup amp Recovery

Backup and Recovery Strategies on Backup and Recovery Strategies on Windows Server 2003Windows Server 2003

ObjectivesObjectivesAt the end of this module the At the end of this module the student will understand the student will understand the following tasks and conceptsfollowing tasks and concepts

Understand the difference between Understand the difference between off-line and on-line backupsoff-line and on-line backups

Understand how to backup RAC Understand how to backup RAC databasesdatabases

Understand how to do backups in Understand how to do backups in WindowsWindows

Off-Line BackupOff-Line Backup

Best SolutionBest Solution System is QuiescentSystem is Quiescent Backup is completeBackup is complete

Off-Line BackupOff-Line Backup

Oracle is shut downOracle is shut down Backup filesBackup files

DataData LogLog ControlControl ParameterParameter

Off-Line BackupOff-Line Backup

Complete BackupComplete Backup Does not require ARCHIVELOG modeDoes not require ARCHIVELOG mode

Can only recover complete database unless Can only recover complete database unless running in ARCHIVELOG moderunning in ARCHIVELOG mode

If not ARCHIVELOG mode can only recover If not ARCHIVELOG mode can only recover backed up databasebacked up database

Tablespace BackupTablespace Backup Requires ARCHIVELOG mode for Requires ARCHIVELOG mode for

recoveryrecovery Can backup and recover on tablespace Can backup and recover on tablespace

basisbasis

ARCHIVELOG ModeARCHIVELOG Mode

Automatically copies redo log files to Automatically copies redo log files to archive log filesarchive log files Copies after a log switchCopies after a log switch Copies to archive log destination + Copies to archive log destination +

generated file namegenerated file name Uses archive log files for recoveryUses archive log files for recovery

On-Line BackupOn-Line Backup

Writes to the data files are stoppedWrites to the data files are stopped All changed blocks are redirected to All changed blocks are redirected to

the redo logsthe redo logs ProcessProcess

Mark tablespace as under backupMark tablespace as under backup Use OS facility to backup data filesUse OS facility to backup data files Mark tablespace as done with backupMark tablespace as done with backup

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 2: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

ObjectivesObjectivesAt the end of this module the At the end of this module the student will understand the student will understand the following tasks and conceptsfollowing tasks and concepts

Understand the difference between Understand the difference between off-line and on-line backupsoff-line and on-line backups

Understand how to backup RAC Understand how to backup RAC databasesdatabases

Understand how to do backups in Understand how to do backups in WindowsWindows

Off-Line BackupOff-Line Backup

Best SolutionBest Solution System is QuiescentSystem is Quiescent Backup is completeBackup is complete

Off-Line BackupOff-Line Backup

Oracle is shut downOracle is shut down Backup filesBackup files

DataData LogLog ControlControl ParameterParameter

Off-Line BackupOff-Line Backup

Complete BackupComplete Backup Does not require ARCHIVELOG modeDoes not require ARCHIVELOG mode

Can only recover complete database unless Can only recover complete database unless running in ARCHIVELOG moderunning in ARCHIVELOG mode

If not ARCHIVELOG mode can only recover If not ARCHIVELOG mode can only recover backed up databasebacked up database

Tablespace BackupTablespace Backup Requires ARCHIVELOG mode for Requires ARCHIVELOG mode for

recoveryrecovery Can backup and recover on tablespace Can backup and recover on tablespace

basisbasis

ARCHIVELOG ModeARCHIVELOG Mode

Automatically copies redo log files to Automatically copies redo log files to archive log filesarchive log files Copies after a log switchCopies after a log switch Copies to archive log destination + Copies to archive log destination +

generated file namegenerated file name Uses archive log files for recoveryUses archive log files for recovery

On-Line BackupOn-Line Backup

Writes to the data files are stoppedWrites to the data files are stopped All changed blocks are redirected to All changed blocks are redirected to

the redo logsthe redo logs ProcessProcess

Mark tablespace as under backupMark tablespace as under backup Use OS facility to backup data filesUse OS facility to backup data files Mark tablespace as done with backupMark tablespace as done with backup

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 3: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Off-Line BackupOff-Line Backup

Best SolutionBest Solution System is QuiescentSystem is Quiescent Backup is completeBackup is complete

Off-Line BackupOff-Line Backup

Oracle is shut downOracle is shut down Backup filesBackup files

DataData LogLog ControlControl ParameterParameter

Off-Line BackupOff-Line Backup

Complete BackupComplete Backup Does not require ARCHIVELOG modeDoes not require ARCHIVELOG mode

Can only recover complete database unless Can only recover complete database unless running in ARCHIVELOG moderunning in ARCHIVELOG mode

If not ARCHIVELOG mode can only recover If not ARCHIVELOG mode can only recover backed up databasebacked up database

Tablespace BackupTablespace Backup Requires ARCHIVELOG mode for Requires ARCHIVELOG mode for

recoveryrecovery Can backup and recover on tablespace Can backup and recover on tablespace

basisbasis

ARCHIVELOG ModeARCHIVELOG Mode

Automatically copies redo log files to Automatically copies redo log files to archive log filesarchive log files Copies after a log switchCopies after a log switch Copies to archive log destination + Copies to archive log destination +

generated file namegenerated file name Uses archive log files for recoveryUses archive log files for recovery

On-Line BackupOn-Line Backup

Writes to the data files are stoppedWrites to the data files are stopped All changed blocks are redirected to All changed blocks are redirected to

the redo logsthe redo logs ProcessProcess

Mark tablespace as under backupMark tablespace as under backup Use OS facility to backup data filesUse OS facility to backup data files Mark tablespace as done with backupMark tablespace as done with backup

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 4: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Off-Line BackupOff-Line Backup

Oracle is shut downOracle is shut down Backup filesBackup files

DataData LogLog ControlControl ParameterParameter

Off-Line BackupOff-Line Backup

Complete BackupComplete Backup Does not require ARCHIVELOG modeDoes not require ARCHIVELOG mode

Can only recover complete database unless Can only recover complete database unless running in ARCHIVELOG moderunning in ARCHIVELOG mode

If not ARCHIVELOG mode can only recover If not ARCHIVELOG mode can only recover backed up databasebacked up database

Tablespace BackupTablespace Backup Requires ARCHIVELOG mode for Requires ARCHIVELOG mode for

recoveryrecovery Can backup and recover on tablespace Can backup and recover on tablespace

basisbasis

ARCHIVELOG ModeARCHIVELOG Mode

Automatically copies redo log files to Automatically copies redo log files to archive log filesarchive log files Copies after a log switchCopies after a log switch Copies to archive log destination + Copies to archive log destination +

generated file namegenerated file name Uses archive log files for recoveryUses archive log files for recovery

On-Line BackupOn-Line Backup

Writes to the data files are stoppedWrites to the data files are stopped All changed blocks are redirected to All changed blocks are redirected to

the redo logsthe redo logs ProcessProcess

Mark tablespace as under backupMark tablespace as under backup Use OS facility to backup data filesUse OS facility to backup data files Mark tablespace as done with backupMark tablespace as done with backup

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 5: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Off-Line BackupOff-Line Backup

Complete BackupComplete Backup Does not require ARCHIVELOG modeDoes not require ARCHIVELOG mode

Can only recover complete database unless Can only recover complete database unless running in ARCHIVELOG moderunning in ARCHIVELOG mode

If not ARCHIVELOG mode can only recover If not ARCHIVELOG mode can only recover backed up databasebacked up database

Tablespace BackupTablespace Backup Requires ARCHIVELOG mode for Requires ARCHIVELOG mode for

recoveryrecovery Can backup and recover on tablespace Can backup and recover on tablespace

basisbasis

ARCHIVELOG ModeARCHIVELOG Mode

Automatically copies redo log files to Automatically copies redo log files to archive log filesarchive log files Copies after a log switchCopies after a log switch Copies to archive log destination + Copies to archive log destination +

generated file namegenerated file name Uses archive log files for recoveryUses archive log files for recovery

On-Line BackupOn-Line Backup

Writes to the data files are stoppedWrites to the data files are stopped All changed blocks are redirected to All changed blocks are redirected to

the redo logsthe redo logs ProcessProcess

Mark tablespace as under backupMark tablespace as under backup Use OS facility to backup data filesUse OS facility to backup data files Mark tablespace as done with backupMark tablespace as done with backup

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 6: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

ARCHIVELOG ModeARCHIVELOG Mode

Automatically copies redo log files to Automatically copies redo log files to archive log filesarchive log files Copies after a log switchCopies after a log switch Copies to archive log destination + Copies to archive log destination +

generated file namegenerated file name Uses archive log files for recoveryUses archive log files for recovery

On-Line BackupOn-Line Backup

Writes to the data files are stoppedWrites to the data files are stopped All changed blocks are redirected to All changed blocks are redirected to

the redo logsthe redo logs ProcessProcess

Mark tablespace as under backupMark tablespace as under backup Use OS facility to backup data filesUse OS facility to backup data files Mark tablespace as done with backupMark tablespace as done with backup

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 7: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

On-Line BackupOn-Line Backup

Writes to the data files are stoppedWrites to the data files are stopped All changed blocks are redirected to All changed blocks are redirected to

the redo logsthe redo logs ProcessProcess

Mark tablespace as under backupMark tablespace as under backup Use OS facility to backup data filesUse OS facility to backup data files Mark tablespace as done with backupMark tablespace as done with backup

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 8: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

On-Line BackupOn-Line Backup

Streamlined version of on-line Streamlined version of on-line backupbackup Place all tablespaces in backup at once Place all tablespaces in backup at once

with ldquoAlter database begin backuprdquowith ldquoAlter database begin backuprdquo Backup all files with an OS commandBackup all files with an OS command End the backup with ldquoAlter database End the backup with ldquoAlter database

end backuprdquoend backuprdquo Requires a fast method for backing up Requires a fast method for backing up

files or the redo logs will fill rapidlyfiles or the redo logs will fill rapidly

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 9: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Types of BackupTypes of Backup

Database backupsDatabase backups Tablespace backupsTablespace backups Datafile backupsDatafile backups Control file backupsControl file backups Archive log file backupsArchive log file backups

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 10: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Database BackupsDatabase Backups

Entire database is backed upEntire database is backed up Data filesData files Redo Log filesRedo Log files Control filesControl files Parameter filesParameter files

Provides consistent picture of the Provides consistent picture of the databasedatabase

Best type of backup (if possible)Best type of backup (if possible)

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 11: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Tablespace BackupsTablespace Backups

Backup of a single tablespaceBackup of a single tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname BEGIN BEGIN

BACKUPBACKUP Backup datafiles used by the tablespaceBackup datafiles used by the tablespace ALTER TABLESPACE ALTER TABLESPACE tsname tsname END END

BACKUPBACKUP Provides for recovery of a single Provides for recovery of a single

tablespacetablespace

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 12: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Datafile BackupsDatafile Backups

Backup of a single datafileBackup of a single datafile Same files as with full and tablespace Same files as with full and tablespace

backupbackup Useful if a datafile is damagedUseful if a datafile is damaged Reduces recovery timeReduces recovery time

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 13: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Control File BackupsControl File Backups

Backup of a control fileBackup of a control file Should be done whenever the Should be done whenever the

schema changesschema changes ALTER DATABASE BACKUP ALTER DATABASE BACKUP

CONTROLFILE TO lsquofilenamersquoCONTROLFILE TO lsquofilenamersquo

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 14: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Archive Log BackupsArchive Log Backups

Archive log files should be backed up Archive log files should be backed up immediately upon creationimmediately upon creation

This can be automatedThis can be automated Save recent archive log files in Save recent archive log files in

accessible areaaccessible area Be prepared to immediately restore Be prepared to immediately restore

themthem

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 15: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

RMAN BackupRMAN Backup

Managed by OracleManaged by Oracle GUI or script interfacesGUI or script interfaces Backups catalogued in a repositoryBackups catalogued in a repository Can be off-line or on-line backupsCan be off-line or on-line backups Does not use ldquobackup tablespacerdquo method for on-Does not use ldquobackup tablespacerdquo method for on-

line backupsline backups Can be integrated with vendor backup software Can be integrated with vendor backup software

and hardwareand hardware RMAN must be used to backup 10g ASM RMAN must be used to backup 10g ASM

databasesdatabases

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 16: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

OCOPY BackupsOCOPY Backups OCOPY utility is a command-line tool OCOPY utility is a command-line tool

that can make the following types of that can make the following types of backupsbackups Backups when Oracle database is shut Backups when Oracle database is shut

down (cold backups)down (cold backups) Backups of a tablespace that is offline Backups of a tablespace that is offline

when the database is openwhen the database is open Backups of a tablespace that is online Backups of a tablespace that is online

when the database is open when the database is open OCOPY can back up only to disk and OCOPY can back up only to disk and

can perform only local backupscan perform only local backups

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 17: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

OCOPY and Raw FilesOCOPY and Raw Files

The OCOPY utility is particularly The OCOPY utility is particularly useful for backing up raw files useful for backing up raw files

In the following example In the following example GG is a is a raw data file that is being backed up raw data file that is being backed up to a normal file system on Cto a normal file system on COCOPY G CbackupOCOPY G Cbackupdatafile12bak datafile12bak

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 18: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

Third-Party Vendor BackupThird-Party Vendor Backup

Interfaces with Oracle Backup and Interfaces with Oracle Backup and Recovery WizardsRecovery Wizards

Requires vendor-supplied Media Requires vendor-supplied Media management Layer (MML) to back up management Layer (MML) to back up to tapeto tape

May use OS backup methods or May use OS backup methods or RMANRMAN

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 19: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

RAC Database BackupsRAC Database Backups RAC database backups are RAC database backups are

essentially the same as single essentially the same as single instance backupsinstance backups

Backup from one nodeBackup from one node Exception you must back up all threads Exception you must back up all threads

of archive log files (all nodes)of archive log files (all nodes) Restore to one nodeRestore to one node

Apply archive logs from all nodes as Apply archive logs from all nodes as requestedrequested

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 20: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

ReviewReview If you have the luxury of time what is the best If you have the luxury of time what is the best

method to use for backupsmethod to use for backups Name three types of Oracle backupName three types of Oracle backup What command can you use to backup a What command can you use to backup a

database implemented on RAW disksdatabase implemented on RAW disks What can you use to backup a database What can you use to backup a database

implemented on ASM disk groupsimplemented on ASM disk groups What is the syntax to backup a controlfileWhat is the syntax to backup a controlfile What do you have to remember to backup for What do you have to remember to backup for

RAC databasesRAC databases

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary
Page 21: Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.

SummarySummary Off-line backupOff-line backup On-line backupOn-line backup RMAN backupsRMAN backups RAC backupsRAC backups Backups under WindowsBackups under Windows

  • Backup amp Recovery
  • Objectives
  • Off-Line Backup
  • Slide 4
  • Slide 5
  • ARCHIVELOG Mode
  • On-Line Backup
  • Slide 8
  • Types of Backup
  • Database Backups
  • Tablespace Backups
  • Datafile Backups
  • Control File Backups
  • Archive Log Backups
  • RMAN Backup
  • OCOPY Backups
  • OCOPY and Raw Files
  • Third-Party Vendor Backup
  • RAC Database Backups
  • Review
  • Summary

Recommended