Enterprise Manager Grid Control Shows Wrong DDL On Tables With Compress For OLTP (Doc ID 1270722.1)

Last updated on MARCH 27, 2014

Applies to:

Enterprise Manager - Core Platform - Version: 10.2.0.5 to 10.2.0.5 - Release: 10.2 to 10.2
Oracle Server - Enterprise Edition - Version: 11.1.0.6 to 11.2.0.2   [Release: 11.1 to 11.2]
Information in this document applies to any platform.

Symptoms

Checking compression information on a table created with advanced compression enabled (compress for all operations), which is available only from 11g onwards, Grid Control just reports compression as pre-11g (compress for direct load).

Such behavior is reported in Enterprise Manager Grid Control (EMGC) 10.2.0.5, which is supposed to be able to manage 11g databases and advanced compression.

Testcase to reproduce this behavior

* Create a compress-for-all-operations table. That step can be done at EMGC or in SQLPlus:

CREATE TABLE "SYS"."TEST_COMPRESS" ( "COL1" VARCHAR2(100)) COMPRESS FOR ALL OPERATIONS;


* Check compression for this table on database, and it shows COMPRESS=ENABLED and COMPRESS_FOR=OLTP, so it was created successfully 

SELECT TABLE_NAME, COMPRESSION, COMPRESS_FOR FROM DBA_TABLES WHERE TABLE_NAME='TEST_COMPRESS'; 


* Trying to get DDL script for that table at EMGC just reports "COMPRESS FOR DIRECT_LOAD OPERATIONS":

CREATE TABLE "SYS"."TEST_COMPRESS" ( "COL1" VARCHAR2(100)) TABLESPACE 
"SYSTEM" PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 64K
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) LOGGING COMPRESS FOR
DIRECT_LOAD OPERATIONS
  
Checking the table information, we can see that the OMS shows:
Compression Enabled on direct-path INSERT operations only

Changes

Even after installing patches suggested in note 953846.1, still seeing "wrong" compress info for table.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms