RDBMS 184.108.40.206: unrecoverable operations of Compression Advisor running dailyBy Martin | October 20th, 2011 | Category: 11gR2, Oracle Database | 2 comments
At one of my customers, we wondered about some entries in v$datafile.unrecoverable_change# for the most critical tablespace of the application. Certainly no application components were allowed to perform nologging operations for segments inside this tablespace and yet there was evidence that “something” was done with nologging.
- The unrecoverable_time was shortly after 10 pm
- The ASH data covering this time period showed activity by DBMS_SCHEDULER and Autotask Jobs.
- An internal DDL log table showed the following operations:
CREATE TABLE "MYOWNER".DBMS_TABCOMP_TEMP_UNCMP tablespace "DAT_MYOWNER" nologging AS SELECT /*+ FULL("MYOWNER"."MYTAB") */ * FROM "MYOWNER"."MYTAB" sample block( 3.55) mytab ; CREATE TABLE "MYOWNER".DBMS_TABCOMP_TEMP_CMP ORGANIZATION HEAP TABLESPACE "DAT_MYOWNER" COMPRESS FOR ALL OPERATIONS NOLOGGING AS SELECT * FROM "MYOWNER".DBMS_TABCOMP_TEMP_UNCMP MYTAB; DROP TABLE "MYOWNER".DBMS_TABCOMP_TEMP_UNCMP PURGE; DROP TABLE "MYOWNER".DBMS_TABCOMP_TEMP_CMP purge;
I find it suboptimal that Compression Advisor is executed on a daily basis during the maintenance window and that the Compression Advisor can not be seperately disabled without also disabling the Segment Advisor. (Although there is supposed to be an enhancement request open for this.)
In addition to that, it is more than problematic that the is using the user tablespace, which could lead to tablespace pressure and that the operations are performed as unrecoverable and therefore logged in v$datafile.unrecoverable_time, overwriting potential important information of real “user” operations performing with NOLOGGING.
More information about Compression Advisor can be found in MOS Note: How Does Compression Advisor Work? [ID 1284972.1]