锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲专区无码牛牛,亚洲a∨无码一区二区,亚洲日韩在线中文字幕综合http://m.tkk7.com/KingKong/category/49785.html璐靛湪鍧氭寔!zh-cnWed, 09 Nov 2011 21:26:35 GMTWed, 09 Nov 2011 21:26:35 GMT60瑙e喅ORA-30036錛氭棤娉曟寜8鎵╁睍孌?/title><link>http://m.tkk7.com/KingKong/archive/2011/11/07/363036.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Mon, 07 Nov 2011 02:30:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/11/07/363036.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/363036.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/11/07/363036.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/363036.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/363036.html</trackback:ping><description><![CDATA[鏃╀笂鍋氫釜瀹為獙,update鏁版嵁鐨勬椂鍊欐姤閿檕ra-30036:鏃犳硶鎸?鎵╁睍孌碉紙鍦ㄨ繕鍘熻〃絀洪棿‘undotbs_new’涓級<br /><br />1.鏌ヨ浜嗕竴涓媢ndo琛ㄧ┖闂寸殑浣跨敤,鍙戠幇宸茬粡瓚呰繃浜?0%<span id="pn7t7hv" class="Apple-style-span" style="font-size: 13px; "><span style="color: #000000; "><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">SELECT</span><span style="color: #000000; "> a.tablespace_name </span><span style="color: #0000FF; ">as</span><span style="color: #000000; "> tablespace_name,<br />       to_char(b.total</span><span style="color: #808080; ">/</span><span style="color: #800000; font-weight: bold; ">1024</span><span style="color: #808080; ">/</span><span style="color: #800000; font-weight: bold; ">1024</span><span style="color: #000000; ">,</span><span style="color: #800000; font-weight: bold; ">999999.99</span><span style="color: #000000; ">) </span><span style="color: #0000FF; ">as</span><span style="color: #000000; "> Total,<br />       to_char((b.total</span><span style="color: #808080; ">-</span><span style="color: #000000; ">a.free)</span><span style="color: #808080; ">/</span><span style="color: #800000; font-weight: bold; ">1024</span><span style="color: #808080; ">/</span><span style="color: #800000; font-weight: bold; ">1024</span><span style="color: #000000; ">,</span><span style="color: #800000; font-weight: bold; ">999999.99</span><span style="color: #000000; ">) </span><span style="color: #0000FF; ">as</span><span style="color: #000000; "> Used,<br />       to_char(a.free</span><span style="color: #808080; ">/</span><span style="color: #800000; font-weight: bold; ">1024</span><span style="color: #808080; ">/</span><span style="color: #800000; font-weight: bold; ">1024</span><span style="color: #000000; ">,</span><span style="color: #800000; font-weight: bold; ">999999.99</span><span style="color: #000000; ">) </span><span style="color: #0000FF; ">as</span><span style="color: #000000; "> Free,<br />       to_char(</span><span style="color: #FF00FF; ">round</span><span style="color: #000000; ">((total</span><span style="color: #808080; ">-</span><span style="color: #000000; ">free)</span><span style="color: #808080; ">/</span><span style="color: #000000; ">total,</span><span style="color: #800000; font-weight: bold; ">4</span><span style="color: #000000; ">)</span><span style="color: #808080; ">*</span><span style="color: #800000; font-weight: bold; ">100</span><span style="color: #000000; ">,</span><span style="color: #800000; font-weight: bold; ">999.99</span><span style="color: #000000; ">) </span><span style="color: #0000FF; ">as</span><span style="color: #000000; "> Used_Rate<br /></span><span style="color: #0000FF; ">FROM</span><span style="color: #000000; "> (</span><span style="color: #0000FF; ">SELECT</span><span style="color: #000000; "> tablespace_name, </span><span style="color: #FF00FF; ">sum</span><span style="color: #000000; ">(bytes) free </span><span style="color: #0000FF; ">FROM</span><span style="color: #000000; "> DBA_FREE_SPACE </span><span style="color: #0000FF; ">GROUP</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">BY</span><span style="color: #000000; "> tablespace_name) a,<br />     (</span><span style="color: #0000FF; ">SELECT</span><span style="color: #000000; "> tablespace_name, </span><span style="color: #FF00FF; ">sum</span><span style="color: #000000; ">(bytes) total </span><span style="color: #0000FF; ">FROM</span><span style="color: #000000; "> DBA_DATA_FILES </span><span style="color: #0000FF; ">GROUP</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">BY</span><span style="color: #000000; "> tablespace_name ) b<br /></span><span style="color: #0000FF; ">WHERE</span><span style="color: #000000; "> a.tablespace_name</span><span style="color: #808080; ">=</span><span style="color: #000000; ">b.tablespace_name<br />  </span><span style="color: #808080; ">AND</span><span style="color: #000000; "> a.tablespace_name</span><span style="color: #808080; ">=</span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">UNDOTBS_NEW</span><span style="color: #FF0000; ">'</span><span style="color: #000000; "><br /></span><span style="color: #0000FF; ">ORDER</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">BY</span><span style="color: #000000; "> a.tablespace_name;</span></div></span></span><br />2.灝唘ndo琛ㄧ┖闂村ぇ灝忛噸鏂板姞澶х偣,瑙e喅闂~<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">alter</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">database</span><span style="color: #000000; "> datafile </span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">D:\ORACLE\PRODUCT\10.2.0\ORADATA\SUREDD\UNTOTBS_NEW_01.DBF</span><span style="color: #FF0000; ">'</span><span style="color: #000000; "> resize 2048M;</span></div><img src ="http://m.tkk7.com/KingKong/aggbug/363036.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-11-07 10:30 <a href="http://m.tkk7.com/KingKong/archive/2011/11/07/363036.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>v$sql,v$sqlarea 絳夊嚑涓鏄撴販娣嗙殑瑙嗗浘http://m.tkk7.com/KingKong/archive/2011/11/07/363016.htmlsure_dandansure_dandanSun, 06 Nov 2011 16:00:00 GMThttp://m.tkk7.com/KingKong/archive/2011/11/07/363016.htmlhttp://m.tkk7.com/KingKong/comments/363016.htmlhttp://m.tkk7.com/KingKong/archive/2011/11/07/363016.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/363016.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/363016.html
v$sqltext:瀛樺偍鐨勬槸瀹屾暣鐨凷QL,SQL琚垎鍓?/div>
v$sqlarea:瀛樺偍鐨凷QL 鍜屼竴浜涚浉鍏崇殑淇℃伅,姣斿绱鐨勬墽琛屾鏁?閫昏緫璇?鐗╃悊璇葷瓑緇熻淇℃伅.v$sqlarea 蹇界暐浜嗘墽琛岃鍒掔瓑宸紓,鍙槸鍦ㄥ艦寮忎笂sql鏂囨湰鐪嬭搗鏉ヤ竴鏍?鐩稿綋浜庡仛浜嗕釜鑱氬悎,鏄涓笉鍚屾墽琛岃鍒掔殑sql鐨勮仛鍚堝拰绱淇℃伅 
v$sql:瀛樺偍鐨勬槸鍏蜂綋鐨凷QL 鍜屾墽琛岃鍒掔浉鍏充俊鎭?v$sqlarea 鍙互鐪嬪仛 v$sql 鏍規嵁 sqltext 絳?鍋氫簡 group by 涔嬪悗鐨勪俊鎭?/div>
v$sql_plan:浠h〃浜嗗叿浣撶殑sql鐨勬墽琛岃鍒?閫氳繃涓嬮潰3涓瓧孌靛仛榪炴帴(涓巚$sql)
ADDRESS RAW(4),HASH_VALUE NUMBER,CHILD_NUMBER NUMBER


]]>linux鍗歌澆oraclehttp://m.tkk7.com/KingKong/archive/2011/10/14/361217.htmlsure_dandansure_dandanThu, 13 Oct 2011 17:22:00 GMThttp://m.tkk7.com/KingKong/archive/2011/10/14/361217.htmlhttp://m.tkk7.com/KingKong/comments/361217.htmlhttp://m.tkk7.com/KingKong/archive/2011/10/14/361217.html#Feedback1http://m.tkk7.com/KingKong/comments/commentRss/361217.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/361217.html
1.鍋滄鏁版嵁搴?nbsp;
2.鍋滄Listener 
3.鐢╯u鎴栬呴噸鏂扮櫥褰曞埌root灝唎racle瀹夎鐩綍鍒犻櫎 
4.灝?usr/bin涓嬬殑鏂囦歡鍒犻櫎錛堝垹闄よ繖涓変釜鏂囦歡鍚庯紝Oracle灝變笉鑳戒嬌鐢ㄤ簡錛?nbsp;
 rm /usr/local/bin/dbhome 
 rm /usr/local/bin/oraenv 
 rm /usr/local/bin/coraenv 
5.灝?etc/oratab鍒犻櫎 
6.灝?etc/oraInst.loc鍒犻櫎 
7.灝唎racle鐢ㄦ埛鍒犻櫎(鑻ヨ閲嶆柊瀹夎,鍙互涓嶅垹闄? 
8.灝嗙敤鎴風粍鍒犻櫎(鑻ヨ閲嶆柊瀹夎,鍙互涓嶅垹闄?


sure_dandan 2011-10-14 01:22 鍙戣〃璇勮
]]>
紜畾redolog鐨勫ぇ灝?/title><link>http://m.tkk7.com/KingKong/archive/2011/10/10/360380.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Mon, 10 Oct 2011 05:34:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/10/10/360380.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/360380.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/10/10/360380.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/360380.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/360380.html</trackback:ping><description><![CDATA[<div>鍋氫竴涓猘wr鎶ュ憡,鍦↙oad Profile鍙互鏌ョ湅鍒版瘡縐掔殑redo size(鍗曚綅鏄痓yte),鑰宺edo log涓鑸垏鎹㈡椂闂存槸1灝忔椂2-3嬈?鎸夌収3嬈℃潵璁$畻,灝辨槸20鍒嗛挓鍒囨崲涓嬈?鎵浠edo log鐨勫ぇ灝忓氨 = (redo size per second) * 60 * 20.<br />濡傛灉涓嶈兘鍋歛wr鎶ュ憡,灝卞幓鏌ョ湅alert鏃ュ織,鐪嬫棩蹇楃殑鍒囨崲棰戠巼,鏍規嵁鍒囨崲鐨勯鐜囨潵紜畾redo log鐨勫ぇ灝?<br /><br />鍙兘浼氱敤鍒扮殑sql璇彞:<br /><div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">select</span><span style="color: #000000; "> </span><span style="color: #808080; ">*</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">from</span><span style="color: #000000; "> v$logfile;<br /></span><span style="color: #0000FF; ">select</span><span style="color: #000000; "> </span><span style="color: #808080; ">*</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">from</span><span style="color: #000000; "> v$</span><span style="color: #FF00FF; ">log</span><span style="color: #000000; ">;<br /></span><span style="color: #0000FF; ">alter</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">database</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">add</span><span style="color: #000000; "> logfile </span><span style="color: #0000FF; ">group</span><span style="color: #000000; "> x (</span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">F:\oraredolog\REDO0x.LOG</span><span style="color: #FF0000; ">'</span><span style="color: #000000; ">) size xxxM;<br /></span><span style="color: #0000FF; ">alter</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">database</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">drop</span><span style="color: #000000; "> logfile </span><span style="color: #0000FF; ">group</span><span style="color: #000000; "> x;<br /></span><span style="color: #0000FF; ">alter</span><span style="color: #000000; "> system switch logfile;<br /></span><span style="color: #0000FF; ">alter</span><span style="color: #000000; "> system </span><span style="color: #0000FF; ">checkpoint</span><span style="color: #000000; ">;<br /></span></div></div><img src ="http://m.tkk7.com/KingKong/aggbug/360380.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-10-10 13:34 <a href="http://m.tkk7.com/KingKong/archive/2011/10/10/360380.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍒嗘瀽绱㈠紩鐨勪袱鏉″懡浠?/title><link>http://m.tkk7.com/KingKong/archive/2011/09/13/358512.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Tue, 13 Sep 2011 02:31:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/09/13/358512.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/358512.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/09/13/358512.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/358512.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/358512.html</trackback:ping><description><![CDATA[<div><div><strong>1.瀵圭儲寮曠粨鏋勮繘琛岀粺璁?/strong></div><div><strong>1.1analyze index indexname validate structure</strong></div><div></div><div>鑱旀満鏂囨。鐨勫師鏂?Specify VALIDATE STRUCTURE to validate the structure of the analyzed object. </div><div>The statistics collected by this clause are not used by the Oracle Database optimizer, as are statistics collected by the COMPUTE STATISTICS and ESTIMATE STATISTICS clauses.</div><div>For an index, Oracle Database verifies the integrity of each data block in the index and checks for block corruption. This clause does not confirm that each row in the table has an index entry or that each index entry points to a row in the table. You can perform these operations by validating the structure of the table with the CASCADE clause.</div><div></div><div>榪欎釜鍛戒護涓昏鏄敤鏉ュ垎鏋愮儲寮曠殑鏁版嵁鍧楁槸鍚︽湁鍧忓潡錛屼互鍙婃牴鎹垎鏋愬緱鍒扮殑鏁版嵁錛堝瓨鏀懼湪index_stats錛変締鍒ゆ柇绱㈠紩鏄惁闇瑕侀噸鏂板緩绔嬨?/div><div></div><div><strong>1.2 validate structure鏈変簩涓ā寮忥細online, offline錛?榛樿鏄痮ffline妯″紡銆?/strong></div><div></div><div>鑱旀満鏂囨。鍘熸枃:</div><div>Specify ONLINE to enable Oracle Database to run the validation while DML operations are ongoing within the object. The database reduces the amount of validation performed to allow for concurrency.</div><div>Specify OFFLINE, to maximize the amount of validation performed. This setting prevents INSERT, UPDATE, and DELETE statements from concurrently accessing the object during validation but allows queries. This is the default.</div><div></div><div>Restriction on ONLINE</div><div>You cannot specify ONLINE when analyzing a cluster or index.</div><div></div><div>Note:</div><div>When you validate the structure of an object ONLINE, Oracle Database does not collect any statistics, as it does when you validate the structure of the object OFFLINE.</div><div></div><div>浠ffline妯″紡鍒嗘瀽鏃訛紝浼氬琛ㄥ姞涓涓?綰у垾鐨勯攣錛堣〃鍏變韓錛夛紝瀵箁un緋葷當鍙兘閫犳垚涓瀹氱殑褰卞搷銆?/div><div>鑰宱nline妯″紡鍒欐病鏈夎〃lock鐨勫獎鍝嶏紝浣嗗綋浠nline妯″紡鍒嗘瀽鏃訛紝 鍦ㄨ鍥緄ndex_stats娌℃湁緇熻淇℃伅銆?br /></div><div></div><div><strong>2.瀵圭儲寮曠姸鎬佽繘琛岀粺璁?/strong></div><div>analyze index indexname compute statistics</div><div></div><div>鑱旀満鏂囨。鍘熸枃:</div><div>COMPUTE STATISTICS instructs Oracle Database to compute exact statistics about the analyzed object and store them in the data dictionary. When you analyze a table, both table and column statistics are collected.</div><div></div><div>Both computed and estimated statistics are used by the Oracle Database optimizer to choose the execution plan for SQL statements that access analyzed objects. These statistics may also be useful to application developers who write such statements.</div><div>Column statistics appear in the data dictionary views USER_TAB_COLUMNS, ALL_TAB_COLUMNS, and DBA_TAB_COLUMNS. Histograms appear in the data dictionary views USER_TAB_HISTOGRAMS, DBA_TAB_HISTOGRAMS, and ALL_TAB_HISTOGRAMS; USER_PART_HISTOGRAMS, DBA_PART_HISTOGRAMS, and ALL_PART_HISTOGRAMS; and USER_SUBPART_HISTOGRAMS, DBA_SUBPART_HISTOGRAMS, and ALL_SUBPART_HISTOGRAMS.</div><div></div><div>鎬葷殑鏉ヨ錛宑ompute statistics鏄敤鏉ョ粺璁ndex鐨勫垎鏋愪俊鎭紝鏉ヤ負CBO鏈嶅姟鐨勩?i涔嬪悗鎺ㄨ崘浣跨敤dbms_stats銆?/div><div>ps:</div><div>for table鐨勭粺璁′俊鎭瓨鍦ㄤ簬瑙嗗浘錛歶ser_tables 銆乤ll_tables銆乨ba_tables</div><div>for all indexes鐨勭粺璁′俊鎭瓨鍦ㄤ簬瑙嗗浘: user_indexes 銆乤ll_indexes銆乨ba_indexes</div><div>for all columns鐨勭粺璁′俊鎭瓨鍦ㄤ簬璇曞浘錛歶ser_tab_columns銆乤ll_tab_columns銆乨ba_tab_columns<br /></div><div></div><div><strong>3.涓浜泂ample</strong></div><div>3.1浣跨敤validate structure鍒嗘瀽涓涓儲寮曟槸鍚﹂渶瑕侀噸寤?/div><div>(1)analyze index index_name validate structure;</div><div>(2)select t.del_lf_rows_len /t.lf_blk_len from index_stats t where t.name = &index_name;</div><div>(3)濡傛灉緇撴灉澶т簬20%,index灝遍渶瑕佽rebuild浜嗐?br /></div><div></div><div><strong>4.瀵逛簬鍒嗗尯琛紝寤鴻浣跨敤DBMS_STATS錛岃屼笉鏄嬌鐢ˋnalyze璇彞銆?/strong></div><div>(1)鍙互騫惰榪涜錛屽澶氫釜鐢ㄦ埛錛屽涓猅able</div><div>(2)鍙互寰楀埌鏁翠釜鍒嗗尯琛ㄧ殑鏁版嵁鍜屽崟涓垎鍖虹殑鏁版嵁銆?/div><div>(3)鍙互鍦ㄤ笉鍚岀駭鍒笂Compute Statistics錛氬崟涓垎鍖猴紝瀛愬垎鍖猴紝鍏ㄨ〃錛屾墍鏈夊垎鍖?/div><div>(4)鍙互瀵煎嚭緇熻淇℃伅</div><div>(5)鍙互鐢ㄦ埛鑷姩鏀墮泦緇熻淇℃伅<br /></div><div></div><div><strong>5.DBMS_STATS鐨勭己鐐?/strong></div><div>(1)涓嶈兘Validate Structure</div><div>(2)涓嶈兘鏀墮泦CHAINED ROWS, 涓嶈兘鏀墮泦CLUSTER TABLE鐨勪俊鎭紝榪欎袱涓粛鏃ч渶瑕佷嬌鐢ˋnalyze璇彞銆?/div><div>(3)DBMS_STATS 榛樿涓嶅绱㈠紩榪涜Analyze錛屽洜涓洪粯璁ascade鏄疐alse錛岄渶瑕佹墜宸ユ寚瀹氫負True<br /></div><div></div><div><strong>6.瀵逛簬oracle 9閲岄潰鐨凟xternal Table錛孉nalyze涓嶈兘浣跨敤錛屽彧鑳戒嬌鐢―BMS_STATS鏉ユ敹闆嗕俊鎭?/strong></div></div><img src ="http://m.tkk7.com/KingKong/aggbug/358512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-09-13 10:31 <a href="http://m.tkk7.com/KingKong/archive/2011/09/13/358512.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ORACLE鐨勬嵁搴撲簨鍔¢殧紱葷駭鍒?/title><link>http://m.tkk7.com/KingKong/archive/2011/08/15/356551.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Mon, 15 Aug 2011 04:03:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/08/15/356551.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/356551.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/08/15/356551.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/356551.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/356551.html</trackback:ping><description><![CDATA[<div><div>浜嬪姟闅旂綰у埆錛氫竴涓簨鍔″鏁版嵁搴撶殑淇敼涓庡茍琛岀殑鍙︿竴涓簨鍔$殑闅旂紼嬪害銆?/div><div>涓や釜騫跺彂浜嬪姟鍚屾椂璁塊棶鏁版嵁搴撹〃鐩稿悓鐨勮鏃訛紝鍙兘瀛樺湪浠ヤ笅涓変釜闂錛?/div><div><strong>1銆佸夠鎯寵</strong>錛氫簨鍔1璇誨彇涓鏉℃寚瀹歸here鏉′歡鐨勮鍙ワ紝榪斿洖緇撴灉闆嗐傛鏃朵簨鍔2鎻掑叆涓琛屾柊璁板綍錛屾伆濂芥弧瓚砊1鐨剋here鏉′歡銆傜劧鍚嶵1浣跨敤鐩稿悓鐨勬潯浠跺啀嬈℃煡璇紝緇撴灉闆嗕腑鍙互鐪嬪埌T2鎻掑叆鐨勮褰曪紝榪欐潯鏂扮邯褰曞氨鏄夠鎯熾?/div><div><strong>2銆佷笉鍙噸澶嶈鍙?/strong>錛氫簨鍔1璇誨彇涓琛岃褰曪紝绱ф帴鐫浜嬪姟T2淇敼浜員1鍒氬垰璇誨彇鐨勮褰曪紝鐒跺悗T1鍐嶆鏌ヨ錛屽彂鐜頒笌絎竴嬈¤鍙栫殑璁板綍涓嶅悓錛岃繖縐頒負涓嶅彲閲嶅璇匯?/div><div><strong>3銆佽剰璇?/strong>錛氫簨鍔1鏇存柊浜嗕竴琛岃褰曪紝榪樻湭鎻愪氦鎵鍋氱殑淇敼錛岃繖涓猅2璇誨彇浜嗘洿鏂板悗鐨勬暟鎹紝鐒跺悗T1鎵ц鍥炴粴鎿嶄綔錛屽彇娑堝垰鎵嶇殑淇敼錛屾墍浠2鎵璇誨彇鐨勮灝辨棤鏁堬紝涔熷氨鏄剰鏁版嵁銆?/div><div>涓轟簡澶勭悊榪欎簺闂錛孲QL鏍囧噯瀹氫箟浜嗕互涓嬪嚑縐嶄簨鍔¢殧紱葷駭鍒?span class="Apple-style-span" style="white-space: pre; "> </span><div><div><span style="white-space: pre; "><img src="http://m.tkk7.com/images/blogjava_net/kingkong/55.jpg" width="364" height="121" alt="" /><br /><div>Oracle鏁版嵁搴撴敮鎸丷EAD COMMITTED 鍜?SERIALIZABLE榪欎袱縐嶄簨鍔¢殧紱葷駭鍒侽racle涓嶆敮鎸佽剰璇匯?br /><img src="http://m.tkk7.com/images/blogjava_net/kingkong/44.jpg" width="360" height="81" alt="" /><br /><div>SQL鏍囧噯鎵瀹氫箟鐨勯粯璁や簨鍔¢殧紱葷駭鍒槸SERIALIZABLE錛屼絾鏄疧racle 榛樿浣跨敤鐨勬槸READ COMMITTED 璁劇疆闅旂綰у埆浣跨敤<br /> SET TRANSACTION ISOLATION LEVEL<br /> [READ UNCOMMITTED|READ COMMITTED|REPEATABLE READ|SERIALIZABLE]</div></div></span></div></div></div></div><img src ="http://m.tkk7.com/KingKong/aggbug/356551.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-08-15 12:03 <a href="http://m.tkk7.com/KingKong/archive/2011/08/15/356551.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏁版嵁搴撶殑涓夊ぇ璁捐姝ラ錛堣漿錛?/title><link>http://m.tkk7.com/KingKong/archive/2011/08/03/355625.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Tue, 02 Aug 2011 16:28:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/08/03/355625.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/355625.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/08/03/355625.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/355625.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/355625.html</trackback:ping><description><![CDATA[<div><span style="font-family: arial, 瀹嬩綋, sans-serif; line-height: 24px; "><pre id="best-answer-content" mb10"="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 22px; "><strong>1.姒傚康璁捐錛?/strong>瀵圭敤鎴瘋姹傛弿榪扮殑鐜板疄涓栫晫(鍙兘鏄竴涓伐鍘傘佷竴涓晢鍦烘垨鑰呬竴涓鏍$瓑)錛岄氳繃瀵瑰叾涓綇澶勭殑鍒嗙被銆佽仛闆嗗拰姒傛嫭錛屽緩绔嬫娊璞$殑姒傚康鏁版嵁妯″瀷銆傝繖涓蹇墊ā鍨嬪簲鍙嶆槧鐜板疄涓栫晫鍚勯儴闂ㄧ殑淇℃伅緇撴瀯銆佷俊鎭祦鍔ㄦ儏鍐點佷俊鎭棿鐨勪簰鐩稿埗綰﹀叧緋諱互鍙婂悇閮ㄩ棬瀵逛俊鎭偍瀛樸佹煡璇㈠拰鍔犲伐鐨勮姹傜瓑銆傛墍寤虹珛鐨勬ā鍨嬪簲閬垮紑鏁版嵁搴撳湪璁$畻鏈轟笂鐨勫叿浣撳疄鐜扮粏鑺傦紝鐢ㄤ竴縐嶆娊璞$殑褰㈠紡琛ㄧず鍑烘潵銆備互鎵╁厖鐨勫疄浣?#8212;錛圗-R妯″瀷錛夎仈緋繪ā鍨嬫柟娉曚負渚嬶紝絎竴姝ュ厛鏄庣‘鐜板疄涓栫晫鍚勯儴闂ㄦ墍鍚殑鍚勭瀹炰綋鍙婂叾灞炴с佸疄浣撻棿鐨勮仈緋諱互鍙婂淇℃伅鐨勫埗綰︽潯浠剁瓑錛屼粠鑰岀粰鍑哄悇閮ㄩ棬鍐呮墍鐢ㄤ俊鎭殑灞閮ㄦ弿榪?鍦ㄦ暟鎹簱涓О涓虹敤鎴風殑灞閮ㄨ鍥?銆傜浜屾鍐嶅皢鍓嶉潰寰楀埌鐨勫涓敤鎴風殑灞閮ㄨ鍥鵑泦鎴愪負涓涓叏灞瑙嗗浘錛屽嵆鐢ㄦ埛瑕佹弿榪扮殑鐜板疄涓栫晫鐨勬蹇墊暟鎹ā鍨嬨? <br /><br /><strong>2.閫昏緫璁捐錛?/strong>涓昏宸ヤ綔鏄皢鐜板疄涓栫晫鐨勬蹇墊暟鎹ā鍨嬭璁℃垚鏁版嵁搴撶殑涓縐嶉昏緫妯″紡錛屽嵆閫傚簲浜庢煇縐嶇壒瀹氭暟鎹簱綆$悊緋葷粺鎵鏀寔鐨勯昏緫鏁版嵁妯″紡銆備笌姝ゅ悓鏃訛紝鍙兘榪橀渶涓哄悇縐嶆暟鎹鐞嗗簲鐢ㄩ鍩熶駭鐢熺浉搴旂殑閫昏緫瀛愭ā寮忋傝繖涓姝ヨ璁$殑緇撴灉灝辨槸鎵璋?#8220;閫昏緫鏁版嵁搴?#8221;銆? <br /><strong><br />3.鐗╃悊璁捐錛?/strong>鏍規嵁鐗瑰畾鏁版嵁搴撶鐞嗙郴緇熸墍鎻愪緵鐨勫縐嶅瓨鍌ㄧ粨鏋勫拰瀛樺彇鏂規硶絳変緷璧栦簬鍏蜂綋璁$畻鏈虹粨鏋勭殑鍚勯」鐗╃悊璁捐鎺柦錛屽鍏蜂綋鐨勫簲鐢ㄤ換鍔¢夊畾鏈鍚堥傜殑鐗╃悊瀛樺偍緇撴瀯(鍖呮嫭鏂囦歡綾誨瀷銆佺儲寮曠粨鏋勫拰鏁版嵁鐨勫瓨鏀炬搴忎笌浣嶉昏緫絳?銆佸瓨鍙栨柟娉曞拰瀛樺彇璺緞絳夈傝繖涓姝ヨ璁$殑緇撴灉灝辨槸鎵璋?#8220;鐗╃悊鏁版嵁搴?#8221;銆? <br /><br /><strong>4.涓夎呭叧緋伙細</strong>鐢變笂鍒頒笅錛屽厛瑕佹蹇佃璁★紝鎺ョ潃閫昏緫璁捐錛屽啀鏄墿鐞嗚璁★紝涓綰т竴綰ц璁°?/pre></span></div><img src ="http://m.tkk7.com/KingKong/aggbug/355625.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-08-03 00:28 <a href="http://m.tkk7.com/KingKong/archive/2011/08/03/355625.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>縐誨姩lob瀛楁鐨勭儲寮曞埌鏂扮殑琛ㄧ┖闂?/title><link>http://m.tkk7.com/KingKong/archive/2011/07/13/354265.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Wed, 13 Jul 2011 07:02:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/07/13/354265.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/354265.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/07/13/354265.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/354265.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/354265.html</trackback:ping><description><![CDATA[鐩存帴alter index xxx rebuild tablespace xxx 涓嶅緱琛?<br />瑕侀叡绱?縐誨姩琛ㄧ殑鏃跺欓『甯︿竴璧風Щ鍔?<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; "> </span><span style="color: #0000FF; ">ALTER</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">TABLE</span><span style="color: #000000; "> 琛ㄥ悕 MOVE<br />  TABLESPACE 鏂拌〃絀洪棿<br />  LOB (瀛楁鍚? STORE </span><span style="color: #0000FF; ">AS</span><span style="color: #000000; "> <br />  (TABLESPACE 鏂拌〃絀洪棿  );</span></div><img src ="http://m.tkk7.com/KingKong/aggbug/354265.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-07-13 15:02 <a href="http://m.tkk7.com/KingKong/archive/2011/07/13/354265.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>centos5.6涓嬭10gr21,鐣岄潰鍑轟笉鏉?鎶ラ敊http://m.tkk7.com/KingKong/archive/2011/07/06/353796.htmlsure_dandansure_dandanWed, 06 Jul 2011 07:26:00 GMThttp://m.tkk7.com/KingKong/archive/2011/07/06/353796.htmlhttp://m.tkk7.com/KingKong/comments/353796.htmlhttp://m.tkk7.com/KingKong/archive/2011/07/06/353796.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/353796.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/353796.html
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-07-06_03-14-36PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.
<clinit>(Unknown Source)
        at java.awt.Component.
<clinit>(Unknown Source)
2.鍑洪敊鍘熷洜:緙哄皯緋葷粺瀹夎鍖?rpm -ivh libXp-1.0.0-8.i386.rpm

sure_dandan 2011-07-06 15:26 鍙戣〃璇勮
]]>
鎬庝箞鍖哄垎涓涓〃鏄ぇ琛ㄨ繕鏄皬琛?/title><link>http://m.tkk7.com/KingKong/archive/2011/06/11/352104.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Sat, 11 Jun 2011 12:44:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/06/11/352104.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/352104.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/06/11/352104.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/352104.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/352104.html</trackback:ping><description><![CDATA[<div>1.鏌ョ湅闅愯棌鍙傛暟<br />鑴氭湰1: <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">SELECT</span><span style="color: #000000"> x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">FROM</span><span style="color: #000000"> SYS.x$ksppi x, SYS.x$ksppcv y<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">WHERE</span><span style="color: #000000"> x.inst_id </span><span style="color: #808080">=</span><span style="color: #000000"> USERENV (</span><span style="color: #ff0000">'</span><span style="color: #ff0000">Instance</span><span style="color: #ff0000">'</span><span style="color: #000000">)<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #808080">AND</span><span style="color: #000000"> y.inst_id </span><span style="color: #808080">=</span><span style="color: #000000"> USERENV (</span><span style="color: #ff0000">'</span><span style="color: #ff0000">Instance</span><span style="color: #ff0000">'</span><span style="color: #000000">)<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #808080">AND</span><span style="color: #000000"> x.indx </span><span style="color: #808080">=</span><span style="color: #000000"> y.indx<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #808080">AND</span><span style="color: #000000"> x.ksppinm </span><span style="color: #808080">LIKE</span><span style="color: #000000"> </span><span style="color: #ff0000">'</span><span style="color: #ff0000">%&par%</span><span style="color: #ff0000">'</span></div>鑴氭湰2:<br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">select</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />x.ksppinm name,<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />y.ksppstvl value,<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />y.ksppstdf isdefault,<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />decode(bitand(y.ksppstvf,</span><span style="color: #800000; font-weight: bold">7</span><span style="color: #000000">),</span><span style="color: #800000; font-weight: bold">1</span><span style="color: #000000">,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">MODIFIED</span><span style="color: #ff0000">'</span><span style="color: #000000">,</span><span style="color: #800000; font-weight: bold">4</span><span style="color: #000000">,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">SYSTEM_MOD</span><span style="color: #ff0000">'</span><span style="color: #000000">,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">FALSE</span><span style="color: #ff0000">'</span><span style="color: #000000">) ismod,<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />decode(bitand(y.ksppstvf,</span><span style="color: #800000; font-weight: bold">2</span><span style="color: #000000">),</span><span style="color: #800000; font-weight: bold">2</span><span style="color: #000000">,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">TRUE</span><span style="color: #ff0000">'</span><span style="color: #000000">,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">FALSE</span><span style="color: #ff0000">'</span><span style="color: #000000">) isadj<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">from</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />sys.x$ksppi x,<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />sys.x$ksppcv y<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">where</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />x.inst_id </span><span style="color: #808080">=</span><span style="color: #000000"> userenv(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">Instance</span><span style="color: #ff0000">'</span><span style="color: #000000">) </span><span style="color: #808080">and</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />y.inst_id </span><span style="color: #808080">=</span><span style="color: #000000"> userenv(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">Instance</span><span style="color: #ff0000">'</span><span style="color: #000000">) </span><span style="color: #808080">and</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />x.indx </span><span style="color: #808080">=</span><span style="color: #000000"> y.indx </span><span style="color: #808080">and</span><span style="color: #000000"> <br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />x.ksppinm </span><span style="color: #808080">like</span><span style="color: #000000"> </span><span style="color: #ff0000">'</span><span style="color: #ff0000">%_&par%</span><span style="color: #ff0000">'</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">order</span><span style="color: #000000"> </span><span style="color: #0000ff">by</span><span style="color: #000000"> <br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />translate(x.ksppinm,</span><span style="color: #ff0000">'</span><span style="color: #ff0000">_</span><span style="color: #ff0000">'</span><span style="color: #000000">,</span><span style="color: #ff0000">''</span><span style="color: #000000">)</span></div><br />2.Oracle閫氳繃涓涓唴閮ㄥ弬鏁癬small_table_threshold鏉ュ畾涔夊ぇ琛ㄥ拰灝忚〃鐨勭晫闄?緙虹渷鎯呭喌涓嬭鍙傛暟絳変簬2%鐨勬暟閲?濡傛灉琛ㄧ殑buffer澶у皬灝忎簬榪欎釜鍙傛暟鐨勫畾涔?鍒檕racle璁や負瀹冩槸灝忚〃,鍙嶄箣涓哄ぇ琛?<br />select (db_cache_size/鍧梥ize)*0.02 from dual </div><img src ="http://m.tkk7.com/KingKong/aggbug/352104.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-06-11 20:44 <a href="http://m.tkk7.com/KingKong/archive/2011/06/11/352104.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鑾峰彇trace鏂囦歡鐨勪竴涓剼鏈?/title><link>http://m.tkk7.com/KingKong/archive/2011/06/11/352103.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Sat, 11 Jun 2011 11:38:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/06/11/352103.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/352103.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/06/11/352103.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/352103.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/352103.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">SELECT</span><span style="color: #000000; "> d.VALUE </span><span style="color: #808080; ">||</span><span style="color: #000000; "> </span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">/</span><span style="color: #FF0000; ">'</span><span style="color: #000000; "> </span><span style="color: #808080; ">||</span><span style="color: #000000; "> </span><span style="color: #FF00FF; ">LOWER</span><span style="color: #000000; ">(</span><span style="color: #FF00FF; ">RTRIM</span><span style="color: #000000; ">(i.INSTANCE, CHR(</span><span style="color: #800000; font-weight: bold; ">0</span><span style="color: #000000; ">))) </span><span style="color: #808080; ">||</span><span style="color: #000000; "> </span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">_ora_</span><span style="color: #FF0000; ">'</span><span style="color: #000000; "> </span><span style="color: #808080; ">||</span><span style="color: #000000; "><br />           p.spid </span><span style="color: #808080; ">||</span><span style="color: #000000; "> </span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">.trc</span><span style="color: #FF0000; ">'</span><span style="color: #000000; "> trace_file_name<br />      </span><span style="color: #0000FF; ">FROM</span><span style="color: #000000; "> (</span><span style="color: #0000FF; ">SELECT</span><span style="color: #000000; "> p.spid<br />              </span><span style="color: #0000FF; ">FROM</span><span style="color: #000000; "> v$mystat m, v$session s, v$process p<br />             </span><span style="color: #0000FF; ">WHERE</span><span style="color: #000000; "> m.statistic# </span><span style="color: #808080; ">=</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">1</span><span style="color: #000000; "><br />               </span><span style="color: #808080; ">AND</span><span style="color: #000000; "> s.SID </span><span style="color: #808080; ">=</span><span style="color: #000000; "> m.SID<br />               </span><span style="color: #808080; ">AND</span><span style="color: #000000; "> p.addr </span><span style="color: #808080; ">=</span><span style="color: #000000; "> s.paddr) p,<br />           (</span><span style="color: #0000FF; ">SELECT</span><span style="color: #000000; "> t.INSTANCE<br />              </span><span style="color: #0000FF; ">FROM</span><span style="color: #000000; "> v$thread t, v$parameter v<br />             </span><span style="color: #0000FF; ">WHERE</span><span style="color: #000000; "> v.NAME </span><span style="color: #808080; ">=</span><span style="color: #000000; "> </span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">thread</span><span style="color: #FF0000; ">'</span><span style="color: #000000; "><br />               </span><span style="color: #808080; ">AND</span><span style="color: #000000; "> (v.VALUE </span><span style="color: #808080; ">=</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">0</span><span style="color: #000000; "> </span><span style="color: #808080; ">OR</span><span style="color: #000000; "> t.thread# </span><span style="color: #808080; ">=</span><span style="color: #000000; "> TO_NUMBER(v.VALUE))) i,<br />           (</span><span style="color: #0000FF; ">SELECT</span><span style="color: #000000; "> VALUE </span><span style="color: #0000FF; ">FROM</span><span style="color: #000000; "> v$parameter </span><span style="color: #0000FF; ">WHERE</span><span style="color: #000000; "> NAME </span><span style="color: #808080; ">=</span><span style="color: #000000; "> </span><span style="color: #FF0000; ">'</span><span style="color: #FF0000; ">user_dump_dest</span><span style="color: #FF0000; ">'</span><span style="color: #000000; ">) d</span></div><img src ="http://m.tkk7.com/KingKong/aggbug/352103.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-06-11 19:38 <a href="http://m.tkk7.com/KingKong/archive/2011/06/11/352103.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐩戞帶flash_recovery_area鐨勪嬌鐢ㄦ儏鍐?/title><link>http://m.tkk7.com/KingKong/archive/2011/05/30/351332.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Mon, 30 May 2011 05:53:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/05/30/351332.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/351332.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/05/30/351332.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/351332.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/351332.html</trackback:ping><description><![CDATA[鐩戞帶flash_recovery_area鐨勪嬌鐢ㄦ儏鍐靛彲浠ユ煡璇?涓鍥?<br />1.V$FLASH_RECOVERY_AREA_USAGE:displays usage information about flashback recovery areas <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">SQL</span><span style="color: #808080">></span><span style="color: #000000"> </span><span style="color: #0000ff">select</span><span style="color: #000000"> </span><span style="color: #808080">*</span><span style="color: #000000"> </span><span style="color: #0000ff">from</span><span style="color: #000000"> v$flash_recovery_area_usage;<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />FILE_TYPE            PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008080">--</span><span style="color: #008080">------------------ ------------------ ------------------------- ---------------</span><span style="color: #008080"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">CONTROL </span><span style="color: #0000ff">FILE</span><span style="color: #000000">                          </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">                         </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">               </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />REDO </span><span style="color: #ff00ff">LOG</span><span style="color: #000000">                              </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">                         </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">               </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />ARCHIVED </span><span style="color: #ff00ff">LOG</span><span style="color: #000000">                      </span><span style="color: #800000; font-weight: bold">30.81</span><span style="color: #000000">                         </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">              </span><span style="color: #800000; font-weight: bold">61</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">BACKUP</span><span style="color: #000000"> PIECE                          </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">                         </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">               </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000; font-weight: bold">IMAGE</span><span style="color: #000000"> COPY                            </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">                         </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">               </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />FLASHBACK </span><span style="color: #ff00ff">LOG</span><span style="color: #000000">                     </span><span style="color: #800000; font-weight: bold">12.99</span><span style="color: #000000">                      </span><span style="color: #800000; font-weight: bold">8.54</span><span style="color: #000000">              </span><span style="color: #800000; font-weight: bold">70</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">FOREIGN</span><span style="color: #000000"> ARCHIVED </span><span style="color: #ff00ff">LOG</span><span style="color: #000000">                  </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">                         </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000">               </span><span style="color: #800000; font-weight: bold">0</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />宸查夋嫨7琛屻?br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />SQL</span><span style="color: #808080">></span><span style="color: #000000"> </span><span style="color: #0000ff">select</span><span style="color: #000000"> </span><span style="color: #ff00ff">sum</span><span style="color: #000000">(PERCENT_SPACE_USED) </span><span style="color: #0000ff">from</span><span style="color: #000000"> v$flash_recovery_area_usage;<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #ff00ff">SUM</span><span style="color: #000000">(PERCENT_SPACE_USED)<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008080">--</span><span style="color: #008080">---------------------</span><span style="color: #008080"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">                   </span><span style="color: #800000; font-weight: bold">43.8</span></div><br />2.V$RECOVERY_FILE_DEST:displays information about the disk quota and current disk usage in the flash recovery area.<br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">SQL</span><span style="color: #808080">></span><span style="color: #000000"> </span><span style="color: #0000ff">select</span><span style="color: #000000"> </span><span style="color: #808080">*</span><span style="color: #000000"> </span><span style="color: #0000ff">from</span><span style="color: #000000"> V$RECOVERY_FILE_DEST;<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />NAME                                     SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE NUMBER_OF_FILES<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008080">--</span><span style="color: #008080">-------------------------------------- ----------- ---------- ----------------- ---------------</span><span style="color: #008080"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #808080">/</span><span style="color: #000000">opt</span><span style="color: #808080">/</span><span style="color: #000000">oracle</span><span style="color: #808080">/</span><span style="color: #000000">flash_recovery_area           </span><span style="color: #800000; font-weight: bold">8589934592</span><span style="color: #000000"> </span><span style="color: #800000; font-weight: bold">3762538496</span><span style="color: #000000">         </span><span style="color: #800000; font-weight: bold">733315072</span><span style="color: #000000">             </span><span style="color: #800000; font-weight: bold">131</span><span style="color: #000000"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />SQL</span><span style="color: #808080">></span><span style="color: #000000"> </span><span style="color: #0000ff">select</span><span style="color: #000000"> </span><span style="color: #ff00ff">round</span><span style="color: #000000">(</span><span style="color: #800000; font-weight: bold">100</span><span style="color: #808080">*</span><span style="color: #000000">(a.space_used</span><span style="color: #808080">/</span><span style="color: #000000">space_limit),</span><span style="color: #800000; font-weight: bold">2</span><span style="color: #000000">) </span><span style="color: #0000ff">from</span><span style="color: #000000"> v$recovery_file_dest a;<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #ff00ff">ROUND</span><span style="color: #000000">(</span><span style="color: #800000; font-weight: bold">100</span><span style="color: #808080">*</span><span style="color: #000000">(A.SPACE_USED</span><span style="color: #808080">/</span><span style="color: #000000">SPACE_LIMIT),</span><span style="color: #800000; font-weight: bold">2</span><span style="color: #000000">)<br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008080">--</span><span style="color: #008080">-------------------------------------</span><span style="color: #008080"><br /><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">                                   </span><span style="color: #800000; font-weight: bold">43.8</span></div> <img src ="http://m.tkk7.com/KingKong/aggbug/351332.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-05-30 13:53 <a href="http://m.tkk7.com/KingKong/archive/2011/05/30/351332.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍑犱釜褰掓。鏃ュ織淇℃伅鐨勮鍥?/title><link>http://m.tkk7.com/KingKong/archive/2011/05/02/349381.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Mon, 02 May 2011 06:25:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/05/02/349381.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/349381.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/05/02/349381.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/349381.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/349381.html</trackback:ping><description><![CDATA[V$ARCHIVED_LOG錛氭樉紺烘帶鍒舵枃浠朵腑鐨勫綊妗f棩蹇椾俊鎭?br /> V$ARCHIVE_DEST錛氬浜庡綋鍓嶄緥紼嬶紝璇存槑鎵鏈夊綊妗f棩蹇楃洰鏍囥佸綋鍓嶅箋佹ā寮忓拰鐘舵併?br />     INACTIVE 鐘舵佽〃紺鴻鐩爣鏈畾涔夈俈ALID 鐘舵佽〃紺鴻鐩爣宸插惎鐢ㄤ笖娌℃湁閿欒銆?br /> 瑕佹鏌ユ瘡涓洰鏍囩殑閿欒鍜屽彂鐢熼敊璇殑鏃ュ織搴忓垪鍙鳳紝鍙嬌鐢ㄤ互涓嬫煡璇細<br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: #0000ff">SELECT</span><span style="color: #000000"> destination,fail_sequence,error<br /> <img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">FROM</span><span style="color: #000000"> v$archive_dest<br /> <img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">WHERE</span><span style="color: #000000"> status</span><span style="color: #808080">=</span><span style="color: #ff0000">'</span><span style="color: #ff0000">ERROR</span><span style="color: #ff0000">'</span><span style="color: #000000">;<img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span></div> V$LOG_HISTORY錛氬寘鍚帶鍒舵枃浠朵腑鐨勬棩蹇楁枃浠朵俊鎭?br /> V$DATABASE錛氬綊妗g殑褰撳墠鐘舵?br /> V$ARCHIVE_PROCESSES錛氭彁渚涙湁鍏充緥紼嬬殑鍚勭ARCH 榪涚▼鐨勭姸鎬佺殑淇℃伅<br />     ACTIVE 鐘舵佽〃鏄庤繘紼嬪凡鍚姩騫舵鍦ㄨ繍琛屻傚綋鍓嶆鍦ㄥ綊妗g殑榪涚▼鐨勭姸鎬佷負BUSY銆傛蹇欑殑榪涚▼鐨凩OG_SEQUENCE 鍒楁樉紺鴻榪涚▼姝e湪褰掓。鐨勫綋鍓嶆棩蹇楀簭鍒楀彿<img src ="http://m.tkk7.com/KingKong/aggbug/349381.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-05-02 14:25 <a href="http://m.tkk7.com/KingKong/archive/2011/05/02/349381.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>LOG_ARCHIVE_DEST_n鐨勮緗?/title><link>http://m.tkk7.com/KingKong/archive/2011/05/02/349379.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Mon, 02 May 2011 06:16:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2011/05/02/349379.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/349379.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2011/05/02/349379.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/349379.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/349379.html</trackback:ping><description><![CDATA[<p>1.LOG_ARCHIVE_DEST_n鏈澶氬彲鎸囧畾鍗佷釜褰掓。鐩爣<br /> 鍙互鏄湰鍦板綊妗?log_archive_dest_1 = "LOCATION=/archive1"<br /> 鎸囧畾鐨勪綅緗繀欏繪槸鏈夋晥鐨勶紝騫朵笖涓嶈兘鏄竴涓狽FS 瑁呰澆鐨勭洰褰?/p> <p>涔熷彲浠ユ槸榪滅▼褰掓。:log_archive_dest_2 = "SERVICE=standby_db1"<br /> 鎸囧畾鐨勬湇鍔″悕閫氳繃浣跨敤鏈湴鐨則nsnames.ora 鏂囦歡榪涜瑙f瀽</p> <p>2.LOG_ARCHIVE_DEST_n 閫夐」<br /> (1)灝嗗綊妗d綅緗緗負MANDATORY 鎴朞PTIONAL銆?br /> MANDATORY:琛ㄧず蹇呴』鎴愬姛瀹屾垚褰掓。鍒拌鐩爣鐨勬搷浣滄墠鍙互瑕嗙洊鑱旀満閲嶅仛鏃ュ織鏂囦歡銆?br /> OPTIONAL:琛ㄧず鍗充嬌鑱旀満閲嶅仛鏃ュ織鏂囦歡灝氭湭鎴愬姛鍦板綊妗e埌璇ョ洰鏍囷紝涔熷彲浠ラ噸鏂頒嬌鐢ㄣ傝繖鏄己鐪佽緗?br /> (2)鍦ㄥ嚭鐜版晠闅滀箣鍚庛侀噸璇曚箣鍓嶅畾涔夋椂闂?br /> REOPEN:REOPEN 灞炴у畾涔夊彂鐢熸晠闅滄椂鏄惁蹇呴』閲嶆柊灝濊瘯褰掓。鍒扮洰鏍囥傚鏋滀負鍏抽敭瀛桼EOPEN鎸囧畾浜嗗鹼紝濡俁EOPEN=600錛屽垯鑻ュ彂鐢熸晠闅滐紝鍦ㄧ粡榪囨寚瀹氭椂闂達紙浠ョ璁★級鍚庯紝褰掓。紼嬪簭灝嗗皾璇曞啓鍏ヨ鐩爣銆傜己鐪佸間負300 縐掋傚綊妗e埌鐩爣鐨勫皾璇曟鏁版病鏈夐檺鍒躲傚綊妗d腑鐨勬墍鏈夐敊璇皢鍦ㄤ富绔欑偣鐨勮鎶ユ枃浠朵腑鎶ュ憡銆?br /> 濡傛灉鏈寚瀹歊EOPEN錛屽垯鍙夌洰鏍囦笂鐨勯敊璇皢琚褰曞茍蹇界暐銆備笉鍐嶅皢閲嶅仛鏃ュ織鍙戦佸埌榪欎簺鐩爣銆傚湪褰掓。鎴愬姛涔嬪墠錛屽己鍒剁洰鏍囦笂鐨勯敊璇皢瀵艱嚧鏃犳硶閲嶆柊浣跨敤鑱旀満閲嶅仛鏃ュ織銆傚彧瑕佸綊妗d笉鎴愬姛錛屽綊妗g洰鏍囩殑鐘舵佸氨璁劇疆涓篍RROR銆?/p> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">log_archive_dest_1</span><span style="color: #808080">=</span><span style="color: #000000">"LOCATION</span><span style="color: #808080">=/</span><span style="color: #000000">archive</span><span style="color: #808080">/</span><span style="color: #000000"> MANDATORY REOPEN"<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />log_archive_dest_2</span><span style="color: #808080">=</span><span style="color: #000000">"SERVICE</span><span style="color: #808080">=</span><span style="color: #000000">standby_db1 MANDATORY REOPEN</span><span style="color: #808080">=</span><span style="color: #800000; font-weight: bold">600</span><span style="color: #000000">"<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" />log_archive_dest_3</span><span style="color: #808080">=</span><span style="color: #000000">"LOCATION</span><span style="color: #808080">=/</span><span style="color: #000000">archive2</span><span style="color: #808080">/</span><span style="color: #000000"> OPTIONAL"<br /> <img align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span></div><img src ="http://m.tkk7.com/KingKong/aggbug/349379.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2011-05-02 14:16 <a href="http://m.tkk7.com/KingKong/archive/2011/05/02/349379.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>褰掓。妯″紡涓嬬殑涓浜泃iphttp://m.tkk7.com/KingKong/archive/2011/05/02/349369.htmlsure_dandansure_dandanMon, 02 May 2011 02:31:00 GMThttp://m.tkk7.com/KingKong/archive/2011/05/02/349369.htmlhttp://m.tkk7.com/KingKong/comments/349369.htmlhttp://m.tkk7.com/KingKong/archive/2011/05/02/349369.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/349369.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/349369.html 2.鍦?i涓鍚敤鑷姩褰掓。鐨勮瘽,闇瑕乤lter system archive log start to '/path'
3.濡傛灉鏁版嵁搴撹緗簡db_recovery_file_dest,灝變笉鑳借緗甽og_archive_dest
4.榛樿鐨勫綊妗f棩蹇楀瓨鏀句簬db_recovery_file_dest涓?濡傛灉璁劇疆浜唋og_archive_dest_n,閭d箞褰掓。鏃ュ織涓嶅啀瀛樻斁浜巇b_recovery_file_dest涓?鑰屾槸瀛樻斁浜庤緗殑log_archive_dest_n鐩綍涓?濡傛灉鎯寵褰掓。鏃ュ織緇х畫瀛樻斁鍦╠b_recovery_file_dest涓?鍙互閫氳繃濡備笅鍛戒護
alter system set log_archive_dest_2='location=USE_DB_RECOVERY_FILE_DEST';
5.log_archive_dest鍙兘涓?log_archive_duplex_dest鍏卞瓨,浣滅敤涓鏍?br /> 6.濡傛灉璁劇疆鐨刲og_archive_dest_n涓嶆紜紝閭d箞ORACLE浼氬湪璁劇疆鐨勪笂涓綰х洰褰曞綊妗?br /> 7.鎸囧畾澶氫釜archive榪涚▼宸ヤ綔 log_archive_max_process,鏈澶?0涓?br /> 8.alter system archive log current閫氱煡server process鍘誨皢鍐欐弧鐨勮仈鏈洪噸鍋氭棩蹇楀綊妗?鐢ㄤ簬鎵嬪伐褰掓。
9.褰掓。鏃ュ織鏍煎紡(log_archive_format):s/S:log sequence number,t/T:thread number,濡傛灉涓哄崟瀹炰緥鐨勮瘽,thread===1

sure_dandan 2011-05-02 10:31 鍙戣〃璇勮
]]>
闈炲綊妗d笌褰掓。妯″紡http://m.tkk7.com/KingKong/archive/2011/05/02/349364.htmlsure_dandansure_dandanSun, 01 May 2011 17:20:00 GMThttp://m.tkk7.com/KingKong/archive/2011/05/02/349364.htmlhttp://m.tkk7.com/KingKong/comments/349364.htmlhttp://m.tkk7.com/KingKong/archive/2011/05/02/349364.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/349364.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/349364.htmlNOARCHIVELOG 妯″紡
緙虹渷鎯呭喌涓嬶紝鏁版嵁搴撴槸浠OARCHIVELOG 妯″紡鍒涘緩鐨勩?/p>

1.鍦∟OARCHIVELOG 妯″紡涓嬫搷浣滄暟鎹簱鏃舵湁浠ヤ笅鐗規э細
(1)閲嶅仛鏃ュ織鏂囦歡浠ュ驚鐜殑鏂瑰紡浣跨敤銆?br /> (2)閲嶅仛鏃ュ織鏂囦歡鍙互鍦ㄦ鏌ョ偣鍙戠敓涔嬪悗绔嬪嵆閲嶆柊浣跨敤銆?br /> (3)閲嶅仛鏃ュ織琚鐩栧悗錛屼粙璐ㄦ仮澶嶅皢鍙兘鎭㈠鍒頒笂涓嬈″畬鍏ㄥ浠姐?/p>

2.NOARCHIVELOG 妯″紡鐨勫惈涔?br /> (1)濡傛灉鏌愪釜琛ㄧ┖闂寸敱浜庢晠闅滆屼笉鍙敤錛屽皢鏃犳硶緇х畫瀵規暟鎹簱榪涜鎿嶄綔錛岄櫎闈炲垹闄や簡璇ヨ〃絀洪棿鎴栦粠澶囦喚榪樺師浜嗘暣涓暟鎹簱銆?br /> (2)鍙兘鍦ㄦ暟鎹簱鍏抽棴鏃跺鏁版嵁搴撴墽琛屾搷浣滅郴緇熷浠姐傝屼笖錛屽繀欏諱嬌鐢∟ORMAL銆両MMEDIATE 鎴朤RANSACTIONAL 閫夐」鍏抽棴鏁版嵁搴撱?br /> (3)蹇呴』鍦ㄦ瘡嬈″浠芥椂瀹屾暣澶囦喚鎵鏈夌殑鏁版嵁鏂囦歡鍜屾帶鍒舵枃浠躲傚敖綆′篃鍙互澶囦喚鑱旀満閲嶅仛鏃ュ織鏂囦歡錛屼絾榪欐槸涓嶅繀瑕佺殑銆傜敱浜庢綾誨浠戒腑鏃ュ織鏂囦歡鏄竴鑷寸殑錛屾棤闇鎭㈠錛屽洜姝わ紝涓嶉渶瑕佸浠借仈鏈烘棩蹇椼?br /> (4)濡傛灉鑱旀満閲嶅仛鏃ュ織鏂囦歡宸茶瑕嗙洊錛屽垯灝嗕涪澶變笂嬈″畬鍏ㄥ浠藉悗鐨勬墍鏈夋暟鎹?/p>

3.NOARCHIVELOG 妯″紡涓嬬殑浠嬭川鎭㈠閫夐」
蹇呴』浠庢暟鎹簱鐨勫畬鍏ㄥ浠戒腑榪樺師鏁版嵁鏂囦歡鍜屾帶鍒舵枃浠躲傚鏋滀嬌鐢ㄥ鍑哄疄鐢ㄧ▼搴忔潵澶囦喚鏁?br /> 鎹簱錛屽垯鍙嬌鐢ㄥ鍏ュ疄鐢ㄧ▼搴忚繕鍘熶涪澶辯殑鏁版嵁銆備絾鏄紝閫氳繃榪欑鏂規硶鎭㈠鐨勬暟鎹茍涓嶅畬
鏁達紝鍦ㄥ鍑哄悗鎵ц鐨勪簨鍔″鐞嗗伐浣滃皢涓㈠け銆?/p>

ARCHIVELOG 妯″紡
鍦ㄥ彂鐢熸鏌ョ偣騫朵笖宸茬粡閫氳繃ARCn 鍚庡彴榪涚▼澶囦喚閲嶅仛鏃ュ織鏂囦歡涔嬪墠錛屼笉鑳介噸鏂頒嬌鐢ㄥ~婊$殑閲嶅仛鏃ュ織鏂囦歡銆傛帶鍒舵枃浠朵腑灝嗘湁涓涓潯鐩褰曞綊妗f棩蹇楁枃浠剁殑鏃ュ織搴忓垪鍙楓?br /> 瀵規暟鎹簱鐨勬渶鏂版洿鏀瑰湪浠諱綍鏃跺欏潎鍙敤浜庝緥紼嬫仮澶嶏紝鑰屽綊妗i噸鍋氭棩蹇楁枃浠跺彲浠ョ敤浜庝粙璐ㄦ仮澶嶃?/p>

1.褰掓。瑕佹眰
(1)鏁版嵁搴撳繀欏誨浜嶢RCHIVELOG 妯″紡銆傞氳繃鍙戝嚭鍛戒護灝嗘暟鎹簱緗簬ARCHIVELOG 妯″紡鍙互鏇存柊鎺у埗鏂囦歡銆傚彲浠ュ惎鐢ˋRCn 鍚庡彴榪涚▼鏉ュ疄鐜拌嚜鍔ㄥ綊妗c?br /> (2)搴旇鏈夎凍澶熺殑璧勬簮鏉ュ瓨鏀劇敓鎴愮殑褰掓。閲嶅仛鏃ュ織鏂囦歡銆?/p>

2.灝嗘暟鎹簱璁劇疆涓篈RCHIVELOG 妯″紡鐨勫惈涔?br /> (1)鍑虹幇浠嬭川鏁呴殰鏃訛紝鍙互闃叉鏁版嵁搴撲涪澶辨暟鎹?br /> (2)鍙互鍦ㄦ暟鎹簱鑱旀満鏃跺鍏惰繘琛屽浠姐?br /> (3)鐢變簬浠嬭川鏁呴殰瀵艱嚧琛ㄧ┖闂達紙闈濻YSTEM錛夎劚鏈烘椂錛屾暟鎹簱鐨勫叾浣欓儴鍒嗕粛鍙敤錛屽洜涓鴻〃絀洪棿錛堥潪SYSTEM錛夊彲浠ュ湪鏁版嵁搴撴墦寮鏃舵仮澶嶃?/p>

3.浠嬭川鎭㈠閫夐」
(1)鏃犺鏁版嵁搴撳浜庤仈鏈烘垨鑴辨満鐘舵侊紝閮藉彲浠ヨ繕鍘熸崯鍧忔枃浠剁殑澶囦喚鍓湰錛屽茍浣跨敤褰掓。鏃ュ織鏂囦歡灝嗘暟鎹枃浠舵洿鏂頒負褰撳墠鐨勭増鏈?br /> (2)鍙互灝嗘暟鎹簱鎭㈠鑷崇壒瀹氱殑鏃墮棿鐐廣?br /> (3)鍙互灝嗘暟鎹簱鎭㈠鑷蟲寚瀹氬綊妗f棩蹇楁枃浠剁殑鏈熬銆?br /> (4)鍙互灝嗘暟鎹簱鎭㈠鑷崇壒瀹氱殑緋葷粺鏇存敼鍙?SCN)銆?br />
4.鍦ㄨ緗綊妗f棩蹇楁ā寮忔椂錛屽簲璇ヨ冭檻浠ヤ笅鍥犵礌錛?br /> 涓嬭堪鎯呭喌涓紝NOARCHIVELOG 妯″紡鍙兘姣旇緝鍚堥傦細
 (1)瀹硅澶囦喚涔嬮棿鐨勬暟鎹崯澶憋紙鍦ㄥ紑鍙戙佸煿璁湡闂寸瓑錛?br />  (2)閲嶆柊搴旂敤浜嬪姟澶勭悊錛堜粠鎵瑰鐞嗘枃浠訛級鐨勯熷害鏇村揩
 (3)鏁版嵁鏋佸皯鏇存敼錛堥潪OLTP錛?br /> 涓嬭堪鎯呭喌涓紝ARCHIVELOG 妯″紡鍒欐洿鍚堥傦細
 (1)鏃犳硶鍏抽棴鏁版嵁搴撲互鎵ц鍏抽棴鐨勬暟鎹簱鐨勫浠?br />  (2)涓嶅厑璁告暟鎹崯澶?br />  (3) 浣跨敤褰掓。閲嶅仛鏃ュ織鏂囦歡姣旈噸鏂板簲鐢ㄤ簨鍔″鐞?OLTP) 鏇存槗浜庢仮澶?/p>

sure_dandan 2011-05-02 01:20 鍙戣〃璇勮
]]>
甯哥敤琛ㄨ繛鎺ユ柟寮忓強浣跨敤鍦哄悎http://m.tkk7.com/KingKong/archive/2010/12/19/341120.htmlsure_dandansure_dandanSun, 19 Dec 2010 15:49:00 GMThttp://m.tkk7.com/KingKong/archive/2010/12/19/341120.htmlhttp://m.tkk7.com/KingKong/comments/341120.htmlhttp://m.tkk7.com/KingKong/archive/2010/12/19/341120.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/341120.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/341120.html1.NESTED LOOP

 瀵逛簬琚繛鎺ョ殑鏁版嵁瀛愰泦杈冨皬鐨勬儏鍐碉紝nested loop榪炴帴鏄釜杈冨ソ鐨勯夋嫨銆俷ested loop灝辨槸鎵弿涓涓〃錛屾瘡璇誨埌涓鏉¤褰曪紝灝辨牴鎹儲寮曞幓鍙︿竴涓〃閲岄潰鏌ユ壘錛屾病鏈夌儲寮曚竴鑸氨涓嶄細鏄?nested loops銆?br /> 涓鑸湪nested loop涓紝 椹卞姩琛ㄦ弧瓚蟲潯浠剁粨鏋滈泦涓嶅ぇ錛岃椹卞姩琛ㄧ殑榪炴帴瀛楁瑕佹湁绱㈠紩錛岃繖鏍峰氨璧皀stedloop銆傚鏋滈┍鍔ㄨ〃榪斿洖璁板綍澶錛屽氨涓嶉傚悎nested loops浜嗐傚鏋滆繛鎺ュ瓧孌墊病鏈夌儲寮曪紝鍒欓傚悎璧癶ash join錛屽洜涓轟笉闇瑕佺儲寮曘?
鍙敤ordered鎻愮ず鏉ユ敼鍙楥BO榛樿鐨勯┍鍔ㄨ〃錛屽彲鐢║SE_NL(table_name1 table_name2)鎻愮ず鏉ュ己鍒朵嬌鐢╪ested loop銆?/font>

2.HASH JOIN

 hash join鏄疌BO 鍋氬ぇ鏁版嵁闆嗚繛鎺ユ椂鐨勫父鐢ㄦ柟寮忋備紭鍖栧櫒鎵弿灝忚〃錛堟垨鏁版嵁婧愶級錛屽埄鐢ㄨ繛鎺ラ敭錛堜篃灝辨槸鏍規嵁榪炴帴瀛楁璁$畻hash 鍊鹼級鍦ㄥ唴瀛樹腑寤虹珛hash琛紝鐒跺悗鎵弿澶ц〃錛屾瘡璇誨埌涓鏉¤褰曞氨鏉ユ帰嫻媓ash琛ㄤ竴嬈★紝鎵懼嚭涓巋ash琛ㄥ尮閰嶇殑琛屻?br /> 褰撳皬琛ㄥ彲浠ュ叏閮ㄦ斁鍏ュ唴瀛樹腑錛屽叾鎴愭湰鎺ヨ繎鍏ㄨ〃鎵弿涓や釜琛ㄧ殑鎴愭湰涔嬪拰銆傚鏋滆〃寰堝ぇ涓嶈兘瀹屽叏鏀懼叆鍐呭瓨錛岃繖鏃朵紭鍖栧櫒浼氬皢瀹冨垎鍓叉垚鑻ュ共涓嶅悓鐨勫垎鍖猴紝涓嶈兘鏀懼叆鍐呭瓨鐨勯儴鍒嗗氨鎶婅鍒嗗尯鍐欏叆紓佺洏鐨勪復鏃舵錛屾鏃惰鏈夎緝澶х殑涓存椂孌典粠鑰屽敖閲忔彁楂業/O 鐨勬ц兘銆備復鏃舵涓殑鍒嗗尯閮介渶瑕佹崲榪涘唴瀛樺仛hash join銆傝繖鏃跺欐垚鏈帴榪戜簬鍏ㄨ〃鎵弿灝忚〃+鍒嗗尯鏁?鍏ㄨ〃鎵弿澶ц〃鐨勪唬浠峰拰銆?br />     鑷充簬涓や釜琛ㄩ兘榪涜鍒嗗尯錛屽叾濂藉鏄彲浠ヤ嬌鐢╬arallel query錛屽氨鏄涓繘紼嬪悓鏃跺涓嶅悓鐨勫垎鍖鴻繘琛宩oin錛岀劧鍚庡啀鍚堝茍銆備絾鏄鏉傘?br /> 浣跨敤hash join鏃訛紝HASH_AREA_SIZE鍒濆鍖栧弬鏁板繀欏昏凍澶熺殑澶э紝濡傛灉鏄?i錛孫racle寤鴻浣跨敤SQL宸ヤ綔鍖鴻嚜鍔ㄧ鐞嗭紝璁劇疆WORKAREA_SIZE_POLICY 涓篈UTO錛岀劧鍚庤皟鏁碢GA_AGGREGATE_TARGET鍗沖彲銆?br /> 浠ヤ笅鏉′歡涓媓ash join鍙兘鏈変紭鍔匡細
涓や釜宸ㄥぇ鐨勮〃涔嬮棿鐨勮繛鎺ャ?br /> 鍦ㄤ竴涓法澶х殑琛ㄥ拰涓涓皬琛ㄤ箣闂寸殑榪炴帴銆?br /> 鍙敤ordered鎻愮ず鏉ユ敼鍙楥BO榛樿鐨勯┍鍔ㄨ〃錛屽彲鐢║SE_HASH(table_name1 table_name2)鎻愮ず鏉ュ己鍒朵嬌鐢╤ash join銆?/font>

3.SORT MERGE JOIN

sort merge join鐨勬搷浣滈氬父鍒嗕笁姝ワ細瀵硅繛鎺ョ殑姣忎釜琛ㄥ仛table access full錛涘table access full鐨勭粨鏋滆繘琛屾帓搴忥紱榪涜merge join瀵規帓搴忕粨鏋滆繘琛屽悎騫躲俿ort merge join鎬ц兘寮閿鍑犱箮閮藉湪鍓嶄袱姝ャ備竴鑸槸鍦ㄦ病鏈夌儲寮曠殑鎯呭喌涓嬶紝9i寮濮嬪凡緇忓緢灝戝嚭鐜頒簡錛屽洜涓哄叾鎺掑簭鎴愭湰楂橈紝澶у涓篽ash join鏇夸唬浜嗐?
閫氬父鎯呭喌涓媓ash join鐨勬晥鏋滈兘姣攕ort merge join瑕佸ソ錛岀劧鑰屽鏋滆婧愬凡緇忚鎺掕繃搴忥紝鍦ㄦ墽琛宻ort merge join鏃朵笉闇瑕佸啀鎺掑簭浜嗭紝榪欐椂sort merge join鐨勬ц兘浼氫紭浜巋ash join銆?br /> 鍦ㄥ叏琛ㄦ壂鎻忔瘮绱㈠紩鑼冨洿鎵弿鍐嶉氳繃rowid榪涜琛ㄨ闂洿鍙彇鐨勬儏鍐典笅錛宻ort merge join浼氭瘮nested loops鎬ц兘鏇翠匠銆?br /> 鍙敤USE_MERGE(table_name1 table_name2)鎻愮ず寮哄埗浣跨敤sort merge join銆?

4.鍗婅繛鎺?br /> nested loops semi鏄痭ested loop榪炴帴鐨勫彉縐嶏紝鍙堝彨鍗婅繛鎺ャ傚師鐞嗕笌nl鐩稿悓錛岄氬父鐢ㄤ簬in,exist鎿嶄綔錛岃繖縐嶆搷浣渏oin鏃跺欙紝閫氬父鏌ユ壘鍒頒竴鏉$邯褰曞氨鍙互浜嗭紝鎵浠ョ敤semi琛ㄧず銆備笌semi鐩鎬技鐨勬湁涓縐嶅彨anti錛屽弽榪炴帴錛屼竴鑸敤浜巒ot in,not exists錛屼篃鏈塶est loop anti鍜宧ash anti涓ょ銆?br />
5.鏄熷艦

甯哥敤浜嶰LAP緋葷粺



]]>
浠涔堟槸table鍑芥暟(鏀墮泦)http://m.tkk7.com/KingKong/archive/2010/12/19/341118.htmlsure_dandansure_dandanSun, 19 Dec 2010 14:53:00 GMThttp://m.tkk7.com/KingKong/archive/2010/12/19/341118.htmlhttp://m.tkk7.com/KingKong/comments/341118.htmlhttp://m.tkk7.com/KingKong/archive/2010/12/19/341118.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/341118.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/341118.html闃呰鍏ㄦ枃

sure_dandan 2010-12-19 22:53 鍙戣〃璇勮
]]>
鏈濊姳澶曟嬀-3-ORA12514甯歌瑙e喅鍔炴硶http://m.tkk7.com/KingKong/archive/2010/07/05/325283.htmlsure_dandansure_dandanMon, 05 Jul 2010 06:51:00 GMThttp://m.tkk7.com/KingKong/archive/2010/07/05/325283.htmlhttp://m.tkk7.com/KingKong/comments/325283.htmlhttp://m.tkk7.com/KingKong/archive/2010/07/05/325283.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/325283.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/325283.htmlORA-12514鍙兘鐨勫師鍥?
1.涓繪満娌℃湁鍚姩鏁版嵁搴?br /> 2.涓繪満鏈夊涓猧p鍦板潃,娌″湪/etc/hosts涓厤緗叏
3.鐩戝惉鍣ㄩ厤緗敊璇?涓鍔蟲案閫哥殑鏂規硶鏄噰鐢ㄩ潤鎬佹敞鍐岀殑鏂瑰紡

SID_LIST_LISTENER =
  (SID_LIST 
=
    (SID_DESC 
=
      (SID_NAME 
= PLSExtProc)
      (ORACLE_HOME 
= /home/db/oracle/product/10.2.0)
      (PROGRAM 
= extproc)
    )
    
    (SID_DESC 
=
      (GLOBAL_DBNAME  
= test1)
      (ORACLE_HOME 
= /home/db/oracle/product/10.2.0)
      (SID_NAME  
= test1)
    )
  )


sure_dandan 2010-07-05 14:51 鍙戣〃璇勮
]]>
鏈濊姳澶曟嬀-2-緇戝畾鍙橀噺http://m.tkk7.com/KingKong/archive/2010/06/20/324016.htmlsure_dandansure_dandanSun, 20 Jun 2010 13:45:00 GMThttp://m.tkk7.com/KingKong/archive/2010/06/20/324016.htmlhttp://m.tkk7.com/KingKong/comments/324016.htmlhttp://m.tkk7.com/KingKong/archive/2010/06/20/324016.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/324016.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/324016.html紜В鏋愰渶瑕佹洿澶氱殑鍐呭瓨絀洪棿, 鏇村鐨勫茍鍙戞帶鍒跺浜庨綣佹墽琛岀殑璇彞鎬ц兘浼氭樉钁楃殑闄嶄綆,鎵浠ュ鐩鎬技鐨勮鍙ュ彧鏈夋煇浜涙暟鍊煎彉鍖栫殑璇彞鏀瑰啓鎴愬畬鍏ㄧ浉鍚岀殑鏂囨湰,鎴戜滑縐板叾涓虹粦瀹?

鎵嬪伐緇戝畾:
EXECUTE IMMEDIATE 'UPDATE EMPLOYEE SET sal 錛?nbsp;:new_sal'  USING v_sal; 

涓嶇粦瀹?/font>:
EXECUTE IMMEDIATE 'UPDATE EMPLOYEE SET sal 錛?/span>'||new_sal;

緋葷粺緇戝畾:
CURSOR_SHARING
exact:鏂囨湰瀹屽叏鐩稿悓鐨凷QL璇彞鎵嶅彲鍏變韓cursor, exact蹇呴』綺劇‘
force:server 绔己鍒剁粦瀹氬彉閲?br /> similar:瀛樺湪histogram(鐩存柟鍥?鏃跺浜庝笉鍚岀殑鍙橀噺鍊奸噸鏂拌В鏋?鐩稿綋浜嶴IMILAR=EXACT, 涓嶅瓨鏃朵笌force涓鏍?br />


]]>
澶嶅埗鍚湁long綾誨瀷鐨勮〃http://m.tkk7.com/KingKong/archive/2010/06/09/323150.htmlsure_dandansure_dandanWed, 09 Jun 2010 06:09:00 GMThttp://m.tkk7.com/KingKong/archive/2010/06/09/323150.htmlhttp://m.tkk7.com/KingKong/comments/323150.htmlhttp://m.tkk7.com/KingKong/archive/2010/06/09/323150.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/323150.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/323150.html1.

SQL> create table testlong(l1 long,id int);

琛ㄥ凡鍒涘緩銆?br />
SQL
>
SQL
> insert into testlong values('aaaaaaaa',1);

宸插垱寤?nbsp;
1 琛屻?br />
SQL
> commit;

鎻愪氦瀹屾垚銆?/span>
2.
SQL>
SQL
> create table testcopylong as select * from testlong;
create table testcopylong as select * from testlong
                                    
*
絎?nbsp;
1 琛屽嚭鐜伴敊璇?
ORA
-00997: 闈炴硶浣跨敤 LONG 鏁版嵁綾誨瀷
3.
SQL> create table testcopylong(l1 long,id int);

琛ㄥ凡鍒涘緩銆?br />
SQL
> copy from scott/tiger append testcopylong using select * from testlong;
SP2
-0519FROM 瀛楃涓茬己澶?nbsp;Oracle Net @database 鎻忚堪
SQL
> copy from scott/tiger@test_10.10.10.1 append testcopylong using select * from testlong;

鏁扮粍鎻愬彇
/緇戝畾澶у皬涓?nbsp;15銆?鏁扮粍澶у皬涓?nbsp;15)
灝嗗湪瀹屾垚鏃舵彁浜ゃ?鎻愪氦鐨勫壇鏈負 
0)
鏈澶?nbsp;
long 澶у皬涓?nbsp;80銆?long 涓?nbsp;80)
1 琛岄夎嚜 scott@test_10.10.10.1銆?br />    1 琛屽凡鎻掑叆 TESTCOPYLONG銆?br />    1 琛屽凡鎻愪氦鑷?nbsp;TESTCOPYLONG (浣嶄簬 DEFAULT HOST 榪炴帴)銆?/span>
4.
SQL> select * from testcopylong;

L1                 ID
---------- ----------
aaaaaaaa            1


]]>
鏌ョ湅琛ㄧ殑浣跨敤鎯呭喌http://m.tkk7.com/KingKong/archive/2010/06/04/322730.htmlsure_dandansure_dandanFri, 04 Jun 2010 07:01:00 GMThttp://m.tkk7.com/KingKong/archive/2010/06/04/322730.htmlhttp://m.tkk7.com/KingKong/comments/322730.htmlhttp://m.tkk7.com/KingKong/archive/2010/06/04/322730.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/322730.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/322730.html
SELECT TABLE_NAME,--琛ㄥ悕
       BLOCKS,--鎬葷殑鍧楁暟
       EMPTY_BLOCKS,--絀哄潡鏁?/span>
       PCT_FREE,--涓嶈В閲?/span>
       NUM_ROWS,--琛ㄧ殑琛屾暟
       AVG_USED_BLOCKS,--騫沖潎浣跨敤鐨勫潡鏁?/span>
       CHAIN_PER,--琛岃縼縐籓R琛岄摼鎺ユ暟
       GREATEST(ROUND(100 * (NVL(HWM - AVG_USED_BLOCKS, 0/
                      GREATEST(NVL(HWM, 
1), 1)),
                      
2),
                
0) WASTE_PER --嫻垂鐨勭櫨鍒嗘瘮
  FROM (SELECT B.TABLE_NAME,
               A.BLOCKS,
               B.EMPTY_BLOCKS,
               B.PCT_FREE,
               B.NUM_ROWS,               
               (A.BLOCKS 
- B.EMPTY_BLOCKS - 1) HWM,
               
ROUND((B.AVG_ROW_LEN * NUM_ROWS * (1 + (PCT_FREE / 100))) / 8192,
                     
0AS AVG_USED_BLOCKS,
               
ROUND(100 *
                     (NVL(B.CHAIN_CNT, 
0/ GREATEST(NVL(B.NUM_ROWS, 1), 1)),
                     
2) CHAIN_PER
        
          
FROM DBA_SEGMENTS A, DBA_TABLES B
         
WHERE A.OWNER = B.OWNER
           
AND A.SEGMENT_NAME = B.TABLE_NAME
              
--AND A.SEGMENT_TYPE = 'TABLE'
           AND A.TABLESPACE_NAME = B.TABLESPACE_NAME
           
AND B.TABLESPACE_NAME = '琛ㄧ┖闂村悕瀛?/span>')

2.鍏朵腑鐨?192鍙互鏌BA_TABLESPACES (TS$)鑾峰彇
SELECT T.TABLESPACE_NAME,T.BLOCK_SIZE FROM DBA_TABLESPACES T



]]>
娑堢伃ORA-16014http://m.tkk7.com/KingKong/archive/2010/05/30/322269.htmlsure_dandansure_dandanSun, 30 May 2010 05:02:00 GMThttp://m.tkk7.com/KingKong/archive/2010/05/30/322269.htmlhttp://m.tkk7.com/KingKong/comments/322269.htmlhttp://m.tkk7.com/KingKong/archive/2010/05/30/322269.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/322269.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/322269.html
1.鍑洪敊
SQL*Plus: Release 10.2.0.2.0 - Production on Sun May 30 10:32:43 2010

Copyright (c) 
19822005, Oracle.  All Rights Reserved.


Connected 
to:
Oracle 
Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options
SQL
> startup mount
ORACLE instance started.

Total System Global Area  
285212672 bytes
Fixed Size                  
1260396 bytes
Variable Size              
96470164 bytes
Database Buffers          180355072 bytes
Redo Buffers                
7127040 bytes
Database mounted.
SQL
> alter database open
  
2  /
alter database open
*
ERROR at line 
1:
ORA
-16014log 1 sequence# 86 not archived, no available destinations
ORA
-00312: online log 1 thread 1'/u01/app/oracle/oradata/orcl/redo01.log'


2.鏌ョ湅褰掓。鏃ュ織鍖虹殑澶у皬
SQL> show parameter db_rec

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                string      /u01/app/oracle/flash_recovery
                                                 _area
db_recovery_file_dest_size           big 
integer 2G
db_recycle_cache_size                big 
integer 0

3.媯鏌lash recovery area鐨勪嬌鐢ㄦ儏鍐?br />
SQL> select * from v$flash_recovery_area_usage;

FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
------------ ------------------ ------------------------- ---------------
CONTROLFILE                   0                         0               0
ONLINELOG                     
0                         0               0
ARCHIVELOG                
98.77                         0              52
BACKUPPIECE                   
0                         0               0
IMAGECOPY                     
0                         0               0
FLASHBACKLOG                  
0                         0               0

6 rows selected.

SQL
> select sum( PERCENT_SPACE_USED )*3/100 from v$flash_recovery_area_usage;

SUM(PERCENT_SPACE_USED)*3/100
-----------------------------
                       2.9631


4.璁$畻鍚?鍙戠幇浣跨敤浜?.96G>2G,灝嗗艱涓?G,閲嶆柊鍚姩,鎴愬姛
SQL> alter system set db_recovery_file_dest_size =4G;

System altered.

SQL
> alter database open;

Database altered.

SQL
>


]]>
鏈濊姳澶曟嬀-1http://m.tkk7.com/KingKong/archive/2010/05/23/321681.htmlsure_dandansure_dandanSun, 23 May 2010 13:37:00 GMThttp://m.tkk7.com/KingKong/archive/2010/05/23/321681.htmlhttp://m.tkk7.com/KingKong/comments/321681.htmlhttp://m.tkk7.com/KingKong/archive/2010/05/23/321681.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/321681.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/321681.html1. create user aaa identified by 123 123闇瑕佺敤寮曞彿
2. 鏌ョ湅褰撳墠鏈変粈涔堟潈闄?鏌ョ湅session_privs
3. 鏌ョ湅褰撳墠鏈変粈涔堣鑹?鏌ョ湅session_roles
4. 璁╃敤鎴風殑鍙d護澶辨晥alter user xxx password expire
5. 鍥炴敹鐨勭郴緇熸潈闄愪笉閫掑綊,瀵硅薄鏉冮檺浼氱駭鑱?br /> 6. create database鏃?濡傛灉鏂囦歡宸茬粡瀛樺湪錛屼笉鑳界洿鎺ヨ鐩栧師鏉ユ枃浠?浣跨敤REUSE璇彞
7. alter system disable/enable restricted session;



sure_dandan 2010-05-23 21:37 鍙戣〃璇勮
]]>鐩戝惉鍣ㄩ厤緗蹇樺綍(1)http://m.tkk7.com/KingKong/archive/2010/05/16/321099.htmlsure_dandansure_dandanSun, 16 May 2010 09:09:00 GMThttp://m.tkk7.com/KingKong/archive/2010/05/16/321099.htmlhttp://m.tkk7.com/KingKong/comments/321099.htmlhttp://m.tkk7.com/KingKong/archive/2010/05/16/321099.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/321099.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/321099.html
 

鏀瑰姩涔嬪墠:

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)

      (PROGRAM = extproc)

    )

  )

 

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

      (ADDRESS = (PROTOCOL = TCP)(HOST = sure1212)(PORT = 1521))

    )

  )


鍦╪etmanager涓坊鍔犳暟鎹簱鐨勭洃鍚?nbsp;


鏀瑰姩涔嬪悗
:

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)

      (PROGRAM = extproc)

    )

    (SID_DESC =

      (GLOBAL_DBNAME = TEST.SURE)

      (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)

      (SID_NAME = test)

    )

  )

 

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

    )

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = sure1212)(PORT = 1521))

    )

  )



sure_dandan 2010-05-16 17:09 鍙戣〃璇勮
]]>
閲嶆柊寤篋BCONTROL姝ラhttp://m.tkk7.com/KingKong/archive/2010/01/27/311006.htmlsure_dandansure_dandanWed, 27 Jan 2010 15:36:00 GMThttp://m.tkk7.com/KingKong/archive/2010/01/27/311006.htmlhttp://m.tkk7.com/KingKong/comments/311006.htmlhttp://m.tkk7.com/KingKong/archive/2010/01/27/311006.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/311006.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/311006.htmlSQL> drop user sysman cascade;

鐢ㄦ埛宸插垹闄ゃ?/font>

SQL> drop role MGMT_USER;

瑙掕壊宸插垹闄ゃ?/font>

SQL> drop user MGMT_VIEW cascade;

鐢ㄦ埛宸插垹闄ゃ?/font>

SQL> drop public synonym MGMT_TARGET_BLACKOUTS;

鍚屼箟璇嶅凡鍒犻櫎銆?/font>

SQL> drop public synonym SETEMVIEWUSERCONTEXT;

鍚屼箟璇嶅凡鍒犻櫎銆?br />
2.emca -deconfig dbcontrol db -repos drop

3.emca -config dbcontrol db -repos create



]]>
瀹屾暣鐨勫垹闄racle 錛堣漿錛?/title><link>http://m.tkk7.com/KingKong/archive/2008/03/28/189226.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Fri, 28 Mar 2008 03:24:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2008/03/28/189226.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/189226.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2008/03/28/189226.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/189226.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/189226.html</trackback:ping><description><![CDATA[<p>瀹屾暣鐨勫垹闄racle <br /> 鍙互瀹屾暣鐨勫垹闄racle products, Oracle services鍜屾敞鍐岃〃淇℃伅 </p> <p>褰撶劧鏄緢灝戞儏鍐典笅鎵嶆兂鍒板垹闄racle錛屽彧鏈夌‘瀹氱湡鐨勪笉鐢ㄧ殑鏃跺欐墠鍋氥?<br /> 濡傛灉闇瑕佽澶囦喚鎵鏈夌浉鍏崇殑鏂囦歡銆?<br /> 錛堜笅闈㈡搷浣滃亣璁炬槸浣跨敤OFA緇撴瀯錛?<br /> NT鐜涓嬶細 <br /> 1銆佷互NT鐨凙dministrator 鐧婚檰 <br /> 2銆侀氳繃鎺у埗闈㈢増-銆夋湇鍔★紝鍋滄帀鎵鏈塐RACLE鏈嶅姟 <br /> 3銆佹墦寮娉ㄥ唽琛紙REGEDIT鍛戒護錛夛紝鍒犻櫎 <br />   HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE   <br /> 4銆佹墦寮娉ㄥ唽琛ㄤ腑鐨?HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services </p> <p>  鍒犻櫎浠RACLE寮澶寸殑鎵鏈夋湇鍔?<br /> 5銆佸垹闄KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\A <br /> pplication涓?<br />   浠RACLE寮澶寸殑鎵鏈夋湇鍔?<br /> 6銆佸叧闂璕EGEDIT <br /> 7銆佹墦寮鎺у埗闈㈢増-銆夌郴緇?銆夌幆澧冨彉閲?<br /> 8銆佸鏋淥RACLE瀹夎浜咼RE,灝卞垹闄?ORACLE_HOME%\BIN鍜孞RE璺緞銆?<br />   姣斿 \ORACLE\ORA81\BIN;G: \Program Files\Oracle\jre\1.1.7\bin <br /> 9銆佸垹闄Winnt\Profiles\All Users\Start Menu\Programs\Oracle 鍜?<br />   \Winnt\Profiles\All Users\Start Menu\Programs\Oracle   <br /> 10銆佸垹闄Program Files\Oracle   <br /> 11銆侀噸鏂板惎鍔ㄦ満鍣?<br /> 12銆佸垹闄ゆ墍鏈塐RACLE鐩綍錛堝湪娉ㄥ唽琛℉KEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ORA CLE_HOMES涓嬶級 </p><img src ="http://m.tkk7.com/KingKong/aggbug/189226.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2008-03-28 11:24 <a href="http://m.tkk7.com/KingKong/archive/2008/03/28/189226.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓涓湁鍏蟲爲鍙栧叾涓嬮潰鎵鏈夌殑瀛愯妭鐐圭殑SQLhttp://m.tkk7.com/KingKong/archive/2007/07/23/131822.htmlsure_dandansure_dandanMon, 23 Jul 2007 02:45:00 GMThttp://m.tkk7.com/KingKong/archive/2007/07/23/131822.htmlhttp://m.tkk7.com/KingKong/comments/131822.htmlhttp://m.tkk7.com/KingKong/archive/2007/07/23/131822.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/131822.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/131822.htmlstart with id = ?
connect by prior id = parentid

]]>
鏈夊叧SQL妯$硦鏌ヨ錛堣漿錛?/title><link>http://m.tkk7.com/KingKong/archive/2007/04/01/107766.html</link><dc:creator>sure_dandan</dc:creator><author>sure_dandan</author><pubDate>Sun, 01 Apr 2007 07:55:00 GMT</pubDate><guid>http://m.tkk7.com/KingKong/archive/2007/04/01/107766.html</guid><wfw:comment>http://m.tkk7.com/KingKong/comments/107766.html</wfw:comment><comments>http://m.tkk7.com/KingKong/archive/2007/04/01/107766.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/KingKong/comments/commentRss/107766.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/KingKong/services/trackbacks/107766.html</trackback:ping><description><![CDATA[<p>鍦ㄨ繘琛屾暟鎹簱鏌ヨ鏃訛紝鏈夊畬鏁存煡璇㈠拰妯$硦鏌ヨ涔嬪垎銆?br /><br />涓鑸ā緋婅鍙ュ涓嬶細<br /><br /></p> <table cellspacing="1" width="100%" bgcolor="#cccccc" border="0"> <tbody> <tr> <td bgcolor="#efefef">SELECT 瀛楁 FROM 琛?WHERE 鏌愬瓧孌?Like 鏉′歡<br /></td> </tr> </tbody> </table> <br /> <br />鍏朵腑鍏充簬鏉′歡錛孲QL鎻愪緵浜嗗洓縐嶅尮閰嶆ā寮忥細<br /><br /><strong>1錛?</strong>錛氳〃紺轟換鎰?涓垨澶氫釜瀛楃銆傚彲鍖歸厤浠繪剰綾誨瀷鍜岄暱搴︾殑瀛楃錛?font color="#060606">鏈変簺鎯呭喌涓嬭嫢鏄腑鏂囷紝璇蜂嬌鐢ㄤ袱涓櫨鍒嗗彿錛?%錛夎〃紺?/font>銆?br /><br />姣斿 SELECT * FROM [user] WHERE u_name LIKE '%涓?'<br /><br />灝嗕細鎶妘_name涓?#8220;寮犱笁”錛?#8220;寮犵尗涓?#8221;銆?#8220;涓夎剼鐚?#8221;錛?#8220;鍞愪笁钘?#8221;絳夌瓑鏈?#8220;涓?#8221;鐨勮褰曞叏鎵懼嚭鏉ャ?br /><br />鍙﹀錛屽鏋滈渶瑕佹壘鍑簎_name涓棦鏈?#8220;涓?#8221;鍙堟湁“鐚?#8221;鐨勮褰曪紝璇蜂嬌鐢╝nd鏉′歡<br />SELECT * FROM [user] WHERE u_name LIKE '%涓?' AND u_name LIKE '%鐚?'<br /><br />鑻ヤ嬌鐢?<font color="#060606">SELECT * FROM [user] WHERE u_name LIKE '%涓?鐚?'</font><br />铏界劧鑳芥悳绱㈠嚭“涓夎剼鐚?#8221;錛屼絾涓嶈兘鎼滅儲鍑虹鍚堟潯浠剁殑“寮犵尗涓?#8221;銆?br /><br /><strong>2錛宊</strong>錛?琛ㄧず浠繪剰鍗曚釜瀛楃銆傚尮閰嶅崟涓換鎰忓瓧絎︼紝瀹冨父鐢ㄦ潵闄愬埗琛ㄨ揪寮忕殑瀛楃闀垮害璇彞錛?br /><br />姣斿 SELECT * FROM [user] WHERE u_name LIKE '_涓塤'<br />鍙壘鍑?#8220;鍞愪笁钘?#8221;榪欐牱u_name涓轟笁涓瓧涓斾腑闂翠竴涓瓧鏄?#8220;涓?#8221;鐨勶紱<br /><br />鍐嶆瘮濡?SELECT * FROM [user] WHERE u_name LIKE '涓塤_';<br />鍙壘鍑?#8220;涓夎剼鐚?#8221;榪欐牱name涓轟笁涓瓧涓旂涓涓瓧鏄?#8220;涓?#8221;鐨勶紱<br /><br /><br /><strong>3錛孾 ]</strong>錛氳〃紺烘嫭鍙峰唴鎵鍒楀瓧絎︿腑鐨勪竴涓紙綾諱技姝e垯琛ㄨ揪寮忥級銆傛寚瀹氫竴涓瓧絎︺佸瓧絎︿覆鎴栬寖鍥達紝瑕佹眰鎵鍖歸厤瀵硅薄涓哄畠浠腑鐨勪換涓涓?br /><br />姣斿 SELECT * FROM [user] WHERE u_name LIKE '[寮犳潕鐜媇涓?<br />灝嗘壘鍑?#8220;寮犱笁”銆?#8220;鏉庝笁”銆?#8220;鐜嬩笁”錛堣屼笉鏄?#8220;寮犳潕鐜嬩笁”錛夛紱<br /><br />濡?[ ] 鍐呮湁涓緋誨垪瀛楃錛?1234銆乤bcde涔嬬被鐨勶級鍒欏彲鐣ュ啓涓?#8220;0-4”銆?#8220;a-e”<br />SELECT * FROM [user] WHERE u_name LIKE '鑰乕1-9]'<br />灝嗘壘鍑?#8220;鑰?”銆?#8220;鑰?”銆?#8230;…銆?#8220;鑰?”錛?br /><br /><strong>4錛孾^ ] </strong>錛氳〃紺轟笉鍦ㄦ嫭鍙鋒墍鍒椾箣鍐呯殑鍗曚釜瀛楃銆傚叾鍙栧煎拰 [] 鐩稿悓錛屼絾瀹冭姹傛墍鍖歸厤瀵硅薄涓烘寚瀹氬瓧絎︿互澶栫殑浠諱竴涓瓧絎︺?br /><br />姣斿 SELECT * FROM [user] WHERE u_name LIKE '[^寮犳潕鐜媇涓?<br />灝嗘壘鍑轟笉濮?#8220;寮?#8221;銆?#8220;鏉?#8221;銆?#8220;鐜?#8221;鐨?#8220;璧典笁”銆?#8220;瀛欎笁”絳夛紱<br /><br />SELECT * FROM [user] WHERE u_name LIKE '鑰乕^1-4]';<br />灝嗘帓闄?#8220;鑰?”鍒?#8220;鑰?”錛屽鎵?#8220;鑰?”銆?#8220;鑰?”銆?#8230;…<br /><br /><strong>5錛屾煡璇㈠唴瀹瑰寘鍚氶厤絎︽椂</strong><br /><br />鐢變簬閫氶厤絎︾殑緙樻晠錛屽鑷存垜浠煡璇㈢壒孌婂瓧絎?#8220;%”銆?#8220;_”銆?#8220;[”鐨勮鍙ユ棤娉曟甯稿疄鐜幫紝鑰屾妸鐗規畩瀛楃鐢?#8220;[ ]”鎷搗渚垮彲姝e父鏌ヨ銆傛嵁姝ゆ垜浠啓鍑轟互涓嬪嚱鏁幫細<br /><br /><table cellspacing="1" width="100%" bgcolor="#cccccc" border="0"><tbody><tr><td bgcolor="#efefef"><br />function sqlencode(str)<br />str=replace(str,"[","[[]") '姝ゅ彞涓瀹氳鍦ㄦ渶鍓?br />str=replace(str,"_","[_]")<br />str=replace(str,"%","[%]")<br />sqlencode=str<br />end function<br /><br /></td></tr></tbody></table><br />鍦ㄦ煡璇㈠墠灝嗗緟鏌ュ瓧絎︿覆鍏堢粡璇ュ嚱鏁板鐞嗗嵆鍙?img src ="http://m.tkk7.com/KingKong/aggbug/107766.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/KingKong/" target="_blank">sure_dandan</a> 2007-04-01 15:55 <a href="http://m.tkk7.com/KingKong/archive/2007/04/01/107766.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓涓煡璇?浜屼釜鏇存柊http://m.tkk7.com/KingKong/archive/2007/03/30/107501.htmlsure_dandansure_dandanFri, 30 Mar 2007 08:32:00 GMThttp://m.tkk7.com/KingKong/archive/2007/03/30/107501.htmlhttp://m.tkk7.com/KingKong/comments/107501.htmlhttp://m.tkk7.com/KingKong/archive/2007/03/30/107501.html#Feedback0http://m.tkk7.com/KingKong/comments/commentRss/107501.htmlhttp://m.tkk7.com/KingKong/services/trackbacks/107501.html鏌ヨ錛?/p>
select   countTotal ,system
      
from  ( select  tablesystem,  count (tablesystem)  countTotal
              
from  s_dic_table
             
group   by  tablesystem) t1,s_dic_tablesystem t2
     
where  t2.systemcode  =  t1.tablesystem

鏇存柊1錛?br />
update b_hr_him_employee
   
set name = (select insname from TEMPINSname tmp where tmp.sysid = copyid)
 
where exists
 (
select insname from TEMPINSname tmp where tmp.sysid = copyid)

鏇存柊2錛?br />
update b_hr_him_employee set
 gender 
= (select minorcode
                   
from s_sys_code s
                  
inner join TEMPINSgender tmp on s.meaning = tmp.insgender
                  
where tmp.sysid = copyid)
 
where exists (select minorcode
          
from s_sys_code s
         
inner join TEMPINSgender tmp on s.meaning = tmp.insgender
         
where tmp.sysid = copyid)


]]>
主站蜘蛛池模板: 无码天堂va亚洲va在线va| 国产片AV片永久免费观看| 亚洲kkk4444在线观看| 亚洲第一中文字幕| 亚洲高清无码专区视频| 国产片AV片永久免费观看| 男人都懂www深夜免费网站| 日本精品久久久久久久久免费| 亚洲成a人片在线看| 亚洲首页在线观看| 中文字幕亚洲综合久久菠萝蜜| 国产在线观看免费不卡| 性做久久久久久免费观看| 99爱在线精品视频免费观看9| 两个人日本WWW免费版 | 久久亚洲免费视频| aaa毛片免费观看| 一个人看的hd免费视频| 国产精品亚洲一区二区无码| 亚洲欧美不卡高清在线| 亚洲精品无码国产片| 精品国产成人亚洲午夜福利| 亚洲中字慕日产2020| 91亚洲自偷在线观看国产馆| 久久精品亚洲精品国产色婷 | 二个人看的www免费视频| 香蕉视频免费在线播放| 美女隐私免费视频看| 国产尤物在线视精品在亚洲| 亚洲爆乳少妇无码激情| 亚洲色中文字幕在线播放| 亚洲综合国产成人丁香五月激情| 亚洲无吗在线视频| 亚洲高清有码中文字| 亚洲真人无码永久在线观看| 亚洲日韩AV一区二区三区四区| 亚洲精品无码中文久久字幕| 国产精品亚洲专区无码唯爱网| 亚洲aⅴ无码专区在线观看春色| 成人亚洲国产精品久久| 一级毛片免费在线|