新聞中心
這期內容當中小編將會給大家?guī)碛嘘POracle中怎么利用amdu抽取數(shù)據(jù)文件,文章內容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
1.使amdu可以在oracle 10g環(huán)境中使用
在Oracle 10g環(huán)境,并沒有自帶amdu工具,需要自行去下載:
具體可以參考MOS文檔:
Placeholder for AMDU binaries and using with ASM 10g, 11g, 12c (文檔 ID 553639.1)
> $cd> $export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd` > or $setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:`pwd` > $export PATH=$PATH:`pwd` or setenv PATH ${PATH}:`pwd` > > or > > $cd > $export LIBPATH=$LIBPATH:`pwd` > or $setenv LIBPATH ${LIBPATH}:`pwd` > $export PATH=$PATH:`pwd` or setenv PATH ${PATH}:`pwd`
注意:如果是AIX平臺,則對應的是設置LIBPATH環(huán)境變量。我這里是Linux,所以設置LD_LIBRARY_PATH環(huán)境變量:
unzip /tmp/amdu_X86-64.zip export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd` export PATH=$PATH:`pwd`
2.使kfed可以在oracle 10g環(huán)境中使用
在Oracle 10g環(huán)境kfed需要編譯:
ASM tools used by Support : KFOD, KFED, AMDU (文檔 ID 1485597.1)
KFED executable comes with installation from 11.1 onwards; for the older version you must build it.
編譯方法如下:
$cd $ORACLE_HOME/rdbms/lib $make -f ins_rdbms.mk ikfed
3.amdu如何抽取損壞的ASM磁盤組數(shù)據(jù)
在ASM磁盤組損壞時,如何使用amdu工具來抽取數(shù)據(jù)庫文件:
How to Restore the Database Using AMDU after Diskgroup Corruption (文檔 ID 1597581.1)
1. Create pfile of lost database , from database alert.log startup messages. 2. Startup database in nomount 3. Get the controlfile number from db alert log , it will show while starting the database here in this eg. its 256 eg., control_files='+DATA/orcl/controlfile/current.256.709676643' If you have controlfile backup already in non-asm location edit the pfile to point to location of non-asm and then mount the database If you dont have controlfile backup then go to step 4 after determining the file# from step 3 4. $ amdu -diskstring-extract DATA.256 5. shutdown the database and change the control_file location to point to the extracted file location 6. startup mount the database 7. once mounted, get the datafile file numbers using "select name from v$datafile" And get online redo logfile from "select * from v$logfile". 8. Extract all datafiles and redolog files in similar manner 9. alter database rename to < newly extracte location> 10. open the database
實際可以做實驗去驗證下MOS這個步驟的可行性:
1.創(chuàng)建參數(shù)文件
2.啟動數(shù)據(jù)庫到nomount狀態(tài)
3.獲取到控制文件的number
4.抽出控制文件
5.關閉數(shù)據(jù)庫,修改control_file值
6.啟動數(shù)據(jù)庫到mount狀態(tài)
7.獲取到數(shù)據(jù)文件、日志文件的number
8.抽取數(shù)據(jù)文件和redo日志文件
9.重命名數(shù)據(jù)庫文件到新位置
10.打開數(shù)據(jù)庫
上述就是小編為大家分享的Oracle中怎么利用amdu抽取數(shù)據(jù)文件了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關知識,歡迎關注創(chuàng)新互聯(lián)成都網(wǎng)站設計公司行業(yè)資訊頻道。
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
分享標題:Oracle中怎么利用amdu抽取數(shù)據(jù)文件-創(chuàng)新互聯(lián)
URL網(wǎng)址:http://www.dlmjj.cn/article/dcdojh.html