Resize tablespace

Hi All,
when i am trying to resize tablespace . I am getting this error ORA-01516: nonexistent log file, datafile, or tempfile.

query:
alter database datafile '/HRPRODDATA/oradata/EPLARGE.DBF' resize 1M;
select name from v$datafile;
NAME
/HRPRODDATA/oradata/system01.dbf
/HRPRODDATA/oradata/psundots01.dbf
/HRPRODDATA/oradata/sysaux01.dbf
/HRPRODDATA/oradata/psdefault.dbf
/HRPRODDATA/oradata/aaapp.dbf
/HRPRODDATA/oradata/aalarge.dbf
/HRPRODDATA/oradata/adapp.dbf
/HRPRODDATA/oradata/amapp.dbf
/HRPRODDATA/oradata/avapp.dbf
/HRPRODDATA/oradata/bdapp.dbf
/HRPRODDATA/oradata/bnapp.dbf
NAME
/HRPRODDATA/oradata/bnlarge.dbf
/HRPRODDATA/oradata/ccapp.dbf
/HRPRODDATA/oradata/coapp.dbf
/HRPRODDATA/oradata/cuaudit.dbf
/HRPRODDATA/oradata/cularg1.dbf
/HRPRODDATA/oradata/cularg2.dbf
/HRPRODDATA/oradata/cularg3.dbf
/HRPRODDATA/oradata/cularge.dbf
/HRPRODDATA/oradata/diapp.dbf
/HRPRODDATA/oradata/dtapp.dbf
/HRPRODDATA/oradata/eoapp.dbf
NAME
/HRPRODDATA/oradata/eobfapp.dbf
/HRPRODDATA/oradata/eocfapp.dbf
/HRPRODDATA/oradata/eocmapp.dbf
/HRPRODDATA/oradata/eocmlrg.dbf
/HRPRODDATA/oradata/eocmwrk.dbf
/HRPRODDATA/oradata/eocuapp.dbf
/HRPRODDATA/oradata/eoculrg.dbf
/HRPRODDATA/oradata/eodsapp.dbf
/HRPRODDATA/oradata/eodslrg.dbf
/HRPRODDATA/oradata/eoecapp.dbf
/HRPRODDATA/oradata/eoeclrg.dbf
NAME
/HRPRODDATA/oradata/eoecwrk.dbf
/HRPRODDATA/oradata/eoeiapp.dbf
/HRPRODDATA/oradata/eoeilrg.dbf
/HRPRODDATA/oradata/eoewapp.dbf
/HRPRODDATA/oradata/eoewlrg.dbf
/HRPRODDATA/oradata/eoewwrk.dbf
/HRPRODDATA/oradata/eoiuapp.dbf
/HRPRODDATA/oradata/eoiulrg.dbf
/HRPRODDATA/oradata/eoiuwrk.dbf
/HRPRODDATA/oradata/eolarge.dbf
/HRPRODDATA/oradata/eoltapp.dbf
NAME
/HRPRODDATA/oradata/eoppapp.dbf
/HRPRODDATA/oradata/eopplrg.dbf
/HRPRODDATA/oradata/eotpapp.dbf
/HRPRODDATA/oradata/eotplrg.dbf
/HRPRODDATA/oradata/epapp.dbf
/HRPRODDATA/oradata/eplarge.dbf
/HRPRODDATA/oradata/erapp.dbf
/HRPRODDATA/oradata/erlarge.dbf
/HRPRODDATA/oradata/erwork.dbf
/HRPRODDATA/oradata/faapp.dbf
/HRPRODDATA/oradata/falarge.dbf
NAME
/HRPRODDATA/oradata/fgapp.dbf
/HRPRODDATA/oradata/fglarge.dbf
/HRPRODDATA/oradata/fsapp.dbf
/HRPRODDATA/oradata/giapp.dbf
/HRPRODDATA/oradata/gpapp.dbf
/HRPRODDATA/oradata/gpdeapp.dbf
/HRPRODDATA/oradata/hpapp.dbf
/HRPRODDATA/oradata/hrapp.dbf
/HRPRODDATA/oradata/hrapp1.dbf
/HRPRODDATA/oradata/hrapp2.dbf
/HRPRODDATA/oradata/hrapp3.dbf
NAME
/HRPRODDATA/oradata/hrapp4.dbf
/HRPRODDATA/oradata/hrapp5.dbf
/HRPRODDATA/oradata/hrapp6.dbf
/HRPRODDATA/oradata/hrapp7.dbf
/HRPRODDATA/oradata/hrimage.dbf
/HRPRODDATA/oradata/hrlarg1.dbf
/HRPRODDATA/oradata/hrlarge.dbf
/HRPRODDATA/oradata/hrsapp.dbf
/HRPRODDATA/oradata/hrsarch.dbf
/HRPRODDATA/oradata/hrslarge.dbf
/HRPRODDATA/oradata/hrswork.dbf
NAME
/HRPRODDATA/oradata/hrwork.dbf
/HRPRODDATA/oradata/htapp.dbf
/HRPRODDATA/oradata/inapp.dbf
/HRPRODDATA/oradata/paapp.dbf
/HRPRODDATA/oradata/palarge.dbf
/HRPRODDATA/oradata/pcapp.dbf
/HRPRODDATA/oradata/pclarge.dbf
/HRPRODDATA/oradata/piapp.dbf
/HRPRODDATA/oradata/pilarge.dbf
/HRPRODDATA/oradata/piwork.dbf
/HRPRODDATA/oradata/poapp.dbf
NAME
/HRPRODDATA/oradata/psimage.dbf
/HRPRODDATA/oradata/psimgr.dbf
/HRPRODDATA/oradata/psindex.dbf
/HRPRODDATA/oradata/psindex2.dbf
/HRPRODDATA/oradata/ptamsg.dbf
/HRPRODDATA/oradata/ptapp.dbf
/HRPRODDATA/oradata/ptappe.dbf
/HRPRODDATA/oradata/ptaudit.dbf
/HRPRODDATA/oradata/ptcmstar.dbf
/HRPRODDATA/oradata/ptlock.dbf
/HRPRODDATA/oradata/ptprc.dbf
NAME
/HRPRODDATA/oradata/ptprjwk.dbf
/HRPRODDATA/oradata/ptrpts.dbf
/HRPRODDATA/oradata/pttbl.dbf
/HRPRODDATA/oradata/pttlrg.dbf
/HRPRODDATA/oradata/pttree.dbf
/HRPRODDATA/oradata/ptwork.dbf
/HRPRODDATA/oradata/pvapp.dbf
/HRPRODDATA/oradata/py0lrg.dbf
/HRPRODDATA/oradata/pyapp.dbf
/HRPRODDATA/oradata/pylarge.dbf
/HRPRODDATA/oradata/pywork.dbf
NAME
/HRPRODDATA/oradata/saapp.dbf
/HRPRODDATA/oradata/sacapp.dbf
/HRPRODDATA/oradata/salarge.dbf
/HRPRODDATA/oradata/srapp.dbf
/HRPRODDATA/oradata/stapp.dbf
/HRPRODDATA/oradata/stlarge.dbf
/HRPRODDATA/oradata/stwork.dbf
/HRPRODDATA/oradata/tlapp.dbf
/HRPRODDATA/oradata/tllarge.dbf
/HRPRODDATA/oradata/tlwork.dbf
/HRPRODDATA/oradata/waapp.dbf
NAME
/HRPRODDATA/rman.dbf
/HRPRODDATA/oradata/ptprc2.dbf
/HRPRODDATA/oradata/bkp01.dbf
/HRPRODDATA/oradata/psdefault1.dbf
/HRPRODDATA/oradata/gpapp_01.dbf
/HRPRODDATA/oradata/psimage_01.dbf
/HRPRODDATA/oradata/psindex_03.dbf
/HRPRODDATA/oradata/tllarge_02.dbf

Similar Messages

  • Resizing tablespace is taking too much time and freezing the database

    This is my database setup:
    3 node rac on 32 bit linux (rh 4)
    2 SANs (3gb + 2 gb)
    asm config: everything is default from installation
    current datafiles: 3.2T out of 5.0T (autoextend on)
    this is how I do to resize the tablespace manually to test how long it takes:
    alter tablespace my_tbs resize 3173562M; //from 3172538M (adding another 1gb)
    And it took 33 minutes to complete.
    Could someone tell me what is wrong?
    ps:: when i check the instance performing, the "SMON" user is like 97% of db activities. And while the resizing is running, the database seem to freeze.
    Thanks,
    Chau
    Message was edited by:
    user626162

    sorry, it is 5 Tera bytes total.
    there are 2 sans, one is 1.7T (one partition). the other san has 3 partitions with 1.1T each. I have only 1 datagroup
    I used big file so there is only one big file for this tablespace. the size of the tablespace is 3.2T used with autoextend on (increment size is 1G)
    this is the command I used to manually resize the tablespace:
    alter tablespace my_table_space resize <3229923M>; //current size + 1G
    Thanks,
    Chau

  • Resize Tablespace having  multiple datafiles...

    Hi All,
    Is there any way to resize the tablespace having multiple datafiles? Tablespace having multiple DBF can not be resized like we did with alter database datafile ...resize command.
    Please let me know if anyone having any idea.
    Thanks in advance.

    But as of now I have 4 DBF in a single Tablespace and all are having more than 25G in a size. And I can see many of the free blocks in all the files at the end If the free blocks are at the end, what prevents you from resizing the datafiles?
    when data are inserting in the DBFs its not only spread to single file and once its reach to max size then only moved to second DBF, its scatter with the all the allocated DBFs of that particualr Tablespace. You can downgrade to 9i! The out-dated method you are after was deprecated with 10g. Why do you want to ignore parallelism and fill up one datafile sequentially until it reaches maximum size before putting data in another?

  • Problems with resizing tablespace.

    Hello
    When I installed Oracle Application Express I use SYSAUX as default tablespace.
    During unsuccessful transaction I increased this tablespace up to 5,5 Gb. After dropping all unneeded data I have 700 Mb of used space.
    When I tried to alter database datafile ... resize 1 Gb, I received an error ORA-03297: file contains used data beyond requested RESIZE value .
    Is there some way to defragment tablespace
    Best Regards, Kostya Proskudin
    P.S. I use 10g

    Never use SYSAUX or SYSTEM tablespace as the default tablespace. Query dba_extents to find out which segments are located towards the end of the file, then move these segments to another tablespace and then you'll be able to shrink the datafile, unless of course, a sys or system extent is occupying the space.

  • Difference in resizing tablespace

    Hi,
    I just altered a tablespace manually, and i have seen that there is more than one way to do this.
    What's the difference between:
    ALTER TABLESPACE ts_name
    RESIZE ...
    and
    ALTER DATABASE db_name
    DATAFILE file_name
    RESIZE ...
    Regards
    Tom

    ALTER TABLESPACE & ALTER DATABASE are two different commands....... What u really want is a big ??? . Read oracle documentation for more details on the usage to get these things clarified.

  • Help on resizing tablespace

    i have a tablespace with 23 datafiles of varying sizes, with a total size of 91,060MB, it has consumed 79,457MB. Would it help the performance of the database if I change the size of the individual datafile to have the same size? e.g. 10 to 20Gig each?
    What would you suggest I do? The important thing is to avoid or lessen database downtime.
    I have a TEMP tablespace which has a size of 22,074MB, it's always full, is this normal and what would you suggest.

    Thanks for your response.
    Tablespace size, or getting the data files the same size, has very little to do with performance.
    -----thank you for this info.
    Using the files effectively has a lot to do with performance.
    For example, are the files on RAID striped disk? Or are they all on the same disk? (If on the same, every request for info from the disk is going to cause the heads to move and cause all other possible requests to wait for that to finish ... very inefficient!)
    ----yes the files are on RAID striped disk.
    Do you have enough memory assigned available for outside the database (not part of the SGA) that could be used for sorting, to avoid spilling sorts to the temp tablespace?
    ----how can I check this? kindly help
    Do you have enough memory, or too much memory, assigned to the SGA? Are you using the SGA efffectively?
    -----how can I check this? kindly help
    How are you arriving at the conclusion that the 'temp tablespace is full'? If you use the same info as the permanent tablespace, you are barking up the wrong tree - the temp tablespace SHOULD be full of temp segments. The question should be "how many of these segments are actually in use?"
    ------When I look at the temp tablespace in the Enterprise Manager, it states 99% used.
    What version of the database is this? What optimization techique are you using? Have you looked at the Performance Tuning document in the doc set for your database?
    -----9iR1. No optimization technique used. No I haven't looked at the performance tuning, but I'm studying it right now. sorry i'm just new to this.

  • Tablespace resizing taking too much time

    This is my database setup:
    3 node rac on 32 bit linux (rh 4)
    2 SANs (3gb + 2 gb)
    current datafiles: 3.2T out of 5.0T (autoextend on)
    before adding the second SAN, the resizing tablespace isn't bad (13s/gb)
    now it is taking way too long:
    this is how I do to resize the tablespace manually to test how long it takes:
    alter tablespace my_tbs resize 3173562M; //from 3172538M (adding another 1gb)
    And it took 33 minutes to complete.
    Could someone tell me what is wrong? is it because the new SAN i put in or it is because now the tablespace is too big?
    ps:: when i check the instance performing, the "SMON" user is like 97% of db activities
    Thanks,
    Chau
    Message was edited by:
    user626162
    Message was edited by:
    user626162

    when you set the tablespace to (autoextend on), what exactly oracle does in the background when it needs to extend the tablespace? does it do the "alter tablespace tbs_name resize"?
    Thanks,
    Chau

  • Reducing USERS tablespace allocated size.

    Is there a way to reduce the size of the USERS database allocation. It is at 4.2 GBs and I have removed schemas and tables so that it is only using 14% of that space.
    I have a database that I need to import that is using a couple of tablespaces that I need to set up.
    I have tried compacting the database.
    Any help would be greatly appreciated.
    Mickey

    Is there a way to reduce the size of the USERS database allocationYes you can reduce size of every tablespace file, for example:
    ALTER DATABASE DATAFILE 'C:\ORACLE\ORADATA\XE\USERS01.DBF' RESIZE 1024M;
    will resize tablespace on 1GB.
    Note that you must set correct path!
    Cheers!

  • Differences between 8i and 9.2

    I use 9.2 at work now and I am wanting to learn more about Oracle databases. I came across Oracle 8i and could install it at home to play with, but are there major differences between the two.
    Message was edited by:
    jamesH

    I have installed Oracle 10 XE and it just seems so easy to work with. There's a GUI for everything. It does not have SQL Plus(that I've seen), but there's an area to type your commands into inside the program that helps administrator the Database. I could not find any documents on 9.2 so Im reading documents on Orcale 10 that I have downloaded from this site.
    I am wanting to practice creating, removing,resizing tablespaces, creating databases, and other DBA things. I also want to have triggers functions and procedures working on it too. I wrote some in college against Oracle 8i.

  • Differences between 8i enterprise and 8i standard edition

    I have seen numerous discussions on whether 8i enterprise or 8i standard should be used in my division, can anyone point me to a source where I can get a comparision of the features between these two.
    null

    I have installed Oracle 10 XE and it just seems so easy to work with. There's a GUI for everything. It does not have SQL Plus(that I've seen), but there's an area to type your commands into inside the program that helps administrator the Database. I could not find any documents on 9.2 so Im reading documents on Orcale 10 that I have downloaded from this site.
    I am wanting to practice creating, removing,resizing tablespaces, creating databases, and other DBA things. I also want to have triggers functions and procedures working on it too. I wrote some in college against Oracle 8i.

  • Resizing temporary tablespace in oracle 8i

    Please,
    I some questions on oracle 8i.
    1. how do I know on oracle 8i if the tablespace X is the temporary tablespace?
    2. I have someone that increase the size of the temporary tablespace, so I have to decrease it to its normal size, my question is when I do the following command.
    alter database tempfile '/u02/oradata/TESTDB/temp01.dbf' resize 250M;
    alter database tempfile '/u02/oradata/TESTDB/temp01.dbf' resize 250M
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value
    Does someone show me how to solve this issue?
    Thanks

    you can use the below sqls
    sql>SELECT tablespace_name, extent_size, total_extents, used_extents,
    free_extents, max_used_size FROM v$sort_segment;
    From the output of the v$sort_segment query:
    extent_size      : size of one extent, in number of Oracle blocks
    total_extents     : total number of extents in the segment (free or in use)
    used_extents      : total number of extents currently in use
    free_extents      : total number of extents currently marked as free
    max_used_size: maximum number of extents ever needed by an operation (like a sort):
    sql> SELECT s.username, u.tablespace, u.contents, u.extents, u.blocks FROM v$session s,
    v$sort_usage u WHERE s.saddr=u.session_addr;
    SQL> select s.username, s.sid, u.tablespace, u.contents, u.segtype,
    round(u.blocks*8192/1024/1024,2) MB
    from v$session s, v$sort_usage u
    where s.saddr = u.session_addr
    and u.contents = 'TEMPORARY'
    order by MB DESC ;
    reference
    ### search MetaLink on: resize tempfile
    Note 273276.1 How to Shrink the datafile of Temporary Tablespace
    Note 274283.1 How to resize Tempfiles if receive an ORA-03297 error Gen RDBMS.
    RD-9014 :
    Note 132663.1 ORA-03296 Resizing Temporary Locally Managed Tablespace
    Note 180578.1 Cannot Resize Tempfiles in Bitmapped Temporary Tablespaces
    Note 161103.1 Space For a Tempfile Not Allocated In The Filesystem

  • Unable to shrink/resize undo tablespace

    Hi Experts,
    I have Oracle 10.2.0.4 database running on RHEL 4.7 in production environment, my undo tablespace has grown upto 32 GB, database is rebooted, still the tablespace is full.
    I want to shrink, resize the undo tablespace, please help me
    Few details are as below
    show parameter undo_retention
    NAME TYPE     VALUE
    undo_retention integer     10
    Please help
    Thanks

    This post is repeatedly executed by mistake, thread with same name is posted 2 minutes before this
    Edited by: user1687821 on Jul 9, 2010 9:29 AM

  • Temporary tablespace resizing in physical standby

    Hi all,
    We have a oracle 9.2.0.6 on Sun soalris.IN Our standby db we are facing one problem is related to temporary tablespaces.
    ORA-1652: unable to extend temp segment by 128 in tablespace TEMPso how to resize the datafile we are already having a two dafiles realted to temp tablespaces
    Edited by: user00726 on Jun 2, 2009 10:25 PM

    Hi Kamran and Anand,
    Both the command s are working
    ALTER DATABASE ADD TEMPFILE 'tempfile_name.dbf' SIZE 5GByesterday only i have added one of the datafile on the same standby database
    Wed Jun  3 01:33:53 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEM
    P
    Wed Jun  3 01:33:54 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEM
    P
    Wed Jun  3 11:23:15 2009
    ALTER DATABASE TEMPFILE '/bkp/oradata1/temp02.dbf' resize 4024 M
    Wed Jun  3 11:24:00 2009
    Completed: ALTER DATABASE TEMPFILE '/bkp/oradata1/temp02.dbf'
    Wed Jun  3 12:53:26 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEM
    P
    Wed Jun  3 12:53:26 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEMand
    today also i have resized the temp files
    ALTER DATABASE TEMPFILE 'tempfile_name.dbf' RESIZE 5GB

  • How to Resize a Datafile to Minimum Size in sysaux tablespace

    Hi Experts,
    I found the init data file size is 32712M in sysaux table. our other DBA added 2 big datafile for spilled issue in sysaux. After cleared data and fixed spill issue. I want to reduce datafile size.
    as ALTER DATABASE DATAFILE 'D:\ORACLE\ORADATA\SALE\SYSAUX05.DBF' RESIZE 10000M...
    I got error message that used data size is over resize size.
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value
    However, I checked data size is only 176M in this datafile in OEM.
    How to fix this issue?
    I use oracle 10G R4 in 32 bit window 2003 server
    JIM
    Edited by: user589812 on May 18, 2009 11:22 AM

    10.2.0.4
    If I run as
    SQL> alter database datafile 'D:\ORACLE\ORADATA\SALE\SYSAUX05.DBF' offline drop;
    Database altered.
    the file is still in database.
    can I make online for this file again?
    could we delete it by SQL as
    alter tablespace sysaux drop datafile 'D:\ORACLE\ORADATA\SALE\SYSAUX05.DBF';
    Thanks
    Jimmy
    Edited by: user589812 on May 18, 2009 12:16 PM
    Edited by: user589812 on May 18, 2009 12:33 PM

  • Tablespace resize

    Using a Bigfile tablespace (maxsize 250G) in Oracle 10g on Solaris.
    In bigfile tablespace I cannot add a second datafile like normal tablespace.
    Want to know when the tablespace reaches the maxsize 250G, what options do I have?
    Can I increase the maxsize ?
    If I re-size the datafile will it tamper the data in any way?
    Sid
    Edited by: [email protected] on Sep 4, 2010 7:59 PM

    [email protected] wrote:
    Hi Teymur,
    You mean to say that I have only the option to resize everytime the tablespace reaches the upper boundary.
    Its a index tablespace, does resizing tamper in any way the index structure or data ?
    Why isn't the maxsize pushed up when I resize the datafile ?Pls, see:
    SQL> create bigfile tablespace big_ts datafile '/oradata/db1/big_ts_1.dbf' size 10 m autoextend on next 1m maxsize 20m;
    Tablespace created.
    SQL> create table big_ts_obj tablespace big_ts as select * from dba_objects;
    Table created.
    SQL> insert into big_ts_obj select * from big_ts_obj;
    69489 rows created.
    SQL> /
    insert into big_ts_obj select * from big_ts_obj
    ERROR at line 1:
    ORA-01653: unable to extend table SYS.BIG_TS_OBJ by 128 in tablespace BIG_TS
    SQL> alter database datafile '/oradata/db1/big_ts_1.dbf' autoextend on next 1m maxsize unlimited
      2  /
    Database altered.
    SQL> insert into big_ts_obj select * from big_ts_obj;
    138978 rows created.
    SQL> /
    277956 rows created.
    SQL> If you do not want to change MAXSIE everytime, then set it to UNLIMITED.
    There is no any relationship between size of datafiles (or resizing datafiles) and INDEX structure.

Maybe you are looking for

  • Unable to open RFC connection to SAP System NSP

    Hi all, During installation i am getting an error which is as follows, "Unable to open RFC connection to SAP System NSP. Solution: Start the system." And the second problem is that there are no connections shown in SAPGUI. Please help me out. Thankin

  • Low disk space Applescript (AppleEvent handler error -10000)

    Hello, I am new to Applescript, downloaded script from online for low disk space alert and was working properly on one mac but getting error on another mac of same version. Someone please help me on this. Thanks in advance. -- Script to warn users of

  • Native 1366x768 with Toshiba

    Hi all, I'm having problems getting my Mini Core Duo to display 1366x768 on my Toshiba LCD 32WL. I've searched high and low for a solution, in here and elsewhere, and while most people seem to fix the problem (with other TV's) using DisplayConfigX or

  • Install iTunes 8 without QuickTime

    I'd like to install the new version of iTunes without installing QuickTime. How do I do this? And why does Apple not have this as an option for the installer?

  • SMTP routing table

    Hello, Solaris 8/ Iplanet Messaging Server 4.X Solaris 8 / SunOne Messaging Server 5.2 My question is about SMTP routing table and for iMS4.x AND SMS5.2 Question: In my SunOne Messaging Server 5.X I have 10 domains. mydomain0.com, mydomain1.com to my