Home » RDBMS Server » Server Administration » Difference between Partition Compress (Oracle 10g, Enterprise linux)
Difference between Partition Compress [message #482318] Thu, 11 November 2010 01:10 Go to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
Hi,

I am using compress partition for a large table.During the process I have used the below command for compress---

1. ALTER TABLE <TABLE_NAME> MODIFY PARTITION P1 COMPRESS;

However I found there are different command as below:-

2. ALTER TABLE <TABLE_NAME> MOVE PARTITION P1 COMPRESS;

What is the basic difference between these two as the compression is happening for both command.

Regrads-
P
Re: Difference between Partition Compress [message #482327 is a reply to message #482318] Thu, 11 November 2010 01:26 Go to previous messageGo to next message
Michel Cadot
Messages: 68651
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
The first one allows compression for the future.
The second one activates the compression and compress the current data.

Regards
Michel
Re: Difference between Partition Compress [message #482337 is a reply to message #482327] Thu, 11 November 2010 01:48 Go to previous messageGo to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
I have 10,000 rows at P1 partition.
If I use ---
ALTER TABLE <TABLE_NAME> MODIFY PARTITION P1 COMPRESS; it will compress data from 10001 th rows.The previous 10000 th rows will be un-compressed.

And if I use the second one----
ALTER TABLE <TABLE_NAME> MOVE PARTITION P1 COMPRESS; it will compress 10000 th rows as well as the current data.

Am I currect?


Thanks-
P



Re: Difference between Partition Compress [message #482342 is a reply to message #482337] Thu, 11 November 2010 02:01 Go to previous message
Michel Cadot
Messages: 68651
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Yes and no.
Yes, in the principle.
No, in the example. In 10g, compression happens on direct load not on single insert.

Regards
Michel
Previous Topic: Setting up ASM using ASMLib On Native Linux Multipath Mapper
Next Topic: UNDO TABLE SPACE
Goto Forum:
  


Current Time: Wed May 15 14:45:52 CDT 2024