alter tablespace temp failed

C:\Documents and Settings\Administrateur > sqlplus

SQL * more: Release 8.1.7.0.0 - Production on Mon Dec 13 12:56:25 2010

(c) Copyright 2000 Oracle Corporation. All rights reserved.

Enter the user name: sys as sysdba
Enter the password:

Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the partitioning option
Release 8.1.7.0.0 - Production jserver

SQL > set linesize 3333
SQL > select * from dba_tablespaces;

NOM_TABLESPACE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS LOGGING EXTENT_MAN DISTRIBUTION CONTENT PLU
------------------------------ -------------- ----------- ----------- ----------- ------------ ---------- --------- --------- --------- ---------- --------- ---
RECORD PERMANENT ONLINE SYSTEM 65536 65536 1 2147483645 50 65536 DICTIONARY USER NO.
RECORD PERMANENT 524288 524288 8 4096 50 524288 DICTIONARY USER NO. RBS ONLINE
RECORD PERMANENT 131072 131072 1 4096 0 131072 DICTIONARY USER NO. USERS ONLINE
TEMP 65536 65536 1 0 65536 TEMPORARY USER NO. DICTIONARY ONLINE REGISTRATION
TOOLS 32768 32768 1 4096 0 32768 CONSIGNMENT PERMANENT ONLINE DICTIONARY USER NO.
RECORD PERMANENT ONLINE 131072 131072 1 4096 0 131072 DICTIONARY USER NO. INDX
RECORD PERMANENT DRSYS 65536 65536 1 2147483645 50 65536 USER NO. DICTIONARY ONLINE

7 selected lines.

SQL > alter tablespace temp add tempfile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12 M;
alter tablespace temp add tempfile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12 M
*
ERROR on line 1:
ORA-03217: invalid option to alter the TEMPORARY TABLESPACE


SQL >

oracleRaj wrote:
any solution... ??

You must upgrade the database 11g, Execute following and post result it

alter tablespace temp add datafile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12M;

Tags: Database

Similar Questions

  • is it OK to alter tablespace temp SYS of the running production database

    Dear,

    is it OK to alter tablespace temp of the user SYS of the running production database

    Business database version 10.2.0.5
    single instance on AIX

    We have two temp tablespace temp and temp2

    I'm trying to rebuild the index by using sys connection but its not working, cannot extend the temp tablepspace

    then I checked this system a default temp tablespace is of a size of 2 GB

    on the other hand, all other schemas has (including the owner of the index) have the temp of larger size.


    He suggests to change the tablespace temp of SYS.

    Ok. Then the answer is Yes, change the SYS temp tablespace should not be a problem. If you use SYS to reconstructions of index maintenance is another story. In any case, Yes, change the tablespace temp should not be a problem. Other sessions of this user would continue using the old tablespace until their completed transaction. New transactions will begin using the newly designated temp tablespace.

    Hope that helps,

    -Mark

  • Question of Tablespace Temp datafile.

    Hi Oracle gurus,

    the problem occurred when my file temp01.dbf to increase the size of certain MBs to 30 GB! (Within weeks)
    without doing RnD on advice, datafile temp01.dbf has been deleted! ,
    now a text file has been created, I renamed it with the same name 'temp01.dbf '!

    now my tasks fail with the error:

    1157: 64000: java.sql.SQLException: ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
    ORA-01110: data file 201: ' C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01. DBF'

    I tried to add a data file over to the storage space according to the steps below:
    1. connect to sqlplus DBA (user sys)
    2. stop; -Removed database and Oracle Instance will stop.
    3. start; -Oracle instance started.
    4 run this query
    alter tablespace temp add datafile
    ' C:\oracle\product\10.2.0\oradata\orcl\TEMP02. DBF' SIZE 32 M;

    but still the error points to Temp01.

    The funny part, I wrote here that I don't get the name of the data file anywhere in the comic book.

    I've run this query below

    SELECT FILE_NAME IN DBA_DATA_FILES;

    and there is no name of data file with "Temp01" or "Temp02".

    I get the name 'TEMP' Tablespace when performing "SELECT TABLESPACE_NAME FROM DBA_TABLESPACES";

    to add more of what the above

    I tried to delete the file with the name 'TEMP01. DBF. "
    by running

    alter tablespace temp drop datafile
    ' C:\oracle\product\10.2.0\oradata\orcl\TEMP01. DBF';

    I get the following error:
    ORA-03219: Tablespace 'TEMP' is managed by dictionary, offline or temporary

    This storage space (TEMP) is temporary (Default) and his allocation_type is uniform


    I'm looking for

    1 remove the Temp01 data file and rename the temp02 with her.
    2 allow the name of auto extension datafile renamed as well as default data temp file features.

    I'm at the point of no return?..... .i am new to this level of work... I tried to solve the problem by taking the forumns References... somwhr but still missing...

    Need help to solve this problem.

    Hello

    4 run this query
    alter tablespace temp add datafile
    ' C:\oracle\product\10.2.0\oradata\orcl\TEMP02. DBF' SIZE 32 M;

    but still the error points to Temp01.

    the query should be as below

    ALTER TABLESPACE
    Add TEMPFILE '' SIZE M;
    example:
    ALTER TABLESPACE temp_new
    Add TEMPFILE ' / u02/oradata/tempnew02.dbf' SIZE 200 M;

    >

    The part funny, I noted here that I don't get the name of the file of data anywhere in the DB.

    I've run this query below

    SELECT FILE_NAME IN DBA_DATA_FILES;

    and there is no name of data file with "Temp01" or "Temp02".

    We are unable to display a temporary file in dba_data_files... It's funny...

    Use tempfile $ v and v$ temp_space_header to view a temporary file...

    to make offline / online
    ALTER DATABASE TEMPFILE '' offline / online;

    MAKE USE OF THE TEMPORARY TABLESPACE DEFAULT

    ALTER TABLESPACE TEMPORARY for executives from the DATABASE default;

    the use of thiese views

    SELECT *.
    FROM database_properties
    Property_name WHERE = 'DEFAULT_TEMP_TABLESPACE ';

    SELECT file_name, nom_tablespace
    FROM dba_temp_files;

    Kind regards
    Deepak

  • ORA-01652: unable to extend segment temp of 128 in tablespace TEMP

    Hello friends,

    I get this alert in the alert log every time that the statistics of the work... Here is the complete list of the alerts log
    78939:ORA-12012: error on auto execute of job 2
    78940:ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
    78941:ORA-06512: at "SYS.DBMS_STATS", line 13336
    78942:ORA-06512: at "SYS.DBMS_STATS", line 13682
    78943:ORA-06512: at "SYS.DBMS_STATS", line 13760
    78944:ORA-06512: at "SYS.DBMS_STATS", line 13719
    78945:ORA-06512: at line 1
    Please advise... How to fix this error

    Please advise... How to fix this error

    ALTER TABLESPACE TEMP ADD TEMPFILE...

    View the name of the operating system (OS) & version for DB Server System.
    View the results of
    SELECT * from version $ v

    Published by: sb92075 on December 25, 2009 19:40

  • alter tablespace offline...

    Hello

    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/tspaces005.htm

    just a quick question,
    alter tablespace....offline temporary
    A tablespace can be taken offline temporarily, even if there are error conditions for one or more files in the storage space. When you specify TEMPORARY offline, the database supports offline data files that are not already in offline mode, the control points as she does.
    If no file is offline, but you use the temporary clause, media recovery is not required to bring to the online storage space. However, if one or more files from the storage space are offline due to clerical errors, and you are taking the tablespace offline temporarily, the tablespace requires recovery before you can bring it online.

    Based on the explanation above, done means that these datafile (with the error condition) code with the storage space you want to use offline will not in offline mode.
    Oracle will be only offline these 'good' datafile associate with storage space?

    My confusiong early when he mentions:
    if one or more files of the tablespace are offline because of write errors,
    which make me feel that even in the midst of erros, all storage data files will be always taken offline.

    The documents also mention:
    Specify TEMPORARY only when you cannot take the tablespace offline normally. In this case, only the files taken offline because of errors need to be recovered before the tablespace can be brought online. Specify IMMEDIATE only after trying both the normal and temporary settings.
    In this case, based on my current knowledge, I mention since all data files are taken offline in the middle of the condition of erros, we just need to recover those files that have the condition of error on them. ???

    Published by: flaskvacuum on March 1, 2012 11:45

    >
    Oracle will be only offline these 'good' datafile associate with storage space?
    >
    Well, Yes, but it's because the files of data with errors will already be ordering offline offline will not be offline them.
    >
    that means the code of these datafile (with the error condition) with the tablespace you want to use offline will not be in offline mode
    >
    No - the doc says that data files wilth errors have been offline. And after ordering TEMPORARY if you try to put the storage space online, it will fail because it will try to put offline the with online also return errors.

    That's why the doc has this cautionary
    >
    Caution:

    If you take a tablespace offline, use the NORMAL clause (default) if possible. This setting ensures that the tablespace requires not coming online restore, even if after incomplete recovery, you reset the sequence of redo logs using an ALTER DATABASE OPEN RESETLOGS.
    >
    You should check the status of all data files before you use CONNECTION TEMPORARY offline, or if a data file is already offlilne because of a clerical error, you will find that what you thought was temporary will avoid you to bring online storage space unless you do a recovery.

  • Tablespace Temp created primary not replicated to standby mode

    Hello

    I configured Oracle 9i data guard recently, while doing, that I was forced to restructure primary db since maxlog files was 5, so I used backup controlfile to trace and changed the maxlogfiles to 6 and then transported the remaining steps. While I was using the trace file and restructuring of the Db, I did not notice that I missed to add the temporary file and moving it in standby mode. Yest.Day once get a team request error, that I created a new tablespace temp and logs switch made, however this tablespace temp tempfile was not copied to the standby server. Does this cause anything serious or can I do now to copy it in standby? Only the manual copy with primary db shutdown or any other means?

    standby
    SQL > SELECT NAME FROM V$ TEMPFILE;

    no selected line

    Use the commands below

    SQL > alter tablespace add tempfile ' D:\ORACLE\ORADATA\CTSOC\TEMPNEW01. DBF' size 31457280;

    If you take controlfile trace (or) metadata, you can see command DDL that too.
    Thank you.

  • How to resize tablespace Temp in rac asm configuration

    Hi all

    Please help me,

    How to resize the tablespace temp in asm in a rac configuration.

    OS: IBM AIX.

    Kind regards
    VAMSi.

    Try this:

    ALTER DATABASE TEMPFILE '+ ASMDB/gcprod/tempfile/temp.263.661355157' RESIZE 1000M;

  • Restored coldbackup and trouble with tablespace TEMP

    Hi, I've successfully restored from a coldbackup on solaris. (oracle 9.2)
    I can connect to databases using toad, query the database, but when I try to take an export or something I got the error

    EXP-00056: ORACLE error 1157
    ORA-01157: cannot identify/lock data file 203 - see DBWR trace file
    ORA-01110: data file 203: ' / sun2int1/oracle92/app/oracle/product/9.2.1/oradata/TPRS/temp03.dbf'
    ORA-06512: at "SYS." DBMS_LOB", line 424
    ORA-06512: at "SYS." Dbms_metadata", line 1140
    ORA-06512: at line 1
    EXP-00000: export completed unsuccessfully


    When I did the restore, I simply rename the data files and redo logs.
    But I was not rename the TEMP data file, as you can rename it with a command 'alter database rename file... ". »
    That's the problem!

    I plan to create a new default temp. tablespace and simply do it by default and a drop. but it does not work!

    I tried to run:

    CREATE a TABLESPACE TEMPORARY TMP4 TEMPFILE ' / oracleAS/TPRS/oradata/TPRS/temp4.dbf' SIZE 5 M REUSE AUTOEXTEND ON NEXT 1 M MAXSIZE unlimited
    EXTENT MANAGEMENT UNIFORM LOCAL 1 M SIZE;

    create tablespace temp01 temporary tempfile ' / oracleAS/TPRS/oradata/TPRS/temp01.dbf' size 100M;

    but they all hang! I wait, but nothing happens! (and the alert log will not connect anything too)

    Finally, I tried to drop the default tablespace and I couldn't let it go as I thought. (ORA-12906: cannot remove the temporary tablespace default)
    )

    So, im stuck and I think I should RENAME the data file for the temporary tablespace. How can I do this?

    Published by: merope on June 9, 2009 11:32

    I just found this link:
    http://dbaforums.org/Oracle/lofiversion/index.php?t4552.html
    which is something talk no problem of tablespace temp cold backup restore. In the end, it's say that the OP got solution due to the existence of a DDL trigger or something like that.

    HTH
    Girish Sharma

  • ORA-01652 in Tablespace TEMP

    Hello

    We get the following errors:

    RMAN > overlap archivelog all;



    from full resynchronization of the recovery catalog

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of command of overlap at 2009-01-07 14:26:10

    RMAN-03014: implicit recovery catalog Resync failed

    RMAN-03009: resync command failed complete default channel at 2009-01-07 14:26:10

    ORA-01652: unable to extend segment in tablespace temp



    RMAN >

    We tried to increase the size of the TEMP tablespace, but this operation keeps using the set temp tablespace. It's the temp tablespace in the target database that fills.
    We cannot continue to increase the size of the ts TEMP to fill the disk.
    We also tried to create a new repository, but it had the same result.

    I think that there is something in the database tables, as one of our backups used the control target as its repository file. Should I remove the entries in these tables in the tablespace target to make the repository think that there is no re-synchronization to do?

    Kind regards
    Tim.

    See this metalink note:

    Record from database in RMAN fails with RMAN-03002, RMAN-03014 and ORA-01652
    DOC - ID: 469327.1

    Even if you run another command, the error of the battery is exactly the same.

    Werner

  • tablespace Temp problem

    I want to run this commnad all in one, I create PL/SQL, but I give the error and save the txt file and run of I also give me error when I complie and statements into a toad, it compiles successfully, please tell me how to create a procedure or block anoymous. because I wanted to create a task that runs automatically please help my in this regard, please tell me can we shrink in the temporary tablespace

    CREATE TABLESPACE TEMPORARY TEMP_new1

    RE-USE of 50 M SIZE TEMPFILE 'TEMP_new1 '.

    AUTOEXTEND ON NEXT 32 M MAXSIZE unlimited

    EXTENT MANAGEMENT UNIFORM LOCAL 32 M SIZE;



    ALTER DATABASE default TEMPORARY TABLESPACE TEMP_new1;


    DROP TABLESPACE TEMP_ABC INCLUDING CONTENT AND DATA FILES;


    CREATE THE TEMPORARY TEMP TABLESPACE

    TEMPFILE 'TEMP01.dbf' SIZE 50 M REUSE

    AUTOEXTEND ON NEXT 32 M MAXSIZE unlimited

    EXTENT MANAGEMENT UNIFORM LOCAL 32 M SIZE;

    ALTER TABLESPACE TEMPP add TEMPFILE 'temp02' SIZE 50 M
    AUTOEXTEND ON NEXT 32 M MAXSIZE UNLIMITED;

    ALTER TABLESPACE TEMPP add TEMPFILE 'temp03' SIZE 50 M

    AUTOEXTEND ON NEXT 32 M MAXSIZE UNLIMITED;

    ALTER TABLESPACE TEMPP add TEMPFILE 'temp04' SIZE 50 M

    AUTOEXTEND ON NEXT 32 M MAXSIZE UNLIMITED;

    ALTER TABLESPACE TEMPP add TEMPFILE 'temp05"SIZE 50 M

    AUTOEXTEND ON NEXT 32 M MAXSIZE UNLIMITED;

    ALTER DATABASE DEFAULT TEMPORARY TEMP TABLESPACE;

    DROP TABLESPACE TEMP_new1 including CONTENT AND DATA files;

    sql_stmt: = "ALTER DATABASE default TEMPORARY TABLESPACE TEMP1"

    you need to end the statement with '; '.

  • change tablespace temp problem

    Hi guys,.

    my old temp tablespace was DMT and grown huge. So I created a new LMT one using a temporary file. I also modified the temporary tablespcae by default my database of TEMP2.

    Select distinct (temporary_tablespace) in dba_users

    TEMP2


    Now I'm trying to

    SQL > drop tablespace temp including contents;

    and it takes ages as expected. However, what I've noticed, is that this temp tablespace seems still to be used! It remains 100% free, and this one is free space is declining.

    is it possible for me to delete this file in the system files, and then start my nomount database and re-create the control file?

    Thank you

    Here my procedure I use to delete it and create a new temp

    create tablespace temporary temp2 tempfile ' / oracledata/DB/temp999.dbf' size 500M management of local measure;

    ALTER DATABASE by DEFAULT TABLESPACE TEMPORARY temp2;

    DROP TABLESPACE temp including CONTENTS AND DATA files;

    create tablespace temporary temp tempfile ' / oracleindex/DB/temp01.dbf' size, 1025M
    ' / oracleindex/DB/temp02.dbf' size 1025 M, ' / oracleindex/DB/temp03.dbf' size, 1025M
    ' / oracleindex/DB/temp04.dbf' size 1025 M, ' / oracleindex/DB/temp05.dbf' size, 1025M
    ' / oracleindex/DB/temp06.dbf' size 1025 M, ' / oracleindex/DB/temp07.dbf' size M 1025
    extent management local uniform size 1048576;

    ALTER DATABASE default TEMPORARY TABLESPACE temp;

    DROP TABLESPACE temp2 including CONTENT AND DATA files;

  • "Temp fail" with the BLF speed dial + Call Pickup

    Hello all,.

    I am running version 8.6.2 CUCM and many phones IP 7962 G.

    I have a Manager configured with extension 1001 and his PA with extension 1002. The two extensions are configured in the same group of pick-up call.

    On the phone IP of PA, the second button is configured as a BLF Speed Dial with Call Pickup for the Manager.

    When someone calls the Manager, she can see that the line manager sounds but when she push the button to identify which called, she hears a busy tone and the IP phone displays a message that says "Temp Fail". I checked everything on IP phones and everything seems to be OK. Am I missing something?

    When I changed the line manager of 1001 to 1003, in the Group of pick-up even call it's works fine. She is able to pick up calls to 1003. But the server of CUCM, there is no difference between 1001 and 1003 extension.

    Please notify.

    Best regards,

    J. Mr. Kabundi.

    No matter what PickUp group they belong, do not need to be the same for the BLF pick-up function.

    But if they are in the same group, as you say: can the normal collection through the display key PickUp?

    If only change the number to work, I think you may have a problem with the DNs/Partitions. Never renamed the partition? Try to remove the Manager DN, delete the number not assigned to your server and add it again.

    If this still does not work... I will re-start the server if possible.

    Kind regards

    Sven

  • Missing ALTER TABLESPACE syntax... STRATEGY TO ADD DEFAULT ILM

    Hi all

    I'm checking the syntax of the statement:

    ALTER TABLESPACE tbs1

    STRATEGY TO ADD DEFAULT ILM

    STORE COMPRESS ADVANCED SEGMENT LINE AFTER 30 DAYS OF ACCESS LOW;

    The statement of work, but I found this syntax in the SQL (version 12.1) reference.   The song 'ILM add POLICY' after the 'DEFAULT' keyword is not documented.

    Did I miss something or Iit s a lack of documentation?

    Thank you

    Best regards

    Angelo Della Penna

    John,

    The OP post "alter TABLESPACE.

    (The DEFAULT clause for ALTER TABLESPACE for the TABLESPACE points CREATE documenttion).

    There is no clause of ILM for default for CREATE TABLESPACE.

    https://docs.Oracle.com/database/121/SQLRF/statements_7003.htm

    Therefore, it is undocumented (or a bug in the documentation)

    MK

  • How to change the 'Drive' for the BSO cubes (just like we do using "alter tablespace" for ASO cubes) using MAXL etc.?

    Hello team,

    I'm trying to make a backup copy of the cube by using the copy commands, BSO

    but after copy, I need to change the drive letter (for the data and indexes of the files) using MAXLs.

    I am able to do for cubes ASO using "Alter tablespace" i.e. for example, change "D:\" car ' to 'E:\. "for the tablespace files.

    I need to do the same for the BSO cubes? any idea?

    Kind regards

    Amit

    Don't forget while you can also change the drive it can't displace data. You would have to export the data, delete the database, change the disks, and then reload.

    For the actual command of MaxL watch the MaxL Alter Database command. You can add, dorp or set volumes of disk for ind and pag files

  • Precisely how to find freespace in tablespace Temp

    DB version: 11.2.0.4

    Platform: Oracle Linux 6.4

    It seems that finding the space left in the temporary tablespace is not simple.

    Question1.

    These are the descriptions of column to see DBA_TEMP_FREE_SPACE

    ALLOCATED_SPACE: Total allocated space, in bytes, including the currently allocated space

    and used and the space that is currently allocated and available for reuse

    Free_space: Total free space available in bytes, including the space which is currently assigned and available for

    reuse and the space that is currently not allocated

    http://docs.Oracle.com/CD/E11882_01/server.112/e40402/statviews_5062.htm#REFRN23627

    I'm not native English, but aren't the words in red above for the column ALLOCATED_SPACE a wrong repetition?

    Question2. In 10g, when you see zero space left in the Temp tablespace, allows us to add more space to the tablespace TEMP immediately to prevent ORA-1652: unable to extend temp segment . 11 g, is there an architectural change by what TEMP segments are recycled internally (like UNDO segments) so that we don't have to worry much when we see the 0 space in tablespace temp?

    Question3. For the same database, the results of two queries are listed below. The news of freespace vary between QueryA and QueryB.

    Which is the correct output; QueryA or QueryB?

    -QueryA using dba_temp_free_space

    Select nom_tablespace,

    totalGB tablespace_size/1024/1024/1024,

    AllocSpaceGB ALLOCATED_SPACE/1024/1024/1024,

    free_space/1024/1024/1024 FreeSpaceGB

    of dba_temp_free_space;

    NOM_TABLESPACE TOTALGB ALLOCSPACEGB FREESPACEGB

    ------------------------------ ---------- ------------ -----------

    TEMP 125.99707 125.748047 69.9150391

    -QueryB using v$ sort_segment

    SELECT A.tablespace_name, D.gb_total, tablespace

    SUM (A.used_blocks * D.block_size)/1024/1024/1024 gb_used,)

    D.gb_total - SUM (A.used_blocks * D.block_size)/1024/1024/1024 gb_free)

    V $ sort_segment A.

    (

    SELECT B.name, C.block_size, SUM (C.bytes)/1024/1024/1024 gb_total

    V $ tablespace B, v$ tempfile C

    WHERE B.ts # = C.ts #.

    B.name GROUP, C.block_size

    ) D

    WHERE

    D.name = A.tablespace_name

    GROUP A.tablespace_name, D.gb_total;

    TABLESPACE GB_TOTAL GB_USED GB_FREE

    ------------------------------- ---------- ---------- ----------

    TEMP 125.99707 22.6992188 103.297852

    So, this could mean that oracle will be reuse TEMP segments internally and Temp space needs to be increased if

    you see errors ORA-1652 in the alerts log. Right?


    I rarely answer even in this case.  It is usually a transient problem with enriched work.  Only when it becomes quite persistent to impact business operations should I address it.  When I receive an event, the first thing we do is to go to the guy in charge of the related enterprise application and ask if his phone rings.  If this isn't the case, I don't worry about this. And even if it causes a business problem, the solution may be to increase the size of the TS but to identify a particularly evil-wise query.  The last time that I had to deal with this error was due to a broad and complex query generating a large intermediate result set.  The solution should not continue to increase the TEMP TS (which turned out be "whack-a-mole") but to create a materialized view to reduce the amount of data that had to be picked up and joined running.

Maybe you are looking for