I have Locally Managed Tablespace I have exported one table from that tablespace with compress=y option and try to import that table into another tablespace but it is not creating one extent.
Is there any use of parameter compress if you have locally managed tablespace?
If you knew that your biggest table was 20mb, and you imported into a tablespace with a 20mb uniform extent size. Then you would only get one extent for each table. But it doesn't matter if you have more than one extent. My preference would be to have different sized tablespaces all uniform extent, with extent sizes of 1mb, 10mb, 100mb, depending on the actual size of your tables as well as how fast they will grow. If you use a uniform extent size, extents will always be the same size just like Jovery said.
Originally posted by jmodic
Why does Oracle still insist with the default of COMPRESS=Y after all those new releases since Oracle5 when this default was set?[/B] [/B]
If you have a table with 200 2Mb extents but it only contains 10Mb of data when you export the table with compress=y Oracle to take a sum of the total extents and use that for the intial value.
Hence when the object is recreated with the import it will be 400Mb in size to store 10Mb of data. If however, you use compress=N the object will be recreated with 5 extents occuppting just 10Mb.
Regards
Jim
Oracle Certified Professional "Build your reputation by helping other people build theirs."
"Sarcasm may be the lowest form of wit but its still funny"
Another, much more severe (a show stopper!) example of the potential problem when using COMPRESS=Y:
You have a table with 5 extents of 500MB each that was exported with COMPRESS=Y. Now you want to import this table. You have plenty of space in your destination tablespace, say 10GB, but this tablespace is composed of 5 datafiles, each 2GB in size. You won't be able to import it, since the initial extent will require 2.5 GB of space and an extent can not span the datafiles!
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Bookmarks