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.

Similar Messages

  • 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

  • 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.

  • 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.

  • 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

  • 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.

  • Resize datafile when database is mount

    Hello,
    I need resize datafile when database is mount not open(I recover database).
    Is it posible?

    Try making the tablespace offline, opening the database and resizing the datafile. After you resize the datafile, recover the tablespace or just the datafile.
    In Oracle documentation: Backup & Recovery Guide, you can find more details of these options:
    =>RECOVER TABLESPACE Statement
    RECOVER TABLESPACE performs media recovery on all datafiles in the tablespaces listed. For example, enter the following at the SQL prompt to recover tablespace TBS_1:
    RECOVER TABLESPACE tbs_1
    The tablespaces must be offline to perform the recovery. Oracle indicates an error if none of the files require recovery.
    => RECOVER DATAFILE Statement
    RECOVER DATAFILE lists the datafiles to be recovered. For example, enter the following at the SQL prompt to recover datafile /oracle/dbs/tbs_22.f:
    RECOVER DATAFILE '/oracle/dbs/tbs_22.f'
    The database can be open or closed, provided that you can acquire the media recovery locks. If the database is open in any instance, then datafile recovery can only recover offline files.
    Hope it helps.
    Eliane

  • Resizing the oracle form runtime window

    hello guys
    i m making one login form in oracle 6i form builder
    and i want as user run it it open as the rectangle box in the centre of user screen.
    i have done for it but the problem that i m facing inthat is that i m unable to resize the size of oracle form runtime window according to the size og my login
    form window.
    pl tell me how to do this.
    Thanks
    With Regards
    Vishal Agrawal

    Hi
    Since you are using Forms6I - just presss F1 - and search for Set_Windows_Property - example - this will take to a proper note

  • 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

  • 'unable to find product oracle.swd.jre[1.3.1,1.6] in Oracle Inventory'

    Hi All,
    i am running the runInstaller for patch set 9.2.0.8 on AIX 5L Based Systems (64-Bit)
    after selecting the products.xml file and selecting the oracle home to update and then cllick Install
    i get the error 'unable to find product oracle.swd.jre[1.3.1,1.6] in Oracle Inventory'
    is it the issue of the version of oracle.swd.jre? can we skip the installation of this componenet?
    Kindly suggest
    Thanks
    SK

    Hi,
    Please see if these documents help.
    Note: 397745.1 - Error when installing Patch 2376472: "Unable to find product oracle.swd.jre "
    Note: 315842.1 - 'unable to find product oracle.swd.jre' Error During Agent Upgrade from 10.1.0.3 to 10.1.0.4
    Regards,
    Hussein

  • Unable to find product oracle.swd.jre[1.4.1, 9.9.9.] in Oracle Inventory

    I am trying to install Oracle 10g on Solaris 10 (SPARC) using the OUI and receive the following error towards the beginning of the install.
    unable to find product oracle.swd.jre[1.4.1, 9.9.9.] in Oracle Inventory
    Please respond if you have encountered this error and what you did to resolve it.
    Thanks

    Of course, thoroughly. Ok. Like I said, it surprising how often people don't check that, so we always ask first.
    Have you run into this error,
    or a similar one, before? No. Have installed 9.2 on several Solaris boxes without a problem, so have not directly seen this one.
    Do you have an applicable
    troubleshooting tips? I searched MetaLink on "unable to find product oracle.swd.jre" and got three hits. None are exactly your situation, but they might lead you to something. See notes 468150.1, 315842.1, and 397745.1.
    And this may be one requireing an SR.
    I suspect that the JRE
    location is not set properly. I

  • Unable to find driver (oracle.jdeveloper.cm.CMException)

    Hi All.
    I get this error message when I try to get a connection to my Database:
    oracle,jdeveloper.cm.CMException:unable to find driver:oracle.lite.poljdbc.POLJ...!
    I installed BPEL PM (where JDeveloper is included).
    Yesterday the Connection i made works fine, but today i get this error when I try to connect (open a SQL Worksheet) the same connection:
    Has anyone an Idea what is happen because I am shure I doesn't change sth. in my configuration since yesterday.
    It would be nice if sb. could give me a hint
    Message was edited by:
    BenSp

    Hi, maybe you could check out you have set the right olite jdbc driver in your project CLASSPATH
    Normally:
    $OLite_Home\jdbc\lib\classes12.jar
    Luis R.

  • Unable to find product oracle.swd.jre[1.1.6, 1.1.7.27] in oracle inventory

    while installing workflow server 2.6 I got an error saying that "unable to find product oracle.swd.jre[1.1.6, 1.1.7.27] in oracle inventory"
    I tried installing it using oracle universal installer 2.2 but still it is giving the same error as above.
    so please help me.

    Thanks Allison for your help.
    I am installing wf server on windows 2000
    The other products installed in the same ORACLE_HOME are Oracle database 9i version 9.2.0.1.0
    I am not using any CD, but I have downloaded it from web and have the licence to use the software.
    I hope you can help me
    Janak

Maybe you are looking for

  • How to get customer consignm orders (type of cat item KBN) updates LIS

    Good morning, we have an issue with this type of sales orders, we are trying to update an not standard info structure (created by us) but we have found that this type of category item is not relevant foe info structure updating (it has Statistics gro

  • Granting SELECT to user on VIEW with FULL OUTER JOIN fails?

    I have a quandary. Using Oracle 9i, I have created a simple view. When I perform a count on it, rows are returned. However, when I grant SELECT access to another user, they can't see the VIEW. The VIEW has a FULL OUTER JOIN operation in it. When I do

  • IP addresses taken and not released (SPR527W)

    Hello, I have  the SRP527W model. The situation is the devices are taking the IP address from the DHCP pool and I am running out. The setting for the client lease time is 0 = 0 means one day I could change it to 5 = 5 mins at start up How do i change

  • Reporting Services Timeout but Query keep running?

    The Gobal value for the reporting timeout is 10 minutes (600). I Have a report which takes around (1hr to run).. The report correctly timesout (page cannot be display) but the query kept on running..until it completed. Is there any way to stop this f

  • RESTORE PHOTO BOOTH LIBRARY

    Our hard drive recently crashed.  Luckily, the files were backed up. When my daughter recently opened Photo Booth, it told her it could not locate the library. If I choose "Choose Existing," it takes me to a few different photo libraries, including o