





{"id":1828,"date":"2011-04-03T23:53:27","date_gmt":"2011-04-04T03:53:27","guid":{"rendered":"http:\/\/www.killtest.hk\/?p=1828"},"modified":"2011-04-03T23:53:27","modified_gmt":"2011-04-04T03:53:27","slug":"oracle-ben","status":"publish","type":"post","link":"https:\/\/www.killtest.hk\/index.php\/it-certication\/oracle-ben\/","title":{"rendered":"Oracle_\u57fa\u672c\u6982\u5ff5\u548c\u9ad4\u7cfb"},"content":{"rendered":"<p>\u662f\u78c1\u76e4\u4e0a\u5b58\u5132\u7684\u6578\u64da\u7684\u96c6\u5408\uff08\u5305\u62ec\u914d\u7f6e\u6587\u4ef6\u3001\u6578\u64da\u6587\u4ef6\u3001\u65e5\u8a8c\u6587\u4ef6\u548c\u63a7\u5236\u6587\u4ef6\u7b49\uff09<br \/>\n\u00a0\u00a0\u00a0 \u6578\u64da\u5eab\u5be6\u4f8b<br \/>\n\u00a0\u00a0\u00a0 \u904b\u884c\u5728\u6578\u64da\u5eab\u6587\u4ef6\u4e0a\u7684\u58f9\u7d44Oracle\u5f8c\u81fa\u9032\u7a0b\/\u7dda\u7a0b\u4ee5\u53ca\u58f9\u500b\u5171\u4eab\u5167\u5b58\u5340\u3002\u6578\u64da\u5eab\u53ef\u4ee5\u7531\u5be6\u4f8b\u88dd\u8f09<br \/>\n\u00a0\u00a0\u00a0 \u548c\u6253\u958b\u3002<br \/>\n\u00a0\u00a0\u00a0 oracle\u5be6\u6642\u61c9\u7528\u96c6\u7fa4\uff08RAC,Real Application Clusters\uff09<br \/>\n\u00a0\u00a0\u00a0 oralce\u4e26\u884c\u670d\u52d9\u5668\u67b6\u69cb\/RAC\u67b6\u69cb<br \/>\n\u00a0\u00a0\u00a0 \u6578\u64da\u5eab\u670d\u52d9\u540d<br \/>\n\u00a0\u00a0\u00a0 \u5f9eoracle8i\u958b\u59cb\u5f15\u5165\uff0c\u6578\u64da\u5eab\u5ba2\u6236\u7aef\u8207\u670d\u52d9\u5668\u7aef\u9023\u63a5\u6642\u5efa\u8b70\u6307\u5b9a\u5176\u6578\u64da\u5eab\u670d\u52d9\u540d\uff0c\u800c\u4e0d\u662f\u6578\u64da\u5eab<br \/>\n\u00a0\u00a0\u00a0 \u5be6\u4f8b\u540d\u3002<br \/>\n\u00a0\u00a0\u00a0 \u7db2\u7d61\u670d\u52d9\u540d<br \/>\n\u00a0\u00a0\u00a0 \u6578\u64da\u5eab\u5728\u5ba2\u6236\u7aef\u7684\u908f\u8f2f\u8868\u793a\uff0c\u5305\u542b\u6578\u64da\u5eab\u670d\u52d9\u540d\u548c\u7db2\u7d61\u5730\u5740\u5169\u65b9\u9762\u4fe1\u606f\u3002<br \/>\n\u00a0\u00a0\u00a0 \u76e3\u807d\u5668<br \/>\n\u00a0\u00a0\u00a0 \u9396<br \/>\n\u00a0\u00a0\u00a0 ORACLE\u88cf\u9396\u6709\u4ee5\u4e0b\u5e7e\u7a2e\u6a21\u5f0f\uff1a<br \/>\n\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u00a0\u00a0\u00a0 0\uff1anone<br \/>\n\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u00a0\u00a0\u00a0 1\uff1anull \u7a7a<br \/>\n\u00a0\u00a0\u00a0 Select\uff0c\u6709\u6642\u6703\u5728v$locked_object\u51fa\u73fe\u3002<br \/>\n\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u00a0\u00a0\u00a0 2\uff1aRow-S \u884c\u5171\u4eab\uff08RS\uff09\uff1a\u5171\u4eab\u8868\u9396\uff0csub share<br \/>\n\u00a0\u00a0\u00a0 2\u7d1a\u9396\u6709\uff1aSelect for update,Lock For Update,Lock Row Share<br \/>\n\u00a0\u00a0\u00a0 select for update\u7576\u5c0d\u8a71\u4f7f\u7528for update\u5b50\u4e32\u6253\u958b\u58f9\u500b\u904a\u6a19\u6642\uff0c\u6240\u6709\u8fd4\u56de\u96c6\u4e2d\u7684\u6578\u64da\u884c\u90fd\u5c07\u8655\u65bc\u884c\u7d1a\uff08Row-X\uff09\u7368\u5360\u5f0f\u9396\u5b9a\uff0c\u5176\u4ed6\u5c0d\u8c61\u53ea\u80fd\u67e5\u8a62\u9019\u4e9b\u6578\u64da\u884c\uff0c\u4e0d\u80fd\u9032\u884cupdate\u3001delete\u6216select for update\u64cd\u4f5c\u3002<br \/>\n\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u00a0\u00a0\u00a0 3\uff1aRow-X \u884c\u7368\u5360\uff08RX\uff09\uff1a\u7528\u65bc\u884c\u7684\u4fee\u6539\uff0csub exclusive<br \/>\n\u00a0\u00a0\u00a0 3\u7d1a\u9396\u6709\uff1aInsert, Update, Delete, Lock Row Exclusive<br \/>\n\u00a0\u00a0\u00a0 \u6c92\u6709commit\u4e4b\u524d\uff0c\u5982\u679c\u53e6\u5916\u58f9\u500b\u6703\u8a71\u63d2\u5165\u540c\u6a23\u7684\u58f9\u689d\u8a18\u9304\u6703\u6c92\u6709\u53cd\u61c9\uff0c \u56e0\u70ba\u5f8c\u58f9\u500b3\u7684\u9396\u6703\u58f9\u76f4\u7b49\u5f85\u4e0a\u58f9\u500b3\u7684\u9396\uff0c \u6211\u5011\u5fc5\u9808\u91cb\u653e\u6389\u4e0a\u58f9\u500b\u624d\u80fd\u7e7c\u7e8c\u5de5\u4f5c\u3002<br \/>\n\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u00a0\u00a0\u00a0 4\uff1aShare \u5171\u4eab\u9396\uff08S\uff09\uff1a\u963b\u6b62\u5176\u4ed6DML\u64cd\u4f5c\uff0cshare<br \/>\n\u00a0\u00a0\u00a0 4\u7d1a\u9396\u6709\uff1aCreate Index, Lock Share<br \/>\n\u00a0\u00a0\u00a0 locked_mode\u70ba2,3,4\u4e0d\u5f71\u97ffDML\uff08insert,delete,update,select\uff09\u64cd\u4f5c\uff0c \u4f46DDL\uff08alter,drop\u7b49\uff09\u64cd\u4f5c\u6703\u63d0\u793aora-00054\u932f\u8aa4\u3002<br \/>\n\u00a0\u00a0\u00a0 00054, 00000, &#8220;resource busy and acquire with NOWAIT specified&#8221;<br \/>\n\u00a0\u00a0\u00a0 \/\/ *Cause: Resource interested is busy.<br \/>\n\u00a0\u00a0\u00a0 \/\/ *Action: Retry if necessary.<br \/>\n\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u00a0\u00a0\u00a0 5\uff1aS\/Row-X \u5171\u4eab\u884c\u7368\u5360\uff08SRX\uff09\uff1a\u963b\u6b62\u5176\u4ed6\u4e8b\u52d9\u64cd\u4f5c\uff0cshare\/sub exclusive<br \/>\n\u00a0\u00a0\u00a0 5\u7d1a\u9396\u6709\uff1aLock Share Row Exclusive<br \/>\n\u00a0\u00a0\u00a0 \u5177\u9ad4\u4f86\u8b1b\u6709\u4e3b\u5916\u9375\u7d04\u675f\u6642update\/delete\u2026\uff1b\u53ef\u80fd\u6703\u7522\u751f4,5\u7684\u9396\u3002<br \/>\n\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u00a0\u00a0\u00a0 6\uff1aexclusive \u7368\u5360\uff08X\uff09\uff1a\u7368\u7acb\u8a2a\u554f\u4f7f\u7528\uff0cexclusive<br \/>\n\u00a0\u00a0\u00a0 6\u7d1a\u9396\u6709\uff1aAlter table, Drop table, Drop Index, Truncate table, Lock Exclusive<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u662f\u78c1\u76e4\u4e0a\u5b58\u5132\u7684\u6578\u64da\u7684\u96c6\u5408\uff08\u5305\u62ec\u914d\u7f6e\u6587\u4ef6\u3001\u6578\u64da\u6587\u4ef6\u3001\u65e5\u8a8c\u6587\u4ef6\u548c\u63a7\u5236\u6587\u4ef6\u7b49\uff09 \u00a0\u00a0\u00a0 \u6578\u64da\u5eab\u5be6\u4f8b \u00a0\u00a0\u00a0 \u904b\u884c\u5728\u6578 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[2748,757,758],"class_list":["post-1828","post","type-post","status-publish","format-standard","hentry","category-it-certication","tag-oracle","tag-757","tag-758"],"_links":{"self":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/comments?post=1828"}],"version-history":[{"count":0,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1828\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/media?parent=1828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/categories?post=1828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/tags?post=1828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}