欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    oracle数据库恢复.ppt

    • 资源ID:6513550       资源大小:1,016.51KB        全文页数:46页
    • 资源格式: PPT        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    oracle数据库恢复.ppt

    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 archived 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 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 commandsRecover 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,Recovery 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 it 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,Database,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 the 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 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 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 Files 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 RECOVER 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 log 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 new location.Use the ALTER DATABASE RENAME FILE command to record the change in the control file.,Complete Recovery Methods,Closed database recovery for:System datafilesUndo segment datafilesWhole databaseOpen database recovery,with database initially opened(for file loss)Open database recovery with database initially closed(for hardware failure)Datafile recovery with no datafile backup,Complete Recovery of a Closed Database,Closed database recovery is used for:System tablespace datafilesRollback segment datafilesWhole database,Shut down the instance,1,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,Closed Database,Archivedlog file,144,Closed Database Recovery Example,Restore datafile 1(Log Sequence 144),2,Open the database,4,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,Mounted Database,3,Datafile 3,Redo logfile 2,Control files,Redo logfile 1,Datafile 1,Recovered Database,146,145,146,146,146,Datafile 2,146,3,3,Open Database Recovery When the Database Is Initially Open,Use this method when:The database is currently openThe database will remain open during the recoveryThe media failure does not affect the SYSTEM tablespace,1,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,Open Database Recovery Example,2,4,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,146,145,146,144,146,146,3,3,3,Datafile 3,Redo logfile 2,Control files,Redo logfile 1,Datafile 1,146,145,146,146,146,Datafile 2,146,Take datafile 2 offline,Restore datafile 2(Log Sequence 144),Bring datafile 2 online,Archivedlog file,144,Open Database,Open Database,Recovered Database,Open Database Recovery When the Database Is Initially Closed,Use this method when:The database is currently closedThe database will be opened during recoveryThe media failure does not affect the SYSTEM tablespace,Take datafile 2 offline,2,Open Database Recovery Example,Restore datafile 2,4,Bring datafile 2 online,6,1,Mount the database,3,Open the database,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,Datafile 3,Redo logfile 2,Control files,Redo logfile 1,Datafile 1,146,145,146,146,146,Datafile 2,146,Closed Database,Recovered Database,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,146,145,146,144,146,146,5,5,5,Archivedlog file,144,Open Database,Recovery of a Datafile Without a Backup,Datafile is lost that was never backed upCannot be used when it is a file from the SYSTEM tablespace,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,146,145,146,146,146,146,Open Database,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,146,145,146,144,146,146,Archivedlog file,144,Open Database,Recovery Without a Backup Example,Bring the datafile or tablespace online,4,1,Take the datafile or tablespace offline,2,Re-create the datafile,Datafile 4,3,3,3,Datafile 4,146,Datafile 3,Redo logfile 2,Datafile 2,Control files,Redo logfile 1,Datafile 1,146,145,146,146,146,146,Recovered Database,Datafile 4,146,Read-Only Tablespace Recovery,Backup 2,Recovery,Case 1,Case 2,Case 3,Backup 1,Read-Only,Read-Write,Read-Only,Read-Only,Read-Write,Read-Only Tablespace Recovery Issues,Special considerations must be taken for read-onlytablespaces when:Re-creating a control fileRenaming data filesUsing a backup control file,Loss of Control Files,You may need to create control files if:All control files are lost because of a failureThe name of a database needs to be changedThe current settings in the control file need to be changed,Recovering Control Files,Methods to recover from loss of control file:Use the current control fileCreate a new control fileUse a backup control file,Summary,In this lesson,you should have learned how to:Determine what type of recovery is requiredDetermine which files need to be restored and recoveredRecover a database in Noarchivelog modeRecover a database in Archivelog modeRestore datafiles to different locations if the original location is unavailable,Practices 12-1 and 12-2 Overview,These practices cover the following topics:Performing complete database recovery with the database in Noarchivelog modePerforming complete database recovery with the database in Archivelog mode,

    注意事项

    本文(oracle数据库恢复.ppt)为本站会员(牧羊曲112)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开