Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Datafile

Posted on 2011-02-15
6
Medium Priority
?
261 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
  • 4
  • 2
6 Comments
 
LVL 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 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 78

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 78

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 2000 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 78

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Suggested Courses

885 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