- 最后登录
- 2015-1-14
- 在线时间
- 51 小时
- 威望
- 18
- 金钱
- 122
- 注册时间
- 2012-2-6
- 阅读权限
- 10
- 帖子
- 14
- 精华
- 0
- 积分
- 18
- UID
- 205
|
2#
发表于 2013-2-26 18:03:57
- GROUP_NUMBER FILE_NUMBER BYTES SPACE InMB Name
- ------------ ----------- ---------- ---------- ---------- ------------------------------------------------------------
- 1 253 1536 1048576 1 REGISTRY.253.774707041
- 1 255 272756736 274726912 262 REGISTRY.255.774707043
- 2 256 807411712 809500672 772 SYSTEM.256.774710013
- 2 257 1352671232 1354760192 1292 SYSAUX.257.774710013
- 2 258 608182272 610271232 582 UNDOTBS1.258.774710015
- 2 259 5251072 6291456 6 USERS.259.774710015
- 2 260 18497536 25165824 24 Current.260.774710113
- 2 261 52429312 53477376 51 group_1.261.774710115
- 2 262 52429312 53477376 51 group_2.262.774710117
- 2 263 71311360 73400320 70 TEMP.263.774710121
- 2 264 288366592 290455552 277 UNDOTBS2.264.774710225
- GROUP_NUMBER FILE_NUMBER BYTES SPACE InMB Name
- ------------ ----------- ---------- ---------- ---------- ------------------------------------------------------------
- 2 265 52429312 53477376 51 group_3.265.774710279
- 2 266 52429312 53477376 51 group_4.266.774710281
- 2 267 4608 1048576 1 spfile.267.774710281
- 2 268 78651392 80740352 77 UNDOTBS3.268.775233821
- 2 269 52429312 53477376 51 group_5.269.775233823
- 2 270 52429312 53477376 51 group_6.270.775233823
- 2 271 314580992 316669952 302 TEST.271.777214779
- 2 272 10493952 11534336 11 WILLSON.272.777982799
- 3 255 272756736 274726912 262 REGISTRY.255.777386237
复制代码- SQL> @df
- TABLESPACE_NAME TotalMB UsedMB FreeMB % Used Ext Used
- ------------------------------ ---------- ---------- ---------- ------ --- ----------------------
- SYSAUX 1290 1177 113 92% YES |################### |
- SYSTEM 770 761 9 99% YES |####################|
- TEMP 68 68 0 100% YES |####################|
- TEST 300 60 240 20% NO |#### |
- UNDOTBS1 580 12 568 3% YES |# |
- UNDOTBS2 275 60 215 22% YES |##### |
- UNDOTBS3 75 16 59 22% YES |##### |
- USERS 5 2 3 40% YES |######## |
- WILLSON 10 1 9 10% NO |## |
- 9 rows selected.
- 先看一下这个datafile 的情况,目前WILLSON.272.777982799 使用了 11个AU 其实真实的数据只有10个AU 多出来的一个AU是ASM用来存储原数据的
- 接下来我们确认下 272 这个datafile 的AU情况了
- SELECT disk_kffxp, au_kffxp, xnum_kffxp
- FROM x$kffxp
- WHERE GROUP_KFFXP=&group
- AND NUMBER_KFFXP=&file;
- Enter value for group: 2
- Enter value for file: 272
- DISK_KFFXP AU_KFFXP XNUM_KFFXP
- ---------- ---------- ----------
- 0 3853 0
- 0 3854 1
- 0 3855 2
- 0 3856 3
- 0 3857 4
- 0 3858 5
- 0 3859 6
- 0 3860 7
- 0 3861 8
- 0 3862 9
- 0 3863 10
- 11 rows selected.
- SQL> select DISK_KFFXP, count(*)
- 2 from x$kffxp
- 3 where GROUP_KFFXP=&group
- 4 and NUMBER_KFFXP=&file
- 5 and XNUM_KFFXP!=2147483648
- 6 group by DISK_KFFXP ;
- Enter value for group: 2
- Enter value for file: 272
- DISK_KFFXP COUNT(*)
- ---------- ----------
- 0 11
- 总共分了11个AU 每个AU是1M the extra megabyte is allocated by Oracle for tablespace internal structures independently of the use of ASM
- SQL> col "Instance Value" format a20
- SQL> col parameter format a30
- SQL> set pagesize 200
- SQL> select a.ksppinm "Parameter", c.ksppstvl "Instance Value"
- 2 from x$ksppi a, x$ksppcv b, x$ksppsv c
- 3 where a.indx = b.indx and a.indx = c.indx
- 4 and ksppinm like '%asm_au%'
- 5 order by a.ksppinm;
- Parameter Instance Value
- ------------------------------ --------------------
- _asm_ausize 1048576
- _asm_automatic_rezone TRUE
复制代码- skip * 8192 /1024/1024 =3583
- datafile_size=count*8192/1024/1024
- 11=count*8192/1024/1024
- [grid@oradb1 ~]$ dd if=/dev/oracleasm/disks/DATA of=willson.dbf bs=8192 skip=493184 count=1408
- 1408+0 records in
- 1408+0 records out
- 11534336 bytes (12 MB) copied, 0.146435 seconds, 78.8 MB/s
- [grid@oradb1 ~]$ ls -lh
- total 314M
- -rw-r--r-- 1 grid oinstall 22K Feb 13 11:10 data
- drwxr-xr-x 3 grid oinstall 4.0K Feb 8 11:19 oradiag_grid
- -rw-r--r-- 1 grid oinstall 1.0M Mar 15 09:54 spfilewillson.ora
- -rw-r--r-- 1 grid oinstall 301M Mar 15 09:46 test.dbf
- -rw-r--r-- 1 grid oinstall 11M Mar 15 10:46 willson.dbf
- [grid@oradb1 ~]$ dbv file=willson.dbf blocksize=8192
- DBVERIFY: Release 11.2.0.2.0 - Production on Thu Mar 15 10:46:44 2012
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- DBVERIFY - Verification starting : FILE = /home/grid/willson.dbf
- DBVERIFY - Verification complete
- Total Pages Examined : 1280
- Total Pages Processed (Data) : 0
- Total Pages Failing (Data) : 0
- Total Pages Processed (Index): 0
- Total Pages Failing (Index): 0
- Total Pages Processed (Other): 127
- Total Pages Processed (Seg) : 0
- Total Pages Failing (Seg) : 0
- Total Pages Empty : 1153
- Total Pages Marked Corrupt : 0
- Total Pages Influx : 0
- Total Pages Encrypted : 0
- Highest block SCN : 8876302 (0.8876302)
- [grid@oradb1 ~]$
复制代码 楼主可以参考下 |
|