Hi All,
we have done compression on the Pre-production system and now starting PRD system this weekend.
I have gone through few posts like:
Oracle Compression using BRSPACE
1436352 - Oracle Database 11g Advanced Compression for SAP Systems
1431296 - LOB conversion and table compression with BRSPACE 7.20
And others but still not very clear, now we have done compression in Pre-production and the DB size has been reduced to 60%. I can see that
SQL> SELECT count(*) FROM user_tables where compression='DISABLED';
COUNT(*)
----------
947
SQL> SELECT count(*) FROM user_tables where compression='ENABLED';
COUNT(*)
----------
0
How to enable Compression on user tables when we have already enabled Compression at Tablespace level(PSAPSR3Z and PSAPSR3700Z).
Another thing is " Is it required to enable compression for other Indexes also before reorg?" if yes then is there any way to do it in mass apart from doing it individually with "ALTER INDEX "<index_name>" REBUILD ONLINE COMPRESS 2;" for User_tables.
EX:
SQL> SELECT table_name, compression, compress_for FROM user_tables where compression='DISABLED';
TABLE_NAME COMPRESS COMPRESS_FOR
------------------------------ -------- ------------
LOB$ DISABLED
VIEWTRCOL$ DISABLED
ICOL$ DISABLED
REFCON$ DISABLED
ATTRCOL$ DISABLED
COLTYPE$ DISABLED
ICOLDEP$ DISABLED
LIBRARY$ DISABLED
IND$ DISABLED
TAB$ DISABLED
ASSEMBLY$ DISABLED
TABLE_NAME COMPRESS COMPRESS_FOR
------------------------------ -------- ------------
SUBCOLTYPE$ DISABLED
CLU$ DISABLED
OPQTYPE$ DISABLED
COL$ DISABLED
TYPE_MISC$ DISABLED
NTAB$ DISABLED
FET$ DISABLED
TS$ DISABLED
UET$ DISABLED
SEG$ DISABLED
USER$ DISABLED
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Is only a few example for your reference.
Thanks and Regards,
Sharib Tasneem