锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲色无码专区一区,亚洲午夜精品久久久久久app,亚洲男人的天堂网站http://www.tkk7.com/tacy/archive/2007/12/26/170428.htmltacy leetacy leeTue, 25 Dec 2007 16:42:00 GMThttp://www.tkk7.com/tacy/archive/2007/12/26/170428.htmlhttp://www.tkk7.com/tacy/comments/170428.htmlhttp://www.tkk7.com/tacy/archive/2007/12/26/170428.html#Feedback0http://www.tkk7.com/tacy/comments/commentRss/170428.htmlhttp://www.tkk7.com/tacy/services/trackbacks/170428.html
涓嬮潰綆鍗曞仛涓涓獙璇侊細

c:>sqlplus / as sysdba
sys@EOS >create table test as select table_name,to_timestamp(last_analyzed) date_test from dba_tables;

琛ㄥ凡鍒涘緩銆?br />
sys@EOS> create index idx_test_date on test (date_test);

绱㈠紩宸插垱寤恒?br />
sys@EOS> desc test
 鍚嶇О                                                  鏄惁涓虹┖? 綾誨瀷
 ----------------------------------------------------- -------- ----------------
--------------------
 TABLE_NAME                                            NOT NULL VARCHAR2(30)
 DATE_TEST                                                      TIMESTAMP(0)

sys@EOS> select date_test from test where date_test > TO_DATE('2007-11-5 00:00:00','yyyy-MM-dd HH24:mi:ss');

鎵ц璁″垝
----------------------------------------------------------
Plan hash value: 944171586

-------------------------------------------------------------------------------- --
| Id  | Operation        | Name          | Rows  | Bytes | Cost (%CPU)| Time |
-------------------------------------------------------------------------------- --
|   0 | SELECT STATEMENT |               |     1 |    22 |     1   (0)| 00:00:01 |
|*  1 |  INDEX RANGE SCAN| IDX_TEST_DATE |     1 |    22 |     1   (0)| 00:00:01 |
-------------------------------------------------------------------------------- --

Predicate Information (identified by operation id):
---------------------------------------------------

   1 - access("DATE_TEST">TIMESTAMP'2007-11-05 00:00:00')

Note
-----
   - dynamic sampling used for this statement


緇熻淇℃伅
----------------------------------------------------------
          7  recursive calls
          0  db block gets
         18  consistent gets
          0  physical reads
          0  redo size
        280  bytes sent via SQL*Net to client
        374  bytes received via SQL*Net from client
          1  SQL*Net roundtrips to/from client
          0  sorts (memory)
          0  sorts (disk)
          0  rows processed

浠庝笂闈㈠彲浠ユ竻妤氱湅鍒幫紝timestamp>date鎯呭喌涓嬶紝璧扮儲寮?br />
綰犳鎴戜箣鍓嶇殑璁よ瘑銆?br />
鍙﹀鍐嶈ˉ鍏呬竴涓嬶紝date榪欎釜鏁版嵁綾誨瀷涓鑸儏鍐典笅寰堝皯鐢紝寤鴻浜у搧閲岄潰鎵鏈夌殑date鏁版嵁綾誨瀷鍏ㄩ儴鏀逛負timestamp



tacy lee 2007-12-26 00:42 鍙戣〃璇勮
]]>
db2璇婃柇緋誨垪涔?--鎹曡幏sql鎵ц鎯呭喌http://www.tkk7.com/tacy/archive/2007/11/25/162969.htmltacy leetacy leeSun, 25 Nov 2007 06:51:00 GMThttp://www.tkk7.com/tacy/archive/2007/11/25/162969.htmlhttp://www.tkk7.com/tacy/comments/162969.htmlhttp://www.tkk7.com/tacy/archive/2007/11/25/162969.html#Feedback0http://www.tkk7.com/tacy/comments/commentRss/162969.htmlhttp://www.tkk7.com/tacy/services/trackbacks/162969.html浣滆咃細tacy lee

鍦ㄥ簲鐢ㄤ嬌鐢ㄨ繃紼嬩腑錛屾垜浠粡甯鎬細紕板埌搴旂敤鍝嶅簲鏃墮棿寰堟參錛岀敋鑷蟲病鏈夊搷搴旓紝浣嗘槸搴旂敤鏈嶅姟鍣ㄥ彲鑳藉茍涓嶆槸寰堢箒蹇欙紝cpu鍒╃敤鐜囦篃闈炲父浣庯紝寮曡搗榪欑鐘跺喌鐨勫師鍥犳湁寰堝縐嶏紝姣斿鐜闂錛屽簲鐢ㄨ祫婧愭硠婕忥紝鏁版嵁搴撳師鍥犵瓑絳夛紝鏈枃涓昏鏄粠涓嬈″簲鐢ㄦц兘璇婃柇榪囩▼鏉ヨ皥璋堝浣曢氳繃鏁版嵁搴撹瘖鏂簲鐢ㄦц兘闂銆?/p>

闂錛?/p>

嫻嬭瘯榪囩▼涓彂鐜板簲鐢ㄤ腑鏌愪釜璺寵漿欏甸潰鎵ц鏃墮棿姣旇緝闀匡紝緋葷粺鍘嬪姏涓嶅ぇ錛宑pu鍒╃敤寰堜綆錛岃欏甸潰闇瑕佷粠cache涓彇鏁版嵁錛岀涓嬈$殑鏃跺欏姞杞絚ache錛堜粠鏁版嵁搴撲腑鏌ヨ鍥炴暟鎹茍cache錛夈?/p>

璇婃柇錛?/p>

欏甸潰閫昏緫姣旇緝綆鍗曪紝鎴戜滑鍏堢敤loadrunner妯℃嫙騫跺彂嫻嬭瘯涓涓嬭繖涓〉闈紝鐒跺悗鍐嶆暟鎹簱绔崟鑾穝ql鎵ц鎯呭喌銆?/p>

1銆佹墦寮db2鐩戞帶寮鍏?/p>

#db2 connect to eos
#db2 update monitor switches using statement on
#db2 reset monitor all

2銆佸嚑鍒嗛挓涔嬪悗錛屾垜浠敹闆唖ql緇熻蹇収

#db2 get snapshot for dynamic sql on eos > dysqlstatus.out

鐜板湪緇熻淇℃伅宸茬粡瀛樻斁鍦╠ysqlstatus.out涓紝浣犲彲浠ヤ嬌鐢ㄤ換鎰忔柟渚跨殑鏂囨湰澶勭悊宸ュ叿鏌ョ湅錛屾垜涓鑸敤windows涓婄殑gvim鏉ュ鐞嗭紝鎵撳紑dysqlstatus.out

Number of executions = 1

Number of compilations = 1
Worst preparation time (ms) = 2
Best preparation time (ms) = 2
Internal rows deleted = 0
Internal rows inserted = 0
Rows read = 2
Internal rows updated = 0
Rows written = 0
Statement sorts = 0
Statement sort overflows = 0
Total sort time = 0
Buffer pool data logical reads = Not Collected
Buffer pool data physical reads = Not Collected
Buffer pool temporary data logical reads = Not Collected
Buffer pool temporary data physical reads = Not Collected
Buffer pool index logical reads = Not Collected
Buffer pool index physical reads = Not Collected
Buffer pool temporary index logical reads = Not Collected
Buffer pool temporary index physical reads = Not Collected
Total execution time (sec.ms) = 0.000377
Total user cpu time (sec.ms) = 0.010000
Total system cpu time (sec.ms) = 0.000000
Statement text = select ACTIVITYDEFID,ACTIVITYINSTID from wfworkitem where

PROCESSINSTID=104199 and CURRENTSTATE = 4

......

綆鍗曡涓涓媣i涓殑澶勭悊

:g!/Total execution time/d
鍙繚鐣欐枃鏈腑鐨剆ql鎵ц鏃墮棿錛屾垜浠鎸夌収鎵ц鏃墮棿鏉ユ帓搴?br>
閫氳繃vim鐨剉isual鍔熻兘閫夋嫨鎵ц鏃墮棿鍧楋紙絳夊彿鍚庨潰鐨勬暟瀛楋級錛岀劧鍚庢帓搴?br> Total execution time (sec.ms) = 0.050590
Total execution time (sec.ms) = 0.000170
Total execution time (sec.ms) = 0.000247
Total execution time (sec.ms) = 0.000292
Total execution time (sec.ms) = 0.000474
Total execution time (sec.ms) = 0.000330
Total execution time (sec.ms) = 0.000348
Total execution time (sec.ms) = 0.000279
Total execution time (sec.ms) = 0.000385
Total execution time (sec.ms) = 0.000296
Total execution time (sec.ms) = 0.000261
Total execution time (sec.ms) = 0.000195
Total execution time (sec.ms) = 0.000226
Total execution time (sec.ms) = 0.000227
Total execution time (sec.ms) = 0.000193
......
:'<,'>!sort

鎺掑簭鍚庣殑緇撴灉錛堥儴鍒嗭級
Total execution time (sec.ms) = 2.027776
Total execution time (sec.ms) = 2.203624
Total execution time (sec.ms) = 2.504677
Total execution time (sec.ms) = 2.951256
Total execution time (sec.ms) = 3.119875
Total execution time (sec.ms) = 3.303277
Total execution time (sec.ms) = 3.303517
Total execution time (sec.ms) = 4.017133
Total execution time (sec.ms) = 4.043329
Total execution time (sec.ms) = 4.252125
Total execution time (sec.ms) = 4.400952
Total execution time (sec.ms) = 4.606765
Total execution time (sec.ms) = 5.208087
Total execution time (sec.ms) = 5.778598
Total execution time (sec.ms) = 8.117470
Total execution time (sec.ms)      = 9797.905136

鍙互鐪嬪埌鏈闀挎椂闂寸殑sql total鎵ц鏃墮棿鑰楄垂浜?797.905123s.

鐜板湪鎴戜滑鍒癲ysqlstatus.out涓幓鎵捐繖鏉¤鍙?/p>

Number of executions               = 4602
Number of compilations = 4294967295
Worst preparation time (ms) = 2
Best preparation time (ms) = 2
Internal rows deleted = 0
Internal rows inserted = 0
Rows read = 2963688
Internal rows updated = 0
Rows written = 0
Statement sorts = 0
Statement sort overflows = 0
Total sort time = 0
Buffer pool data logical reads = Not Collected
Buffer pool data physical reads = Not Collected
Buffer pool temporary data logical reads = Not Collected
Buffer pool temporary data physical reads = Not Collected
Buffer pool index logical reads = Not Collected
Buffer pool index physical reads = Not Collected
Buffer pool temporary index logical reads = Not Collected
Buffer pool temporary index physical reads = Not Collected
Total execution time (sec.ms) = 9797.905136
Total user cpu time (sec.ms) = 9.290000
Total system cpu time (sec.ms) = 1.230000
Statement text = select * from XXXX_T_CNFACTIVITYDEF

榪欐潯璇彞鎬誨叡鎵ц浜?602嬈★紝騫沖潎姣忔鐨勬墽琛屾椂闂?S錛岃屼笖榪欎簺鏁版嵁搴旇鏄cache璧鋒潵鐨?nbsp;  錛涳級

鎬葷粨錛?/p>

涓婇潰鐨勬柟娉曠畝鍗曟葷粨浜嗕粠鏁版嵁搴撳眰闈㈠搴旂敤鐨勬ц兘闂璇婃柇錛屽笇鏈涘澶у鏈夋墍甯姪錛屽浜庢暟鎹簱蹇収璇婃柇闂鐨勬濊礬瀵逛簬浠繪剰鏁版嵁搴撻氱敤

 

琛ュ厖涓涓猽nix涓婅剼鏈鐞嗘柟寮忥細

sqlsort.sh

awk 'BEGIN{RS="";FS="\n";ORS="\n"};/Statement text/{print $1, $21, $24}' $1 | awk '$5 > 0 {print "AvgTime:", $11/$5, "\t", $0}'| sort -n | head -n $2|awk '{print $0, "\n"}'
 
浣跨敤錛?sqlsort.sh dysqlstate.out 10錛堟樉紺篢op ten錛?/div>
 
del.icio.us Tags: ,,,


tacy lee 2007-11-25 14:51 鍙戣〃璇勮
]]>db2璇婃柇緋誨垪涔?--瀹氫綅閿佺瓑寰呴棶棰?/title><link>http://www.tkk7.com/tacy/archive/2007/11/24/162892.html</link><dc:creator>tacy lee</dc:creator><author>tacy lee</author><pubDate>Sat, 24 Nov 2007 13:18:00 GMT</pubDate><guid>http://www.tkk7.com/tacy/archive/2007/11/24/162892.html</guid><wfw:comment>http://www.tkk7.com/tacy/comments/162892.html</wfw:comment><comments>http://www.tkk7.com/tacy/archive/2007/11/24/162892.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/tacy/comments/commentRss/162892.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/tacy/services/trackbacks/162892.html</trackback:ping><description><![CDATA[<p>浣滆咃細tacy lee</p> <p>鍦ㄥ簲鐢ㄤ腑錛屾垜浠粡甯鎬細紕板埌sql鎵ц寰堟參錛屼絾鏄暟鎹簱cpu鍜屽唴瀛樹嬌鐢ㄧ巼鍙堜笉楂樼殑鎯呭喌錛岀被浼肩殑闂鍩烘湰涓婄敱浜庨攣錛屾帓搴忕瓑鍘熷洜閫犳垚錛屾湰鏂囦富瑕佹弿榪板浣曞幓瀹氫綅閿佺瓑寰呴棶棰橈紝璋佸湪閿佺瓑寰咃紵絳夊緟璋佹寔鏈夌殑閿侊紵閿佸湪閭d釜琛紵</p> <p>涓銆佹祴璇曞噯澶?/p> <p>1銆佸厛鍦╯ession1鎵ц濡備笅鎿嶄綔錛屽垱寤烘祴璇曡〃</p> <div><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2 connect to eos #export DB2OPTIONS=+C #db2 <span style="color: #006080">"create table tacy_test (a int not null primary key,b varchar(10))"</span> #db2 <span style="color: #006080">"insert into tacy_test values(1,'a')"</span> #db2 <span style="color: #006080">"insert into tacy_test values(2,'a')"</span> #db2 <span style="color: #006080">"insert into tacy_test values(3,'a')"</span> #db2 <span style="color: #006080">"insert into tacy_test values(4,'a')"</span> #db2 commit</pre></div> <p>2銆佸湪session2鎵ц濡備笅鎿嶄綔</p> <div><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2 connect to eos #export DB2OPTIONS=+C</pre></div> <p>浜屻佷駭鐢熶竴涓猯ock wait</p> <p>鍦╯ession1鍋氫竴涓〃鏇存柊錛?/p> <div><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2 <span style="color: #006080">"update tacy_test set b='b' where a=4"</span></pre></div> <div>sql鎵ц鎴愬姛</div> <div>鍦╯ession2鍋氬悓鏍鋒洿鏂版搷浣滐細</div> <div><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2 <span style="color: #006080">"update tacy_test set b='c' where a=4"</span></pre></div> <p>榪涚▼琚寕璧風瓑寰?/p> <p>涓夈佸畾浣嶉攣絳夊緟</p> <p>1銆佸厛鏉ョ湅鐪嬪簲鐢ㄧ殑鎯呭喌錛?/p> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2pd -db eos -applications Database Partition 0 -- Database EOS -- Active -- Up 0 days 07:37:37 Applications: Address AppHandl [nod-index] NumAgents CoorPid Status C-AnchID C-StmtUID L-AnchID L-StmtUID Appid 0x10140040 8 [000-00008] 1 8425 Lock-wait 80 2 66 1 *LOCAL.db2inst1.071124043739 0x100CE540 7 [000-00007] 1 8358 UOW-Waiting 0 0 80 2 *LOCAL.db2inst1.071124043708 </pre></div> <p>鍙互鐪嬪埌鏈変竴涓簲鐢ㄧ殑鐘舵佸浜嶭ock-wait</p> <p>2銆佺幇鍦ㄦ垜浠潵鐪嬬湅搴旂敤鍦ㄧ瓑浠涔?/p> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2pd -db eos -locks showlock wait Database Partition 0 -- Database EOS -- Active -- Up 0 days 07:42:56 Locks: Address TranHdl Lockname Type Mode Sts Owner Dur HldCnt Att Rlse 0x2C8E0760 3 02001806078066020000000052 Row ..X W 2 1 0 0 0x0 TbspaceID 2 TableID 1560 RecordID 0x2668007</pre></div> <p>閿佺殑綾誨瀷涓篟ow錛堣閿侊級錛孹閿侊紙鎺掍粬閿侊級錛屼笅闈㈡槸鎴戜滑鏈鍏沖績鐨勯攣鐨勪綅緗?/p> <p>TbspaceID 2 TableID 1560 RecordID 0x2668007</p>鍏朵腑TbspaceID涓鴻〃絀洪棿ID錛孴ableID涓鴻〃鐨処D錛孯ecordID浠h〃鍏蜂綋浣嶇疆錛屽叏閮ㄥ簲璇ユ槸0x0266807,鍏朵腑鍓嶉潰涓変釜瀛楄妭涓簆age number錛屼負0x02668錛屽悗闈竴涓瓧鑺備唬琛╯olt identifier錛屼負0x07 <p>3銆佹壘鍒扮浉搴旂殑琛?/p> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2 <span style="color: #006080">"select tbspace,tabschema,tabname,tableid,tbspaceid from syscat.tables where tbspaceid=2 and tableid=1560"</span> TBSPACE TABSCHEMA TABNAME TABLEID TBSPACEID ------------ ----------- ---------- ------- --------- USERSPACE1 DB2INST1 TACY_TEST 1560 2 1 record(s) selected. </pre></div> <p>4銆佹牴鎹甊ecordID鎵懼埌閿佸湪鍝</p> <p>db2鎻愪緵浜嗕竴涓己澶х殑鏁版嵁鍒嗘瀽宸ュ叿db2dart錛屽彲浠ump鍑虹浉搴旂殑page鏁版嵁</p> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">#db2dart eos /dd /tsi 2 /oi 1560 /ps 157312p /np 1 /v y Warning: The database state <span style="color: #0000ff">is</span> not consistent. Warning: Reorg rows MAY be due to the inconsistent state of the database. DB2DART Processing completed with warning(s)! Complete DB2DART report found <span style="color: #0000ff">in</span>: /home/db2inst1/sqllib/db2dump/DART0000/EOS.RPT</pre></div> <p>鍏朵腑tsi涓鴻〃絀洪棿id(2)錛宱i涓鴻〃id(1560)錛宲s涓簆age number(0x0266807)錛岄渶瑕佽漿鎹負鍗佽繘鍒訛紝鍦ㄧ粨灝懼繀欏誨姞p錛宯p浠h〃浣犺鑾峰彇鐨勯〉鏁幫紝v涓烘槸鍚﹁緇嗚緭鍑?/p> <p>鐜板湪鎴戜滑鏉ョ湅鐪婨OS.RPT</p> <div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; max-height: 200px"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">______________________________________________________________________________ _______ DART _______ D a t a b a s e A n a l y s i s a n d R e p o r t i n g T o o l IBM DB2 6000 ______________________________________________________________________________ DART (V8.1.0) Report: 2007-11-24-20.59.51.355893 Database Name: EOS Report name: EOS.RPT Old report back-up: EOS.BAK Database Subdirectory: /opt/db2/db2inst1/NODE0000/SQL00001 Operational Mode: Database Inspection Only (INSPECT) ______________________________________________________________________________ ------------------------------------------------------------------------------ Action option: DD Table-<span style="color: #0000ff">object</span>-ID: 1560; Tablespace-ID: 2; First-page: 157312p; Number-pages: 1; Verbose: y Warning: The database state <span style="color: #0000ff">is</span> not consistent. Warning: Reorg rows MAY be due to the inconsistent state of the database. Connecting to Buffer Pool Services... Table <span style="color: #0000ff">object</span> report phase start. Dump format <span style="color: #0000ff">is</span> verbose. ______________________________________ Page 0 of <span style="color: #0000ff">object</span> 1560 from table space 2. BPS Page Header: Page Data Offset = 48 Page Data Length = 4048 Page LSN = 0000 AE97 AE41 Object Page Number = 0 Pool Page Number = 157312 Object ID = 1560 Object Type = Data Object Data Page Header: Slot Count = 8 Total Free Space = 2784 Total Reserve Space = 0 Youngest Reserve Space = n/a Youngest TID = n/a Free Space Offset = 2799 Maximum Record Size = 23 Data Records: Slot 0: Offset Location = 3996 (xF9C) Record Length = 32 (x20) Record Type = Data Object Header Control Record Page count = 1 Object Creation LSN = 0000 AE97 800C Object State = x0000 UDI Since Runstats = 0 DART Field = x00000000 Slot 1: Offset Location = 2992 (xBB0) Record Length = 1004 (x3EC) Record Type = Free Space Control Record Free space entries: 0: 2884 (x0B44), 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC) 4: 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC) 8: 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC) 鐪佺暐銆傘傘? 492: 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC) 496: 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC), 4028 (x0FBC) Slot 2: Offset Location = 2916 (xB64) Record Length = 76 (x4C) Record Type = Table Directory Record MetaIndex Root Page = 157377 Index Type = 2 Table Descriptor Pointer -- Page 157312 Slot 3 Max Insert Search = 0 Flags = x02000200 bit representation = 00000010 00000000 00000010 00000000 Check pending info: Constraint status = x00 Constraint RID = Page 0 Slot 0 last BID = x00000000 Slot 3: Offset Location = 2892 (xB4C) Record Length = 24 (x18) Record Type = Table Description Record Number of Columns = 2 Column 1: Type <span style="color: #0000ff">is</span> Long Integer Length = 4 Prohibits NULLs Prohibits Default Fixed offset: 0 Column 2: Type <span style="color: #0000ff">is</span> Fixed Length Character String Length = 10 Allows NULLs Prohibits Default Fixed offset: 4 Slot 4: Offset Location = 2869 (xB35) Record Length = 23 (x17) Record Type = Table Data Record (FIXEDVAR) Fixed part length <span style="color: #0000ff">value</span> = 15 Column 1: Fixed offset: 0 Type <span style="color: #0000ff">is</span> Long Integer Value = 1 Column 2: Fixed offset: 4 Type <span style="color: #0000ff">is</span> Fixed Length Character String 61202020 20202020 2020 a Slot 5: Offset Location = 2846 (xB1E) Record Length = 23 (x17) Record Type = Table Data Record (FIXEDVAR) Fixed part length <span style="color: #0000ff">value</span> = 15 Column 1: Fixed offset: 0 Type <span style="color: #0000ff">is</span> Long Integer Value = 2 Column 2: Fixed offset: 4 Type <span style="color: #0000ff">is</span> Fixed Length Character String 61202020 20202020 2020 a Slot 6: Offset Location = 2823 (xB07) Record Length = 23 (x17) Record Type = Table Data Record (FIXEDVAR) Fixed part length <span style="color: #0000ff">value</span> = 15 Column 1: Fixed offset: 0 Type <span style="color: #0000ff">is</span> Long Integer Value = 3 Column 2: Fixed offset: 4 Type <span style="color: #0000ff">is</span> Fixed Length Character String 61202020 20202020 2020 a Slot 7: Offset Location = 2800 (xAF0) Record Length = 23 (x17) Record Type = Table Data Record (FIXEDVAR) Fixed part length <span style="color: #0000ff">value</span> = 15 Column 1: Fixed offset: 0 Type <span style="color: #0000ff">is</span> Long Integer Value = 4 Column 2: Fixed offset: 4 Type <span style="color: #0000ff">is</span> Fixed Length Character String 61202020 20202020 2020 a Slots Summary: Total=8, In-use=8, Deleted=0. Table <span style="color: #0000ff">object</span> report phase end. ______________________________________ DB2DART Processing completed with warning(s)! Warning(s) detected during processing. ______________________________________ Complete DB2DART report found <span style="color: #0000ff">in</span>: /home/db2inst1/sqllib/db2dump/DART0000/EOS.RPT _______ D A R T P R O C E S S I N G C O M P L E T E _______</pre></div> <p>鎵懼埌Solt 7 (0x07)錛宱k錛屼綘鐜板湪鍙互娓呮鐨勭煡閬撳簲鐢ㄧ瓑寰呯殑Row涓?4,a)</p> <p> </p> <p>鎬葷粨</p> <p>閫氳繃涓婇潰鐨勬柟娉曪紝鎴戜滑綆鍗曟弿榪頒簡涓涓猟b2閿侀棶棰樼殑瀹氫綅鏂規硶錛屽笇鏈涜兘緇欏ぇ瀹跺湪鍒嗘瀽鍜屽畾浣嶅簲鐢ㄦц兘闂鐨勬椂鍊欒搗鍒頒竴瀹氱殑甯姪</p> <div id="6e8wu4k" class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d4188abc-b1ba-4bf7-8c81-f16c1fedc0c9" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">del.icio.us Tags: <a rel="tag">db2</a>,<a rel="tag">lock</a>,<a rel="tag">tuning</a>,<a rel="tag">diagnostic</a></div><img src ="http://www.tkk7.com/tacy/aggbug/162892.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/tacy/" target="_blank">tacy lee</a> 2007-11-24 21:18 <a href="http://www.tkk7.com/tacy/archive/2007/11/24/162892.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎹曡幏DB2 sql鐨勬墽琛屽揩鐓?/title><link>http://www.tkk7.com/tacy/archive/2007/10/30/156907.html</link><dc:creator>tacy lee</dc:creator><author>tacy lee</author><pubDate>Tue, 30 Oct 2007 04:59:00 GMT</pubDate><guid>http://www.tkk7.com/tacy/archive/2007/10/30/156907.html</guid><wfw:comment>http://www.tkk7.com/tacy/comments/156907.html</wfw:comment><comments>http://www.tkk7.com/tacy/archive/2007/10/30/156907.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/tacy/comments/commentRss/156907.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/tacy/services/trackbacks/156907.html</trackback:ping><description><![CDATA[<p>鍏堝緩绔嬩竴涓洃鎺у櫒 <p>db2 "create event monitor SQLCOST for statements write to file '/home/db2inst1'" <p>鍐嶈緗簨鍔$姸鎬佷負鎵撳紑 <p>db2 "set event monitor SQLCOST state=1" <p><font color="#ff0000">娉細1涓烘墦寮錛?涓哄叧闂紝鏀墮泦鏁版嵁涔嬪悗錛岃寰楀叧闂綘鐨勭洃鎺у櫒錛屽惁鍒欍傘傘?/font> <p>璺戜綘鐨勬祴璇曞悗錛屽湪浣犵殑/home/db2inst1鐩綍涓嬩細鐢熸垚涓浜沞vm鏂囦歡 <p>鐢ㄤ笅闈㈡寚浠よ幏鍙栬瘖鏂俊鎭細 <p>db2evmon -db eos51 -evm SQLCOST>sqlcost1.txt <p>瀹屾垚涔嬪悗鍒犻櫎浣犵殑鐩戞帶鍣? <p>db2 "drop event monitor SQLCOST" <p>鐢熸垚鐨勯噰鏍蜂緥瀛愶紝浠庝笅闈㈢殑渚嬪瓙涓紝浣犲彲浠ユ竻闄ょ殑鐪嬪埌SQL鎵ц鐨勬椂闂達紝CPU娑堣楁儏鍐碉紝鎺掑簭鏄惁婧㈠嚭錛孊ufferPool鐨勪嬌鐢ㄦ儏鍐碉紝鏍規嵁榪欎簺淇℃伅錛孲QL鐨勬墽琛屾晥鐜囦竴鐩簡鐒訛細 <p>26) Statement Event ... <p>Appl Handle: 336 <p>Appl Id: C0A80421.O905.0ABDA5065446 <p>Appl Seq number: 0657 <p>Record is the result of a flush: FALSE <p>------------------------------------------- <p>Type : Dynamic <p>Operation: Execute <p>Section : 7 <p>Creator : NULLID <p>Package : SYSSN300 <p>Consistency Token : SYSLVL01 <p>Package Version ID : <p>Cursor : SQL_CURSN300C7 <p>Cursor was blocking: FALSE <p>Text : update WFProcessInst set relateData=? where processInstID= ? <p>------------------------------------------- <p><a><font color="#0080ff">Start Time: 04/25/2007 14:57:19.402248</font></a> <p><font color="#0080ff">Stop Time: 04/25/2007 14:57:19.409622</font> <p><font color="#0080ff">Exec Time: 0.007374 seconds</font> <p><font color="#0080ff">Number of Agents created: 1</font> <p><font color="#0080ff">User CPU: 0.000000 seconds</font> <p><font color="#0080ff">System CPU: 0.000000 seconds</font>    <a href="#_msocom_1">[licl1]</a> <p>Fetch Count: 0 <p><a><font color="#0080ff">Sorts: 0</font></a> <p><font color="#0080ff">Total sort time: 0</font> <p><font color="#0080ff">Sort overflows: 0</font>    <a href="#_msocom_2">[licl2]</a> <p>Rows read: 1 <p>Rows written: 1 <p>Internal rows deleted: 0 <p>Internal rows updated: 0 <p>Internal rows inserted: 0 <p><a><font color="#0080ff">Bufferpool data logical reads: 9</font></a> <p><font color="#0080ff">Bufferpool data physical reads: 0</font> <p><font color="#0080ff">Bufferpool temporary data logical reads: 0</font> <p><font color="#0080ff">Bufferpool temporary data physical reads: 0</font> <p><font color="#0080ff">Bufferpool index logical reads: 3</font> <p><font color="#0080ff">Bufferpool index physical reads: 0</font> <p><font color="#0080ff">Bufferpool temporary index logical reads: 0</font> <p><font color="#0080ff">Bufferpool temporary index physical reads: 0</font>    <a href="#_msocom_3">[licl3]</a> <p>SQLCA: <p>sqlcode: 0 <p>sqlstate: 00000 <hr align="left" width="33%" size="1"> <p><a></a> <p><a href="#_msoanchor_1">[licl1]</a>SQL鎵ц鏃墮棿鍜孋PU娑堣楁儏鍐? <p><a></a> <p><a href="#_msoanchor_2">[licl2]</a>SQL鐨勬帓搴忔儏鍐碉紝鍙互鐪嬪埌榪欎釜SQL娌℃湁鎺掑簭錛屽綋鐒朵篃娌℃湁鎺掑簭婧㈠嚭 <p><a></a> <p><a href="#_msoanchor_3">[licl3]</a>Bufferpool鐨勪嬌鐢ㄦ儏鍐碉紝閫昏緫璇誨拰鐗╃悊璇葷殑瀵規瘮</p> <div id="64cu44o" class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:54520e35-7c6a-476c-8521-71adb04f0c5b" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">del.icio.us Tags: <a rel="tag">database</a> , <a rel="tag">db2</a> , <a rel="tag">tuning</a> </div><img src ="http://www.tkk7.com/tacy/aggbug/156907.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/tacy/" target="_blank">tacy lee</a> 2007-10-30 12:59 <a href="http://www.tkk7.com/tacy/archive/2007/10/30/156907.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璁よ瘑oracle鏁版嵁綾誨瀷http://www.tkk7.com/tacy/archive/2007/09/07/143485.htmltacy leetacy leeFri, 07 Sep 2007 09:10:00 GMThttp://www.tkk7.com/tacy/archive/2007/09/07/143485.htmlhttp://www.tkk7.com/tacy/comments/143485.htmlhttp://www.tkk7.com/tacy/archive/2007/09/07/143485.html#Feedback0http://www.tkk7.com/tacy/comments/commentRss/143485.htmlhttp://www.tkk7.com/tacy/services/trackbacks/143485.html
鍦ㄨ璁℃暟鎹簱鐨勬椂鍊欙紝閫夋嫨姝g‘鐨勬暟鎹被鍨嬶紝寰寰鍙互閬垮厤寰堝鐨勯棶棰橈紝姝g‘鐞嗚В鏁版嵁搴撶殑綾誨瀷錛屽浜庡瓨鍌ㄧ┖闂磋鍒掞紝搴旂敤鎬ц兘璋冩暣閮戒細寰堟湁甯姪錛屼笅闈㈡槸鎴戜釜浜虹殑涓鐐規葷粨  闃呰鍏ㄦ枃

tacy lee 2007-09-07 17:10 鍙戣〃璇勮
]]>
主站蜘蛛池模板: youjizz亚洲| 亚洲成人免费在线观看| 亚洲av无一区二区三区| 毛片在线免费视频| 亚洲夂夂婷婷色拍WW47| 影音先锋在线免费观看| 国产精品亚洲综合五月天| 好爽…又高潮了毛片免费看| 亚洲乱码无人区卡1卡2卡3| 麻豆国产入口在线观看免费| 国产99久久亚洲综合精品| 亚洲AⅤ无码一区二区三区在线 | 四虎影院免费在线播放| 亚洲影院天堂中文av色| 国产又粗又猛又爽又黄的免费视频 | 国产精品视频免费观看| 亚洲字幕AV一区二区三区四区| 四虎成人免费网址在线| 一级片在线免费看| 亚洲福利在线视频| 91在线视频免费播放| 成人精品国产亚洲欧洲| 在线精品亚洲一区二区三区| 无码精品国产一区二区三区免费 | 亚洲∧v久久久无码精品| 182tv免费视视频线路一二三| 亚洲女女女同性video| 亚洲综合国产精品第一页| 在线观看特色大片免费网站| 亚洲一区免费在线观看| 亚洲国产精品成人| 四虎国产精品永久免费网址 | 久久久WWW成人免费精品| 亚洲国产成人久久综合一| a级毛片无码免费真人| 国产亚洲视频在线播放大全| 国精无码欧精品亚洲一区| 成人激情免费视频| 99久久婷婷免费国产综合精品| 亚洲国产成人精品电影| 亚洲国产婷婷综合在线精品 |