One use of Oracle ASM kfed Tools

Source: Internet
Author: User

[[email protected] db_1]# su-oracle[[email protected] ~]$ cd/u01/app/oracle/product/10.2.0/db_1/rdbms/ Lib[[email protected] lib]$ pwd/u01/app/oracle/product/10.2.0/db_1/rdbms/lib[[email protected] lib]$ ls- LRT ikfedls:ikfed:No such file or directory[[email protected] lib]$ LS-LRT ins_rdbms.mk-rw-r--r--1 Oracle Oinstal L 27275 Apr ins_rdbms.mk[[email protected] lib]$ make-f ins_rdbms.mk ikfedlinking kfed utility (KFED) rm-f /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/kfedgcc-o/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/kfed-l/ u01/app/oracle/product/10.2.0/db_1/rdbms/lib/-l/u01/app/oracle/product/10.2.0/db_1/lib/-L/u01/app/oracle/ product/10.2.0/db_1/lib/stubs//u01/app/oracle/product/10.2.0/db_1/lib/s0main.o/u01/app/oracle/product/10.2.0/ db_1/rdbms/lib/sskfeded.o/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/skfedpt.o/u01/app/oracle/product/10.2.0 /db_1/rdbms/lib/defopt.o-ldbtools10-lclntsh ' cat/u01/app/oracle/product/10.2.0/db_1/lib/ldflags '-lnsslb10-lncrypt10-lnsgr10-lnzjs10-ln10-lnnz10-lnl10-lnro10 ' CAT/U01/APP/ORACLE/PRODUCT/10. 2.0/db_1/lib/ldflags '-lnsslb10-lncrypt10-lnsgr10-lnzjs10-ln10-lnnz10-lnl10-lclient10-lnnetd10-lvsn10-lcommo N10-lgeneric10-lmm-lsnls10-lnls10-lcore10-lsnls10-lnls10-lcore10-lsnls10-lnls10-lxml10-lcore10-lunls10-lsnl S10-lnls10-lcore10-lnls10 ' Cat/u01/app/oracle/product/10.2.0/db_1/lib/ldflags '-lnsslb10-lncrypt10-lnsgr10-lnzjs 10-ln10-lnnz10-lnl10-lnro10 ' Cat/u01/app/oracle/product/10.2.0/db_1/lib/ldflags '-lnsslb10-lncrypt10-lnsgr10-ln Zjs10-ln10-lnnz10-lnl10-lclient10-lnnetd10-lvsn10-lcommon10-lgeneric10-lsnls10-lnls10-lcore10-lsnls10-lnl S10-lcore10-lsnls10-lnls10-lxml10-lcore10-lunls10-lsnls10-lnls10-lcore10-lnls10-lclient10-lnnetd10-lvsn10-l Common10-lgeneric10-lsnls10-lnls10-lcore10-lsnls10-lnls10-lcore10-lsnls10-lnls10-lxml10-lcore10-lunls10-lsnl S10-lnls10-lcore10-lnLs10 ' cat/u01/app/oracle/product/10.2.0/db_1/lib/sysliblist '-wl,-rpath,/u01/app/oracle/product/10.2.0/db_1/lib- LM ' Cat/u01/app/oracle/product/10.2.0/db_1/lib/sysliblist '-ldl-lm-l/u01/app/oracle/product/10.2.0/db_1/libmv-f/ U01/app/oracle/product/10.2.0/db_1/bin/kfed/u01/app/oracle/product/10.2.0/db_1/bin/kfedomv:cannot Stat '/u01/app /oracle/product/10.2.0/db_1/bin/kfed ': No such file or directorymake: [ikfed] Error 1 (ignored) mv/u01/app/oracle/ Product/10.2.0/db_1/rdbms/lib/kfed/u01/app/oracle/product/10.2.0/db_1/bin/kfedchmod 751/u01/app/oracle/product/ 10.2.0/db_1/bin/kfed[[email protected] lib]$ which kfed/u01/app/oracle/product/10.2.0/db_1/bin/kfed[[email  protected] lib]$ kfed-has/mlib ASM Library [asmlib= ' lib ']aun/um AU number to examine or update [AU num=number]aus/z Allocation Unit size in bytes [ausz=number]blkn/um Block number to examine or update [B] LKNUM=NUMBER]BLKS/Z Metadata block size in bytes [blksz=nUmber]ch/ksum Update Checksum before each write [chksum=yes/no]cn/t Count of AUs to process [cnt=number ]d/ev ASM device to examine or update [dev=string]o/p kfed operation Type [Op=read/write/merge/repa  IR/NEW/FORM/FIND/STRUCT]P/ROVNM Name for provisioning purposes [Provnm=string]s/eek AU number to seek to [Seek=number]te/xt File name for translated block text [text=string]ty/pe ASM metadata block type num ber [type=number][[email protected] lib]$ export oracle_sid=+asm[[email protected] lib]$ Ps-ef |        grep asmoracle 5072 1 0 23:38?        00:00:00 asm_pmon_+asmoracle 5074 1 0 23:38?        00:00:00 asm_psp0_+asmoracle 5076 1 0 23:38?        00:00:00 asm_mman_+asmoracle 5078 1 0 23:38?        00:00:00 asm_dbw0_+asmoracle 5080 1 0 23:38?        00:00:00 asm_lgwr_+asmoracle 5082 1 0 23:38? 00:00:00 asm_ckpt_+asmoracle 5084 1 0 23:38?        00:00:00 asm_smon_+asmoracle 5086 1 0 23:38?        00:00:00 asm_rbal_+asmoracle 5088 1 0 23:38? 00:00:00 asm_gmon_+asmoracle 5280 5168 0 23:46 pts/1 00:00:00 grep asm[[email protected] lib]$ sqlplus/as s  Ysdbasql*plus:release 10.2.0.5.0-production on Tue Jan 6 23:46:27 2015Copyright (c) 1982, Oracle. All rights reserved.connected to:oracle Database 10g Enterprise Edition Release 10.2.0.5.0-64bit productionwith the part                                 Itioning, OLAP, Data Mining and Real application testing optionssql> show parameter Instname TYPE VALUE-----------------------------------------------------------------------------Active_instance_coun T integercluster_database_instances integer 1instance_groups Stringinsta                        Nce_name string +asminstance_number integer 0instance_type String AsmoPen_links_per_instance integer 4parallel_instance_group stringparallel_server_instances Integer 1sql> set pagesize 100sql> set linesize 100sql> Col name format a15sql> Select Group_number , NAME,STATE,TYPE,TOTAL_MB,FREE_MB,USABLE_FILE_MB from V$asm_diskgroup; Group_number NAME State TYPE total_mb free_mb usable_file_mb------------------------------------          ------------------------------------------1 DATADG mounted EXTERN 15342 15288 15288sql> set pagesize 200sql> set linesize 150sql> col path format A20; sql> Col group_name format a10sql> col name format a20sql> select A.group_number,b.name as GROUP_NAME,A.NAME,A.PA TH,A.STATE,A.TOTAL_MB from V$asm_disk A,v$asm_diskgroup b where a.group_number=b.group_number; Group_number group_name NAME PATH State total_mb----------------------------------- ------- --------------------------------------1 datadg datadg_0000/dev/raw/raw1 NORMAL 5114 1 DATADG datadg_0001/dev/raw/raw2 NORMAL 5114 1 DATADG datadg_0002/ DEV/RAW/RAW3 NORMAL 5114sql> exitdisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0 .5.0-64bit Productionwith The partitioning, OLAP, Data Mining and Real application testing options[[email protected ] lib]$ kfed read/dev/raw/raw1 text=/home/oracle/asmdisk_raw1.txt[[email protected] lib]$ [[email  Protected] lib]$ kfed read/dev/raw/raw2 text=/home/oracle/asmdisk_raw2.txt[[email protected] lib]$ [[Email  protected] lib]$ kfed read/dev/raw/raw3 text=/home/oracle/asmdisk_raw3.txt[[email protected] lib]$ [[      Email protected] lib]$ cd/home/oracle[[email protected] ~]$ ls-lrttotal 215832drwxr-xr-x 2 Oracle Oinstall  4096 Dec meta-inf-rwxr-xr-x 1 root root        6464 oracle_user_setup.sql-rwxr-xr-x 1 root root 2977 may Oracle_drop_db_permiss  ions.sql-rw-r--r--1 Oracle Oinstall 144608374 may agent.jardrwxr-xr-x 3 Oracle Oinstall 4096 15 2013 Networkdrwxr-xr-x 8 Oracle Oinstall 4096 may avdrwxr-xr-x 7 Oracle Oinstall 4096 Xr-x---3 Oracle oinstall 4096 may oradiag_oracledrwxr-xr-x 3 Oracle Oinstall 4096 w-r--r--1 Oracle Oinstall 1009 may pfile0526.oradrwxr-xr-x 2 Oracle Oinstall 4096 -rw-r--r--1 Oracle Oinstall 214064 may hcheck3.sql-r--r--r--1 Oracle Oinstall READM      e.txt-rw-r--r--1 root root 75862388 2 p17036223_80_linux-x86-64.zipdrwxr-xr-x Oracle Oinstall 4096 rda-rw-r--r--1 Oracle oinstall 2076 DEC SHRINK.SQL-RW-------1 Oracle Oinstall 155 4 Dec Nohup.out-rw-r--r--1 Oracle Oinstall 6609 Jan 6 23:49 asmdisk_raw1.txt-rw-r--r--1 Oracle oinstall 6609 Jan 6 23:49 asmdisk_raw2.txt-rw-r--r--1 Oracle Oinstall 6609 Jan 6 23:49 asmdisk_raw3.txt



The contents of Asmdisk_raw1.txt are as follows:

Kfbh.endian:1; 0X000:0X01---> byte order: Littleendian = 1;bigendian = 0kfbh.hard:130; 0x001:0x82--->kfbh.type:1; 0x002:kfbtyp_diskheadkfbh.datfmt:1; 0x003:0x01kfbh.block.blk:0; 0x004:t=0 numb=0x0kfbh.block.obj:2147483648; 0x008:type=0x8 numb=0x0kfbh.check:1222233764; 0x00c:0x48d9cea4kfbh.fcn.base:0; 0x010:0x00000000kfbh.fcn.wrap:0; 0x014:0x00000000kfbh.spare1:0; 0x018:0x00000000kfbh.spare2:0; 0x01c:0x00000000kfdhdb.driver.provstr:orcldisk; 0x000:length=8kfdhdb.driver.reserved[0]: 0; 0X008:0X00000000KFDHDB.DRIVER.RESERVED[1]: 0; 0X00C:0X00000000KFDHDB.DRIVER.RESERVED[2]: 0; 0X010:0X00000000KFDHDB.DRIVER.RESERVED[3]: 0; 0x014:0x00000000kfdhdb. Driver.reserved[4]: 0; 0X018:0X00000000KFDHDB.DRIVER.RESERVED[5]: 0; 0x01c:0x00000000kfdhdb.compat:168820736; 0x020:0x0a100000kfdhdb.dsknum:0; 0x024:0x0000kfdhdb.grptyp:1; 0x026:kfdgtp_externalkfdhdb.hdrsts:3; 0x027:kfdhdr_memberkfdhdb.dskname:datadg_0000; 0X028:LENGTH=11KFDHDB.GRPNAME:DATADG; 0x048:length=6kfdhdb.fgname:datadg_0000; 0x068:length=11kfdhdb.capname:; 0x088:length=0kfdhdb.crestmp.hi:33014999; 0x0a8:hour=0x17 days=0x6 mnth=0x1 year=0x7dfkfdhdb.crestmp.lo:2629775360; 0x0ac:usec=0x0 msec=0x3cc secs=0xb mins=0x27kfdhdb.mntstmp.hi:33014999; 0x0b0:hour=0x17 days=0x6 mnth=0x1 year=0x7dfkfdhdb.mntstmp.lo:2640999424; 0x0b4:usec=0x0 msec=0x29d secs=0x16 mins=0x27kfdhdb.secsize:512; 0x0b8:0x0200kfdhdb.blksize: 4096; 0x0ba:0x1000kfdhdb.ausize:1048576; 0x0bc:0x00100000kfdhdb.mfact:113792; 0x0c0:0x0001bc80kfdhdb.dsksize:5114; 0x0c4:0x000013fakfdhdb.pmcnt:2; 0x0c8:0x00000002kfdhdb.fstlocn:1; 0x0cc:0x00000001kfdhdb.altlocn:2; 0x0d0:0x00000002kfdhdb.f1b1locn:2; 0x0d4:0x00000002kfdhdb.redomirrors[0]: 0; 0X0D8:0X0000KFDHDB.REDOMIRRORS[1]: 0; 0X0DA:0X0000KFDHDB.REDOMIRRORS[2]: 0; 0X0DC:0X0000KFDHDB.REDOMIRRORS[3]: 0; 0x0de:0x0000kfdhdb.dbcompat:168820736; 0x0e0:0x0a100000kfdhdb.grpstmp.hi:33014999; 0x0e4:hour=0x17 days=0x6 mnth=0x1 year=0x7dfkfdhdb.grpstmp.lo:2628680704; 0x0e8:usec=0x0 msec=0x39f secs=0xa mins=0x27kfdhdb.ub4spare[0]: 0;               0X0EC:0X00000000KFDHDB.UB4SPARE[1]:    0; 0X0F0:0X00000000KFDHDB.UB4SPARE[2]: 0; 0X0F4:0X00000000KFDHDB.UB4SPARE[3]: 0; 0X0F8:0X00000000KFDHDB.UB4SPARE[4]: 0; 0X0FC:0X00000000KFDHDB.UB4SPARE[5]: 0; 0X100:0X00000000KFDHDB.UB4SPARE[6]: 0; 0X104:0X00000000KFDHDB.UB4SPARE[7]: 0; 0X108:0X00000000KFDHDB.UB4SPARE[8]: 0; 0X10C:0X00000000KFDHDB.UB4SPARE[9]: 0; 0X110:0X00000000KFDHDB.UB4SPARE[10]: 0; 0X114:0X00000000KFDHDB.UB4SPARE[11]: 0; 0X118:0X00000000KFDHDB.UB4SPARE[12]: 0; 0X11C:0X00000000KFDHDB.UB4SPARE[13]: 0; 0X120:0X00000000KFDHDB.UB4SPARE[14]: 0; 0X124:0X00000000KFDHDB.UB4SPARE[15]: 0; 0X128:0X00000000KFDHDB.UB4SPARE[16]: 0; 0X12C:0X00000000KFDHDB.UB4SPARE[17]: 0;           0X130:0X00000000KFDHDB.UB4SPARE[18]:       0; 0X134:0X00000000KFDHDB.UB4SPARE[19]: 0; 0X138:0X00000000KFDHDB.UB4SPARE[20]: 0; 0X13C:0X00000000KFDHDB.UB4SPARE[21]: 0; 0X140:0X00000000KFDHDB.UB4SPARE[22]: 0; 0X144:0X00000000KFDHDB.UB4SPARE[23]: 0; 0X148:0X00000000KFDHDB.UB4SPARE[24]: 0; 0X14C:0X00000000KFDHDB.UB4SPARE[25]: 0; 0X150:0X00000000KFDHDB.UB4SPARE[26]: 0; 0X154:0X00000000KFDHDB.UB4SPARE[27]: 0; 0X158:0X00000000KFDHDB.UB4SPARE[28]: 0; 0X15C:0X00000000KFDHDB.UB4SPARE[29]: 0; 0X160:0X00000000KFDHDB.UB4SPARE[30]: 0; 0X164:0X00000000KFDHDB.UB4SPARE[31]: 0; 0X168:0X00000000KFDHDB.UB4SPARE[32]: 0; 0X16C:0X00000000KFDHDB.UB4SPARE[33]: 0; 0X170:0X00000000KFDHDB.UB4SPARE[34]: 0;        0X174:0X00000000KFDHDB.UB4SPARE[35]:          0; 0X178:0X00000000KFDHDB.UB4SPARE[36]: 0; 0X17C:0X00000000KFDHDB.UB4SPARE[37]: 0; 0X180:0X00000000KFDHDB.UB4SPARE[38]: 0; 0X184:0X00000000KFDHDB.UB4SPARE[39]: 0; 0X188:0X00000000KFDHDB.UB4SPARE[40]: 0; 0X18C:0X00000000KFDHDB.UB4SPARE[41]: 0; 0X190:0X00000000KFDHDB.UB4SPARE[42]: 0; 0X194:0X00000000KFDHDB.UB4SPARE[43]: 0; 0X198:0X00000000KFDHDB.UB4SPARE[44]: 0; 0X19C:0X00000000KFDHDB.UB4SPARE[45]: 0; 0X1A0:0X00000000KFDHDB.UB4SPARE[46]: 0; 0X1A4:0X00000000KFDHDB.UB4SPARE[47]: 0; 0X1A8:0X00000000KFDHDB.UB4SPARE[48]: 0; 0X1AC:0X00000000KFDHDB.UB4SPARE[49]: 0; 0X1B0:0X00000000KFDHDB.UB4SPARE[50]: 0; 0X1B4:0X00000000KFDHDB.UB4SPARE[51]: 0;     0X1B8:0X00000000KFDHDB.UB4SPARE[52]:             0; 0X1BC:0X00000000KFDHDB.UB4SPARE[53]: 0; 0X1C0:0X00000000KFDHDB.UB4SPARE[54]: 0; 0X1C4:0X00000000KFDHDB.UB4SPARE[55]: 0; 0X1C8:0X00000000KFDHDB.UB4SPARE[56]: 0; 0X1CC:0X00000000KFDHDB.UB4SPARE[57]: 0; 0x1d0:0x00000000kfdhdb.acdb.aba.seq:0; 0x1d4:0x00000000kfdhdb.acdb.aba.blk:0; 0x1d8:0x00000000kfdhdb.acdb.ents:0; 0x1dc:0x0000kfdhdb.acdb.ub2spare:0; 0x1de:0x0000


One use of Oracle ASM kfed Tools

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.