메뉴 건너뛰기

Korea Oracle User Group

Guru's Articles

DDL Logging - 12c (조나단 루이스)

명품관 2016.04.26 11:02 조회 수 : 1498

출처 : https://jonathanlewis.wordpress.com/2016/04/25/ddl-logging/

 

DDL Logging – 12c

One of the little new features that should be most welcome in 12c is the ability to capture all DDL executed against the database. All it takes is a simple command (if you haven’t set the relevant parameter in the parameter file):

alter system set enable_ddl_logging = true;

All subsequent DDL will be logged to two different places (in two formats)

  • $ORACLE_BASE/diag/rdbms/{database}/{instance}/log/ddl/log.xml
  • $ORACLE_BASE/diag/rdbms/{database}/{instance}/log/ddl_{instance}.log

Unfortunately the one thing I really wanted to see doesn’t appear – probably because it doesn’t really count as DDL –  it’s the implicit DDL due to inserting into not-yet-existing partitions of an interval partitioned table.

Note: If you’re using a container database with pluggable databases then the DDL for all the pluggable databases goes into the same log file.

Update – Licensing

The following text in the Oracle 12c Database Licensing document has just been brought to my attention:

Licensed Parameters
The init.ora parameter ENABLE_DDL_LOGGING is licensed as part of the Database Lifecycle Management Pack when set to TRUE. When set to TRUE, the database reports schema changes in real time into the database alert log under the message group schema_ddl. The default setting is FALSE.

The licensing document is also linked to from the 12c online html page for the parameter.

The 11g parameter definition makes no mention of licensing, and the 11g “New Features” manual don’t mention the feature at all, but the parameter does get a special mention in the 11g licensing document where it is described as being part of the Change Management Pack.

init.ora Parameters
The use of the following init.ora parameter is licensed under Oracle Change Management Pack:
■ ENABLE_DDL_LOGGING: when set to TRUE (default: FALSE)

번호 제목 글쓴이 날짜 조회 수
공지 Guru's Article 게시판 용도 ecrossoug 2015.11.18 608
43 Troubleshooting Another Complex Performance Issue – Oracle direct path inserts and SEG$ contention file ecrossoug 2015.11.16 100
42 Brief about Workload Management in Oracle RAC file ecrossoug 2015.11.18 514
41 NOUG Session: How Cache Fusion Works file ecrossoug 2015.11.18 137
40 How many checkpoints in Oracle database ? [1] file 명품관 2015.11.20 284
39 Parallel Execution 12c New Features Overview file 명품관 2015.11.23 112
38 On Invokers and Outs file 명품관 2015.11.23 103
37 Top 5 SQL Monitor Features file 명품관 2015.12.01 780
36 Oracle Enterprise Manager Cloud Control 13c Release 1 (13.1.0.0) Installation on Oracle Linux 6 and 7 명품관 2015.12.23 203
35 Oracle 12c SQL – Using JSON 명품관 2015.12.29 2586
34 Upgrade a Pluggable Database in Oracle 12c 명품관 2015.12.30 174
33 (유투브) KISS series on Analytics: Dealing with null - Connor McDonald 명품관 2016.01.05 155
32 How do I capture a 10053 trace for a SQL statement called in a PL/SQL package? 명품관 2016.01.06 265
31 Why You Can Get ORA-00942 Errors with Flashback Query 명품관 2016.02.01 454
30 What is an In-Memory Compression Unit (IMCU)? 명품관 2016.02.24 181
29 Hybrid Columnar Compression Common Questions 명품관 2016.03.04 191
28 Parameter Recommendations for Oracle Database 12c - Part I 명품관 2016.03.07 846
27 Parameter Recommendations for Oracle Database 12c - Part II 명품관 2016.03.18 354
26 Oracle Linux 6.7 with Oracle 11.2.0.4 RAC 명품관 2016.04.15 9702
25 Quick tip on Function Based Indexes 명품관 2016.04.19 191
위로