- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ORA-03297: file contains used data beyond requeste...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 07:01 AM
тАО06-04-2008 07:01 AM
ORA-03297: file contains used data beyond requested RESIZE value
I am working on index Tablespace which is having around 20GB of Free Space,
But when I tried to release space by resizing the datafiles it is giving me following error.
ALTER DATABASE DATAFILE '/d001/pistss_2006_01.dbf' RESIZE 3000M;
*
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE value
This tablespace only contain indexes in it and the tablespace has been created as segment space management Manual.
Please suggest if any one has faces such issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 08:26 AM
тАО06-04-2008 08:26 AM
Re: ORA-03297: file contains used data beyond requested RESIZE value
The file doesn't have data in it in one place. It's scattered. So, what this is telling you is that the space that you tried to reduce has data in it. If you go in and rebuild all the indexes, you should be able to get some or maybe even most of the space back.
Did you get 20G free by rebuilding or removing other indexes? If so, you've left holes in the data areas totalling 20G, but you've still got data between 3G and the end of file.
Look in the dba_segments table, and determine what objects have data in the table space, and, if it is indexes as you say - do an "alter index
Start rebuilding indexes and see if you get some space back. Do the rebuilds during offline times, unless you're going to do some online index rebuilding - but by all means research that as a topic in and of itself, and test in a non-production environment before you do so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 09:31 AM
тАО06-04-2008 09:31 AM
Re: ORA-03297: file contains used data beyond requested RESIZE value
How about using the current data to nicely size a whole fresh new index data area for all indexes in the area for the targetted datafile. Possibly base the new area on a single file (allowing extends).
Now in semi-down time, slow time, drop the current indexes and build in the new area/file. Eventually all indexes will have been moved and the old area and its files can be dropped.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 12:49 PM
тАО06-04-2008 12:49 PM
Re: ORA-03297: file contains used data beyond requested RESIZE value
I do this periodically and successfully retrieve space quite easily, especially in dedicated index areas where no "automatic" indexes, etc. get created for you.
Make no mistake however, when Hein gives advice, most everyone would do well to pay attention - and that's why I'm reluctant to say anything. It's just that this situation is pretty common (after purge and archive processes finish) and doesn't usually necessitate a full rebuild of the index space. That, like most things, just depends.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 01:30 PM
тАО06-04-2008 01:30 PM
Re: ORA-03297: file contains used data beyond requested RESIZE value
You are too kind. I'm just trying to help left and right.
The problem I see with a simple rebuild is that you have no real control over where, specifically in which file, oracle chooses to allocate the pages for the fresh index.
You may have expectations and past experience, but no real control... no SQL syntax.
So you could actually quit possily end up with more pages used in the targetted file than before the rebuild.
Cheers,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 02:10 PM
тАО06-04-2008 02:10 PM
Re: ORA-03297: file contains used data beyond requested RESIZE value
re:
>>You are too kind. I'm just trying to help left and right.
Nope - not being kind - I have lots of respect for advice given by you. No exaggeration.
Re:
>>So you could actually quit possily end up with more pages used in the targeted file than before the rebuild.
That's true - but usually only when you've got not much slack space in a tablespaces' files. The new consumption would be created if needed to create the new index in place, while leaving the old index intact, until the event is complete - meaning that it takes up roughly twice the space for the index, until the process is complete. In a full tablespace, this is a real issue - however, in this case, he's trying to drop 20G down to 3G, so that's highly unlikely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2008 02:52 PM
тАО06-04-2008 02:52 PM
Re: ORA-03297: file contains used data beyond requested RESIZE value
Our DBA has in the past done some kind of defragmentation on a database data file to make the free space contiguous so that he could release the space at the end of the file. So look into defragmenting the index table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2008 12:21 AM
тАО06-07-2008 12:21 AM
Re: ORA-03297: file contains used data beyond requested RESIZE value
this seems to be related to a known Highwatermark issue.
see metalink note: 130866.1
Subject: How to Resolve ORA-03297 When Resizing a Datafile by Finding the Table Highwatermark
if you need any further assistance, please let us know.
kind regards
yogeeraj