Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to find objects in a Datafile?
Joel Garry wrote:
> learning_still_at_hotmail.com (Newbie) wrote in message news:<6093c29e.0405030424.707c0c4_at_posting.google.com>...
>
>>Hi, >> >>Can we find what all objects lie in a datafile? >> >>I have 3 datafiles mapped to a tbsp, out of which 1 has become really >>HUUGE =~ 24GB. Datafile usage in OEM shows a measly 0.5% full. >>Resizing the datafile says "file contains used data beyond requested >>RESIZE value". >> >>Please suggest what to do in this situation. >> >>TIA.
I have also had very good results using OEM Tablespace Map. If nothing else, it tells you how much you can successfully shrink each datafile, using the table view as Joel describes, avoiding the "file contains data beyond request" message. After that, "export/import" or "move" as previously advised is the most effective.
Datafile autoextension is a tool like any other. Use it well or use it poorly. As an example, if I estimate a datafile needs to be created at 1GB in size, I might set it to autoincrement by 50MB at a time to a max of 2 GB -- after I have made sure the server has the disk space available, of course. The more stable the database, the less guess work involved... you need to be aware of growth trends! But I don't like to get paged overnight for lack of a few spare megabytes in the production system.
--Mark Bole Received on Wed May 05 2004 - 21:54:17 CDT