Cannot resize the datafile

Hi All,
Previously i have enable the autoextened on for datafile but now i disable the autoextend but after autoextened off i cannot resize the datafile.
Please find the below example.
Total Free Free
Tablespace Data File Space [MB] Space [MB] %
TRUSTWARE01 E:\ORACLE\PRODUCT\10.2.0\ORADATA\WPABETA\TRUSTWARE01 14556.75 9275.13 63.72
D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF 17764.88 12684.81 71.40
D:\ORACLE\ORADATA\WPABETA\TRUSTWARE05.DBF 3225.56 397.13 12.31
SQL>
SQL> alter database datafile 'D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF' resize 10240M;
alter database datafile 'D:\ORACLE\ORADATA\WPABETA\TRUSTWARE02.DBF' resize 10240M
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE value

Try this, modify it to mention the tablespace name or the datafile name. This is from http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:153612348067
----------- maxshrink.sql ----------------------------------
set verify off
column file_name format a50 word_wrapped
column smallest format 999,990 heading "Smallest|Size|Poss."
column currsize format 999,990 heading "Current|Size"
column savings  format 999,990 heading "Poss.|Savings"
break on report
compute sum of savings on report
column value new_val blksize
select value from v$parameter where name = 'db_block_size'
select file_name,
       ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) smallest,
       ceil( blocks*&&blksize/1024/1024) currsize,
       ceil( blocks*&&blksize/1024/1024) -
       ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) savings
from dba_data_files a,
     ( select file_id, max(block_id+blocks-1) hwm
         from dba_extents
        group by file_id ) b
where a.file_id = b.file_id(+)
column cmd format a75 word_wrapped
select 'alter database datafile '''||file_name||''' resize ' ||
       ceil( (nvl(hwm,1)*&&blksize)/1024/1024 )  || 'm;' cmd
from dba_data_files a,
     ( select file_id, max(block_id+blocks-1) hwm
         from dba_extents
        group by file_id ) b
where a.file_id = b.file_id(+)
  and ceil( blocks*&&blksize/1024/1024) -
      ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) > 0
/Regards,
SK
Edited by: SK on Dec 6, 2010 9:36 AM

Similar Messages

  • Cannot resize the albums in album view in Itunes 11.  For those of us with large libraries (160gb), this is extremely frustrating.  I want to make the artwork smaller.  This seems to be a serious oversight.

    Cannot resize the albums in album view in Itunes 11.  For those of us with large libraries (160gb), this is extremely frustrating.  I want to make the artwork smaller.  This seems to be a serious oversight.

    I agree.
    It was very useful to reduce everything to small and quickly scan down looking for missing artwork.
    Particularly useful when I only connect to the machine with iTunes via screen sharing, so everything can be a bit slower to scroll through at times.
    In fact, itunes 11 when used purely as a server for Apple TV etc is a downgrade in usability IMO, as they've got rid of some of the useful views that helped me manage my library remotely.

  • [Flat File Source [2]] Error: Cannot open the datafile "VendorPurchases20050512.txt".

    hi
    I'm trying to use foreachloop container in order to read the data that i have in several txt files and upload it into MRR table. 
    when i'm trying to run the package, i'm getting the following error: 
    [Flat File Source [2]] Warning: The system cannot find the file specified.
    [Flat File Source [2]] Error: Cannot open the datafile "VendorPurchases20050512.txt".
    [SSIS.Pipeline] Error: Flat File Source failed the pre-execute phase and returned error code 0xC020200E.
    I don't know what's the problem since it was working before.In the flat file connection manager i defined all the path including the name of the file.
    I'll be happy for assistance
    thanks
    Yaron

    Hi Yaron,
    Does the file stored in local file system or a share folder on remote server? If you can load data from a file in local computer, but cannot load data from a file in a remote computer, the issue may be caused by the Kerberos authentication. In this condition,
    check the following points:
    Enable SQL Server for Kerberos
    Check delegation settings for SQL Server service account and Computer
    Add Host SPNs for FileShare Server and SQL Server
    References:
    http://msdn.microsoft.com/en-us/library/dd568720.aspx
    http://msdn.microsoft.com/en-us/library/ms191153.aspx
    Regards,
    Mike Yin
    TechNet Community Support

  • Problem in resizing the datafiles

    Dear Gurus,
    We had a critical situation in one of our Streams enabled ODBPROD/HDBPROD configurations.
    We had a tablespace "STREAMS" in HDBPROD database which replicates data from ODBPROD of size 86GB of which 80GB is free.
    When we tried to resize the datafiles which are of each 8GB each, we are receving the error that some objects exists in the extents, even when I tried to reduce the file size by 100M.
    So, we are plnning to do a re-org on the tablespace and the optiosns which I have are.
    1) MOve the tables/objects with inthe tablespace.
    2) COALESCE the tablespace
    3) Create a new tablespace and move al the objects from Streams tablespace to the new one and once again create/rename the tablespace with STREAMS and move back iff created.
    My doubt here is while going with option 3) is it going to affect the stream apply process or any effect on the DML operations are reported.
    Please help me on this.
    REgards,
    Kumar

    How to Use Layout Managers:
    http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html
    When using BorderLayout, components added to the CENTER will expand with the available size.
    When using GridLayout all components will expand to the available size.

  • CANNOT RESIZE THE RECTANGLE/ROUNDED RECTANGLE in Ai CC14

    Hi
    I cannot resize my rectangle shape with the selection tool. Cannot see the bounding box around it and when I hover over the corners of the rectangle a curve appears under the arrowhead. I have tried everything but nothing works.
    Help please. Thanks
    (using cc14 and have uninstalled/installed Ai twice)

    naeem,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked to below.
    https://forums.adobe.com/thread/1595973
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • I cannot resize the selected text and the object in Illustrator

    I am unable to resize the text and the object with transform tool. It resizes but half of it does not. and not that much i want.

    Ok so if i write some text and all the words are of different sizes and i have to resize it using the transform tool, i cannot resize it unto the size i want. e.g.. i wrote this text "The Big Bold Sale" all the words are of different sizes and are grouped together, so when i resize it using transform tool all these words are resized differently "The big" becomes big, "bold" becomes little smaller and "sale" is not resized.. the image is attached.

  • Cannot resize the message 'read/unread' column in leopard mail.

    I cannot seem to resize the message 'read/unread' column in leopard mail. All other columns (from, subject, date received, size etc) can be resized as normal, however the read/unread "blue dots" are taking up an inordinate amount of space and will not for the life of me resize!
    it is driving me crazy...is this a leopard bug or am I just doing something wrong? thank you very much.

    I cannot seem to resize the message 'read/unread' column in leopard mail. All other columns (from, subject, date received, size etc) can be resized as normal, however the read/unread "blue dots" are taking up an inordinate amount of space and will not for the life of me resize!
    it is driving me crazy...is this a leopard bug or am I just doing something wrong? thank you very much.

  • I cannot resize the search bar

    The two headed arrow that is supposed to allow me to change the size of the search bar does not appear.

    Make sure that you don't have a add-on called "Searchbar Autosizer" installed. You won't get the double arrow cursor to resize the address and search bars. Took me a long time searching to find the problem.

  • ITunes window stuck at the top - cannot resize the window

    Is this part of some glitch that's running around?
    When I open iTunes (11.2.2 running on 10.9.3) - the top bar is extended above the top of my screen - so I can't resize it - the red, yellow and green buttons are all out of sight - above - and I've tried everything to get them back - everything is cut off at the top.
    Any simple solution, I'm sure?

    So this is what it looks like - and it's not on full screen mode - I can't access the red, yellow or green buttons to resize - I can resize the sides and bottom - but can't click on the very top to drag it down - and when I play music - you can't see what track is playing or the scrub bar (?) - only if I then go into full screen mode.  But no matter what I do - iTunes always opens stuck at the top.

  • Cannot resize the partition C

    Hi,
    I have a problem with resizing my partition C on Windows 8.1. It only has 28 GB and I have run out of every space. The Disc manager for resizing partitions is not working (every option for a Disc C is greyed out). I downloaded three partition managers: Paragon,
    Aomei and one more (don't remember the name, cause I deleted it already). All of them were supported by Windows 8.1 32 bit. And still it was not possible to do anything with the disk C, even though I have a lot of unallocated space to use. 
    I also deleted disk D, so that only Disk C was left, and still I couldn't allocate any space to it, only to shrink it.
    Can anyone tell me what else can I do?
    It is driving me crazy already. Help please.
    Marta

    Hello,
    I used aomei partition assistant before in my windows 8.1, it worked well. do you use "resize partition" in aomei partition assistant to extend you c drive? if you do like this, the unallocated space on your hard disk should be contiguous behind
    the partition c, or you can't extend partition. but if the unallocated space is not contigous behind partition c, you an use extend partition wizard or merge partitions to extend partitionc
    extend partition wizard: http://www.disk-partition.com/windows-8/change-partition-size-windows-8.html
    merge partitions: http://www.disk-partition.com/help/merge-partition.html
     hope can help you

  • Cannot resize the corporate logo in EBS header

    Hi
    I was working on the customizing the EBS 12.1.1 login and applications pages. I had configured the right logo locations and modified the necessary profile values for the site.
    The problem is that the company logo become smaller in size.
    I need your help on how to make the custom corporate logo size fits and keeps its size when deployed in the EBS.
    Also I need you to help me how to increase the hieght of the login page banner to fit the size of the logo.
    Our corporate logo size is WxH 600 x 100 px
    Please help me
    Thank you in advance
    C. D.

    Hello Hussein
    Thank you very much for your reply. I actually followed the note ID and it is a bug in 12.0, where is already fixed in my case as the applications version is 12.1.1
    My issue here is that no matter the custom logo size is, it will be only fit with the original Oracle logo size, which is smaller than the corporate logo.
    Oracle logo size: WxH is 155 x 20
    Corporate logo size: WxH is 400 x 100
    Currently the corporate logo is rendered and displayed as the size of Oracle Logo WxH 155 x 20. I need help in where to do the modification for the corporate logo rendered and displayed as its original size, 400 x 100. After that, I will need to modify the height of the header to fit with the new logo size.
    Please help.
    Thank you
    C. D.

  • Why cannot I resize the Tiles area of the start menu when the Task Bar is anywhere but at the bottom (Left, Right, Top)

    I have been using the Taskbar on the LEFT. Even before it came to windows, I used a freeware taskbar written by some dev - if I am not mistaken in Windows 3
    This is because it is always easier to move the mouse Left-Right than Up-Down without lifting your hand off the mouse to reset the position, especially now in these times of hires monitors.
    The taskbar is by default at the bottom in Win 10. Why? Who knows. I moved it to the left.  I found that when the taskbar is at the bottom, I could pop out the startmenu and RESIZE the TILES area. 
    But in any other position, Left, Top or Right you cannot resize the tile area of the taskbar. You first have to set it to the bottom, resize and then reset it left and if this is the wrong size for you you have to go thru all this over and over.
    Since resizing is allowed for the taskbar it should not be restricted to only the bottom setting users.
    Bernard

     I found that when the taskbar is at the bottom, I could pop out the startmenu and RESIZE the TILES area. 
    But in any other position, Left, Top or Right you cannot resize the tile area of the taskbar.
    I can confirm your finding. It's clearly wrong to have such an
    inconsistency. Have you reported it using the reporting facility?
    Dave

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • Cannot resize collapse/expand window when no project is open

    Using Premier Pro CC 2014 on Windows, when I first launch Premier and no project is open, I cannot resize the Premier window, nor can I collapse or expand it. Is that just a bug?

    Post a screen grab please.
    I am interested to see where you are in this "issue".

  • Cannot resize system partition due to recovery partition

    Hello.
    I have a 500GB HD (momentus XT) that replaced my default 320GB HD.
    i cannot resize the system partition due to the recovery partition. System keeps on telling me that "map is too small".
    Tried diskutil under osx, under lion bootable recovery usb stick, under diskutil through console.
    Here is what diskutil tells me.
    ~ > diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *500.1 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            319.2 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    ~ > diskutil resizeVolume /dev/disk0s2 400G
    Started partitioning on disk0s2 Macintosh HD
    Verifying the disk
    Checking file system
    Performing live verification
    Checking Journaled HFS Plus volume
    Checking extents overflow file
    Checking catalog file
    Checking multi-linked files
    Checking extended attributes file
    Checking volume bitmap
    Checking volume information
    The volume Macintosh HD appears to be OK
    Resizing
    Error: -5341: MediaKit reports partition (map) too small
    I want to resize the partition to use the remaining new space i have, of course, and create a bootcamp part.
    I am wondering if i can kill the recovery partition without destroying my lion. As i have the recovery transfered successfully to usb stick using the apple utility, i am able to use it anytime.
    But... just wondering if that would crash my OS or not.
    Or, if anyone sees a way to move the recovery partition to end of the HD so that i can enlarge successfully...

    Thanks to you both, luckily there's only 600GB on that drive at the moment.
    I was wondering, though, why won't it let me make it bigger?
    I already had a 1TB partition in the space below it. The screenshot shows me having already deleted it - but still no option to resize the other (larger) 2TB one.
    If there is a reason why I can't resize now, then I can take that advice and try and make sure it doesn't happen when I reformat it again.
    I would understand if the partition were MBR, but it's not, it's a GUID Partition Table (bottom right), so I'm confused - what is it's problem? ;-)

Maybe you are looking for

  • Deploying JWS with Eclipse Tools Bundle

    Hi all, I'm trying to write a document describing the steps to follow in order to make and build an Hello World application, launchable from a JNLP template provided by the server. Here is a summary of the different steps I mentionned : - Install Ecl

  • How to allow internet pages to use their own background colors ?

    On my old Win7Pro system (Firefox stepwise updated from early version 2 to version 18.0) this works perfectly: for example my own homepage http://www.du-ch.net/ shows its light blue background color. However, on my new Win8Pro laptop with Firefox 18.

  • Verizon Folder on Startup

    All, my mom had Verizon DSL installed on her PC some time ago.  When the PC starts up, for some reason the Verizon folder housed in "Program Files" always opens up and shows its contents.  The folder always has to be closed manually.  I am certain th

  • Catalog efficiency question in Lightroom 3.6

    I currently have one catalog with over 22,000 photos and numerous collections in it. I recently heard about creating separate "catalogs" to better LR3's efficiency and to cut down the clutter so that I'm just working on one catalog at a time. Does an

  • SQ01 query to assign user

    Hi all,            we have one group which is called "FI USERS". which contains 15 users in this group. but some users cannot execute one infoset. 1. i checked the users in the  usergroup, that user is exist. 2. i checked the infoset which is assigne