oracle 10g amdu工具使用
来源:互联网 发布:网络备案查询 编辑:程序博客网 时间:2024/05/23 19:18
前几天采用amdu工具为客户恢复过oracle 11g的一个数据库,后来仔细找了下资料,发现在10g上其实也可以使用该工具,但是需要自己安装
在ASM的OCR磁盘损坏后,数据库无法正常使用可以使用amdu将数据文件抽取出来,其实这个工具在10g也可以使用,不过需要配置安装才可以。,在10g的ASM中要使用AMDU工具,需要自行下载安装:
Linux X86 (Platform 46)amdu_lnx_32.zipLinux X86-64 AMD64/EM64T (Platform 226)amdu_lnx_X86-64.zipSolaris 10 Sparc 64bit (Platform 23)amdu_solaris10_64.zipSolaris 9 Sparc 64bit (Platform 23)amdu_solaris9_64.zipHP-UX PA-RISC 64bits (Platform 59)amdu_HP-PARISC.zipHP-UX Itanium (Platform 197)amdu_hp_itanium.zipAIXamdu_aix.zip分别下载三个工具后,直接上传到ORACLE 软件目录一个目录,解压即为安装,解压后的文件目录下会存在如下四个文件:1. amdu -- amdu binary
2. libclntsh.so.11.1
3. libnnz11.so
4. libskgxp11.so
将如上的文件路径配加入环境变量即可
$cd <your directory>
$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`
这时候可以使用amdu查看任意asm磁盘的相关信息:
-bash-3.2$ ./amdu -diskstring '/dev/raw/raw3'
amdu_2012_02_26_19_00_17/
运行后默认会生成一个 命名方式为amdu_YYYY_MM_DD_HH24_MM_SS文件夹,如上可见
-bash-3.2$ cd amdu_2012_02_26_19_00_17/
-bash-3.2$ ls
report.txt
-bash-3.2$ more report.txt
-*-amdu-*-
******************************* AMDU Settings ********************************
ORACLE_HOME = /opt/rac/database
System name: Linux
Node name: primary
Release: 2.6.18-164.el5
Version: #1 SMP Tue Aug 18 15:51:54 EDT 2009
Machine: i686
amdu run: 26-FEB-12 19:00:17
Endianess: 1
--------------------------------- Operations ---------------------------------
------------------------------- Disk Selection -------------------------------
-diskstring '/dev/raw/raw3'
------------------------------ Reading Control -------------------------------
------------------------------- Output Control -------------------------------
********************************* DISCOVERY **********************************
----------------------------- DISK REPORT N0001 ------------------------------
Disk Path: /dev/raw/raw3
Unique Disk ID:
Disk Label:
Physical Sector Size: 512 bytes
Disk Size: 8032 megabytes
Group Name: DATA
Disk Name: DATA_0000
Failure Group Name: DATA_0000
Disk Number: 0
Header Status: 3
Disk Creation Time: 2011/01/21 17:47:28.754000
Last Mount Time: 2012/02/15 09:44:27.166000
Compatibility Version: 0x0a100000
Disk Sector Size: 512 bytes
Disk size in AUs: 8032 AUs
Group Redundancy: 1
Metadata Block Size: 4096 bytes
AU Size: 1048576 bytes
Stride: 113792 AUs
Group Creation Time: 2011/01/21 17:47:27.971000
File 1 Block 1 location: AU 2
******************************* END OF REPORT ********************************
导出DATA磁盘组的相关信息:
-bash-3.2$ ./amdu -diskstring '/dev/raw/raw*' -dump 'DATA'
amdu_2012_02_26_19_10_18/
这个时候会生成三个文件
DATA1.map
report.txt
如上三个文件分别是如下作用
1. report.txt
Like the name, it include details about the disks scanned (name, diskgroup name, failgroup name, size, creation time, etc).
2. *.map
For every diskgroup referenced on command -dump, will be a *.map file, which can be used to find the exact location of the ASM metadata on the disks. This file is a key component when reviewing specific areas of the metadata.
3. *.img
For each diskgroup, could be many image files. The size is limited to 2gb and will be a exact dump of the content of the diskgroup.
- oracle 10g amdu工具使用
- ASM AMDU工具使用
- ASM AMDU工具的使用
- ASM AMDU工具的使用
- ASM工具集合-amdu
- ASM工具集合-amdu
- Oracle 10g exp/imp导出导入工具的使用
- oracle 10g exp/imp导出导入工具的使用
- ORACLE 10G ADDM诊断工具的使用
- Oracle 11g不使用sqlplusw工具
- Oracle 11g ADRCI工具使用
- Oracle 11g ADRCI工具使用
- 介绍Oracle自带的一些ASM维护工具 (kfod/kfed/amdu)
- Oracle自带的一些ASM维护工具 (kfod/kfed/amdu)
- Placeholder for AMDU binaries and using with ASM 10g (Doc ID 553639.1)
- 使用AMDU工具从无法MOUNT的DISKGROUP中抽取数据文件
- oracle 10g logmnr使用
- oracle 10g logminer 使用
- ORA-01652: unable to extend temp segment by 128 in tablespace TEMP01
- 场景测试学习与探索
- 数据库设计最佳实践
- HDU 1875
- 硬件加速简要
- oracle 10g amdu工具使用
- 随笔
- Android下fastcv搭建
- 2011国家公务员答案
- 内容链接
- 整数的分划问题
- http://www.rcgroups.com/forums/showthread.php?t=1184210
- C语言中,即使参数声明为数组,它仍然是个指针
- spring中连接池的配置