使用kfed修复磁盘组DSKGRP2Oracle认证考试
文章作者 100test 发表时间 2009:11:13 22:10:38
来源 100Test.Com百考试题网
"tbbnc">
1>.. 编译产生kfed
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk ikfed
Linking KFED utility (kfed)
rm -f /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/kfed
gcc -o /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/kfed -L/oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/ -L/oracle/app/oracle/product/10.2.0/db_1/lib/ -L/oracle/app/oracle/product/10.2.0/db_1/lib/stubs/ -L/usr/lib -lirc /oracle/app/oracle/product/10.2.0/db_1/lib/s0main.o /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/sskfeded.o /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/skfedpt.o /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/defopt.o -ldbtools10 -lclntsh `cat /oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lmm -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /oracle/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /oracle/app/oracle/product/10.2.0/db_1/lib/sysliblist` -Wl,-rpath,/oracle/app/oracle/product/10.2.0/db_1/lib -lm `cat /oracle/app/oracle/product/10.2.0/db_1/lib/sysliblist` -ldl -lm -L/oracle/app/oracle/product/10.2.0/db_1/lib
mv -f /oracle/app/oracle/product/10.2.0/db_1/bin/kfed /oracle/app/oracle/product/10.2.0/db_1/bin/kfedO
mv: cannot stat `/oracle/app/oracle/product/10.2.0/db_1/bin/kfed : No such file or directory
make: [ikfed] Error 1 (ignored)
mv /oracle/app/oracle/product/10.2.0/db_1/rdbms/lib/kfed /oracle/app/oracle/product/10.2.0/db_1/bin/kfed
chmod 751 /oracle/app/oracle/product/10.2.0/db_1/bin/kfed
2>.. 查看磁盘组信息
0select name,path,total_mb,free_mb,failgroup from v$asm_disk order by name
ALTER DISKGROUP DSKGRP2 ADD DISK /oracle/oradata/asmdisk04 .
set lines 200 pages 80
col name for a20
col path for a40
0select name,path,STATE,total_mb,free_mb,failgroup from v$asm_disk order by name.
NAME PATH TOTAL_MB FREE_MB FAILGROUP
-------------------- ---------------------------- --------- ---------- ----------------
ARCHGROUP_0000 /oracle/oradata/asmdisk09 1024 927 ARCHGROUP_0000
ARCHGROUP_0001 /oracle/oradata/asmdisk10 1024 927 ARCHGROUP_0001
DSKGRP1_0000 /oracle/oradata/asmdisk01 1024 566 CONTROLLER1
DSKGRP1_0001 /oracle/oradata/asmdisk02 1024 568 CONTROLLER1
DSKGRP1_0002 /oracle/oradata/asmdisk05 1024 567 CONTROLLER2
DSKGRP1_0003 /oracle/oradata/asmdisk06 1024 567 CONTROLLER2
DSKGRP2_0000 /oracle/oradata/asmdisk03 1024 998 DSKGRP2_0000
DSKGRP2_0001 /oracle/oradata/asmdisk07 1024 999 DSKGRP2_0001
DSKGRP2_0002 /oracle/oradata/asmdisk04 1024 1020 DSKGRP2_0002
/oracle/oradata/asmdisk08 1024 0
0select name,state from v$asm_diskgroup.
NAME STATE
------------------------------------------------------------ ----------------------
ARCHGROUP MOUNTED
DSKGRP1 MOUNTED
DSKGRP2 MOUNTED