步7:在数据库中改名:
SQL> alter database rename file '+DG1/data/rdasm.dbf' to '/home/oracle/304.dbf';
Database altered.
将+DG1/data/rdasm.dbf改为/home/oracle/304.dbf 。
步8:恢复、并联机表空间
SQL> alter tablespace rdasm online;
alter tablespace rdasm online
*
ERROR at line 1:
ORA-01113: file 18 needs media recovery
ORA-01110: data file 18: '/home/oracle/304.dbf'
08 to 0B block_kfbh.obj:
Since this is a little endian architecture this represents the number "0x80000000". The high order byte will always be 0x80 and the lower bytes represent the disk number which is 0x0 here meaning this is the first disk in the diskgroup.
0C to 0F check_kfbh:
校验码,写到磁盘前计算。
10 to 13 fcn_kfbh.base
14 to 17 fcn_kfbh.wrap
18 to 1B fspare1_kfbh
1C to 1f fspare2_kfbh
磁盘头无意义。
20 to 27 driver_kfdhdb.driver_kfdhdb:
没有使用Lib包的时候显示为ORCLDISK。
46 grptyp_kfdhdb:
冗余策略:
KFDGTP_INVALID ((kfdgtp)0) /* Illegal value */
KFDGTP_EXTERNAL ((kfdgtp)1) /* External redundancy */
KFDGTP_NORMAL ((kfdgtp)2) /* Normal redundancy */
KFDGTP_HIGH ((kfdgtp)3) /* High redundancy */
47 hdrsts_kfdhdb:
KFDHDR_INVALID ((kfdhdr)0) /* Illegal value */
KFDHDR_UNKNOWN ((kfdhdr)1) /* Disk header block unreadable */
KFDHDR_CANDIDATE ((kfdhdr)2) /* No OSM or OS disk header found */
KFDHDR_MEMBER ((kfdhdr)3) /* Normal member of the group */
KFDHDR_FORMER ((kfdhdr)4) /* Disk dropped cleanly from group */
KFDHDR_CONFLICT ((kfdhdr)5) /* Header conflicts */
KFDHDR_INCOMPAT ((kfdhdr)6) /* Written by incompatible software*/
KFDHDR_PROVISIONED ((kfdhdr)7) /* Disk was prepared beforehand */
参见V$asm_disk
kfdhdb.f1b1locn: 2 ; 0x0d4: 0x00000002
File Directory block 1 Allocation Unit number
第六章 PST - Partnership and Status Table
位于每个磁盘第二个AU,AU编号为1。
PST - Partnership and Status Table contains the status information about
the ASM disks in a disk group - disk number, status (either online or offline),
partner disk number, failure group info (11g) and heartbeat info. AU number 1
in every disk within a disk group is reserved for PST. Only a few disk actually
have a PST - in external redundancy group we only have one PST table, in normal
redundancy group (double mirroring) we have up to 3 PST and in high redundancy
we have up to 5 PST. The GMON process is responsible for PST processing. See
kfdp source code for more informaiton.
第八章 重要的文件
一、1号文件,文件目录。记录所有其他文件的AU分布
二、2号文件,磁盘目录。记录所有磁盘状态
其中的标志位信息如下:kfddde[0].state:
#define KFDSTA_INVALID ((kfdsta)0) /* Illegal value */
#define KFDSTA_UNKNOWN ((kfdsta)1) /* ASM disk state not known */
#define KFDSTA_NORMAL ((kfdsta)2) /* Happy disk */
#define KFDSTA_UNUSED ((kfdsta)3) /* Unused State - Open */
#define KFDSTA_DROPPING ((kfdsta)4) /* Disk being dropped from group */
#define KFDSTA_HUNG ((kfdsta)5) /* Disk drop operation hung */
#define KFDSTA_FORCING ((kfdsta)6) /* Disk beinng drop forced */
#define KFDSTA_DROPPED ((kfdsta)7) /* Disk no longer part of group */
#define KFDSTA_ADDING ((kfdsta)8) /* Disk being globally validated */
三、3号文件,ACD
四、4号文件:COD。相当于ASM中的回滚段
五、5号文件:模版目录
六、别名目录