Undo tablespace/data files

Oracle 9i

In production, we get the undo data files:

SUM (MAXBYTES) SUM (USER_BYTES)
33554432000 12823953408

This table has 90 million records

I estimated the size of the table:
Num_Rows * avg_row_len = 12875211284

We need to insert records to the new table 55 million. When insert, I want to just run insert in... . Select statement once, only to commit only once.
do you think that undo tablespace is large enough to contain 55 million records based on the data above undo files?
Thank you
S.

Also add don't work with it selects only works with INSERT, and you have already created a table in nologging mode. If you are on 10 and your management measure is set to auto, then use it.

create table st.order_temp
TABLESPACE USER_DATA
NOLOGGING
NoCache
noparallel
in select
...
...
all columns
...
...
of st.order_temp
When trunc (insert_date) > = add_months (trunc (sysdate, 'MONTH'),-12);

Published by: OrionNet on December 9, 2008 02:19

Tags: Database

Similar Questions

  • How to move a specific tablespace data file from one directory to another

    Database: 10.2.0.1
    OS: generic
    Description of the problem: how to move a specific tablespace data file of one directory to another account of the database that is on the installer of Oracle Dataguard

    * Oracle is working on this issue, but at the same time opens the topic community so that community members can add their views, experience, or knowledge. This will strengthen again all the knowledge bases, including My Oracle Support and My Oracle Support Communities *.

    Published by: ram_orcl on August 16, 2010 21:21

    Dear ram_orcl,

    Please follow the procedures here;

    http://download-UK.Oracle.com/docs/CD/B19306_01/server.102/b14239/manage_ps.htm#i1034172

    8.3.4 Renaming a Datafile in the Primary Database
    
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
    
       1.
    
          To rename the datafile in the primary database, take the tablespace offline:
    
          SQL> ALTER TABLESPACE tbs_4 OFFLINE;
    
       2.
    
          Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
          /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       3.
    
          Rename the datafile in the primary database and bring the tablespace back online:
    
          SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE      2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            3>  TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
          SQL> ALTER TABLESPACE tbs_4 ONLINE;
    
       4.
    
          Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
    
          SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
          SEQUENCE# APP
          --------- ---
          8 YES
          9 YES
          10 YES
          11 YES
          4 rows selected.
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    
       5.
    
          Shut down the standby database:
    
          SQL> SHUTDOWN;
    
       6.
    
          Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       7.
    
          Start and mount the standby database:
    
          SQL> STARTUP MOUNT;
    
       8.
    
          Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
    
          SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    
       9.
    
          On the standby database, restart Redo Apply:
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
            2> DISCONNECT FROM SESSION;
    
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'
    

    Hope that helps.

    Ogan

  • How to reduce the temp tablespace data file

    Dear all,

    I'm using Oracle 11 g on Windows 2003. Due to a SQL select query my temp tablespace data file size has increased significantly. How can I reduce the data temp file?

    Thank you

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28310/tspaces007.htm#CFHJFBBJ

  • Users tablespace - data file is 24.5 GB, only 1.2 GB used - what should I do?

    Hi all

    In my database I have users tablespace and its data file is users01.dbf. File size is 24.5 GB, but the data used are of 1.2 GB. I got this information from OEM, see image below:
    https://picasaweb.Google.com/100555146235257804098/Oracle_a1#5759303022195932370

    How I can free unused space of 23GB?

    Just to let you know to my knowledge, I am a developer of report OBI.

    Thank you!

    >
    I executed the script sql on your link http://www.oracle-ckpt.com/how-to-shrink-datafiles-adjusting-hwm/

    It gives only 7 GB. If I can save only 7 GB so it will not help me. This is the maximum possible savings, you can do.

    Do you mean if I load 20 GB of data now in the post above, the database uses the current data file to increase the size of the file? Or it adds to the size of the file, that is to say 25 + 20 = 45 GB?

    It seems CanGrow is enabled for the USERS tablespace: CANGROW - YES

    If it uses the size of the file, then I can deal with the current structure. If we add to the file so I can't move forward.

    Your data file already occupied 23 GB, if you load another 20 GB of data. Of course, it can take another 20 GB, if all 23 GB already existing aid. Have you talked about the link that is mentioned by Sir Jonathan Lewis?

  • How to move a segment in the SYSAUX tablespace data file

    Hello

    I had a problem with my tablespace SYSAUX growing due to the history of Stats being not properly purged (lots of hits and articles against this known issue). I have since corrected this problem and I did my SYSAUX tablespace so that it is now less than 3 GB. However, the data file unique original behind this tablespace is still 10 GB and I want to reduce again to below 6 GB.

    However as a suspect when I try to reduce the data return file I get ORA-03297 file contains data beyond the requested value of RESIZING.

    I checked the table dba_extents for this tablespace, which reveals there are approximately 765 segments over my desired fix of 6 GB.

    Q1. If there is only 1 or 2 segments above this mark of 6 GB, how would manually move their bottom?

    Q2. I gave have 765 segments above this 6 GB brand, what are the recommendations to achieve the mass movement required of these segments?

    Thank you
    Jim

    The Alter Table or Alter Index statement will pass all these types of segment?

    Lol some are special items.

    Here is what I make sure you test something you care to.

    And the double test. Frankly, I would like to change the least possible and if I didn't do it, I would avoid.
    It might be easily really much, much more trouble than its worth.

    LOBINDEX

    ALTER table move lob () store (tablespace );

    NESTED TABLE

    A nested table can be moved to a different tablespace only by moving his table containing storage target.
    (Move the parent table, which is only necessary.)

    PARTITON TABLE

    ALTER partitioned table move partition part_2 tablespace ;

    LOB SEGMENT

    ALTER TABLE owner.table_name MOVE LOB (column_name) STORE AS (nom_tablespace);

    CLUSTER

    I'm not sure.

    INDEX PARTITION

    example of

    ALTER INDEX SYS. I_STREAMS_APPLY_SPILL_MSGS_PT1 CHANGE DEFAULT USERS TABLESPACE ATTRIBUTES;

    PARTITION OF LOB

    ALTER table

    partition of moving lob () store as (tablespace );

    See also - online redefinition of tables

    http://Oracle.Su/docs/11g/server.112/e10595/tables007.htm

    Oracle Database 10 g Release 2 online data reorganization & redefinition

    http://www.Oracle.com/technetwork/database/features/availability/HA-10gR2-online-reorg-TWP-131644.PDF

    http://jhdba.WordPress.com/2009/05/19/purging-statistics-from-the-SYSAUX-tablespace/

    Best regards

    mseberg

  • Tablespace, data file auto-extension

    Hi gurus!

    I'm new here, I have a dout.

    What you recommend me, generate a data file auto-étend or generate more data for a tablespace file?

    Is there a problem with the performance?

    Rigth now I a tablespace with a self-aggrandizing data file ' extends, with an increment of 10240KB, it of a table with a level of transaction gran space every day, allowed the size of increace?

    Thanks in advance

    879411, I'm not sure I understand everytihing say, but in general you want that data files are rarely extend to 100%. You do not want to set the next is large enough that the file would extend only rarely. You would balance against if at some point, you expect the items being supported in the tablespace to each stop growing or the rate of growth slows down significantly.

    Choose a file size which would become perhaps once a week might be a good size to start.

    At least the file extend the size should match the object to the extent that is required. In the case of a managed tablespace locally allocated by self, this could be 64 M.

    HTH - Mark D Powell.

  • Tablespace, data file, Schmeas in 10 gr 2

    Hello

    What are v$ views or tables instances where I can join their data files tablepspaces performs and tablespaces to their corresponding schemas?

    I need to prepare a report for having overview of all data files and its elements, and I need this information in order to complete the report.

    Thank you
    R

    dba_ts_quotas DESC
    DESC DBA_DATA_FILES

  • associated tablespace data file

    Hello
    How can we find out what all the data file associated with a tablespace?

    Select file_name in dba_data_files where nom_tablespace = «...» » ;

  • Loss of all control files and two independent of the system tablespace data files.

    Hello


    Loss of the controlfile and 2 data files: February 25, 2010... 15:00

    Database: in Archivelog mode

    Backup: controlfile and all (6) datafiles on February 20, 2010 and all archive logs are available up to the failure

    -Wanted to recover.

    Even if the controlfiles are restored from a backup, as long as the archive + online redo logs are available, you can make a FULL recovery.
    At the end of the recovery, an OPEN RESETLOGS would update the controlfile with correct information about SNA sequence # and headers of files.
    (Of course, the RESETLOGS would mean a new incarnation is created and log sequence numbers start from 1 - if you perform a backup as soon as possible after the RESETLOGS).

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Lost in the SYSTEM tablespace data file

    Version: 10.2.0.5
    Platform: AIX 6.1

    The only data in the System tablespace file is lost. The DB has crashed.
    We have the RMAN backup and the newspaper archive since the last backup of level 1.
    With RMAN, where should we go

    a. restore, Recover Database
    or
    b. restore, recover any SYSTEM tablespace?

    Your database must be mounted State.

    RMAN > run {}
    allocate channels ch1 disc type;
    system restore of tablespace;
    recover the system tablespace.
    SQL 'ALTER DATABASE OPEN;
    }

    Talip Hakan Öztürk
    http://taliphakanozturken.WordPress.com/

  • drop tablespace/data file

    version 817 / Solaris 8 operating system
    There is request the user to disconnect the tablespace and then slide it and its file of data... I'll be able start db without problem after that?

    Published by: DBA2011 on March 27, 2012 14:11

    DBA2011 wrote:
    version 817 / Solaris 8 operating system
    There is request the user to disconnect the tablespace and then slide it and its file of data... I'll be able start db without problem after that?

    Published by: DBA2011 on March 27, 2012 14:11

    I expect the answer is YES!

  • No Archivelog database - Undo Data files Deleted-how open database?

    I do a few tests in laboratory server.

    Unforunately Undo Tablespace data files are deleted from the server.
    Database is running in no archivelog Mode and I have not any any type of backup.

    Last week, I did only read only work with the database. So not really concern how I is coward.

    The biggest concern is how to open the database with existing data files?

    Kind regards
    Sumit

    Published by: Sumit2 on August 27, 2009 12:57

    If no active transaction or data required by one of the session to restore, then it will be difficult to recover these transactions and your database data will be in a State of incoherence. As you only read only activity you can safely recover the database.

    Comment just undo tablespace and undomanagement parameters init.ora file and restart the database.

    Once the database is in place create undo tablespace and assigning like default undo tablespace tablesapce.

  • Why the Media recovery is necessary once a data file is brought back to fashion online?

    Hi DBAs,

    Consider the following scenario:

    Offline data file:

    08:09:38 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    08:09:47 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' offline;

    Database altered.

    08:09:58 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    RETRIEVE F:\ORACLE\ORADATA\CD\UNDO4. DBF

    08:10:02 coredev > select * from v$ tablespace where name = "UNDO";

    ENC FLA BIG TS # NAME INC.

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

    UNDO 33 YES NO YES

    Data file online:

    08:10:53 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    ALTER database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online

    *

    ERROR on line 1:

    ORA-01113: file 21 needs media recovery

    ORA-01110: data file 21: ' F:\ORACLE\ORADATA\CD\UNDO4. DBF'

    08:11:04 coredev > recover datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF';

    Complete media recovery.

    08:11:13 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    Database altered.

    08:11:49 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    Now my doubt is:

    1.Pourquoi Media recovery is necessary once a data file brought to online from offline mode?

    2. why DB not open and throws the error message after brining online of offline?

    3. Why is he asking for recovery of the media?

    I'm very confused...!

    Kind regards

    Ritu

    In order to make the UNDO4 data file. Coherent DBF with other UNDO tablespace data files, when you bring it from OFFLINE to ONLINE, the changes that happened during the period offline needs to be applied to this data file hence it is requires media recovery.

    It is directed by my understanding.

  • How to recover the data file in Oralcle 10 g...? No backups and no newspaper archiving

    All,

    I need to recover the data file 2, which is for the undo tablespace and it is in the State to recover and I need to recover the data files now.

    But the bad news is we have no backup at all and we have no archive logs (log archiving is disabled in the database)...

    In this case how can I recover the data file...?


    SQL > select a.file #, b.SID, a.status from v$ datafile a, v$ tablespace b where a.ts #= b.ts #;

    FILE NAME STATUS NO.
    ---------- ------------------------------------------------------------------------------------------ -------
    1 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/system01.dbf SYSTEM
    * RETRIEVE /export/home/oracle/logs/bw/undotbs01.dbf 2 *.
    3 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/sysaux01.dbf online
    4 /export/home/oracle/datafiles/bw/bwfcc73.dbf online
    5 /export/home/oracle/datafiles/bw/bwfcc73_01.dbf online

    SQL > archive logs list;
    Database log mode no Archive Mode
    Automatic archival disabled
    Destination of archive USE_DB_RECOVERY_FILE_DEST
    Sequence of journal online oldest 4940
    Current log sequence 4942

    Hello

    First, you must open a ticket with oracle Support and explore the options

    You can use this note to fix:
    RECOVERY OF A LOST IN A [ID 1013221.6] UNDO TABLESPACE DATA FILE

    If you are unable to drop Undo tablespace as Undo Segment recovery must

    You can download the trace file following the opening of the ticket

    SQL>Alter session set tracefile_identifier='corrupt';
    
    SQL>Alter system dump undo header "";
    
    Go to udump
    
    ls -lrt *corrupt*
    
    Upload this trace file
    
    Also upload the alert log file
    

    Kind regards
    Levi Pereira

    Published by: Levi Pereira on November 29, 2011 13:58

  • CAN I RECOVER DELETED DATA FILE AND ITS TABLESPACE BY USING FLASHBACK DATABASE

    Hello!

    I CREATED THE TABLESPACE WITH ITS DATA FILE.

    SQL > create tablespace usmantbs datafile 'E:\oracle\product\10.2.0\oradata\orcl\usman.dbf' recording petit_fichier the size of 10 M extent management local segment space management auto;

    THEN, I CREATED A USER AND HIM ENTRUST THIS TABLESPACE.

    SQL > create default profil_utilisateur identified by Neil Leal Microsoft account unlock default tablespace usmantbs;
    SQL > grant connect, resources for Neil;

    I CONNECTED WITH Neil as USER AND CREATED a TABLE.

    SQL > conn Leal/Leal
    SQL > create table baseball (id number (9));

    SQL > select current_scn from v$ database;

    CURRENT_SCN
    ---------------------
    545863

    Then I deleted the tablespace including contents and data files...

    SQL > drop tablespace usmantbs including content and data files;

    I have no backup of this data file, but my database is in archive log...

    So I can... .flashback database to the SNA 545863 as it was before the fall... to get back my along its tablespace data file
    Wil I get my datafile back or not? Help, please...

    You can test it by yourself easily :) You will not be able to open your database
    After getting the error, just rename this data file and flashback again. Then open your database

    C:\Documents and Settings\Administrator>sqlplus "/as sysdba"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 1 14:20:34 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> alter database archivelog;
    
    Database altered.
    
    SQL> alter database flashback on;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> create tablespace tb datafile 'c:\tb.df' size 1m;
    
    Tablespace created.
    
    SQL> create user tb identified by tb;
    
    User created.
    
    SQL> grant dba to tb;
    
    Grant succeeded.
    
    SQL> alter user tb default tablespace tb;
    
    User altered.
    
    SQL> create table tb (id number);
    
    Table created.
    
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
         547292
    
    SQL> drop tablespace tb including contents and datafiles;
    
    Tablespace dropped.
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> flashback database to scn 547292;
    flashback database to scn 547292
    *
    ERROR at line 1:
    ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
    below
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> alter database open resetlogs;
    alter database open resetlogs
    *
    ERROR at line 1:
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005
    
    SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005' as 'c:\tb.dbf';
    
    Database altered.
    
    SQL> flashback database to scn 547292;
    
    Flashback complete.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL>
    
    SQL> select * from tb;
    
    no rows selected
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\TB.DBF
    
    SQL> select name from v$tablespace;
    
    NAME
    ------------------------------
    SYSTEM
    UNDOTBS1
    SYSAUX
    USERS
    TEMP
    TB
    
    6 rows selected.
    
    SQL>
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com
    [Step by step installation Oracle Linux and automate the installation by using Shell Script | http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

    Published by: Kamran Agayev, a., July 27, 2009 14:38

Maybe you are looking for

  • my photo print black on my ipad, why?

    has changed my printer to print photos from my iPad mini. But the pictures to print so dark. have lightened the photos, but it makes no difference. waste a lot of ink and photo paper!  Would like to have an explanation. Thank you

  • Bell: How to scan from HP4620 HP Tower

    I can print to 4620, but when I try to scan it told me that there is a computer on the network.  I recently installed a new toer.

  • Windows doesn't open after downloading SP3

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! I downloaded SP3 on windows xp SP2.  Windows will not open.  Said that a problem is due to new downloaded software.  I started in safe mode and

  • Why my internet explore end always work... having to reload pages

    I can be in the middle of something, and a box pops up saying internet explore has stopped working... why he keep doing this... really me off ticking

  • Wireless mouse not detected in Windows 8

    computer doesn't detect mouse Microsoft 1679 wireless model. I am running windows 8.0 Original title: wireless mouse