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

Tags: Database

Similar Questions

  • 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;
    
  • UNDOTABLESPACE and TABLESPACE TEMP in cold or hot backup database

    Hello

    I have a BACKUP, including logs generated after the backup archive. What is the use of the UNDOTABLESPACE and TABLESPACE TEMP datafile data file backup? When it is used?


    Kind regards

    007

    >
    I have the archives which have all entries are committed in it. Undoinformation is necessary for the restoration and recovery of the database? Can u explain more clearly?
    >

    The archives are as congested entries of redo logs. And the redo logs contain all changes to the database. Information cancellation will be there in the segments of cancellation that there can be some uncommitted transactions active in the segments of cancellation. Cancellation information is necessary to put the database in a consistent state. It is one of very important storage similar to the control file and system tablespace to bring a database

    Edited: Imagine a scenario. You make a backup hot at 07:00. And there are a lot of transactions happening before and during hot backup. For ex, I run a massive update to a table. This will cause the recovery to write logs of recovery that will be eventually written to logs archived. Now, you finish the backup mode. But I have not validated or cancelled my transaction. Say to the reasoning, I roll back the transaction.

    Now, you restore the backup. Do you think that my transaction will be in inconsistent state? Redo logs and archiveed newspapers had my transaction changes/redo entries. If you are not using undo in recovery segments, what will happen to my operation that I rolled back? Without cancel, half of my transaction (even if they were not truly committed) will be sitting in the database. This is where undo tablespace helps us in rolling back the transaction during your recovery. Remember, the cancellation information "peuvent" not all in recovery if you do not a complete database recovery. But Oracle should know that. If you need to undo tablespace in your backup set.

    I hope it's clear now

    Published by: VenkatB on Sep 15, 2011 10:17

  • 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

  • Doubt about tablespace temp

    Hi all

    DB version: 9.2.0.4.1
    version of the operating system: windows 2003 server sp2 (64-bit)

    the application team runs a job of loading each month which requires more temp tablespace.
    so every time my colleague will create new tablespace temp with 30 GB in size and makes it as default.
    He will be too old (old temp is also 30 GB).

    (1) if we do not create a new, old temp will be reused?
    (2) is it a bug in this version so that temp is not re-used? (unfortunately, my colleague don't know the answers for these)

    also, according to my understanding, oracle will not release tablespace temp paques1861 once the work is completed. Instead it is attributed to another transaction when required.
    Please correct if I am wrong.

    Thanks in advance.

    Glance,

    It's pretty simple: just as it is easy to become addicted to alcohol and hard to get rid of him, it is easy to increase a tablespace and hard to reduce its size.
    When you have
    -SQL with the runaway temporary use
    AND
    -you are convinced Oracle must release tablespace temp (which it doesn't)
    you use measures like your colleague has set up.

    Apart from wasting your time (you'd better give that SQL), you do nothing.

    Oracle does not release space for some reason:
    outside the allocation and release of the extents over and over again are very expensive.
    You want to avoid that.

    --------
    Sybrand Bakker
    Senior Oracle DBA

  • Tablespace not specified in the CREATE DATABASE command

    Hello

    I'm cloning a database using "backup controlfile to trace", copy the data to another server, do a restore using backup controlfiles and deliver an open resetlogs.
    The last steps in the case of "manually", not by the script "create controlfile ':

    RECOVER DATABASE USING BACKUP CONTROLFILE

    ALTER DATABASE OPEN RESETLOGS;
    ALTER TABLESPACE TEMP ADD TEMPFILE...

    Xxx_TEMP ALTER TABLESPACE ADD TEMPFILE

    Yyy_TEMP ALTER TABLESPACE ADD TEMPFILE

    It works very well, however in the alert log this message appears:

    ATTENTION: by default temporary
    Tablespace not specified in the CREATE DATABASE command

    Default temporary tablespace will be necessary for a locally managed database in future release

    Mount of redo thread 1, with mount id 801397961

    Source and target system temp tablespace are defined:

    select * d atabase_properties property_name as « % TABLESPACE »;

    TEMP DEFAULT_TEMP_TABLESPACE name of the default temporary tablespace

    DEFAULT_PERMANENT_TABLESPACE USERS name of default permanent tablespace

    Can you give me some information on it?

    What command 'create database' is incorrect (without default TS)?

    Concerning

    Christian

    Hello

    Orders of data files to create temporary tablespaces are in the Script SQL generated, as last orders to be released.

    1. the first thing you do not database, in fact, create by rebuilding the controlfile based on existing database files.

    2. Secondly, your script controlfile is created based on data files, the next step if adding temporary file what I said in previous post.

    3. from your message it's just adding/WARNING provided by oracle - since before re - build my database - old controlfile knows we tablesapce temp. When you re-built your database it shows not know a temporary file.

    Hope that helps

    -Pavan Kumar N

  • 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

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

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

  • 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

  • Tablespace TEMP fills and then see ORA-04031

    Hello

    Database Oracle version: 11.2.0.3 Linux

    "KGLH0 ^ bac435f8 kglHeapInitialize:temp ',' ')" error. We can assume that because the TEMP tablespace was full for the sort used oracle shared pool/memory for sorting operation and has caused the depletion of the space in the shared pool.

    Please answer.

    Hello

    NO, because the shared pool is not used for sorting but used for analysed maintenance sqls, pl/sql code information and data dictionary. Please read more about shared pool Memory architecture - 11 g Release 2 (11.2)

    > ORA-04031: unable to allocate 32 bytes of shared

    This means that you can set the Shared pool.

    HTH,

    Pradeep

  • 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

Maybe you are looking for

  • Re: Installation Canon IXUS V - connection of the camera not detected

    I installed the driver from the website of Canon, but when I connect the camera, I get a message saying "connection Camera not detected' followed by an error message saying pscN109 has stopped working. Then a message from Microsoft saying no soloutio

  • Satellite L100-130: every moment of sound when start the computer

    I have a Toshiba Satellite L100-130 (my first laptop and my first experience with Windows XP). When I start my computer I hear the Microsoft Windows XP, but after that I have to manually set the volume, because it is set to 0 whenever I start my lapt

  • LLB

    Hey Gang, I have ' [ve developed in LabVIEW for years, but have never used LLBs.  My questions are so fundamental that I can't find anything in the help of LV or Developer area.  In the application that I design, management wants a large number of st

  • Error message: 80070012

    I use an Acer Aspire 3100 with a Kodak ESP 3200 printer. When I ran the Update window - he listed SP1 as an updated critical. When I run WU through the download and installation process. However, when I restart, it said installation update - when it

  • Update installs the error code.

    I have two window updates waiting to be installed, but whenever I try to install, I get an error message indicating that it may be a running program that will not allow the installation to occur.  How to clear up this problem so that I can get the up