Solved

Datafile

Posted on 2011-02-15
6
257 Views
Last Modified: 2012-06-27
I have move all tables from one tablespace to a newly created tablespace. I have also move and rebuilt all indexes from this tablespace to the new tablespace. When I query the anount of space each object is taking up there is a total of 800M. But the tablespace is taking up 17000M. What is responsible for taking up this extra space?
0
Comment
Question by:msimons4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 34899024
What size did you give to the new datafile when you created it?  If you turned on autoextend, what is the NEXT value you specified?
0
 
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
ID: 34899037
Please post the query you are using to determine the spaced used by the objects.
0
 

Author Comment

by:msimons4
ID: 34899079
I gave it 2048M when I created it with 50M auto extend.

Space used by objects:

SELECT distinct owner, segment_name, segment_type, a.bytes/1048576
FROM dba_extents a, dba_data_files b
WHERE a.file_id = b.file_id
AND b.file_name = '/u02/oradata/CORELITE/datafile/FLIP01.DBF'
order by 3;

0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
ID: 34899198
>>I have move all tables from one tablespace to a newly created tablespace

I'm pretty sure the MOVE commands keeps all allocated space for the original table but compresses them into a single extent.

So if the table have 100G allocated to it in 50 extents when you moved it, it now allocated 1-100G extent.

Did you specify new storage parameters when you moved it?

There is an example here:
http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tables006.htm#i1106606

0
 

Author Comment

by:msimons4
ID: 34900512
If rows were deleted how do you get the space back after moving it?
0
 
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
ID: 34902543
The move was to get it out of the tablespace and reset the High Water Mark so you could resize the original datafile.

It looks like you need to specify new storage parameters to reset the initial extent on a MOVE.

That said, you can try the new 10g shrink/resize from the link above.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question