oracle数据库恢复.ppt
《oracle数据库恢复.ppt》由会员分享,可在线阅读,更多相关《oracle数据库恢复.ppt(46页珍藏版)》请在三一办公上搜索。
1、User-Managed Complete Recovery,Objectives,After completing this lesson,you should be able todo the following:Describe media recoveryPerform recovery in Noarchivelog modePerform complete recovery in Archivelog modeRestore datafiles to different locationsRelocate and recover a tablespace by using arch
2、ived redo log filesDescribe read-only tablespace recovery,Media Recovery,Used to recover a lost or damaged current datafile or control fileRequires explicit invocationOperates as follows:Files are restored from backupsRedo data is applied to the restored files from archived redo log files and online
3、 redo logs,OnlineRedo log,Recovery Steps,Restored datafiles,Database containingcommitted and uncommittedtransactions,Recovered database,Redo applied,Undo applied,5,4,3,2,1,ArchivedRedo log,Restoration and Datafile Media Recoverywith User-Managed Procedures,Restore files using operating system comman
4、dsRecover files using the SQL*Plus RECOVER command,Archivelog and Noarchivelog Modes,Instance,SGA,Redo log buffer,Data buffer,Large pool,Locks,Shared pool,Data dict.cache,Shared SQLand PL/SQL,ARCn,Userprocess,Serverprocess,PGA,Userprocess,Serverprocess,PGA,Database,Parameterfile,Passwordfile,Recover
5、y in Noarchivelog Mode,In Noarchivelog mode,you must restore the followingdatabase files:DatafilesControl filesYou may also restore the following files:Redo log filesPassword file Parameter file,Recovery in Noarchivelog Mode,AdvantagesEasy to perform,with low risk of errorRecovery time is the time i
6、t takes to restore all files.DisadvantagesData is lost and must be reapplied manually.The entire database is restored to the point of the last whole closed backup.,PasswordFile,ParameterFile,PasswordFile,ParameterFile,Datafile 3,Redo logFile 2,Data File 2,Control Files,Redo logFile 1,Datafile 1,Data
7、base,145,146,146,146,146,146,Recovery in Noarchivelog ModeWith Redo Log File Backups,Backup,Restore from the most recent backup,Database,PasswordFile,ParameterFile,Recovery in Noarchivelog Mode Without Redo Log File Backups,1.Shut down the instance.2.Restore the datafiles and the control file from t
8、he most recent whole database backup.3.Perform cancel-based recovery.4.Open the database with the RESETLOGS option.,Recovery in Archivelog Mode,Complete RecoveryUses redo data or incremental backupsUpdates the database to the most current point in timeApplies all redo changesIncomplete RecoveryUses
9、backup and redo logs to produce a noncurrent version of the database,Complete Recovery,Make sure that datafiles for restore are offline.Restore only lost or damaged datafiles.Do not restore the control files,redo log files,password files,or parameter files.Recover the datafiles.,Complete Recovery in
10、 Archivelog Mode,AdvantagesOnly need to restore lost filesRecovers all data to the time of failureRecovery time is the time it takes to restore lost files and apply all archived log filesDisadvantagesMust have all archived log files since the backup from which you are restoring,Determining Which Fil
11、es Need Recovery,View V$RECOVER_FILE to determine which datafiles need recoveryView V$ARCHIVED_LOG for a list of all archived redo log files for the databaseView V$RECOVERY_LOG for a list of all archived redo log files required for recovery,User-Managed Recovery Procedures:RECOVER Command,SQL RECOVE
12、R DATABASE;ORSQL RECOVER DATAFILE 2/ORADATA/u03/users01.dbf;,Recover a mounted database:,SQL RECOVER TABLESPACE users;ORSQL RECOVER DATAFILE 3;,Recover an open database:,Using Archived Redo Log Files During Recovery,To change archive location,use the ALTER SYSTEM ARCHIVE LOG.command.To apply redo lo
13、g files automatically:Issue the SET AUTORECOVERY ON command before starting media recoveryEnter auto when prompted for an archived log fileUse the RECOVER AUTOMATIC.command.,Restoring Datafiles to a New Locationwith User-Managed Procedures,Use operating system commands to restore the datafile to the
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- oracle 数据库 恢复
链接地址:https://www.31ppt.com/p-6513550.html