{"id":490,"date":"2020-08-03T11:31:41","date_gmt":"2020-08-03T03:31:41","guid":{"rendered":"http:\/\/www.821121.com\/?p=490"},"modified":"2020-12-11T09:56:03","modified_gmt":"2020-12-11T01:56:03","slug":"%e7%b3%bb%e7%bb%9f%e5%8f%82%e6%95%b0%ef%bc%9aenable_ddl_logging%e5%bc%80%e5%90%afddl%e6%93%8d%e4%bd%9c%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=490","title":{"rendered":"\u6570\u636e\u5e93\u53c2\u6570\uff1aENABLE_DDL_LOGGING\u5f00\u542fDDL\u64cd\u4f5c\u8bb0\u5f55"},"content":{"rendered":"<p>ENABLE_DDL_LOGGING\u9ed8\u8ba4\u4e3afalse\u3002\u53ef\u4ee5\u5728\u7ebf\u4fee\u6539\u4e3atrue\u3002<\/p>\n<pre><code class=\"language-sql\">SQL&gt; show parameter ENABLE_DDL_LOGGING \n\nNAME                                 TYPE        VALUE\n------------------------------------ ----------- ------------------------------\nenable_ddl_logging                   boolean     FALSE<\/code><\/pre>\n<p>\u4fee\u6539\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-sql\">alter system set enable_ddl_logging=true;<\/code><\/pre>\n<p>\u65e5\u5fd7\u5206\u522b\u8bb0\u5f55\u5230xml\u6587\u4ef6\u4e0e\u6587\u672c\u6587\u4ef6\u4e2d\u3002xml\u6587\u4ef6\u5728ADR home\u7684log\/ddl\u8def\u5f84\u4e0b\uff0c\u6587\u672c\u6587\u4ef6\u5728$ORACLE_BASE\/diag\/rdbms\/<db_name>\/<instance_name>\/log\/ddl_<SID>.log\u4e2d\u3002<br \/>\n\u4f1a\u8bb0\u5f55\u4ee5\u4e0b\u7684\u64cd\u4f5c\uff1a<br \/>\nALTER\/CREATE\/DROP\/TRUNCATE CLUSTER<br \/>\nALTER\/CREATE\/DROP FUNCTION<br \/>\nALTER\/CREATE\/DROP INDEX<br \/>\nALTER\/CREATE\/DROP OUTLINE<br \/>\nALTER\/CREATE\/DROP PACKAGE<br \/>\nALTER\/CREATE\/DROP PACKAGE BODY<br \/>\nALTER\/CREATE\/DROP PROCEDURE<br \/>\nALTER\/CREATE\/DROP PROFILE<br \/>\nALTER\/CREATE\/DROP SEQUENCE<br \/>\nCREATE\/DROP SYNONYM<br \/>\nALTER\/CREATE\/DROP\/RENAME\/TRUNCATE TABLE<br \/>\nALTER\/CREATE\/DROP TRIGGER<br \/>\nALTER\/CREATE\/DROP TYPE<br \/>\nALTER\/CREATE\/DROP TYPE BODY<br \/>\nDROP USER<br \/>\nALTER\/CREATE\/DROP VIEW<br \/>\n\u572811.2.0.4.\u4e4b\u524d\u662f\u4e0d\u8bb0\u5f55RENAME table\u7684\u64cd\u4f5c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ENABLE_DDL_LOGGING\u9ed8\u8ba4\u4e3afals<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[],"class_list":["post-490","post","type-post","status-publish","format-standard","hentry","category-oracle-11g","category-oracle-12c"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=490"}],"version-history":[{"count":3,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":493,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions\/493"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}