


下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、ASM 存儲(chǔ)里ASM數(shù)據(jù)庫從文件系統(tǒng)遷移到ASMRMAN。注意,遷移之前, 如果啟用了閃回?cái)?shù)據(jù)庫功能,則需要先關(guān)閉閃回?cái)?shù)據(jù)庫功能。ASM(本數(shù)據(jù)庫啟用了歸檔):1) alter database backup controlfile to /u01/control.ctl;SQL alter system set control_files=+DgroupA scope=spfile;SQL alter system set db_recovery_file_dest=+DgroupB;1) alter database backup controlfile to /u01/control.c
2、tl;SQL alter system set control_files=+DgroupA scope=spfile;SQL alter system set db_recovery_file_dest=+DgroupB;2) 正常關(guān)閉數(shù)據(jù)庫。SQL shutdown immediate;3) 啟動(dòng) RMAN,并將數(shù)據(jù)庫啟動(dòng)到 nomount階段。oraclebook ora10g$ rman target /RMAN startup nomount;4) 恢復(fù)剛才備份的控制文件,由于我們設(shè)件會(huì)存放在 DgroupA 里。RMAN restore controlfile from /u01/
3、control.ctl;Starting restore at 18-OCT-07using target database control file instead of recovery catalogusing target database control file instead of recovery catalogallocated channel: ORA_DISK_1output filename=+DGROUPA/ora10g/controlfile/current.256.636273263Finished restore at 18-OCT-075) 將數(shù)據(jù)庫 moun
4、t 起來。RMAN alter database mount;6) !-endif5) 將數(shù)據(jù)庫 mount 起來。RMAN alter database mount;6) 通過拷貝的方式,將所有的數(shù)據(jù)文件全都遷移到 ASM 磁盤組(DgroupA)里。RMAN backup as copy database format +DgroupA;Starting backup at 18-OCT-07Starting implicit crosscheck backup at 18-OCT-07using channel ORA_DISK_1channel ORA_DISK_1: starting
5、 datafile copyinput datafile fno=00001 name=/u01/app/oracle/oradata/ora10g/system01.dbfoutput filename=+DGROUPA/ora10g/datafile/system.257.636273329 tag=TAG20071018T063528 recid=2stamp=636273411channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:25Finished backup at 18-OCT-07RMAN-06497:
6、WARNING: control file is not current, control file autobackup skipped7) !-endif7) 開始恢復(fù)數(shù)據(jù)庫。RMAN recover database;archi.ve log thread 1 sequence 9 is already on disk as file /u01/app/oracle/oradata/ora10g/redo02.logmedia recovery complete, elapsed time: 00:00:04Finished recover at 19-OCT-07RMAN recove
7、r database;archi.ve log thread 1 sequence 9 is already on disk as file /u01/app/oracle/oradata/ora10g/redo02.logmedia recovery complete, elapsed time: 00:00:04Finished recover at 19-OCT-078) 將臨時(shí)表空間所包含的臨時(shí)文件遷移到磁盤組 DgroupA 里。RMAN run2 switch tempfile 1 to +DgroupA;3 renamed temporary file 1 to +DgroupA in control file9) alter database rename file /u01/app/oracle/oradata/ora10g/redo01.log to +DgroupA;SQL alter database rename file /u01/app/oracle/oradata/ora10g/redo02.log to +DgroupA;SQL alter database rename file /u
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 屋面水泥瓦施工方案
- 耐腐蝕泵項(xiàng)目風(fēng)險(xiǎn)識別與評估綜合報(bào)告
- 青少年心理健康與行為發(fā)展教育實(shí)踐
- 浙江華遠(yuǎn):盈利預(yù)測報(bào)告及審核報(bào)告
- 金浦鈦業(yè):上海東邑酒店管理有限公司2024年1-9月財(cái)務(wù)報(bào)表審計(jì)報(bào)告
- 山東石雕六角亭施工方案
- 埋地涂塑鋼管安裝施工方案
- 項(xiàng)目監(jiān)理實(shí)施方案
- 黃土邊坡錨桿施工方案
- 電氣設(shè)備二次搬運(yùn)施工方案
- 課件圍術(shù)期下肢深靜脈血栓的預(yù)防與護(hù)理
- 2025年菏澤家政職業(yè)學(xué)院單招職業(yè)技能測試題庫完美版
- 清華大學(xué)告訴你普通人如何抓住DeepSeek紅利
- (2025)輔警招聘公安基礎(chǔ)知識必刷題庫及參考答案
- 農(nóng)業(yè)機(jī)械設(shè)備維護(hù)與質(zhì)量保障措施
- 基于圖像處理的CAD圖紙比對算法
- 二零二五年度城市排水管網(wǎng)運(yùn)維合作協(xié)議4篇
- 《習(xí)近平法治思想概論(第二版)》 課件 2. 第二章 習(xí)近平法治思想的理論意義
- 人教版高中英語挖掘文本深度學(xué)習(xí)-選修四-UNIT-4(答案版)
- 太陽能微動(dòng)力農(nóng)村污水處理系統(tǒng)建設(shè)項(xiàng)目可行性研究報(bào)告
- 子宮內(nèi)膜增生護(hù)理個(gè)案
評論
0/150
提交評論