{"id":859,"date":"2012-05-19T23:55:55","date_gmt":"2012-05-19T15:55:55","guid":{"rendered":"https:\/\/yangtingkun.net\/?p=859"},"modified":"2012-05-22T00:11:18","modified_gmt":"2012-05-21T16:11:18","slug":"%e7%bc%96%e8%af%91%e8%bf%87%e7%a8%8b%e5%af%bc%e8%87%b4ora-4068%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/yangtingkun.net\/?p=859","title":{"rendered":"\u7f16\u8bd1\u8fc7\u7a0b\u5bfc\u81f4ORA-4068\u9519\u8bef"},"content":{"rendered":"<p>\u4e00\u4e2a10203\u4e0a\u7684bug\uff0c\u8fd9\u79cd\u95ee\u9898\u8fd8\u662f\u7b2c\u4e00\u6b21\u78b0\u5230\u3002<br \/>\n\u572810.2.0.3\u4e0a\uff0c\u5b58\u5728bug\u53ef\u80fd\u5bfc\u81f4\u7f16\u8bd1\u8fc7\u7a0b\u6216\u89c6\u56fe\u5931\u8d25\uff0c\u800c\u5931\u8d25\u7684\u7ed3\u679c\u5e76\u4e0d\u53ea\u662f\u5f53\u524d\u89c6\u56fe\u6216\u8fc7\u7a0b\u4e0d\u53ef\u7528\uff0c\u800c\u662f\u53ef\u80fd\u5f71\u54cd\u6574\u4e2a\u6570\u636e\u5b57\u5178\uff0c\u5bfc\u81f4\u5b58\u50a8\u8fc7\u7a0b\u5728\u6267\u884c\u65f6\u51fa\u73b0ORA-4068\u9519\u8bef\u3002<br \/>\n\u9519\u8bef\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<pre lang='SQL'>ORA-04068: existing state of packages has been discarded.\r\nORA-04065: not executed, altered or dropped stored procedure P_PACKAGE.P_PRO\r\nORA-06508: PL\/SQL: could not find program unit being called: P_PACKAGE.P_PRO\r\nORA-06512: at line 1<\/pre>\n<p>\u8fd9\u4e2a\u95ee\u9898\u5bf9\u5e94\u7684BUG\u4fe1\u606f\u4e3a\uff1aBug 6136074 &#8211; ORA-4068 \/ ORA-4065 ORA-6508 on VALID objects [ID 6136074.8]\uff0c\u5bfc\u81f4\u95ee\u9898\u7684\u539f\u56e0\u5c31\u662f\u7f16\u8bd1\u5bf9\u8c61\u65f6\u5bfc\u81f4PLSQL\u7684\u4f9d\u8d56\u5bf9\u8c61\u7684\u65f6\u95f4\u6233\u53d1\u751f\u4e0d\u4e00\u81f4\uff0c\u4ece\u800c\u5bfc\u81f4\u95ee\u9898\u7684\u4ea7\u751f\u3002<br \/>\nOracle\u6587\u6863\u4e0a\u7ed9\u51fa\u4e86\u68c0\u67e5\u95ee\u9898\u7684SQL\u8bed\u53e5\uff1a<\/p>\n<pre lang='SQL'>select do.obj# d_obj,do.name d_name, do.type# d_type,\r\npo.obj# p_obj,po.name p_name,\r\nto_char(p_timestamp,'DD-MON-YYYY HH24:MI:SS') \"P_Timestamp\",\r\nto_char(po.stime ,'DD-MON-YYYY HH24:MI:SS') \"STIME\",\r\ndecode(sign(po.stime-p_timestamp),0,'SAME','*DIFFER*') X\r\nfrom sys.obj$ do, sys.dependency$ d, sys.obj$ po\r\nwhere P_OBJ#=po.obj#(+)\r\nand D_OBJ#=do.obj#\r\nand do.status=1 \/*dependent is valid*\/\r\nand po.status=1 \/*parent is valid*\/\r\nand po.stime!=p_timestamp \/*parent timestamp not match*\/\r\norder by 2,1;<\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u811a\u672c\u5c06\u83b7\u53d6\u7684\u5bf9\u8c61\u8fdb\u884c\u91cd\u65b0\u7f16\u8bd1\uff0c\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u8981\u907f\u514d\u95ee\u9898\u7684\u518d\u6b21\u51fa\u73b0\uff0c\u5e94\u8be5\u5c06\u6570\u636e\u5e93\u7248\u672c\u5347\u7ea7\u523010.2.0.4\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a10203\u4e0a\u7684bug\uff0c\u8fd9\u79cd\u95ee\u9898\u8fd8\u662f\u7b2c\u4e00\u6b21\u78b0\u5230\u3002 \u572810.2.0.3\u4e0a\uff0c\u5b58\u5728bug\u53ef\u80fd\u5bfc\u81f4\u7f16\u8bd1\u8fc7\u7a0b\u6216\u89c6\u56fe\u5931\u8d25\uff0c\u800c\u5931\u8d25\u7684\u7ed3\u679c\u5e76\u4e0d\u53ea\u662f\u5f53\u524d\u89c6\u56fe\u6216\u8fc7\u7a0b\u4e0d\u53ef\u7528\uff0c\u800c\u662f\u53ef\u80fd\u5f71\u54cd\u6574\u4e2a\u6570\u636e\u5b57\u5178\uff0c\u5bfc\u81f4\u5b58\u50a8\u8fc7\u7a0b\u5728\u6267\u884c\u65f6\u51fa\u73b0ORA-4068\u9519\u8bef\u3002 \u9519\u8bef\u4fe1\u606f\u5982\u4e0b\uff1a ORA-04068: existing state of packages has been discarded. ORA-04065: not executed, altered or dropped stored procedure P_PACKAGE.P_PRO ORA-06508: PL\/SQL: could not find program unit being called: P_PACKAGE.P_PRO ORA-06512: at line 1 \u8fd9\u4e2a\u95ee\u9898\u5bf9\u5e94\u7684BUG\u4fe1\u606f\u4e3a\uff1aBug 6136074 &#8211; ORA-4068 \/ ORA-4065 &hellip; <a href=\"https:\/\/yangtingkun.net\/?p=859\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[723,722,724,48,49],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2yiY3-dR","_links":{"self":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/859"}],"collection":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=859"}],"version-history":[{"count":1,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":860,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/859\/revisions\/860"}],"wp:attachment":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}