{"id":347,"date":"2011-11-23T21:53:12","date_gmt":"2011-11-23T13:53:12","guid":{"rendered":"https:\/\/blog.rexdf.org\/?p=347"},"modified":"2011-11-23T21:53:12","modified_gmt":"2011-11-23T13:53:12","slug":"audit-in-session-current%e6%97%a0%e6%b3%95noaudit","status":"publish","type":"post","link":"https:\/\/blog.rexdf.org\/ja\/2011\/11\/audit-in-session-current%e6%97%a0%e6%b3%95noaudit\/","title":{"rendered":"AUDIT IN SESSION CURRENT\u65e0\u6cd5NOAUDIT"},"content":{"rendered":"<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; text-indent: 21pt;\"><span style=\"font-family: \u5b8b\u4f53;\"><span style=\"font-size: small;\"><span style=\"font-family: \u5b8b\u4f53;\">\u524d\u4e24\u5929\u770b\u6587\u6863\u63d0\u5230<span lang=\"EN-US\">AUDIT IN SESSION CURRENT<\/span>\u65b9\u5f0f\uff0c\u65e0\u6cd5\u901a\u8fc7<span lang=\"EN-US\">NOAUDIT<\/span>\u547d\u4ee4\u53d6\u6d88\u5ba1\u8ba1\uff0c\u53ea\u6709\u7528\u6237\u9000\u51fa\u8fde\u63a5\u5ba1\u8ba1\u8bbe\u7f6e\u624d\u81ea\u52a8\u7ed3\u675f\u3002<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; text-indent: 21pt;\">\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; text-indent: 21pt;\">\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; text-indent: 21pt;\"><span style=\"font-size: small;\"><span style=\"font-family: \u5b8b\u4f53;\">\u5148\u6765\u770b\u6b63\u5e38\u7684\u5ba1\u8ba1\u7279\u70b9\uff1a<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; conn yangtk\/yangtk<br \/>\n<\/span><span style=\"font-size: 9pt;\">\u5df2\u8fde\u63a5\u3002<span lang=\"EN-US\"><br \/>\nSQL&gt; create table t_1 (id number);<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u8868\u5df2\u521b\u5efa\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; select owner, obj_name, action_name<br \/>\n2 from user_audit_trail<br \/>\n3 where action_name = &#8216;CREATE TABLE&#8217;<br \/>\n4 and timestamp &gt; trunc(sysdate);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u672a\u9009\u5b9a\u884c<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; audit create table;<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u5ba1\u8ba1\u5df2\u6210\u529f\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; create table t_2 (id number);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u8868\u5df2\u521b\u5efa\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; select owner, obj_name, action_name<br \/>\n2 from user_audit_trail<br \/>\n3 where action_name = &#8216;CREATE TABLE&#8217;<br \/>\n4 and timestamp &gt; trunc(sysdate);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u672a\u9009\u5b9a\u884c<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; conn yangtk\/yangtk<br \/>\n<\/span><span style=\"font-size: 9pt;\">\u5df2\u8fde\u63a5\u3002<span lang=\"EN-US\"><br \/>\nSQL&gt; create table t_3 (id number);<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u8868\u5df2\u521b\u5efa\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; select owner, obj_name, action_name<br \/>\n2 from user_audit_trail<br \/>\n3 where action_name = &#8216;CREATE TABLE&#8217;<br \/>\n4 and timestamp &gt; trunc(sysdate);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">OWNER OBJ_NAME ACTION_NAME<br \/>\n&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nYANGTK T_3 CREATE TABLE<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; noaudit create table; <\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u5ba1\u8ba1\u672a\u6210\u529f\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; create table t_4 (id number);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u8868\u5df2\u521b\u5efa\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; select owner, obj_name, action_name<br \/>\n2 from user_audit_trail<br \/>\n3 where action_name = &#8216;CREATE TABLE&#8217;<br \/>\n4 and timestamp &gt; trunc(sysdate);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">OWNER OBJ_NAME ACTION_NAME<br \/>\n&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nYANGTK T_3 CREATE TABLE<br \/>\nYANGTK T_4 CREATE TABLE<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; conn yangtk\/yangtk<br \/>\n<\/span><span style=\"font-size: 9pt;\">\u5df2\u8fde\u63a5\u3002<span lang=\"EN-US\"><br \/>\nSQL&gt; create table t_5 (id number);<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u8868\u5df2\u521b\u5efa\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; select owner, obj_name, action_name<br \/>\n2 from user_audit_trail<br \/>\n3 where action_name = &#8216;CREATE TABLE&#8217;<br \/>\n4 and timestamp &gt; trunc(sysdate);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">OWNER OBJ_NAME ACTION_NAME<br \/>\n&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nYANGTK T_3 CREATE TABLE<br \/>\nYANGTK T_4 CREATE TABLE<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; text-indent: 21pt;\"><span style=\"font-size: small;\"><span style=\"font-family: \u5b8b\u4f53;\">\u8fd9\u8bf4\u660e\u5ba1\u8ba1\u7684\u8bbe\u7f6e\u548c\u53d6\u6d88\u90fd\u53ea\u5bf9\u547d\u4ee4\u53d1\u51fa\u540e\u7684\u4f1a\u8bdd\u6709\u6548\uff0c\u800c\u5df2\u7ecf\u5728\u8fd0\u884c\u7684\u4f1a\u8bdd\u662f\u4e0d\u53d7\u8fd9\u4e2a\u547d\u4ee4\u5f71\u54cd\u7684\u3002<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; text-indent: 21pt;\"><span style=\"font-size: small;\"><span style=\"font-family: \u5b8b\u4f53;\">\u65b0\u7279\u6027<span style=\"font-family: \u5b8b\u4f53;\"><span lang=\"EN-US\">IN SESSION CURRENT<\/span>\u65b9\u5f0f\u6539\u53d8\u4e86\u8fd9\u4e00\u70b9\uff0c\u4f7f\u5f97\u5ba1\u8ba1\u5bf9\u4e14\u4ec5\u5bf9\u5f53\u524d\u4f1a\u8bdd\u751f\u6548\uff1a<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; audit create table in session current;<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u5ba1\u8ba1\u5df2\u6210\u529f\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; create table t_6 (id number);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\">\u8868\u5df2\u521b\u5efa\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; select owner, obj_name, action_name<br \/>\n2 from user_audit_trail<br \/>\n3 where action_name = &#8216;CREATE TABLE&#8217;<br \/>\n4 and timestamp &gt; trunc(sysdate);<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">OWNER OBJ_NAME ACTION_NAME<br \/>\n&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nYANGTK T_3 CREATE TABLE<br \/>\nYANGTK T_4 CREATE TABLE<br \/>\nYANGTK T_6 CREATE TABLE<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt; text-indent: 21pt;\"><span style=\"font-size: small;\"><span style=\"font-family: \u5b8b\u4f53;\">\u7531\u4e8e<span style=\"font-family: \u5b8b\u4f53;\"><span lang=\"EN-US\">Oracle<\/span>\u6ca1\u6709\u63d0\u4f9b<\/span><span style=\"font-family: \u5b8b\u4f53;\"><span lang=\"EN-US\">NOAUDIT IN SESSION CURRENT<\/span>\u8bed\u6cd5\uff0c\u800c\u76f4\u63a5<\/span><span style=\"font-family: \u5b8b\u4f53;\"><span lang=\"EN-US\">NOAUDIT<\/span>\u53c8\u5bf9\u5f53\u524d\u4f1a\u8bdd\u4e0d\u751f\u6548\uff0c\u663e\u7136\u662f\u6ca1\u6709\u529e\u6cd5\u53d6\u6d88<\/span><span style=\"font-family: \u5b8b\u4f53;\"><span lang=\"EN-US\">IN SESSION CURRENT<\/span>\u7684\u5ba1\u8ba1\u8bbe\u7f6e\u7684\u3002<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-size: 9pt;\" lang=\"EN-US\">SQL&gt; noaudit create table in session current;<br \/>\nnoaudit create table in session current<br \/>\n*<br \/>\n<\/span><span style=\"font-size: 9pt;\">\u7b2c<span lang=\"EN-US\">1<\/span>\u884c\u51fa\u73b0\u9519\u8bef<span lang=\"EN-US\">:<br \/>\nORA-46342:<\/span>\u4e0d\u80fd\u5bf9<span lang=\"EN-US\">IN SESSION<\/span>\u5b50\u53e5\u6267\u884c<span lang=\"EN-US\">NOAUDIT<\/span>\u547d\u4ee4<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u4e24\u5929\u770b\u6587\u6863\u63d0\u5230AUDIT IN SESSION CURRENT\u65b9\u5f0f\uff0c\u65e0\u6cd5\u901a\u8fc7N &hellip; <a href=\"https:\/\/blog.rexdf.org\/ja\/2011\/11\/audit-in-session-current%e6%97%a0%e6%b3%95noaudit\/\">\u7d9a\u304d\u3092\u8aad\u3080 <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_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[50],"class_list":["post-347","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-oracle-2"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":0,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}