Finding table fragmentation in Oracle 8.1.6.3.0
Hi All,
I just want to find table fragmentation for one table named LOG. I used below query to find this....
SQL> select table_name,round((blocks*8),2)||'kb' "size"
from dba_tables
where table_name = 'LOG' and owner='AMRWF1'; 2 3
TABLE_NAME size
LOG 6301408kb
SQL> select table_name,round((num_rows*avg_row_len/1024),2)||'kb' "size"
from dba_tables
where table_name = 'LOG' and owner='AMRWF1'; 2 3
TABLE_NAME size
LOG 1468846.2kbAnd tablespace infromation is below.
SQL> select bytes/1024/1024,TABLESPACE_NAME,EXTENTS,MAX_EXTENTS from dba_segments where owner='AMRWF1' and segment_name='LOG';
BYTES/1024/1024 TABLESPACE_NAME EXTENTS MAX_EXTENTS
6154.16406 WFMKTLEAST 12214 2147483645
SQL> sho parameter block
NAME TYPE VALUE
db_block_buffers integer 100000
db_block_checking boolean FALSE
db_block_checksum boolean FALSE
db_block_lru_latches integer 3
db_block_max_dirty_target integer 100000
db_block_size integer 8192
db_file_multiblock_read_count integer 8
hash_multiblock_io_count integer 0
sort_multiblock_read_count integer 2Please mention whether i am fallowing proper method to find table fragmentation and this table is severly fragmented or not???
-Yasser
Edited by: YasserRACDBA on May 12, 2009 7:17 PM
Sir Please refer below statspack report
STATSPACK report for
Snap Length
Start Id End Id Start Time End Time (Minutes)
201 213 13-May-09 01:32:02 13-May-09 01:51:30 19.47
Cache Sizes
~~~~~~~~~~~
db_block_buffers: 100000
db_block_size: 8192
log_buffer: 2097152
shared_pool_size: 132003840
Load Profile
~~~~~~~~~~~~
Per Second Per Transaction
Redo size: 186,962.61 2,244.02
Logical reads: 18,690.20 224.33
Block changes: 835.84 10.03
Physical reads: 1,422.98 17.08
Physical writes: 59.20 0.71
User calls: 693.17 8.32
Parses: 219.19 2.63
Hard parses: 95.50 1.15
Sorts: 122.47 1.47
Transactions: 83.32
Rows per Sort: 13.87
Pct Blocks changed / Read: 4.47
Recursive Call Pct: 57.35
Rollback / transaction Pct: 0.01
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait Ratio: 99.82
Buffer Hit Ratio: 92.39
Library Hit Ratio: 85.79
Redo NoWait Ratio: 99.99
In-memory Sort Ratio: 100.00
Soft Parse Ratio: 56.43
Latch Hit Ratio: 99.55
Top 5 Wait Events
~~~~~~~~~~~~~~~~~ Wait % Total
Event Waits Time (cs) Wt Time
log file sync 98,328 308,489 52.94
db file sequential read 1,462,138 135,491 23.25
buffer busy waits 40,122 41,574 7.13
log file parallel write 67,541 29,561 5.07
latch free 14,153 29,250 5.02
^LWait Events for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
->cs - centisecond - 100th of a second
->ms - millisecond - 1000th of a second (unit often used for disk IO timings)
Avg
Total Wait wait Waits
Event Waits Timeouts Time (cs) (ms) /txn
log file sync 98,328 4 308,489 31 1.0
db file sequential read 1,462,138 0 135,491 1 15.0
buffer busy waits 40,122 1 41,574 10 0.4
log file parallel write 67,541 8 29,561 4 0.7
latch free 14,153 10,702 29,250 21 0.1
db file parallel write 5,099 0 18,117 36 0.1
db file scattered read 18,561 0 9,258 5 0.2
db file parallel read 3,227 0 5,658 18 0.0
SQL*Net more data to client 44,457 0 1,188 0 0.5
log file sequential read 8,020 0 1,070 1 0.1
direct path write 410 0 669 16 0.0
direct path read 688 0 556 8 0.0
control file parallel write 444 0 533 12 0.0
library cache pin 517 0 461 9 0.0
LGWR wait for redo copy 798 143 414 5 0.0
log file switch completion 30 0 349 116 0.0
single-task message 4 0 27 68 0.0
file open 959 0 23 0 0.0
log file single write 20 0 7 4 0.0
control file sequential read 458 0 4 0 0.0
refresh controlfile command 36 0 3 1 0.0
enqueue 9 0 2 2 0.0
file identify 40 0 1 0 0.0
SQL*Net break/reset to clien 4 0 0 0 0.0
buffer deadlock 2 2 0 0 0.0
SQL*Net message from client 809,303 0 19,936,895 246 8.3
virtual circuit status 38 38 116,785 ##### 0.0
SQL*Net message to client 809,327 0 310 0 8.3
SQL*Net more data from clien 477 0 43 1 0.0
^LSQL ordered by Gets for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
Gets % of
Buffer Gets Executes per Exec Total Hash Value
SQL statement
262,083 159,120 1.6 1.2 382965845
SELECT GEOPAR,NAME FROM GEO WHERE GEOCOD = RTRIM(:b1)
146,040 1 146,040.0 .7 1754824507
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
141,075 1 141,075.0 .6 1542925332
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
128,943 12,612 10.2 .6 4085293067
UPDATE OBJECT SET OWNER = NULL, LOCKTIME = 0, QUEUE_TIMESTAMP = NULL WHERE "ID
91,085 1 91,085.0 .4 323282248
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
90,887 1 90,887.0 .4 2613220927
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
66,045 9,174 7.2 .3 3352553713
SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
61,337 9,498 6.5 .3 2345958421
SELECT PAGENO PAGENO FROM NONBILL WHERE REPORTID = :b1
59,669 9,500 6.3 .3 4181220996
SELECT RTRIM(SUBCOLLECT) SUBCOLLECT_CODE FROM MARK_SUBCOLLECT WHERE SRCCOD
54,543 1 54,543.0 .2 2236963897
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,517 1 54,517.0 .2 2215353317
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,493 1 54,493.0 .2 1430216754
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,450 1 54,450.0 .2 3671439846
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,443 1 54,443.0 .2 4024618165
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,404 1 54,404.0 .2 4144413353
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,185 1 54,185.0 .2 3853441439
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
54,122 1 54,122.0 .2 4066390851
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
^LSQL ordered by Reads for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
Physical Reads % of
Reads Executes per Exec Total Hash Value
SQL statement
52,578 1 52,578.0 3.2 1754824507
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
31,998 1 31,998.0 1.9 2613220927
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
16,013 1 16,013.0 1.0 323282248
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
10,819 1 10,819.0 .7 1542925332
SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
5,940 9,500 0.6 .4 1788460650
SELECT RTRIM(SUBJCT) TICKER,RTRIM(NAME) NAME,RTRIM(STATE) STATE,RTRIM(COUNTRY)
5,011 5 1,002.2 .3 1283665788
INSERT INTO STATS$SQL_SUMMARY ( SNAP_ID,DBID,INSTANCE_NUMBER,SQL_TEXT,SHARABLE
3,532 104 34.0 .2 2416764375
INSERT INTO DOC_SUBJCT ( DOC_NUM,TYPE,SUBJCT ) VALUES ( TO_NUMBER(:b1),:b2,:b
3,178 3 1,059.3 .2 2869630514
BEGIN statspack.snap(i_snap_level => 10, i_modify_parameter => 'true'); END;
1,576 9,174 0.2 .1 3352553713
SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
816 1,753 0.5 .0 2074917603
INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
754 324 2.3 .0 4111801531
begin packager.get_citation(:param1 , :out); end;
567 83 6.8 .0 924335069
INSERT INTO CORDOC ( DOC_NUM,PARENT_DOC,SOURCE,AUTHOR,TITLE,DATE_RPT,DATE_RCVD
441 9,500 0.0 .0 2184883084
SELECT TPCCOD,TPCNAM FROM TOPICS T,DOC_SUBJCT D WHERE D.DOC_NUM = :b1 AND
430 104 4.1 .0 2993182807
INSERT INTO DOC_SUBJCT_UPD_LOG ( DOC_NUM,TYPE,SUBJCT,TYPE_OF_CHANGE,CREATED_LO
406 9,498 0.0 .0 2345958421
SELECT PAGENO PAGENO FROM NONBILL WHERE REPORTID = :b1
304 414 0.7 .0 199702406
select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags, i.property,i.p
300 7,733 0.0 .0 3207681720
SELECT NVL(IMAGES,0) IMAGES,NVL(NONBILLABLE,0) NONBILLABLE FROM IMAGED_DOCUM
^LSQL ordered by Rows for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
Rows Rows
Processed Executes per Exec Hash Value
SQL statement
87,357 159,120 0.5 382965845
SELECT GEOPAR,NAME FROM GEO WHERE GEOCOD = RTRIM(:b1)
32,818 9,498 3.5 2345958421
SELECT PAGENO PAGENO FROM NONBILL WHERE REPORTID = :b1
12,612 12,612 1.0 4085293067
UPDATE OBJECT SET OWNER = NULL, LOCKTIME = 0, QUEUE_TIMESTAMP = NULL WHERE "ID
9,544 9,544 1.0 1230017382
SELECT LOG_SEQUENCE.NEXTVAL FROM DUAL
9,498 9,498 1.0 2684256693
SELECT RTRIM(NAME) NAME FROM LANG WHERE LANG.CODE = :b1
9,174 9,174 1.0 3352553713
SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
7,575 7,733 1.0 3207681720
SELECT NVL(IMAGES,0) IMAGES,NVL(NONBILLABLE,0) NONBILLABLE FROM IMAGED_DOCUM
7,526 9,500 0.8 1788460650
SELECT RTRIM(SUBJCT) TICKER,RTRIM(NAME) NAME,RTRIM(STATE) STATE,RTRIM(COUNTRY)
6,485 514 12.6 395844583
select name,intcol#,segcol#,type#,length,nvl(precision#,0),decode(type#,2,nvl(
3,308 9,499 0.3 3612837332
SELECT RTRIM(D.SUBJCT) INDCOD,RTRIM(INDNAM) INDNAM,NIC_COD_BEST FROM DOC_SUB
2,642 9,500 0.3 4181220996
SELECT RTRIM(SUBCOLLECT) SUBCOLLECT_CODE FROM MARK_SUBCOLLECT WHERE SRCCOD
1,753 1,753 1.0 2074917603
INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
1,380 1,855 0.7 1867085649
INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
1,347 359 3.8 1536916657
select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),
870 104 8.4 2416764375
INSERT INTO DOC_SUBJCT ( DOC_NUM,TYPE,SUBJCT ) VALUES ( TO_NUMBER(:b1),:b2,:b
828 433 1.9 1943674664
SELECT CLASS, PRIVILEGE FROM PRIVILEGE WHERE GROUP_NAME = 'SYSADMIN'
723 433 1.7 2958422142
SELECT CLASS, PRIVILEGE FROM PRIVILEGE WHERE GROUP_NAME = 'DEFAULT'
^LLatch Activity for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
->"Pct Misses" should be very close to 0.0
Pct Avg Pct
Get Get Sleeps Nowait Nowait
Latch Name Requests Miss /Miss Requests Miss
Active checkpoint queue latch 82,223 0.0 0
Checkpoint queue latch 828,701 0.0 0.0 0
Token Manager 739 0.0 5,586 0.0
archive control 10 0.0 0
archive process latch 10 0.0 0
cache buffer handles 8,728 0.0 0
cache buffers chains 45,374,520 0.0 0.1 1,915,719 0.2
cache buffers lru chain 293,252 0.5 0.1 1,667,702 0.6
channel handle pool latch 293 0.0 294 0.0
channel operations parent latch 586 0.0 294 0.0
dml lock allocation 197,311 0.0 0.0 0
enqueue hash chains 438,592 0.1 0.1 0
enqueues 697,793 0.1 0.0 0
event group latch 293 0.0 0
job_queue_processes parameter l 65 0.0 0
ktm global data 4 0.0 0
latch wait list 6,541 2.5 0.0 6,559 0.2
library cache 6,095,682 0.9 0.2 186,918 0.8
library cache load lock 4,494 0.0 0
list of block allocation 201,252 0.0 0.1 0
loader state object freelist 46 0.0 0
longop free list 1,508 0.0 0
messages 925,509 0.2 0.0 0
multiblock read objects 45,236 0.0 4.6 3 0.0
ncodef allocation latch 65 0.0 0
process allocation 293 0.0 293 0.0
process group creation 587 0.0 0
redo allocation 624,066 0.1 0.0 0
redo writing 511,337 0.8 0.0 0
row cache objects 9,553,633 1.0 0.0 13,023 3.7
sequence cache 31,263 0.0 0.0 0
session allocation 454,171 0.3 0.0 0
session idle bit 1,841,211 0.0 0.1 0
session switching 65 0.0 0
session timer 416 0.0 0
shared pool 4,602,509 3.3 0.0 0
sort extent pool 78 0.0 0
transaction allocation 295,180 0.0 0.0 0
transaction branch allocation 65 0.0 0
undo global data 346,591 0.1 0.2 0
user lock 2,114 0.0 0
virtual circuit queues 56 0.0 0
^LLatch Sleep breakdown for DB: PRDTDB Instance: prdtdb Snaps: 201 - 21
Get Spin &
Latch Name Requests Misses Sleeps Sleeps 1-4
shared pool 4,602,509 152,786 3,804 150445/1393/
698/250/0
row cache objects 9,553,633 98,968 364 98730/210/3/
25/0
library cache 6,095,682 53,621 8,107 49775/1473/1
726/647/0
cache buffers chains 45,374,520 10,906 1,415 10308/336/71
/191/0
redo writing 511,337 3,927 39 3892/31/4/0/
0
messages 925,509 1,443 61 1382/61/0/0/
0
cache buffers lru chain 293,252 1,388 130 1260/127/0/1
/0
session allocation 454,171 1,334 15 1319/15/0/0/
0
enqueues 697,793 1,000 11 989/11/0/0/0
redo allocation 624,066 623 5 618/5/0/0/0
session idle bit 1,841,211 447 50 400/46/0/1/0
Checkpoint queue latch 828,701 378 8 374/3/0/1/0
undo global data 346,591 330 62 315/4/1/10/0
enqueue hash chains 438,592 273 32 259/7/2/5/0
transaction allocation 295,180 138 5 133/5/0/0/0
dml lock allocation 197,311 46 2 44/2/0/0/0
list of block allocation 201,252 40 4 36/4/0/0/0
multiblock read objects 45,236 7 32 2/1/1/3/0
^LLatch Miss Sources for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
No Wait
Latch Name Where Misses Sleeps
Checkpoint queue latch kcbswcu: Switch buffers 0 5
Checkpoint queue latch kcbk0rrd: update recovery 0 2
Checkpoint queue latch kcbbcthc: check thread que 0 1
cache buffers chains kcbrls: kslbegin 0 724
cache buffers chains kcbgtcr: kslbegin 0 533
cache buffers chains kcbgcur: kslbegin 0 62
cache buffers chains kcbchg: kslbegin: call CR 0 29
cache buffers chains kcbzgb: scan from tail. no 0 25
cache buffers chains kcbzib: multi-block read: 0 14
cache buffers chains kcbzib: finish free bufs 0 9
cache buffers chains kcbzwb 0 8
cache buffers chains kcbchg: kslbegin: bufs not 0 6
cache buffers chains kcbget: pin buffer 0 3
cache buffers chains kcbget: exchange rls 0 1
cache buffers lru chain kcbbiop: lru scan 0 105
cache buffers lru chain kcbzgb: multiple sets nowa 0 21
cache buffers lru chain kcbzgb: posted for free bu 0 3
cache buffers lru chain kcbbwlru 0 1
dml lock allocation ktaiam 0 2
enqueue hash chains ksqgtl3 0 16
enqueue hash chains ksqrcl 0 16
enqueues ksqgtl2 0 5
enqueues ksqies 0 4
enqueues ksqrcl 0 2
library cache kgllkdl: child: cleanup 0 895
library cache kglpnal: child: alloc spac 0 711
library cache kglic 0 344
library cache kglupc: child 0 261
library cache kglhdgn: child: 0 227
library cache kglpnal: child: before pro 0 116
library cache kglhdgc: child: 0 82
library cache kglobpn: child: 0 74
library cache kgldnp: child 0 57
library cache kglsca: parent 0 57
library cache kgllkdl: child: free pin 0 29
library cache kglati 0 27
library cache kglpnc: child 0 15
library cache kgldte: child 0 0 8
library cache kglget: child: KGLDSBYD 0 3
library cache kglobld: child: 0 2
library cache kglpin 0 2
library cache kgldti: not under latch 0 1
library cache kglpnp: child 0 1
list of block allocation ktlbbl 0 4
messages ksaamb: after wakeup 0 40
messages ksarcv: after wait 0 13
messages ksarcv 0 8
multiblock read objects kcbzib: MBRGET 0 32
redo allocation kcrfwr: redo allocation 0 4
redo allocation kcrfwi: before write 0 1
redo writing kcrfss 0 17
redo writing kcrfsr 0 16
redo writing kcrfwi: after write 0 5
redo writing kcrfwcr 0 1
row cache objects kqrpre: find obj 0 190
^LLatch Miss Sources for DB: PRDTDB Instance: prdtdb Snaps: 201 - 213
No Wait
Latch Name Where Misses Sleeps
row cache objects kqreqd: rel enqueue 0 93
row cache objects kqreqd 0 64
row cache objects kqrso 0 1
session allocation ksuxds: not user session 0 12
session allocation ksucri 0 2
session allocation ksuxds: KSUSFCLC not set 0 1
session idle bit ksuxds 0 22
session idle bit ksupuc: clear busy 0 17
session idle bit ksupuc: set busy 0 11
shared pool kghfrunp: parent clatch: w 0 5,059
shared pool kghfrunp: alloc: wait 0 1,296
shared pool kghfrunp: alloc: clatch no 0 1,152
shared pool kghalo 0 852
shared pool kghfnd: min scan 0 180
shared pool kghfrunp: clatch: wait 0 112
shared pool kghupr1 0 104
shared pool kghfnd: get next extent 0 72
shared pool kghfnd: req scan 0 55
shared pool kghfre 0 40
shared pool kghalp 0 31
shared pool kghfrunp: clatch: nowait 0 30
shared pool kghfen: not perm alloc cla 0 15
shared pool kghfrunp: no latch 0 2
shared pool kghfrunp: reget min scan 0 1
transaction allocation ktcdso 0 3
transaction allocation ktcxba 0 2
undo global data ktudba: KSLBEGIN 0 61
undo global data ktudnx: KSLBEGIN 0 1
End of ReportPlease find partial output of v$sql;
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
11170 0 0 0
11726 6206 36460 11286
11727 3079 193977 11727
12007 278 69951 39346
12700 0 31165 43631
13371 564 26871 7113
15568 0 1045 0
16122 28 25925 8603
16583 292 10230 2016
16943 31 1092 209
17933 896 35957 17933
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
17958 0 3675 0
22750 6968 132458 32748
22840 518 31455 43631
22840 1 37398 0
22976 109 46286 22966
23002 53 23280 22975
23002 16 23216 23002
23003 61 23362 23003
23005 764 78363 23003
25580 1303 81762 373057
27092 0 0 0
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
29218 1069 88739 29218
32750 3 1020 355
35790 453 279237 27807
38630 488 116142 1331
42128 13 2679 180
45899 0 229499 45896
45984 87 230393 45984
50588 3 1931 145
51215 81 256945 51215
52212 9 2248 674
62501 2 2087 506
EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
75230 1393 950678 71295
95712 29410 1451214 87782
102950 5250 1694896 102950
165722 254 870666 165722
527966 790 2773361 527965
674310 190 5482921 674307
709403 1198 3727110 709403
1093841 2338 11416812 1093840Btree index type has been created.
Please guide me in finding CPU problem.
-Yasser
Similar Messages
-
How to find the count of tables going for fts(full table scan in oracle 10g
HI
how to find the count of tables going for fts(full table scan) in oracle 10g
regardsHi,
Why do you want to 'find' those tables?
Do you want to 'avoid FTS' on those tables?
You provide little information here. (Perhaps you just migrated from 9i and having problems with certain queries now?)
FTS is sometimes the fastest way to retrieve data, and sometimes an index scan is.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
There's no 'FTS view' available, if you want to know what happens on your DB you need, like Anand already said, to trace sessions that 'worry you'. -
How to find data dictionary and oracle schema tables for UTF8 char conversi
I am doing UTF8 char conversition, i got lot of convertable objects,as per document we don't need to worry about data dictionary objects and how to find data dictionary and oracle schema objects for UTF8 char conversition.
USER.TABLE Convertible Truncation Lossy
MDSYS.OPENLS_NODES 17 0 0
MDSYS.SDO_COORD_OP_PARAM_VALS 200 0 0
MDSYS.SDO_GEOR_XMLSCHEMA_TABLE 1 0 0
MDSYS.SDO_STYLES_TABLE 78 0 0
MDSYS.SDO_XML_SCHEMAS 3 0 0
ORDDATA.ORDDCM_CT_PRED_OPRD 51 0 0
ORDDATA.ORDDCM_DOCS 9 0 0
ORDDATA.ORDDCM_MAPPING_DOCS 1 0 0
SYS.METASTYLESHEET 178 0 0
SYS.REGISTRY$ERROR 2 0 0
SYS.RULE$ 21 0 0
SYS.SCHEDULER$_EVENT_LOG 182 0 0
SYS.WRH$_SQLTEXT 2,099 0 0
SYS.WRH$_SQL_PLAN 1,736 0 0
SYS.WRI$_ADV_ACTIONS 5,452 0 0
SYS.WRI$_ADV_DIRECTIVE_META 5 0 0
SYS.WRI$_ADV_OBJECTS 2,278 0 0
SYS.WRI$_ADV_RATIONALE 9,594 0 0
SYS.WRI$_ADV_SQLT_PLANS 455 0 0
SYS.WRI$_ADV_SQLT_PLAN_STATS 288 0 0
SYS.WRI$_DBU_FEATURE_METADATA 188 0 0
SYS.WRI$_DBU_FEATURE_USAGE 16 0 0
SYS.WRI$_DBU_HWM_METADATA 20 0 0
SYS.WRI$_REPT_FILES 27 0 0
XDB.XDB$DXPTAB 2 0 0
XML CSX Dictionary Tables:
USER.TABLE Convertible Truncation Lossy
Application Data:
USER.TABLE Convertible Truncation Lossy
APPLSYS.BISM_OBJECTS 4 0 0
APPLSYS.DR$FND_LOBS_CTX$I 0 103 1,260,883
APPLSYS.FND_CONC_PROG_ANNOTATIONS 272 0 0
APPLSYS.FND_OAM_CONTEXT_FILES 15 0 0
APPLSYS.FND_OAM_DOC_LINK 1 0 0
APPS.FND_OAM_CONTEXT_FILES_1 6 0 0
AZ.AZ_APIS 11 0 0
AZ.AZ_SELECTION_SET_ENTITIES_B 48 0 0
ECX.ECX_DTDS 205 0 0
ECX.ECX_FILES 91 0 0
IBC.IBC_ATTRIBUTE_BUNDLES 41 0 0
JTF.JTF_HEADER_DTD 1 0 0
JTF.JTF_MESSAGE_OBJECTS 82 0 0
JTF.JTY_TRANS_USG_PGM_SQL 29 0 0
ODM.ODM_PMML_DTD 1 0 0
OKC.OKC_REPORT_SQL_B 3 0 0
OKC.OKC_REPORT_SQL_TL 2 0 0
OKC.OKC_REPORT_XSL_TL 5 0 0
XDP.XDP_PROC_BODY 10 0 0
[Distribution of Convertible, Truncated and Lossy Data by Column]
Data Dictionary Tables:
USER.TABLE|COLUMN Convertible Truncation Lossy
MDSYS.OPENLS_NODES|SYS_NC00004$ 17 0 0
MDSYS.SDO_COORD_OP_PARAM_VALS|PARAM_VALUE_FILE 200 0 0
MDSYS.SDO_GEOR_XMLSCHEMA_TABLE|XMLSCHEMA 1 0 0
MDSYS.SDO_STYLES_TABLE|DEFINITION 78 0 0
MDSYS.SDO_XML_SCHEMAS|XMLSCHEMA 3 0 0
ORDDATA.ORDDCM_CT_PRED_OPRD|SYS_NC00004$ 51 0 0
ORDDATA.ORDDCM_DOCS|SYS_NC00005$ 9 0 0
ORDDATA.ORDDCM_MAPPING_DOCS|SYS_NC00007$ 1 0 0
SYS.METASTYLESHEET|STYLESHEET 178 0 0
SYS.REGISTRY$ERROR|MESSAGE 1 0 0
SYS.REGISTRY$ERROR|STATEMENT 1 0 0
SYS.RULE$|CONDITION 21 0 0
SYS.SCHEDULER$_EVENT_LOG|ADDITIONAL_INFO 182 0 0
SYS.WRH$_SQLTEXT|SQL_TEXT 2,099 0 0
SYS.WRH$_SQL_PLAN|OTHER_XML 1,736 0 0
SYS.WRI$_ADV_ACTIONS|ATTR5 2,726 0 0
SYS.WRI$_ADV_ACTIONS|ATTR6 2,726 0 0
SYS.WRI$_ADV_DIRECTIVE_META|DATA 5 0 0
SYS.WRI$_ADV_OBJECTS|ATTR4 2,278 0 0
SYS.WRI$_ADV_RATIONALE|ATTR5 9,594 0 0
SYS.WRI$_ADV_SQLT_PLANS|OTHER_XML 455 0 0
SYS.WRI$_ADV_SQLT_PLAN_STATS|OTHER 288 0 0
SYS.WRI$_DBU_FEATURE_METADATA|INST_CHK_LOGIC 21 0 0
SYS.WRI$_DBU_FEATURE_METADATA|USG_DET_LOGIC 167 0 0
SYS.WRI$_DBU_FEATURE_USAGE|FEATURE_INFO 16 0 0
SYS.WRI$_DBU_HWM_METADATA|LOGIC 20 0 0
SYS.WRI$_REPT_FILES|SYS_NC00005$ 27 0 0
XDB.XDB$DXPTAB|SYS_NC00006$ 2 0 0
XML CSX Dictionary Tables:
USER.TABLE|COLUMN Convertible Truncation Lossy
Application Data:
USER.TABLE|COLUMN Convertible Truncation Lossy
APPLSYS.BISM_OBJECTS|SYS_NC00023$ 4 0 0
APPLSYS.DR$FND_LOBS_CTX$I|TOKEN_TEXT 0 103 1,260,883
APPLSYS.FND_CONC_PROG_ANNOTATIONS|PROGRAM_ANNOTAT 272 0 0
APPLSYS.FND_OAM_CONTEXT_FILES|TEXT 15 0 0
APPLSYS.FND_OAM_DOC_LINK|DOC_LINK_INFO 1 0 0
APPS.FND_OAM_CONTEXT_FILES_1|TEXT 6 0 0
AZ.AZ_APIS|FILTERING_PARAMETERS 11 0 0
AZ.AZ_SELECTION_SET_ENTITIES_B|FILTERING_PARAMETE 48 0 0
ECX.ECX_DTDS|PAYLOAD 205 0 0
ECX.ECX_FILES|PAYLOAD 91 0 0
IBC.IBC_ATTRIBUTE_BUNDLES|ATTRIBUTE_BUNDLE_DATA 41 0 0
JTF.JTF_HEADER_DTD|HEADER_DTD 1 0 0
JTF.JTF_MESSAGE_OBJECTS|BUS_OBJ_DTD 41 0 0
JTF.JTF_MESSAGE_OBJECTS|BUS_OBJ_SQL 41 0 0
JTF.JTY_TRANS_USG_PGM_SQL|BATCH_DEA_SQL 1 0 0
JTF.JTY_TRANS_USG_PGM_SQL|BATCH_INCR_SQL 5 0 0
JTF.JTY_TRANS_USG_PGM_SQL|BATCH_TOTAL_SQL 6 0 0
JTF.JTY_TRANS_USG_PGM_SQL|INCR_REASSIGN_SQL 5 0 0
JTF.JTY_TRANS_USG_PGM_SQL|REAL_TIME_INSERT 6 0 0
JTF.JTY_TRANS_USG_PGM_SQL|REAL_TIME_SQL 6 0 0
ODM.ODM_PMML_DTD|DTD 1 0 0
OKC.OKC_REPORT_SQL_B|SQL_TEXT 3 0 0
OKC.OKC_REPORT_SQL_TL|HELP_TEXT 2 0 0
OKC.OKC_REPORT_XSL_TL|HELP_TEXT 2 0 0
OKC.OKC_REPORT_XSL_TL|XSL_TEXT 3 0 0
XDP.XDP_PROC_BODY|PROC_BODY 10 0 0
-------------------------------------------------- ---------------- ---------------- ----------------Hi;
Please run below query which could be helpful for your issue:
select * from dictionary where TABLE_NAME LIKE '%NLS%'
select * from dictionary where TABLE_NAME LIKE '%GLOBAL%'
Regard
Helios -
How to find out if the Oracle is a 64 or 32-bit installation
Hi,
I have a customer who has a 64-bit enabled Solaris 8 machine with an Oracle installed on it.
Is there a simple and quick way to find if the installed Oracle is 64 or 32-bit installation. Something like a v$ table.
Thanks,
Tal ([email protected]).Hi,
if the database is running, start a sqlplus session. You will see in the banner something like '64Bit Production' (for 64-bit) or only 'Production' for 32-bit. Alternatively, especially if the database is not running, go to $ORACLE_HOME/bin and type 'file oracle'. The returning strings shows either 32-bit or 64-bit.
Best regards
Werner -
How to find encrypted columns in oracle 10g database
Hi,
How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
my question is apart from this is there anyother views or tables?
Thanks..user602872 wrote:
Hi,
How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
my question is apart from this is there anyother views or tables?Hmm not which I could find,
SQL> select * from dict where lower(table_name) like '%encrypted%';
TABLE_NAME
COMMENTS
DBA_ENCRYPTED_COLUMNS
Encryption information on columns in the database
ALL_ENCRYPTED_COLUMNS
Encryption information on all accessible columns
USER_ENCRYPTED_COLUMNS
Encryption information on columns of tables owned by the user
SQL>HTH
Aman.... -
How to find table used in java based forms
In R12 how can i find table name used in Java Based forms.
Record history for OAF / Selfservice pages is only available in R12.1.1 - pl see MOS Doc 565870.1 (Oracle Application Framework (OAF) Release Notes, Release 12.1.1) - it is not available in 11i and 12.0.x releases.
HTH
Srini -
Is my table fragmented ?
Hi,
Trying to find out whether table is fragmented or not ?
select segment_name,sum(bytes)/1024/1024 from dba_extents where owner='UAT_LIVE1' group by segment_name order by 2 desc
Size:- 524 MB
select segment_name,segment_type,tablespace_name,sum(bytes)/1024/1024 from dba_segments where segment_type='TABLE' and owner='UAT_LIVE1' group by segment_name,segment_type,tablespace_name order by 4 desc
Size:- 524 MB
select * from dba_tables where table_name='OTP_PR_TRAVELLER' and owner='UAT_LIVE1'
Size:- 455 MB
Can anybody tell me - is my table fragmented , If yes, then how to defrag it ?Are you using automatic segment space management (ASSM)?
Almost everything is going to depend on how your table is set up and how it is used in practice. Optmal storage allocation is all about matching those two things.
What are the PCTFREE and PCTUSED settings on the table (if you aren't familiar with those settings, I'd strongly suggest reading the Concepts guide section on database blocks for background)? Can you describe the life cycle of a row? Do you ever do updates? Do those updates ever increase the size of a variable length column? Do you ever do deletes?
In general, the default settings are going to be pretty good for most tables in most applications. While a human being might be able to do a better job on some tables, there is a lot to be said for accepting the default, getting a very good but not quite optimal result, and focusing scarce human attention on things that are likely to have a much bigger return. Just because something can be made more optimal doesn't, by any stretch, mean that the cost of making the improvement is worth the effort.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Added last paragraph on costs & benefits.
Message was edited by:
Justin Cave -
How we find tablespace fragmentation and resolve this problem
Hi,
How we find tablespace fragmentation and resolve this in 10 G (R2) windows XP.
Regards
FaheemHi,
>>Are you using Dictionary Managed or Locally Managed Tablespaces...??
In fact, there is no way to create a DMT if SYSTEM tablespace is LMT. So, what I said in my previous post "Unless the OP is using DMT ..." is impossible in Oracle 10g ...
SQL> create tablespace tbs_test
2 datafile '/u01/oradata/BDRPS/test01.dbf' size 5m
3 extent management dictionary;
create tablespace tbs_test
ERROR at line 1:
ORA-12913: Cannot create dictionary managed tablespace
SQL> select extent_management from dba_tablespaces
2 where tablespace_name='SYSTEM';
EXTENT_MAN
LOCALCheers
Legatti -
Cannot disable table trigger in Oracle 9i
Hi,
I find out once a while I cannot disable table trigger in Oracle 9i 9.0.1.3.0. Whenever I disable it will hang for few minutes and then return an error saying 'time-out and the trigger cannot be disabled'. I have checked and all users are not using the table. I can only disable the trigger after I restart the Oracle instance or service. Anyone has this problem and how to solve it? Tks.plz post the error, what kind of trigger is it (ie login trigger)
steve
Hi,
I find out once a while I cannot disable table trigger in Oracle 9i 9.0.1.3.0. Whenever I disable it will hang for few minutes and then return an error saying 'time-out and the trigger cannot be disabled'. I have checked and all users are not using the table. I can only disable the trigger after I restart the Oracle instance or service. Anyone has this problem and how to solve it? Tks. -
How to find tables from database having no partition
Hello Sir,
How to find tables from oracle database having no partitions?
Thank you.
-Mal@SB,
SQL> SELECT OWNER, TABLE_NAME FROM DBA_TABLES
2 MINUS
3 SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS;
SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS
ERROR at line 3:
ORA-00904: "OWNER": invalid identifier@OP,
select table_name,partitioned from dba_tables where partitioned='YES';
select table_name,partitioned from dba_tables where partitioned='NO';
Regards
Girish Sharma
Edited by: Girish Sharma on Jul 1, 2011 9:27 AM -
How i know what one table is fragmented ??
Tks ..
Samuel
Brazilrajeysh wrote:
refer the link;
http://www.orafaq.com/node/1936
Good points about the link:
<ul>
it tells you that you have four options
it gives you one idea of how to check for possible "empty" space below the HWM
</ul>
Bad points about the link:
<ul>
it doesn't tell you anything about the nasty side-effects of the methods
it doesn't give you any information about the pros and cons of each method
the first three paragraphs are misleding
</ui>
<blockquote>
When rows are not stored contiguously, or if rows are split onto more than one block, performance decreases because these rows require additional block accesses.
Note that table fragmentation is different from file fragmentation. When a lot of DML operations are applied on a table, the table will become fragmented because DML does not release free space from the table below the HWM.
HWM is an indicator of USED BLOCKS in the database. Blocks below the high water mark (used blocks) have at least once contained data. This data might have been deleted. Since Oracle knows that blocks beyond the high water mark don't have data, it only reads blocks up to the high water mark when doing a full table scan.
</blockquote>
para1: what is a "non-contiguous row" ? - the opening phrase needs explanation
para1: "if rows are split onto more than one block" - doesn't distinguish between migrated and chained rows
para2: <i>"DML does not release ..."</i> - of course it does, it's just a question of when. This remark should not be made without a proper explanation
para3: minor quibble - the article was written in 2007, and ASSM has been around a lot longer - there could be a significant number of blocks below the HWM which have not yet been formatted.
Conclusion: Article not suitable reference material.
Regards
Jonathan Lewis -
Reg : Table Fragmentation
Hi Basis Guru's
What is meant by Table Fragmentation?Plz help with steps..Hello,
Table Fragmentation
Table fragmentation is the inability of the system to lay out related data sequentially (contiguously), an inherent phenomenon in storage-backed file systems that allow in-place modification of their contents.
The correction to existing fragmentation is to compress tables and free space back into contiguous areas, a process called defragmentation.
Table fragmentation will result in longer query times when a full table scan is performed. Since data is not as evenly packed in the data blocks, many blocks may have to be read during a scan to satisfy the query. These blocks may be distributed on various extents. In this case, Oracle must issue recursive calls to locate the address of the next extent in the table to scan.
Recent studies have shown that table fragmentation has hardly any effect on the performance of the database system. This is mainly because full table scans are somewhat rare in an SAP system since data is accessed using an index.
REWARD POINTS IF HELPFUL
Regards
Sai -
Environment : Windows2003 Enter, Oracle10g
If disk defrag of Operation System have enforced.
Be fragmentation of Oracle resolved???
Edited by: user10821817 on 2009. 4. 20 오후 7:58OS Fragmentation is different thing and oracle fragmentation is different. OS fragmentation is for OS internals and its working to get better disk i/o and minimize user/service response; while in oracle if you are using locally managed tablespace (LMT) it provides you autometically coalesce.
Coalesce creates a big free extent by taking space from free extents and it is used in dictionary managed tablespaces (DMT); while if you use LMT it works autometically; we do'nt need to alter tablespace <tablespace name> coalesce;
So best is use LMT and move all objects from DMT to LMT i.e. alter table/index <object name> move tablespace <new LMT name>; or get object names from user_objects.
Regards
Girish Sharma -
How to import a table from another oracle database ?
Hi all ,
i could like to use pl/sql to import one table from another oracle database server ?
is it possible to do this ?
A server B server
table: test <------------------------> table : newtest
the tns profile already configurated . the connection is ready .
thanks a lot !
Best Regards,
Carlosif i don't have TEST table on server B whether COPY command will create this table on server B with the same structure ? If you specify CREATE as a clause the table will be created:
SQL> help copy
COPY
COPY copies data from a query to a table in a local or remote
database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
COPY {FROM database | TO database | FROM database TO database}
APPENDCREATE|INSERT|REPLACE} destination_table
[(column, column, column, ...)] USING query
where database has the following syntax:
username[password]@connect_identifier -
Importing table dump from oracle into sybase
I was wondering if anyone has ever imported a table dump from oracle into sybase. I just tried it and it didn't work. I used TOAD to create my table dump file but when i imprted it into sybase using bcp in i got the following error
cs_convert: cslib user api layer: common library error: The result is truncated because the conversion/operation resulted in overflow.
CSLIB Message: - L0/O0/S0/N36/1/0:If you are looking for a basic/standard way to exchange data between Oracle and Sybase, use the CSV format.
It is trivial to write a generic SQL*Plus script for Oracle to extract data from a table (or a SELECT) and spool this into a properly formatted CSV file.
It is also just as easy to use Sybase Bulk Copy utility to load that CSV file into Sybase.
There are also alternative methods. One would be to use Oracle's Heterogeneous Services. You can define a database link in Oracle that connects, via ODBC, to Sybase. And using this database link you can push (insert) data into Sybase.
Maybe you are looking for
-
Gif animation is not displayed on the JEditorPane
gif animation file is loaded to this pane, it is played for one time and then changed to "cannot load image" icon. Is it somehow related to the JEditorPane, and if yes, than how???
-
Proxy Administrator doesn�t work...
Hi all I have just instaled iPlanet Web Proxy 3.6 in a Windows machine and when i try to connnect to the Administrator Web page, it returns an error page. At the error log file, i saw this failure: "the CGI program C:\Netscape\SuiteSpot\bin\admin\adm
-
Problem while assigning the packeage
Hi, I crated a package zcpackage in SE80 as main package. Then, i have created a Remote Function Module, saved and activalted. Now I am stying to create a WEb SERvice for this FM at final stage system asking for package. There I have given the pac
-
Where is the XML support in iPhone
The only example I've been able to find for the iPhone SDK that demonstrates how to use XML content is the SeismicXML application. It appears to use libXML2. Is this the only approach? Is it not possible to us NSXml which is so much more intuitive to
-
Failed error#-2096!!!!!
I am trying to open itunes the latest version and I keep getting this message: QuickTime failed to initialize-Error#-2096 QuickTime is required to run itunes. Please reinstall itunes. I've done what the message said but to no avail I still cannot ope