on 01-10-2012 1:53 PM
Hello all,
we have a big table that size over than 2 To, partitionned into 12 parts. we want to do an online reorg for a single partition.
at the end of operation we get:
ORA-42012: error occurred while completing the redefinition
ORA-28665: table and partition must have same compression attribute
so i have checked partition configuration and i can see that compress is not activate but is activated for index partition.
i think about one solution, but i don't know if is the good way:
1- delete primary index
2- reorg
3- recreate index
did you think that is a good solution, is not dangerous to delete primary index?
or
is there any option to activate in brspace to skeep compression check?
thank you for your help
Can you verify the compression settings on the table and partitions?
SQL> select partition_name, table_name, compression, compress_for
from dba_tab_partitions where table_name = '<table_name>'
SQL> select table_name, compression, compress_for
from dba_tables where table_name = '<table_name>';
If this looks ok, and you only want to compress the indexes, then you should try to choose cind_only in the compression options for brspace.
Cheers Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Michael,
Thank you for your response.
first i try you query but compress_for not exist in dba_tab_partitions !!!
so i run query without this field
SQL> select partition_name, table_name, compression
2 from dba_tab_partitions where table_name = 'VBOX';
PARTITION_NAME TABLE_NAME COMPRESS
-
-
-
VBOX_201012_PART VBOX DISABLED
VBOX_201101_PART VBOX DISABLED
for the second query
SQL> select table_name, compression
2 from dba_tables where table_name ='VBOX';
TABLE_NAME COMPRESS
-
-
VBOX
result is compress field blanc
my problem is:
when i do an online reorg i got ORA-28665 because of compress option. so i want to know:
is there any option in brspace to avoid this error or to skeep compress check?
or
if i drop primary index before and create it affter reorg solve the issue?
Ok, my commands were indeed only for Oracle 11g as this is the supported release for SAP at the moment.
Dropping the primary index while the system is running is not a good idea. Sometimes the unique key constraint is depending on it, and it could be possible that duplicate values are generated. Secondary indexes can be dropped, but if they are heavily used you should be careful as well.
A much better solution would be to temporarily uncompress that index, do the reorg and recompress the index afterwards if needed.
Still it would be interesting if the global and partition setting for compression on the index are consistent. Maybe you can adapt my statements for the table to the index. Use dba_indexes and dba_ind_partitions instead. Only query the compression column.
Cheers Michael
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.