Solved

Datafile

Posted on 2011-02-15
6
252 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 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
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 76

Assisted Solution

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

Author Comment

by:msimons4
Comment Utility
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
>>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
Comment Utility
If rows were deleted how do you get the space back after moving it?
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now