大型數(shù)據(jù)庫系統(tǒng)分析與設(shè)計:Less14-BR-Concepts_第1頁
大型數(shù)據(jù)庫系統(tǒng)分析與設(shè)計:Less14-BR-Concepts_第2頁
大型數(shù)據(jù)庫系統(tǒng)分析與設(shè)計:Less14-BR-Concepts_第3頁
大型數(shù)據(jù)庫系統(tǒng)分析與設(shè)計:Less14-BR-Concepts_第4頁
大型數(shù)據(jù)庫系統(tǒng)分析與設(shè)計:Less14-BR-Concepts_第5頁
已閱讀5頁,還剩21頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

1、Backup and Recovery ConceptsObjectivesAfter completing this lesson, you should be able to do the following:Identify the types of failure that may occur in an Oracle databaseDescribe ways to tune instance recoveryIdentify the importance of checkpoints, redo log files, and archive log filesConfigure A

2、RCHIVELOG modePart of Your JobThe administrators duties are to:Protect the database from failure wherever possibleIncrease the mean time between failures (MTBF)Decrease the mean time to recover (MTTR)Minimize the loss of dataCategories of FailuresFailures can generally be divided into the following

3、categories:Statement failureUser process failureNetwork failureUser errorInstance failureMedia failureStatement FailureTypical ProblemsPossible SolutionsAttempts to enter invalid data into a tableWork with users to validate and correct data.Attempts to perform operations with insufficient privileges

4、Provide appropriate object or system privileges.Attempts to allocate space that fail Enable resumable space allocation. Increase owner quota. Add space to tablespace.Logic errors in applicationsWork with developers to correct program errors.User Process FailureTypical ProblemsPossible SolutionsA use

5、r performs an abnormal disconnectA users session is abnormally terminatedA user experiences a program error that terminates the sessionA DBAs action is not usually needed to resolve user process failures. Instance background processes roll back uncommitted changes and release locks.Watch for trends.

6、Network FailureTypical ProblemsPossible SolutionsListener failsConfigure a backup listener and connect-time failover.Network Interface Card (NIC) failsConfigure multiple network cards.Network connection failsConfigure a backup network connection.User ErrorTypical CausesPossible SolutionsA user inadv

7、ertently deletes or modifies dataRoll back or use flashback query to recover.A user drops a tableRecover table from the recycle bin.Oracle LogMinerUser ErrorFull Notes PageInstance FailureTypical CausesPossible SolutionsPower outageRestart the instance by using the “startup” command. Recovering from

8、 instance failure is automatic, including rolling forward changes in the redo logs and then rolling back any uncommitted transactions.Investigate the causes of failure by using the alert log, trace files, and Enterprise Manager.Hardware failureFailure of one of the background processesEmergency shut

9、down proceduresInstance RecoveryInstance or crash recovery:Is caused by attempts to open a database whose files are not synchronized on shutdownIs automaticUses information stored in redo log groups to synchronize filesInvolves two distinct operations:Rolling forward: Data files are restored to thei

10、r state before the instance failed.Rolling back: Changes made but not committed are returned to their original state.Phases of Instance Recovery1.Data files out of sync2.Roll forward (redo)3.Committed and noncommitted data in files4.Roll back (undo)5.Committed data in filesDatabaseUndoInstanceBackgr

11、oundprocessesData fileSCN: 99Data fileSCN: 129Data fileSCN: 140Control fileSCN: 143Control fileSCN: 143Redo loggroupSCN 74-101Redo loggroupSCN 102-143SGATuning Instance RecoveryDuring instance recovery, the transactions between the checkpoint position and the end of redo log must be applied to data

12、files.Tune instance recovery by controlling the difference between the checkpoint position and the end of redo log.End of redo logCheckpoint positionTransactionsInstance recoveryUsing the MTTR AdvisorSpecify the desired time in seconds or minutes.The default value is 0 (disabled).The maximum value i

13、s 3,600 seconds (one hour).Media FailureTypical CausesPossible SolutionsFailure of disk drive1.Restore the affected file from backup.2.If necessary, inform the database of a new file location.3.If necessary, recover the file by applying redo information.Failure of disk controllerDeletion or corrupti

14、on of database fileConfiguring for RecoverabilityTo configure your database for maximum recoverability, you must:Schedule regular backupsMultiplex control filesMultiplex redo log groupsRetain archived copies of redo logsControl FilesProtect against database failure by multiplexing control files. Bes

15、t practice suggestions:At least two copies (Oracle recommends three)Each copy on a separate diskAt least one copy on a separate disk controllerControl filesRedo Log FilesMultiplex redo log groups to protect against media failure and loss of data. Best practice suggestions:At least two members (files

16、) per groupEach member on a separate disk driveEach member on a separate disk controllerNote: Performance is heavily influenced by writing to redo logs.Group 1Group 2Group 3Disk 1Disk 2Member 1Member 2Member 1Member 2Member 1Member 2Multiplexing the Redo LogArchive Log FilesTo preserve redo informat

17、ion, create archived copies of redo log files by performing the following steps.1.Specify archive log file naming convention.2.Specify one or more archive log file locations.3.Switch the database to ARCHIVELOG mode.Online redo log filesArchive log filesArchive Log File: Naming and DestinationsArchiv

18、ing Log File Naming and Destinations Full Notes PageARCHIVELOG ModeTo place the database in ARCHIVELOG mode, perform the following steps:1.Select the ARCHIVELOG Mode check box. 2.Click Apply. The database can be set to ARCHIVELOG mode only from the MOUNT state.3.Click Yes when asked whether you want to restart the database.4.Ba

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論