版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 高中培訓(xùn)部對家長的總結(jié)
- 中考數(shù)學(xué)二輪復(fù)習(xí)專項1~17題對點提分訓(xùn)練(二)課件
- 數(shù)控車削加工技術(shù) 課件 項目一 數(shù)控車削工藝基礎(chǔ)
- 1.2 太陽對地球的影響(分層練習(xí))高一地理同步高效課堂(人教版2019必修第一冊)
- 廣東省惠州市博羅縣華僑中學(xué)2024-2025學(xué)年高二上學(xué)期同步檢測生物學(xué)試題(含答案)
- 2024-2025學(xué)年九年級上學(xué)期期中考試歷史試題 - 副本
- 2024年山東省淄博市中考化學(xué)試題卷(含答案解析)
- 審計基礎(chǔ)理論知識單選題100道及答案解析
- 2024年反洗錢基礎(chǔ)知識答題(試題及答案)
- 高中物理第四章電磁感應(yīng)6互感和自感課件新人教版選修3-
- 第5.2課《學(xué)習(xí)工匠事跡領(lǐng)略工匠風(fēng)采》(課件)-【中職專用】高二語文同步課件(高教版2023·職業(yè)模塊)
- 2024年中考?xì)v史九年級下冊重點知識點復(fù)習(xí)提綱(部編版)
- 美團社區(qū)團購的配送流程
- 保險行業(yè)2024年市場發(fā)展趨勢
- 艾滋病機會性感染治療臨床路徑全套
- 《中秋節(jié)來歷》課件
- 2023-2024學(xué)年天津市和平區(qū)七年級上學(xué)期期中質(zhì)量調(diào)查數(shù)學(xué)試題(含答案)
- 湖南省長沙市長郡集團五校聯(lián)考2023-2024學(xué)年八年級上學(xué)期期中地理試題( 含答案解析 )
- 服裝品牌運作西班牙快速時尚品牌ZARA-案例研究
- 信息化運維項目評分辦法及評分標(biāo)準(zhǔn)
- 新青島版科學(xué)四年級上冊全冊實驗匯總實驗專項
評論
0/150
提交評論