메뉴 건너뛰기

Korea Oracle User Group

Guru's Articles

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

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

출처 : 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 600
24 11.1.0.6 부터 지원하는 Oracle Online Patching New Feature 명품관 2016.04.22 521
» DDL Logging - 12c (조나단 루이스) 명품관 2016.04.26 1497
22 On ROWNUM and Limiting Results (오라클 매거진 : AskTom) 명품관 2016.04.28 384
21 How to Recover Data (Without a Backup!) 명품관 2016.05.11 1355
20 How to change the database name in 12c 명품관 2016.05.31 1932
19 Can I apply a BP on top of a PSU? Or vice versa? 명품관 2016.06.01 396
18 V$EVENT_NAME 뷰의 Name 컬럼에 정의된 event name에서 오는 오해 명품관 2017.03.08 366
17 Different MOS Notes for xTTS PERL scripts – Use V4 scripts 명품관 2019.01.29 417
16 New Features in Oracle Database 19c 명품관 2019.02.02 538
15 New Features of Backup & Recovery in Oracle Database 19c 명품관 2019.02.07 427
14 New Features in Oracle Multitenant 19c 명품관 2019.02.07 739
13 Patch conflicts 명품관 2019.02.07 965
12 New Features of Security in Oracle Database 19c 명품관 2019.02.08 5045
11 New Features of Data Guard in Oracle Database 19c 명품관 2019.02.08 2000
10 New Features of RAC & ASM in Oracle 19c 명품관 2019.02.08 944
9 New Features of Performance Tuning in Oracle Database 19c 명품관 2019.02.08 914
8 More New Features in Oracle Database 19c 명품관 2019.02.08 6583
7 New initialization parameters, data dictionary views & dynamic performance views in Oracle Database 19c 명품관 2019.02.08 1910
6 SQL Tuning Workshop 명품관 2020.02.20 8152
5 SQL Window Functions Cheat Sheet 명품관 2020.05.26 435
위로