Unable to RESIZE datafile

I have an issue with resizing a datafile. My USERS tablespace only uses about 9.9MB but the datafile USER01.dbf is 14GB. Per [Tom Kyte|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1065432640718] , I issue column tablespace_name format a20
column "Name" format a45
break on file_id skip 1
ttitle &1
select file_id, block_id, blocks,
       owner||'.'||segment_name "Name"
from   sys.dba_extents
where  tablespace_name = upper('&1')
UNION
select file_id, block_id, blocks,
       'Free'
from   sys.dba_free_space
where  tablespace_name = upper('&1')
order by 1,2,3From the spool file
FILE_ID BLOCK_ID BLOCKS Name
4 593 8 PLPDF.SYS_IL0000073096C00022$$
601 8 PLPDF.SYS_LOB0000073096C00025$$
609 8 PLPDF.SYS_IL0000073096C00025$$
617 8 PLPDF.PLPDF_ADD_PK
625 8 PLPDF.PLPDF_TTF_ADD_CW
*633 16776 Free*
17409 8 OE8.CUSTOMERS
17417 56 Free >
Question is how do I clean the 16776 Free blocks?? OR am I going about this the wrong way??
Thanks a bunch in advance.
Edited by: OracleNewbie828 on Aug 24, 2010 10:21 AM
Sorry ... Forget to mention. It's Oracle 10gR2 on Win2k3*

The funny thing is that the ability to move data within tablespaces has a lot to do with which version of Oracle you are running but yet you did not tell us that...
So here are some questions for you...
1) What version of Oracle do you currently run?
If 10g then check out http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/schema.htm#ADMIN10161
2) What types of objects are in the tables within the tablespaces that are supported by these datafiles?
In particular I am wondering if you use LOBs, because that throws entire new perspective on things.
Regards
Tim
Edited by: Tim Boles on Aug 24, 2010 10:49 AM

Similar Messages

  • Unable to Resize datafile Oracle 9i.

    Hello All,
    I am facing very strange problem in our customer testbed.
    The customer data file grows to till 8GB having 80 Lac records. We deleted approximately 70Lac records but we are not able to re size the data file. When i checked the free space in the file, it shows 0.
    Can you please let me know how to re size the data file.
    The Database server is windows server 2003 32 bit.
    Thanks
    With Regards
    Hemant.

    I dont think moving the tables to another tablespace is a solution to this issue.. when you move the tables to a different tablespace, they are going to take the same amount of space, so if you shrink the original tablespace, you may very possibly not be able to restore them in the original tablespace. The point is you need the space freed up in the table to free it up in the datafile or the tablespace.

  • I am trying to resize disk space on parallels 6 for windows XP under configure Hardrive and I get the error resizing failed unable to resize last volume the file system of this volume might be damaged or not supported?  I am on a Mac using Parallels 6

    I have been trying to increase my disk space for windows xp on my Imac and I am running parallels 6.  before opening windows I go into configure in parallels and open the hard drive and try to move the allotted disk space from 32 gig to 64 or any other increased gig and then apply and I get the error message: resizing failed unable to resize last volume.  The file system of this volume might be damaged or not supported.  How do I increase the size??  I just also did a disk repair utility with Apple on the Apple side of my IMAC.  Please Help!!   I had uninstalled SQL server on the windows side and needed to uncompress files to install this and then I ran short on disk space.

    This sounds to me that your Parallels XP file system is corrupted and not the OSX file system.
    Have you checked the XP file system while running the Parallels XP yet ?
    However, it would be better to ask such question in the Parallels Forum http://forum.parallels.com/
    Stefan

  • Facing Problem in  resizing datafile

    Hi i m facing problem in resizing a datafile of size 2.5 gb, i infact import data of 2gb in this file then reorganize data in different tablespace now the used size of this datafile is 96mb , when i issue command to reduce it to 200mb it gives me error that data exist u cannot resize datafile,
    tell me what should be done to resize it.
    thanks

    Hi,
    You can create a working tablespace with a good size
    CREATE TABLESPACE tbs_tmp
    DATAFILE 'D:\Oracle\oradata\SID\file_tmp.dbf' SIZE 100M
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K;
    And move all segments from your tablespace TBS1 into this new tbs
    (select segment_name,segment_type from dba_segments where tablespace_name = 'TBS1')
    If indexes :
    alter index owner.index_name rebuild tablespace tbs_tmp;
    If table :
    alter table owner.table_name move tablespace tbs_tmp;
    Ensure that the tablespace TBS1 is empty
    select segment_name,segment_type from dba_segments where tablespace_name = 'TBS1'
    After what, if no row return, you can drop your first tablespace,
    DROP TABLESPACE tbs1 INCLUDING CONTENTS CASCADE CONSTRAINTS;
    recreate it with a goos size,
    CREATE TABLESPACE tbs1
    DATAFILE 'D:\Oracle\oradata\SID\file_tbs1.dbf' SIZE 100M
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K;
    and move all segment from tbs_tmp into this new tbs1
    (select segment_name,segment_type from dba_segments where tablespace_name = 'TBS_TMP')
    If indexes :
    alter index owner.index_name rebuild tablespace tbs1;
    If table :
    alter table owner.table_name move tablespace tbs1;
    Ensure that the tablespace TBS1 is empty
    select segment_name,segment_type from dba_segments where tablespace_name = 'TBS_TMP'
    If no row return, drop the working tablespace
    DROP TABLESPACE tbs_tmp INCLUDING CONTENTS CASCADE CONSTRAINTS;
    Nicolas.

  • Unable to resize IClock plug-in which extends java.awt.Panel

    I am using an ibm IClock plugin(a javabean) on a JToolBar-this is a clock.The javabean consists of a Canvas on a Panel. I am trying to make the two IClocks smaller so that I can fit a panel to show the date and so that the clocks and date panels are the roughly the same size.
    I am unable to resize the Panel. I have tried the following:
    1- overriding setPreferredSize. Not sure how to write this code- was getting compilation errors when I did this
    public setPreferredSize()
    return new Dimension(x,x)
    2- invoking setSize(x,x) on the Panel
    3- invoking setBounds(x,x,x,x) on the Panel
    After Steps 2 and 3 I do a system.out.println and the values I set are returned from the Dimension object. However, the size does not change in the GUI.
    I think it may have something to do with the way the layout managers work - and whether they decide to take the preferredSize. From what I can see on the forum, this is a hazy area where short of writing your own layout manager you can't control the LayoutManager very much. But I may be completely wrong, and it may be all much simpler than this.
    I am tearing my hair out over this! The only option I can think of is to use an IDE and use a tool to resize the componets. This is the last option. Any ideas would be greatly appreciated.
    Thanks
    Soraya

    Sorry I may have confused you.Actually I understood you perfectly.
    The JToolBar does not need to be resized, the IClock
    needs to be resized. The IClock is a Panel.
    So what I should do is override getPreferredSize() in
    class IClock/Panel?That exactly what I meant, and getMaximumSize() too.

  • Unable to resize window to fit screen

    I am having an issue in which some of the windows from a variety of applications no longer fits on my screen, and I am unable to resize the window because the handle for the window (that I would normally click on and drag to resize) is located in an area of the screen that is not currently visible...
    Specifically, when using firefox, if I try to add a new bookmark, the add bookmark window appears and the bottom of the window is off the bottom of the screen (even with the top of that window appearing all the way at the top of the screen. Another instance occurs when using a Photoshop plugin called noiseware, in which the top and bottom of the plugin window appear off the screen, thereby making it impossible to access certain features and functions of the plugin...
    I have tried trashing the preferences for each application and for the plugin in hopes that that would help, but it does not...I have also attempted the change the resolution of my monitor, but its alread as large as possible...
    Does anyone have any suggestions as to ways in which I can go about resolving this issue? Any help would be sincerly appreciated. Thanks!

    I am having an issue in which some of the windows from a variety of applications no longer fits on my screen, and I am unable to resize the window because the handle for the window (that I would normally click on and drag to resize) is located in an area of the screen that is not currently visible...
    Specifically, when using firefox, if I try to add a new bookmark, the add bookmark window appears and the bottom of the window is off the bottom of the screen (even with the top of that window appearing all the way at the top of the screen. Another instance occurs when using a Photoshop plugin called noiseware, in which the top and bottom of the plugin window appear off the screen, thereby making it impossible to access certain features and functions of the plugin...
    I have tried trashing the preferences for each application and for the plugin in hopes that that would help, but it does not...I have also attempted the change the resolution of my monitor, but its alread as large as possible...
    Does anyone have any suggestions as to ways in which I can go about resolving this issue? Any help would be sincerly appreciated. Thanks!

  • Unable to resize the Edit window in Premier Elements 11

    I am unable to resize the premier elements edit window - it just leaves a trail of images of the edit window on the screen when I try to make the window smaller - It doesn't refresh the desktop behind, no problem using and resizing window in Photoshop Elements 11 installed at the same time and also the organise window is resizeable OK just the edit window a problem - any ideas - I am using Windows 7 64 bit?

    Full -Computer spec is - Windows 7 64-bit, 8Mb RAM, Processor Intel Core i5-2400 CPU @ 3.10 GHz and graphics card AMD/ATI Radeon HD6570 2Gb RAM - Updated windows and Graphics card driver. When rebooted my windows had gone into an Aero theme and worked OK - but putting back to windows classic - problem returned i.e. Organise editor OK but Video Editor with just New Project and no media added resizing window just leaves a trail around the screen. Put back to Aero theme and now OK again.  Tried going into System properties / advanced / visual effects / Show windows contents whilst dragging - and turned off but still did not work with Windows classic theme.
    So don't know why it is happening but it is at least a work around - thanks for your help.

  • Syntax to resize datafile in 10g

    syntax to resize datafile in 10g

    the reason is
    in 10g if u want to create tablespace the syntax is
    create tablespace table_name datafile 10M;No, actually. The syntax on how to create a tablespace is exactly the same today as it was in 1999. Create tablespace X datafile '/path/filename' size 10M.
    It is, however, possible to omit both the path and size clause if you want to use Oracle Managed Files (OMF):
    alter system set db_create_file_dest=/path/filename;
    create tablespace X;
    And then it's possible to add back the size clause if you don't like the default 100M autoextend on which OMF gives you:
    create tablespace X datafile size 10M;
    or
    create tablespace X datafile size 10m autoextend off;
    or
    create tablespace X datafile size 10m autoextend on next 10m maxsize 400m;
    Point is, the syntax for creating a tablespace has many different variations and options, but the basic syntax hasn't changed a bit. The other point is: what has creating a tablespace got to do with what you originally asked about, which was resizing an existing datafile?
    to add datafile
    alter tablespace table_name add datafile;
    it will add datafile with default size and with name
    according to its naming convention.Yes, but you are not obliged to let that happen.
    alter system set db_create_file_dest=/path/filename;
    alter tablespace X add datafile '/different/path/myownfilename' size 37M;
    ...you switch on OMF and then decide you don't want to use it for one particular file. The presence/existence of OMF is an addition of features if you want to use them. It doesn't take anything away from you and if you want to specify all the parts of the create or alter tablespace clause yourself, you can do so, no sweat -at which point, your syntax will look incredibly like what you would have issued in 8i or 9i days.
    Analogy time: yes, today, you can build homes out of steel, concrete, carbon-reinforced composites, whereas in the 16th century you might have used timber, wattle and daub. But a house still has rooms, chimney flues, windows, doors. The house I live in would be recognisable to Shakespeare as a house. And what he lived in would be something I could live in too.
    Yeah, well: maybe analogies aren't all they're cracked up to be! But the underlying truth is that Oracle gives you new features in new versions and using them can be highly convenient and useful. Nevertheless, if you understand the underlying principles,the old stuff is still there, still recognisable, still usable.
    thats why i am asking for syntax to resize datafile
    in 10g ,i had fired above sqls with no errors.Again, I am a little at a loss understanding why the fact that the syntax for creating a tablespace has new options should cause you to think anything weird has happened to the syntax for resizing a datafile.
    As others I think have already mentioned: there always were and still remain only three ways of making a tablespace bigger:
    add a datafile
    resize an existing datafile
    switch on autoextension of an existing datafile
    alter tablespace X add datafile ['/path/filename'][size 10m];
    alter database datafile '/path/filename' resize 54m;
    alter database datafile '/path/filename' autoextend on [next Xm] [maxsize Ym];
    None of that syntax is different from what you'd use in version 7. Yes, some commands have optional clauses -and some of the clauses which are optional in 10g were compulsory in 7 or 8. But the general syntax is identical, still.

  • Unable to resize a partition.

    Hello everyone
    I `ve recently created a new partition on my MacBook Pro running  OS X 10.9.4, and that was for install the public Beta of Yosemite, then i decided to delete that partition with Utility disks, then that space now appear gray, but the problem is when i tried to resized the partition dragging the lower right conner above, and then i clic "apply", nothing pass, So i was unable to resized the partition.
    Could someone please help me .
    here is a picture of UD.

    As I suggested on your first post of this topic:
    Install Mavericks, Lion/Mountain Lion Using Internet Recovery
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion. Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    After you have installed OS X you can use Boot Camp Assistant to create a new Boot Camp partition for Windows. Do not attempt to use Disk Utility or Boot Camp Assistant to create a third partition. You can have at most two partitions: OS X and Windows. You created a third partition which you then removed, and that is why this problem arose.

  • Am unable to resize fonts, images, or anything that is related to using numerals.  How can this be fixed??

    Am unable to resize fonts, images, or anything that is related to using numerals.  How can this be fixed??

    In full Editor, go to Edit>preferences>General. Look for this:
    Click on it, close Elements, relaunch.

  • Will resizing datafile after shrink segment minimize the rman bkp duration

    Hi ,
    We have 1 TB database where in the RMAN backup runs for nearly 35 Hrs .
    At database level if i shrink the segments to reclaim space and then resize datafile , will it have my RMAN backup duration time to decrease .
    Kindly let me know if this can be done .

    whats the database version.
    As in 10g Rel 2 See "UNUSED BLOCK COMPRESSION"
    Unused Block Compression Of Datafile Backups to Backup Sets
    When backing up datafiles into backup sets, RMAN does not back up the contents of data blocks that have never been allocated. (In previous releases, this behavior was referred to as NULL compression.)
    RMAN also skips other datafile blocks that do not currently contain data, if all of the following conditions apply:
    The COMPATIBLE initialization parameter is set to 10.2
    There are currently no guaranteed restore points defined for the database
    The datafile is locally managed
    The datafile is being backed up to a backup set as part of a full backup or a level 0 incremental backup
    The backup set is being created on disk.
    Skipping unused data blocks where possible enables RMAN to back up datafiles using less space, and can make I/O more efficient.
    http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta009.htm

  • Adding and resizing datafiles seems to take long.

    We have an Oracle 11g R2 Data Guard configuration using Physical Standby.
    Simple One Primary and One Standby.
    Parameter configurations
    standby_file_creation = 'AUTO' and db_file_name_convert are in use
    How can we monitor the adding and resizing datafiles on both the Primary and Standby?

    The Sys Admin, Storage Team and Network Team found out it was a configuration problem on the software firewall between the Database Host and the NAS.

  • Unable to drop datafile after dropping tablespace

    Hi All,
    Trying to Drop tablespace with Datafile, command used is as below
    drop tablespace tims_db including contents and datafiles;
    this was executed successfully, but still the datafile exists... tried dropping from OS, but unable to delete the file... associated trace alert logs are as below
    Dump file c:\oracle\admin\ocprd\udump\ocprd_ora_4236.trc
    Mon Feb 06 03:40:58 2012
    ORACLE V9.2.0.6.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    Windows 2000 Version 5.0 Service Pack 4, CPU type 586
    Redo thread mounted by this instance: 1
    Oracle process number: 14
    Windows thread id: 4236, image: ORACLE.EXE
    *** 2012-02-06 03:40:58.562
    *** SESSION ID:(52.7127) 2012-02-06 03:40:58.500
    ORA-01259: unable to delete datafile E:\ORACLE\ORADATA\OCPRD\TIMSDB01.DBF
    ORA-27056: skgfrdel: could not delete file
    OSD-04024: Unable to delete file.
    O/S-Error: (OS 32) The process cannot access the file because it is being used by another process.
    OS : Windows 2000
    DB : Oracle 9i
    Please help
    Thanks

    user1687821 wrote:
    As this is a production instance, we need approval to bounce it, If you are sure this file isn't needed - unlock with unlocker and move to some place for a while. Then kill it or kill it immediatly.
    Secondly will the database ask for missing datafile when restarted the database even if it is not listed in dba_data_files...?If your tbs drop was successfull - everything will be fine

  • Why am I suddenly unable to resize OR resample my photographs in CS6?

    Why am I suddenly unable to resize OR resample my photographs in CS6?

    What color mode is your document in?
    Some modes (Indexed and Bitmap) don't support resampling.

  • RESIZE DATAFILE

    On Oracle 7.3 can I resize datafile from 1900 Mb to 1500Mb during the db is open?
    regards
    pedro

    It works with 7.3, IF your data file isn't fragmented so that there are blocks in use beyond the value you wish to resize to. In other words you have a lot of used blocks then a lot of free blocks, followed by more used blocks. In that case your only option is exp/drop tables/imp.

Maybe you are looking for

  • Please help for me fake profile !

    Hey!!  I would like to report this man who's been using may name and photo and my videos for his personal intention. Here are the  account  name  victor_ricar  Please do some action to prevent him using my name and personal informations and he is tri

  • Dynamic image in header

    Hello, I've been starting to use Livecycle designer (version 8 it seems) a few weeks ago and I am currently confronted to a problem that I can't to solve. Basically, I need to create a Fragment that serves as a header for multiple documents. This Fra

  • The performance of ABAP programs

    Hey Experts , how can one analyze the performance of ABAP programs apart from using the generic tools such as Trace etc.

  • "Save For Web" issues/suggestions

    For the "Save For Web" feature, a few things would be nice to see. Maybe they are there, but I cannot find them. 1. Actions: When I add the Save For Web to an action, it adds an "export" to the action, but when I automate it, nothing happens, it does

  • How do I move music from 7.3.2.6 to 7.6?

    I just got the touch and realize I apparently can't use it on this computer. First, is there anything I can do on this computer? Secondly if I do have to move all the files to my newer computer, what is the fastest way?