{"id":444,"date":"2017-01-21T14:47:25","date_gmt":"2017-01-21T06:47:25","guid":{"rendered":"http:\/\/www.rao-bing.cn\/?p=444"},"modified":"2020-01-06T16:13:33","modified_gmt":"2020-01-06T08:13:33","slug":"oracle-database-vault-bitcoin","status":"publish","type":"post","link":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/21\/444\/","title":{"rendered":"\u4f7f\u7528Oracle DV\u9632\u8303\u6bd4\u7279\u5e01\u52d2\u7d22"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u4f5c\u4e3aOracle DBA\uff0c\u5e94\u8be5\u90fd\u4f1a\u77e5\u9053\u524d\u4e00\u9635\u6709\u4eba\u501f\u52a9PL\/SQL Developer\u7684\u81ea\u52a8\u6267\u884c\u811a\u672c\uff0c\u7834\u574fOracle\u6570\u636e\u5e93\uff0c\u5e76\u52d2\u7d22\u6bd4\u7279\u5e01\u7684\u4e8b\u60c5\u3002\uff08\u5982\u679c\u4e0d\u77e5\u9053\u5c31\u767e\u5ea6\u5427\uff09<\/p>\n<p>\u9488\u5bf9\u8fd9\u6b21\u7684\u4e8b\u4ef6\uff0c\u5404\u65b9\u4e13\u5bb6\u90fd\u9646\u7eed\u7ed9\u51fa\u4e86\u539f\u7406\u5206\u6790\u548c\u9632\u8303\u5efa\u8bae\uff0c\u4e00\u822c\u90fd\u662f\u8bf4\u4e0d\u8981\u4f7f\u7528\u4e0d\u660e\u6765\u8def\u7684PL\/SQL Developer\uff0c\u5c3d\u91cf\u4f7f\u7528\u539f\u5382\u63d0\u4f9b\u7684\u5de5\u5177\uff0c\u6211\u60f3\u8fd9\u4e2a\u7684\u786e\u80fd\u9632\u8303\u95ee\u9898\uff0c\u4e0d\u8fc7\u7f3a\u4e4f\u5f3a\u5236\u529b\u3002<\/p>\n<p>\u6307\u671b\u6240\u6709\u80fd\u63a5\u89e6\u6570\u636e\u5e93\u7684\u4eba\u90fd\u81ea\u89c9\u9075\u5b88\u5236\u5ea6\uff0c\u662f\u4e0d\u592a\u73b0\u5b9e\u7684\u3002\u800c\u4e14\uff0c\u4e5f\u4e0d\u6392\u9664\u4e2a\u522b\u4eba\uff0c\u501f\u7740\u8fd9\u6b21\u4e8b\u4ef6\uff0c\u53cd\u800c\u4e86\u89e3\u4e86\u6280\u672f\u539f\u7406\uff0c\u7ee7\u7eed\u641e\u51fa\u8fd9\u6b21\u4e8b\u4ef6\u7684\u53d8\u79cd\u3002<\/p>\n<p>\u8fdb\u4e00\u6b65\u8bb2\uff0c\u4e5f\u4e0d\u89c1\u5f97\u975e\u8981\u4f7f\u7528PL\/SQL Developer\u81ea\u52a8\u6267\u884c\u811a\u672c\u7684\u8fd9\u79cd\u201c\u6ce8\u5165\u201d\u65b9\u5f0f\uff0c\u53ea\u8981\u4e86\u89e3\u4e86\u539f\u7406\uff0c\u7ed3\u5408\u6bd4\u7279\u5e01\u7684\u4e0d\u53ef\u8ffd\u67e5\u6027\uff0c\u6709\u4e9b\u5185\u8d3c\u5b8c\u5168\u53ef\u4ee5\u6df7\u6dc6\u89c6\u542c\uff0c\u8fbe\u5230\u81ea\u5df1\u7684\u76ee\u7684\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u6211\u8ba4\u4e3a\u8fd8\u662f\u5fc5\u987b\u8981\u6709\u6280\u672f\u624b\u6bb5\u6765\u79ef\u6781\u9632\u8303\u8fd9\u79cd\u60c5\u51b5\u3002<\/p>\n<p>\u79ef\u6781\u9632\u8303\u603b\u6bd4\u4e8b\u540e\u8865\u6551\u8981\u597d\uff0c\u4e0d\u8fc7\u5927\u591a\u6570\u56fd\u4eba\u603b\u662f\u5fd8\u8bb0\u8fd9\u4e00\u70b9\uff0c\u8fd9\u5c31\u597d\u6bd4\u5438\u70df\u7684\u4eba\uff0c\u522b\u4eba\u529d\u4ed6\u4e0d\u5438\u70df\u4e0d\u542c\uff0c\u5f97\u4e86\u80ba\u764c\uff0c\u88ab\u533b\u751f\u5f00\u5200\u6cbb\u597d\u4e86\uff0c\u4ed6\u7edd\u5bf9\u4f1a\u5d07\u62dc\u90a3\u4e2a\u6cbb\u597d\u4ed6\u7684\u533b\u751f\uff0c\u800c\u5bf9\u66fe\u7ecf\u529d\u4ed6\u4e0d\u8981\u5438\u70df\u7684\u4eba\uff0c\u5c31\u672a\u5fc5\u90a3\u4e48\u5370\u8c61\u6df1\u523b\u4e86\uff0c\u5f53\u7136\uff0c\u533b\u751f\u80fd\u6cbb\u597d\u4ed6\uff0c\u7684\u786e\u5389\u5bb3\uff0c\u4f46\u662f\uff0c\u4ed6\u672c\u6765\u53ef\u4ee5\u4e0d\u7528\u6328\u90a3\u201c\u4e00\u5200\u201d\u7684\u3002<\/p>\n<p>\u4e0d\u8bf4\u592a\u591a\u9898\u5916\u8bdd\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u770b\u770b\u600e\u4e48\u4f7f\u7528Oracle DV\u6765\u9632\u8303\u7c7b\u4f3c\u8fd9\u6b21\u6bd4\u7279\u5e01\u52d2\u7d22\u7684\u5a01\u80c1\u3002<\/p>\n<p>Oracle Database Vault \u7684\u57fa\u672c\u539f\u7406\u548c\u7b80\u5355\u4ecb\u7ecd\u53ef\u4ee5\u53c2\u8003\u6211\u5199\u7684\u8fd9\u7bc7\u6587\u7ae0\uff1a\u300a\u4f7f\u7528\u6280\u672f\u624b\u6bb5\u9650\u5236DBA\u7684\u5371\u9669\u64cd\u4f5c\u300b<a href=\"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/07\/database_vault\/\">http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/07\/database_vault\/<\/a><\/p>\n<p>\u672c\u6587\u4e0d\u662fDV\u5168\u9762\u7684\u4ecb\u7ecd\uff0c\u53ea\u662f\u9488\u5bf9\u6bd4\u7279\u5e01\u52d2\u7d22\u8fd9\u79cd\u573a\u666f\uff0c\u770b\u770b\u600e\u4e48\u9632\u8303\u3002<\/p>\n<p>\u6bd4\u7279\u5e01\u52d2\u7d22\u7684\u6280\u672f\u539f\u7406\u6709\u4e24\u4e2a\u5173\u952e\u70b9\uff0c\u7b2c\u4e00\u662f\u501f\u52a9\u7be1\u6539\u8fc7\u7684PL\/SQL Developer\u5de5\u5177\uff0c\u4f7fDBA\u6beb\u65e0\u77e5\u89c9\u5730\u8fd0\u884c\u4e86\u6076\u610f\u4ee3\u7801\u3002<\/p>\n<p>\u5176\u6b21\uff0c\u5c31\u662f\u65e0\u610f\u4e2d\u6267\u884c\u4e86\u6076\u610f\u4ee3\u7801\u7684\u4eba\uff0c\u5fc5\u987b\u8981\u6709\u5f88\u9ad8\u7684\u6570\u636e\u5e93\u6743\u9650\uff0c\u624d\u80fd\u521b\u5efa\u6076\u610f\u89e6\u53d1\u5668\u53ca\u5b58\u50a8\u8fc7\u7a0b\uff0c\u5e76\u7834\u574f\u7cfb\u7edf\u8868\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u6211\u4eec\u8981\u9632\u8303\u8fd9\u79cd\u5371\u9669\uff0c\u4e3b\u8981\u5c31\u662f\u9488\u5bf9\u8fd9\u4e24\u70b9\uff0c\u8bf4\u51fa\u6765\u5176\u5b9e\u4e5f\u6bd4\u8f83\u7b80\u5355\uff0c\u7b2c\u4e00\u5c31\u662f\u4e0d\u5141\u8bb8PL\/SQL Developer\u8fd9\u79cd\u80fd\u9690\u5f0f\u81ea\u52a8\u6267\u884cSQL\u811a\u672c\u7684\u5de5\u5177\u767b\u5f55\u6570\u636e\u5e93\uff0c\u7b2c\u4e8c\u5c31\u662f\u9650\u5236\u7279\u6743\u7528\u6237\uff0c\u4e0d\u5141\u8bb8\u521b\u5efa\u89e6\u53d1\u5668\uff0c\u6216\u4efb\u4f55\u5176\u4ed6\u7c7b\u578b\u7684\u5b58\u50a8\u8fc7\u7a0b\u3002<\/p>\n<p>\u6700\u7ec8DV Owner\u7528\u6237\u7684\u8d26\u53f7\u5e94\u8be5\u53ea\u638c\u63e1\u5728\u5c11\u65701\u30012\u4e2a\u8d1f\u8d23\u5b89\u5168\u7684\u4eba\u624b\u91cc\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u907f\u514dDBA\u6216\u5f00\u53d1\u4eba\u5458\u968f\u610f\u7ed5\u5f00DV\u89c4\u5219\uff0c\u8fdb\u800c\u4f7f\u7528\u7279\u6743\u7528\u6237\u65f6\uff0c\u4e0d\u5c0f\u5fc3\u201c\u4e2d\u62db\u201d\u3002<\/p>\n<p>\u800c\u201c\u804c\u8d23\u5206\u79bb\u201d\u540e\uff0cDV Owner\u7528\u6237\u53c8\u6ca1\u6709\u521b\u5efa\u7cfb\u7edf\u89e6\u53d1\u5668\u6216\u5b58\u50a8\u8fc7\u7a0b\u7684\u6570\u636e\u5e93\u6743\u9650\uff0c\u6240\u4ee5\u4ed6\u4eec\u4e5f\u4e0d\u4f1a\u201c\u4e2d\u62db\u201d\u3002<\/p>\n<p>\u6211\u4eec\u4ee512.1.0.2\u6570\u636e\u5e93\u4e3a\u4f8b\uff0c\u4e3e\u4f8b\u8bf4\u660e\u3002\uff0812c\u540e\uff0cEM express\u4e2d\u53c8\u6ca1\u6709DV\u7684\u7ba1\u7406\u754c\u9762\u4e86\uff0c11g \u7684DB Control\u4e2d\u6709\uff0c\u5982\u679c\u60f3\u7528web\u754c\u9762\u914d\u7f6e\uff0c\u5fc5\u987b\u5b89\u88c5EM12c\u6216EM13c\uff0c\u4f1a\u6bd4\u8f83\u9ebb\u70e6\uff0c\u6211\u8fd9\u91cc\u4f1a\u540c\u65f6\u7ed9\u51faweb\u754c\u9762\u914d\u7f6e\u7684\u65b9\u6cd5\u548c\u4f7f\u7528\u547d\u4ee4\u884c\u914d\u7f6e\u7684\u65b9\u6cd5\uff09<\/p>\n<h3><span style=\"font-weight: bold;\">\u9650\u5236\u7279\u6743\u7528\u6237\u4f7f\u7528PL\/SQL Developer\u767b\u5f55\u6570\u636e\u5e93<\/span><\/h3>\n<h4><span style=\"font-weight: bold;\">\u521b\u5efa\u56e0\u5b50\uff08factor\uff09\uff0c\u8bc6\u522b\u767b\u5f55\u4f1a\u8bdd\u4f7f\u7528\u7684\u6a21\u5757\u540d\u79f0<\/span><\/h4>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image002-2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image002\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image002_thumb-2.jpg\" alt=\"clip_image002\" width=\"745\" height=\"367\" border=\"0\" \/><\/a><\/p>\n<p>\u53d6\u6a21\u5757\u540d\u5e76\u8f6c\u6210\u5927\u5199\uff1aUPPER(SYS_CONTEXT(\u2018USERENV\u2019,\u2019MODULE\u2019)<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image004-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image004\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image004_thumb-1.jpg\" alt=\"clip_image004\" width=\"633\" height=\"339\" border=\"0\" \/><\/a><\/p>\n<p>\u4e0d\u505a\u5ba1\u8ba1<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image006-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image006\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image006_thumb-1.jpg\" alt=\"clip_image006\" width=\"932\" height=\"439\" border=\"0\" \/><\/a><\/p>\n<p>\u547d\u4ee4\u884c\u65b9\u5f0f\u662f\u4f7f\u7528DV owner\u7528\u6237\u767b\u5f55\u6570\u636e\u5e93\uff0c\u901a\u8fc7\u8c03\u7528DV\u7684PL\/SQL API\uff0c\u6765\u8fdb\u884c\u914d\u7f6e\uff0c\u548c\u4e0a\u9762web\u754c\u9762\u540c\u6837\u6548\u679c\u7684\u8bed\u53e5\uff1a<\/p>\n<pre class=\"lang:plsql decode:true \">\r\n\r\nbegin\r\n  DVSYS.DBMS_MACADM.CREATE_FACTOR(factor_name      => 'MODULE',\r\n                                  factor_type_name => 'Application',\r\n                                  description      => ' ',\r\n                                  rule_set_name    => '',\r\n                                  get_expr         => 'UPPER(SYS_CONTEXT('USERENV ',' MODULE '))',\r\n                                  validate_expr    => '',\r\n                                  identify_by      => 1,\r\n                                  labeled_by       => 0,\r\n                                  eval_options     => 1,\r\n                                  audit_options    => 0,\r\n                                  fail_options     => 1);\r\nend;\r\n\r\n<\/pre>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b89\u5168\u7684PL\/SQL Developer\uff0c\u6d4b\u8bd5\u4e00\u4e0b\u662f\u5426\u80fd\u6b63\u786e\u53d6\u5230\u503c\uff1a<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image008-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image008\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image008_thumb-1.jpg\" alt=\"clip_image008\" width=\"895\" height=\"463\" border=\"0\" \/><\/a><\/p>\n<h4><span style=\"font-weight: bold;\">\u521b\u5efa\u89c4\u5219\uff1a<\/span><\/h4>\n<p>\u89c4\u5219\u540d\u4e3aRULE1\uff0c\u8868\u8fbe\u5f0f\u7684\u542b\u4e49\u662f\uff1a\u5ba2\u6237\u7aef\u6a21\u5757\u540d\u4e0d\u80fd\u662fPL\u5f00\u5934\u7684\u5b57\u7b26\u4e32\uff0c\u6216\u8005\u7528\u6237\u4e0d\u662fSYS\u548cSYSTEM\uff1a<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image010-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image010\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image010_thumb-1.jpg\" alt=\"clip_image010\" width=\"1358\" height=\"565\" border=\"0\" \/><\/a><\/p>\n<p>\u7b49\u6548\u547d\u4ee4\u884c\uff1a<\/p>\n<pre class=\"lang:plsql decode:true \">\r\nbegin\r\n  DVSYS.DBMS_MACADM.CREATE_RULE(rule_name => 'RULE1',\r\n                                rule_expr => 'DVF.F$MODULE NOT LIKE ''PL%'' OR (SYS_CONTEXT(''USERENV'', ''SESSION_USER'') NOT IN (''SYS'',''SYSTEM''))');\r\nend;\r\n<\/pre>\n<h4>\u521b\u5efa\u89c4\u5219\u96c6<\/h4>\n<p>\u7b2c\u4e00\u6b65\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u5b57\u53ebRULESET1\u7684\u89c4\u5219\u96c6\uff0c\u6ce8\u610f\u8d4b\u503c\u9009\u9879\uff0c\u5168\u90e8\u4e3a\u201c\u771f\u201d\u7b49\u4e8e\u6240\u6709RULE\u4e4b\u95f4\u662fAND\u7684\u5173\u7cfb\uff1a<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image012-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image012\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image012_thumb-1.jpg\" alt=\"clip_image012\" width=\"624\" height=\"449\" border=\"0\" \/><\/a><\/p>\n<p>\u7b2c\u4e8c\u6b65\uff0c\u6dfb\u52a0\u89c4\u5219\uff0c\u7a0b\u5e8f\u6a21\u5757\u4e0d\u80fd\u4ee5PL\u5f00\u5934\uff0c\u6216\u8005\u7528\u6237\u4e0d\u662fSYS\u548cSYSTEM\uff0c\u8fd9\u6837\u666e\u901a\u6743\u9650\u7528\u6237\u53ef\u4ee5\u7528PL\/SQL Developer\u767b\u5f55\u3002<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image014-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image014\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image014_thumb-1.jpg\" alt=\"clip_image014\" width=\"949\" height=\"345\" border=\"0\" \/><\/a><\/p>\n<p>\u7b2c\u4e09\u6b65\uff0c\u5b9a\u4e49\u8fdd\u53cd\u89c4\u5219\u65f6\uff0c\u663e\u793a\u7684\u9519\u8bef\u53f7\u548c\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image016-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image016\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image016_thumb-1.jpg\" alt=\"clip_image016\" width=\"530\" height=\"452\" border=\"0\" \/><\/a><\/p>\n<p>\u7b49\u6548\u547d\u4ee4\u884c\uff1a<\/p>\n<pre class=\"lang:plsql decode:true \">\r\nbegin\r\n  DECLARE\r\n    x             VARCHAR2(40);\r\n    static_option BOOLEAN := FALSE;\r\n  BEGIN\r\n    x := 'N';\r\n    IF x = 'Y' THEN\r\n      static_option := TRUE;\r\n    ELSE\r\n      static_option := FALSE;\r\n    END IF;\r\n    DVSYS.DBMS_MACADM.CREATE_RULE_SET(rule_set_name   => 'RULESET1',\r\n                                      description     => ' ',\r\n                                      enabled         => 'Y',\r\n                                      eval_options    => 1,\r\n                                      audit_options   => 1,\r\n                                      fail_options    => 1,\r\n                                      fail_message    => '',\r\n                                      fail_code       => '',\r\n                                      handler_options => 0,\r\n                                      handler         => '',\r\n                                      is_static       => static_option);\r\n  END;\r\n  DVSYS.DBMS_MACADM.ADD_RULE_TO_RULE_SET(rule_set_name => 'RULESET1',\r\n                                         rule_name     => 'RULE1',\r\n                                         rule_order    => '1',\r\n                                         enabled       => 'Y');\r\nend;\r\n<\/pre>\n<h4><span style=\"font-weight: bold;\">\u5b9a\u4e49\u547d\u4ee4\u89c4\u5219<\/span><\/h4>\n<p>\u9488\u5bf9connect\u547d\u4ee4\uff0c\u5b9a\u4e49\u89c4\u5219\uff0c\u5173\u8054\u7684\u89c4\u5219\u96c6\uff0c\u5c31\u662f\u6211\u4eec\u4e0a\u9762\u521b\u5efa\u7684RULESET1\uff0c\u89c4\u5219\u96c6RULESET1\u4e2d\u7684\u89c4\u5219\u8fd4\u56de\u7ed3\u679c\u4e3a\u771f\u65f6\uff0c\u5141\u8bb8\u767b\u5f55\u6570\u636e\u5e93\u3002<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image018-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image018\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image018_thumb-1.jpg\" alt=\"clip_image018\" width=\"592\" height=\"299\" border=\"0\" \/><\/a><\/p>\n<p>\u7b49\u6548\u547d\u4ee4\u884c\uff1a<\/p>\n<pre class=\"lang:plsql decode:true \">\r\nbegin\r\n  DVSYS.DBMS_MACADM.CREATE_COMMAND_RULE(command       => 'CONNECT',\r\n                                        rule_set_name => 'RULESET1',\r\n                                        object_owner  => DBMS_ASSERT.ENQUOTE_NAME('%',FALSE),\r\n                                        object_name   => '%',\r\n                                        enabled       => 'Y');\r\nend;\r\n<\/pre>\n<h5>\u9650\u5236\u7279\u6743\u7528\u6237\u4f7f\u7528PL\/SQL Developer\u767b\u5f55\u7684\u6548\u679c<\/h5>\n<p>\u5982\u56fe\u6240\u793a\uff0c\u7528\u6237app1\u53ef\u7528PL\/SQL Developer\u767b\u5f55\u6570\u636e\u5e93\uff0c\u800c\u4f7f\u7528SYS\u7528\u6237\u5219\u4e0d\u53ef\u4ee5\uff1a<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image020-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image020\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image020_thumb-1.jpg\" alt=\"clip_image020\" width=\"1310\" height=\"692\" border=\"0\" \/><\/a><\/p>\n<h3><\/h3>\n<h3><span style=\"font-weight: bold;\">\u9650\u5236\u7279\u6743\u7528\u6237\u521b\u5efa\u5bf9\u8c61<\/span><\/h3>\n<p>\u6211\u4eec\u5c31\u4ee5\u6bd4\u7279\u5e01\u52d2\u7d22\u4e3a\u4f8b\uff0c\u6211\u4eec\u8981\u60f3\u9632\u8303\uff0c\u53ef\u4ee5\u8ba9sys\u7528\u6237\u4e0d\u80fd\u521b\u5efa\u89e6\u53d1\u5668\u3002<\/p>\n<p>\u521b\u5efa\u89c4\u5219\uff0c\u8868\u8fbe\u5f0f\u542b\u4e49\uff1a\u4f1a\u8bdd\u7528\u6237\u4e0d\u662fSYS\u548cSYSTEM<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image022-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image022\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image022_thumb-1.jpg\" alt=\"clip_image022\" width=\"1085\" height=\"135\" border=\"0\" \/><\/a><\/p>\n<p>\u521b\u5efa\u89c4\u5219\u96c6RULESET2\uff0c\u91cc\u9762\u53ea\u6709\u4e00\u4e2a\u89c4\u5219\uff0c\u5c31\u662fRULE2\uff1a<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image024-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image024\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image024_thumb-1.jpg\" alt=\"clip_image024\" width=\"1042\" height=\"469\" border=\"0\" \/><\/a><\/p>\n<p>\u9488\u5bf9\u547d\u4ee4\u201cCREATE TRIGGER\u201d\u521b\u5efa\u89c4\u5219\uff1a\u7ec4\u5408\u5728\u4e00\u8d77\u7684\u610f\u601d\u5c31\u662f\uff0c\u5f53\u4f1a\u8bdd\u7528\u6237\u4e0d\u662fSYS\u6216SYSTEM\u65f6\uff0c\u53ef\u4ee5\u521b\u5efa\u89e6\u53d1\u5668\uff0c\u5982\u679c\u7528\u6237\u662fSYS\u548cSYSTEM\uff0c\u5f53\u5c1d\u8bd5\u521b\u5efa\u89e6\u53d1\u5668\u65f6\uff0c\u4f1a\u62a5\u9519\uff1a\u201dsys and system can not create objects\u201d\u3002<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image026-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"clip_image026\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image026_thumb-1.jpg\" alt=\"clip_image026\" width=\"886\" height=\"119\" border=\"0\" \/><\/a><\/p>\n<p>\u9650\u5236\u7279\u6743\u7528\u6237\u521b\u5efa\u89e6\u53d1\u5668\u7684\u6548\u679c\uff1a<\/p>\n<pre class=\"lang:default decode:true \" >[oracle@oel65vm1 ~]$ sqlplus sys\/welcome1 as sysdba\r\n\r\nSQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 21 12:07:12 2017\r\n\r\nCopyright (c) 1982, 2014, Oracle.  All rights reserved.\r\n\r\n\r\nConnected to:\r\nOracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production\r\nWith the Partitioning, Oracle Label Security, OLAP, Advanced Analytics,\r\nOracle Database Vault and Real Application Testing options\r\n\r\nSQL&gt; create or replace trigger test_tigger\r\n  2  after startup on database\r\n  3  begin\r\n  4     insert into log_table values(1);\r\n  5     commit;\r\n  6  end;\r\n  7  \/\r\nafter startup on database\r\n                 *\r\nERROR at line 2:\r\nORA-47306: 20003: sys and system can not create objects\r\n<\/pre>\n<p>\u666e\u901a\u7528\u6237\u4ecd\u7136\u53ef\u4ee5\u521b\u5efa\u89e6\u53d1\u5668\uff1a<\/p>\n<pre class=\"lang:default decode:true \" >SQL&gt;\r\nSQL&gt; connect app1\/welcome1\r\nConnected.\r\nSQL&gt; \r\nSQL&gt; create or replace trigger test_tigger\r\n  2  after insert on log_table\r\n  3  begin\r\n  4     insert into log_table values(999);\r\n  5     commit;\r\n  6  end;\r\n  7  \/\r\n\r\nTrigger created.\r\n\r\nSQL&gt;\r\n<\/pre>\n<p>\u53e6\u5916\uff0cSQL*PLUS\u4e5f\u80fd\u767b\u5f55\u540e\uff0c\u81ea\u52a8\u6267\u884c\u811a\u672c\uff0c\u8fd9\u5c31\u5206\u4e24\u79cd\u60c5\u51b5\uff0c\u672c\u5730\u548c\u8fdc\u7a0b\uff0c\u672c\u5730\u76f8\u5bf9\u5b89\u5168\u4e9b\uff0c\u8fdc\u7a0b\u7684\u5c31\u4e0d\u597d\u8bb2\u4e86\uff0c\u5176\u5b9e\u4e5f\u5e94\u8be5\u7981\u6b62\u8fdc\u7a0bSQL*PLUS\u7684\u8bbf\u95ee\u3002<\/p>\n<p>\u5176\u6b21\uff0c\u5bf9\u4e8e\u6295\u4ea7\u7684\u6570\u636e\u5e93\u6765\u8bb2\uff0c\u7279\u6743\u7528\u6237\uff0c\u6bd4\u5982SYS\uff0cSYSTEM\uff0c\u57fa\u672c\u4e0d\u4f1a\u6709\u521b\u5efa\u5b58\u50a8\u8fc7\u7a0b\uff0c\u89e6\u53d1\u5668\u7b49\u5bf9\u8c61\u7684\u9700\u6c42\uff0c\u6240\u4ee5\u9650\u5236\u4e86\u8fd9\u5757\uff0c\u5bf9\u5b9e\u9645\u5de5\u4f5c\u5f71\u54cd\u4e0d\u5927\uff0c\u5982\u679c\u5b9e\u5728\u8981\u521b\u5efa\u89e6\u53d1\u5668\uff0c\u53ef\u4ee5\u4e34\u65f6disable\u5bf9\u5e94\u7684\u547d\u4ee4\u89c4\u5219\uff0c\u6267\u884c\u5b8c\u518denable\uff0c\u8fd9\u6837\u4e00\u6765\u5c31\u8981\u6709\u76f8\u5e94\u7684\u5ba1\u6279\u786e\u8ba4\u6d41\u7a0b\uff0c\u5c31\u53ef\u4ee5\u907f\u514d\u5728\u4e0d\u77e5\u4e0d\u89c9\u4e2d\u201c\u4e2d\u62db\u201d\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u5de5\u5177\u518d\u597d\uff0c\u6ca1\u6709\u5236\u5ea6\u914d\u5408\u4e5f\u4e0d\u884c\uff0c\u50cfDV\u8fd9\u79cd\u5de5\u5177\uff0c\u5c31\u6015DV Owner\u8d26\u53f7\u4fe1\u606f\u6ee1\u5929\u98de\uff0c\u8c01\u90fd\u53ef\u4ee5\u968f\u610f\u53d8\u66f4DV\u7684\u6743\u9650\u89c4\u5219\uff0c\u90a3\u5c31\u53c8\u56de\u5230\u8001\u8def\u4e0a\uff0cDV\u7684\u4fdd\u62a4\u4f5c\u7528\u4e5f\u5c31\u540d\u5b58\u5b9e\u4ea1\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u4f5c\u4e3aOracle DBA\uff0c\u5e94\u8be5\u90fd\u4f1a\u77e5\u9053\u524d\u4e00\u9635\u6709\u4eba\u501f\u52a9PL\/SQL Developer\u7684\u81ea\u52a8\u6267\u884c\u811a\u672c\uff0c\u7834\u574fOracle\u6570\u636e\u5e93\uff0c\u5e76\u52d2\u7d22\u6bd4\u7279\u5e01\u7684\u4e8b\u60c5\u3002\uff08&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/21\/444\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":446,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6],"tags":[9,12,10],"class_list":["post-444","post","type-post","status-publish","format-aside","has-post-thumbnail","hentry","category-oracle","tag-oracle","tag-oracle-enterprise-manager","tag-security","post_format-post-format-aside"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/14525862775525.jpg","jetpack_shortlink":"https:\/\/wp.me\/p8gSFq-7a","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":136,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/07\/136\/","url_meta":{"origin":444,"position":0},"title":"\u4f7f\u7528\u6280\u672f\u624b\u6bb5\u9650\u5236DBA\u7684\u5371\u9669\u64cd\u4f5c","author":"raobing","date":"2017-01-07","format":"aside","excerpt":"\u6982\u8ff0 \u4f17\u6240\u5468\u77e5\uff0c\u5728\u4e1a\u52a1\u9ad8\u5cf0\u671f\uff0c\u67d0\u4e9b\u9488\u5bf9Oracle\u6570\u636e\u5e93\u7684\u64cd\u4f5c\u5177\u6709\u5f88\u9ad8\u7684\u98ce\u9669\uff0c\u6bd4\u5982\u4fee\u6539\u8868\u7ed3\u6784\u3001\u4fee\u6539\u5b9e\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/010717_1123_1.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":182,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/07\/182\/","url_meta":{"origin":444,"position":1},"title":"Database Replay\u548cConsolidated Database replay","author":"raobing","date":"2017-01-07","format":false,"excerpt":"\u7b80\u4ecb \u5728\u6570\u636e\u5e93\u7684\u8fc1\u79fb\u548c\u5347\u7ea7\u573a\u666f\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u4e00\u4e2a\u95ee\u9898\uff1a\u5728\u505a\u538b\u529b\u6d4b\u8bd5\u65f6\uff0c\u5982\u4f55\u6a21\u62df\u771f\u5b9e\u7684\u4e1a\u52a1\u538b\u529b\uff0c\u89e3\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/010717_1407_DatabaseRep1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/010717_1407_DatabaseRep1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/010717_1407_DatabaseRep1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":518,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/22\/518\/","url_meta":{"origin":444,"position":2},"title":"Oracle Database 12c Data Redaction","author":"raobing","date":"2017-01-22","format":"aside","excerpt":"\u00a0 \u4ec0\u4e48\u662fData Redaction Data Redaction\u662fOracle Dat\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image034_thumb-1.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image034_thumb-1.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image034_thumb-1.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":470,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/22\/470\/","url_meta":{"origin":444,"position":3},"title":"\u6df7\u5408\u5217\u538b\u7f29\u548cOracle ZFS\u5b58\u50a8\u4e00\u4f53\u673a","author":"raobing","date":"2017-01-22","format":"aside","excerpt":"\u00a0 \u6df7\u5408\u5217\u538b\u7f29\uff08HCC\uff09\u7b80\u4ecb \u6df7\u5408\u5217\u538b\u7f29\uff08HCC\uff09\u6700\u65e9\u662fOracle Exadata\u7684\u72ec\u7279\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image012_thumb-2.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image012_thumb-2.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image012_thumb-2.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":205,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/07\/205\/","url_meta":{"origin":444,"position":4},"title":"\u5229\u7528Oracle RUEI+EM12c\u8fdb\u884c\u5e94\u7528\u7684\u201c\u7aef\u5230\u7aef\u201d\u6027\u80fd\u8bca\u65ad","author":"raobing","date":"2017-01-07","format":false,"excerpt":"\u6982\u8ff0 \u6211\u4eec\u77e5\u9053\uff0c\u5f71\u54cd\u4e00\u4e2aB\/S\u5e94\u7528\u6027\u80fd\u7684\u56e0\u7d20\uff0c\u7c97\u7565\u5730\u8bf4\uff0c\u6709\u4ee5\u4e0b\u51e0\u4e2a\u5927\u7684\u73af\u8282\uff1a \u5ba2\u6237\u7aef\u73af\u8282 \u7f51\u7edc\u73af\u8282\uff08\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/010717_1555_OracleRUEIE1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/010717_1555_OracleRUEIE1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/010717_1555_OracleRUEIE1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":627,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/03\/14\/627\/","url_meta":{"origin":444,"position":5},"title":"\u5b89\u88c5Oracle APEX\uff08Application Express\uff095.1","author":"raobing","date":"2017-03-14","format":"aside","excerpt":"Oracle APEX \u7684\u6700\u65b0\u7248\u672c\u662f5.1\uff0c\u8fd9\u4e2a\u7248\u672c\u5f15\u5165\u4e86\u4e00\u4e9b\u65b0\u7279\u6027\uff0c\u6bd4\u5982Oracle JET Ch\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/03\/clip_image001.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/comments?post=444"}],"version-history":[{"count":5,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":451,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts\/444\/revisions\/451"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/media\/446"}],"wp:attachment":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/media?parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/categories?post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/tags?post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}