Undo tablespace datafile missing

Hello

Oracle 10 g 2, OEL4. I tried to simulate the loss of the undo data files, I had two data files in the undo tablespace.
sql> shutdown abort;
sql> exit;
 linux prompt ] rm undotbs02.dbf undotbs01.dbf       
content of the init.ora file

* .undo_management = "AUTO".
* .undo_tablespace = "UNDOTBS1.

now how to open the database
I have this in the alerts log

>

Errors in the /u01/app/oracle/admin/PROD/udump/prod_ora_26277.trc file:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-00376: 6 file cannot be read right now
ORA-01110: data file 6: ' / u01/app/oracle/oradata/PROD/undotbs02.dbf'
Error 604 happened during db open, close the database
USER: termination litigation because of the error 604
Instance of stopped by USER, pid = 26277
>


Khurana

Khurana says:
OK so create an undo tablespace now in a new database and drop the created default undo tablespace. then I'll be able to get it back?

I'll try this one and I will return.

A big thank you for the suggestions.

Khurana

Ideally, you should if you don't experience any other error.

Concerning
Anurag

Tags: Database

Similar Questions

  • recover missing (ORA-01092) UNDO tablespace

    I got ORA-01092 when starting the database

    SQL > startup
    ORACLE instance started.

    Total System Global Area 1367343104 bytes
    Bytes of size 1292468 fixed
    838862668 variable size bytes
    520093696 of database buffers bytes
    Redo buffers 7094272 bytes
    Mounted database.
    ORA-01092: ORACLE instance is complete. Disconnection forced

    I discovered that the UNDO tablespace is missing

    Alerts log shows this:

    My Oct 04 13:54:45 2010
    Setting the default value of the parameter parallel_max_servers
    160-135 because of the value of the process parameters (150)
    My Oct 04 13:54:45 2010
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Diagram of SNA picked latch-free 2
    With the help of LOG_ARCHIVE_DEST_1 parameter value by default as D:\oracle\product\10.2.0\db_1\RDBMS
    Autotune undo retention is enabled.
    IMODE = BR
    ILAT = 18
    LICENSE_MAX_USERS = 0
    SYS audit is disabled
    ksdpec: called to the event 13740 before initialization of the event group
    Commissioning ORACLE RDBMS Version: 10.2.0.3.0.
    Parameters of the system with default values:
    process = 150
    __shared_pool_size = 813694976
    __large_pool_size = 8388608
    __java_pool_size = 8388608
    __streams_pool_size = 8388608
    SGA_TARGET = 1367343104
    control_files = D:\ORACLE\PRODUCT\10.2.0\ORADATA\AXPHQ01\CONTROL01. CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\AXPHQ01\CONTROL02. CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\AXPHQ01\CONTROL03. CTL
    DB_BLOCK_SIZE = 8192
    __db_cache_size = 520093696
    compatible = 10.2.0.3.0
    db_file_multiblock_read_count = 16
    UNDO_MANAGEMENT = AUTO
    undo_tablespace = UNDOTBS1
    Remote_login_passwordfile = EXCLUSIVE lock
    db_domain =
    dispatchers = (PROTOCOL = TCP) (SERVICE = AXPHQ01XDB)
    JOB_QUEUE_PROCESSES = 10
    audit_file_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\AXPHQ01\ADUMP
    background_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\AXPHQ01\BDUMP
    user_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\AXPHQ01\UDUMP
    core_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\AXPHQ01\CDUMP
    db_name = AXPHQ01
    open_cursors = 300
    pga_aggregate_target = 419430400
    optimizerconnect_by_cost_based = FALSE
    allowlevel_without_connect_by = TRUE
    PMON started with pid = 2, OS id = 7988
    PSP0 started with pid = 3, OS id = 7964
    MA started with pid = 4, OS id = 6948
    DBW0 started with pid = 5, OS id = 7332
    LGWR started with pid = 6, OS id = 5128
    CKPT started with pid = 7, OS id = 7148
    SMON started with pid = 8, OS id = 5804
    RECCE has started with pid = 9, OS id = 3604
    CJQ0 started with pid = 10, OS id = 7084
    MMON started with pid = 11, OS id = 8448
    My Oct 04 13:54:46 2010
    commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...
    MMNL started with pid = 12, OS id = 4704
    My Oct 04 13:54:46 2010
    commissioning or shared server 1...
    My Oct 04 13:54:47 2010
    ALTER DATABASE MOUNT
    My Oct 04 13:54:51 2010
    Definition of embodiment of recovery target 2
    My Oct 04 13:54:51 2010
    Mount of redo thread 1, with mount id 4102419559
    My Oct 04 13:54:51 2010
    Database mounted in exclusive Mode
    Completed: ALTER DATABASE MOUNT
    My Oct 04 13:54:52 2010
    ALTER DATABASE OPEN
    My Oct 04 13:54:53 2010
    Beginning of thread 1 crash recovery
    parallel recovery started with 7 process
    My Oct 04 13:54:53 2010
    Scan again started
    My Oct 04 13:54:53 2010
    Complete scan again
    1 blocks again read, 0 data blocks need recovery
    My Oct 04 13:54:53 2010
    Request for reinstatement has started
    Thread 1: logseq 10520, block 2, CHN 8758774026015
    My Oct 04 13:54:53 2010
    Online Redo Log recovery: thread 1 mem Group 11 Seq 10520 reading 0
    Mem # 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\AXPHQ01\REDO11. JOURNAL
    My Oct 04 13:54:54 2010
    Completed request
    My Oct 04 13:54:55 2010
    Finished in crash recovery
    Thread 1: logseq 10520, block 3, RCS 8758774046017
    redo the 0 data blocks read, 1 0 written data blocks, blocks read
    My Oct 04 13:54:58 2010
    Thread 1 Advanced to record the sequence 10521
    Thread 1 is open to the sequence of journal 10521
    Currently journal # 12 seq # 10521 mem # 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\AXPHQ01\REDO12. JOURNAL
    Opening of redo thread 1
    My Oct 04 13:54:58 2010
    View MTTR is disabled, because FAST_START_MTTR_TARGET is not defined
    My Oct 04 13:54:58 2010
    SMON: enabling cache recovery
    My Oct 04 13:54:58 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\udump\axphq01_ora_1024.trc file:
    ORA-30012: undo tablespace "UNDOTBS1" there is not, or of the wrong type

    My Oct 04 13:54:58 2010
    Error 30012 happened during db open, close the database
    USER: termination litigation because of the error 30012
    My Oct 04 13:55 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_pmon_7988.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    My Oct 04 13:55 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_reco_3604.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    My Oct 04 13:55 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_smon_5804.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    My Oct 04 13:55 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_ckpt_7148.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    My Oct 04 13:55 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_lgwr_5128.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    My Oct 04 13:55:01 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_mman_6948.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    My Oct 04 13:55:01 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_dbw0_7332.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    My Oct 04 13:55:01 2010
    Errors in the d:\oracle\product\10.2.0\admin\axphq01\bdump\axphq01_psp0_7964.trc file:
    ORA-30012: undo tablespace "is not or of the wrong type

    Instance of stopped by USER, pid = 1024
    ORA-1092 marked during: ALTER DATABASE OPEN...

    Hello

    Do as suggested by Chinar or

    1. after installation of startup

    2. create spfile from pfile;

    3. immediate shu

    4. startup mount

    Then do all the steps as stated in my previous post.

    Anand

  • Undo tablespace unable to grow beyond 31 GB.

    Hello

    ORACLE 11g
    Solaris 10
    BS.

    Undo tablespace unable to grow beyond 31 GB. It gives the error message below when importing dump file that contain data of 45 GB.

    ORA-30036: unable to extend segment by 8 in undo tablespace "UNDOTBS1.
    CREATE UNDO TABLESPACE undotbs_02 DATAFILE '+DATA/lims/hdb/undotbs02.dbf' SIZE 100M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED;
    
    SQL> show parameter undo
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS_02
    
    
                                                                 %
    Tablespace Name        KBytes         Used         Free   Used
    ---------------- ------------ ------------ ------------ ------
    *UNDOTBS_02        33,546,240   33,546,240            0  100.0
                     ------------ ------------ ------------
    sum                33,546,240   33,546,240            0
    with similar configuration machine, it works fine with the same dump file. is there something that we are missing?

    concerning
    Sachin

    You came to size max os for your data file. Add more data files to the undo tablespace.

  • undo_segments in the undo tablespace

    (1) at least how undo_segments in undo tablespace?

    Is optimal?
    If I increase the size of the undo tablespace, undo_segments counts also have increased!

    Version of DB is 10g

    Hello

     

    The two time oracle maintains exactly 10 segments. (you can see nom_segment begins by _SYSSMU11)

    I'm not clear on what exactly 10 segments. I have undo tablespace of ~ 250 GB with 6676 stored in dba_rollback_segs.

    3) why undo tablespace with the only spaceMo 46,8125 '?


    (4) I mean why he is stiil 450Mo undo_retention even through time or same validation has occurred?

    Just Oracle - Doc

    Once a transaction is committed, the undo data are more necessary for purposes of recovery rollback or transaction. However, for consistent read purposes, long-running queries may require old undo information to produce older images of data blocks. In addition, the success of several Oracle Flashback features can also depend on the availability of the old cancellation information. For these reasons, it is desirable to keep the old information of cancellation for as long as possible.

    Introduction to the management of the automatic cancellation

    With undo tablespace, you would see extended with the status ACTIVE, EXPIRED, extents still to RUN.

    Active cancellation extended are used by transactions and will be always active, because they are needed for the restoration.

    Extensions has expired are not used by transactions, the data contained in these extended is committed and the time UNDO_RETENTION is passed, so it is not necessary for the coherence of reading and can be reused.

    Not expired extensions are extended no assets but honor UNDO_RETENTION. Transactions belonging to these bodies of cancellation are determined, but the retention time has failed, and it may be necessary for the coherence of reading!

    Paste the query result - below

    ! undo_extent_stat.SQL more

    status of collar for a30

    Select the State,

    round (sum_bytes / (1024 * 1024), 0) like MB,.

    Tour ((sum_bytes / undo_size) * 100, 0) as PERC

    Of

    (

    Select the State, sum (bytes) sum_bytes

    of dba_undo_extents

    Status group

    ),

    (

    Select sum (a.bytes) undo_size

    from dba_tablespaces c

    Join v$ tablespace b on b.name = c.tablespace_name

    Join v$ datafile on a.ts # b.ts = #.

    where c.contents = 'UNDO '.

    and c.status = 'ONLINE '.

    );

    Anand

  • Undo tablespace continues to grow

    Hello
    My undotbs grows to 14g (even if I have my undotbs actul size 9g) I try to resize the data files, but
    This may not work.

    So, I guess for this task

    >
    -Create a new as undo tablespace:
    SQL > create undo tablespace UNDOTBS2 datafile "< full file path >" size < small >;

    -Change the parameter UNDO_TABLESPACE
    SQL > alter system set UNDO_TABLESPACE = UNDOTBS2;

    -Remove UNDOTBS1
    SQL > drop tablespace UNDOTBS1 including content and data files; >

    but my question is, is he worthy of delete the undotbs1 whose having a lot of data and if I deleted
    These data (undotablespace), I won't be able to completely recover?

    db_version:10.2.0 (Linux)

    There is procedure to drop undo tablespace. If you already increase first then I suggest you to study why his is growing? Check with developers, to monitor the database

  • Undo tablespace recreation

    Hi all

    I use oracle 9i running in solaris 9.I having a called undotbs1 undo tablespace that is size approximately 8.5 GB and

    the UNDO_RETENTION setting * 10800 * I want to reduce to 2000 and I want to create a tablespace, undo size about 3 GB and the value in the default undo for the database tablespace.

    change the system undo_retention = 2000 scope = both set
    create the undo tablespace undotbs2 datafile 'posted' size 3 G
    ALTER system set undo_tablespace = undotbs2 scope = both

    Drop tablespace undotbs1 including content and data files

    Is there a problem if I... I ask because my current undo tablespace size is 8.5 GB?

    Thanks and greetings
    Yvon Das

    >
    change the system undo_retention = 2000 scope = both set
    create the undo tablespace undotbs2 datafile 'posted' size 3 G
    ALTER system set undo_tablespace = undotbs2 scope = both

    Drop tablespace undotbs1 including content and data files

    Is there a problem if I... I ask because my current undo tablespace size is 8.5 GB?
    >
    It won't be a problem, but you must change a step you gave.
    After the ALTER SYSTEM you will not be able to drop the old table space until it disconnects.

    Display deleted mosaic then you will need to have two tablespaces to cancel online and that means a sufficient for both disk space.
    >
    The database is online, while the switch operation is performed and user transactions can be executed while this command is running. When the switch operation completes successfully, all transactions started after the beginning of the switching operation are assigned to the transaction tables in the tablespace new undo.

    The switch operation does not wait for transactions in the old undo tablespace to commit. If there is any pending transactions in the old undo tablespace, the old undo tablespace concludes an offline pending (status). In this mode, existing transactions can continue to run, but undo records for new user transactions cannot be stored in this undo tablespace.

    An undo tablespace can exist in this pending offline mode, even after the switch operation. A cancellation pending offline tablespace cannot used by another instance, nor can it be moved. Finally, after all the active transactions have committed, the undo tablespace automatically goes to offline mode offline pending
    >

    See switching Undo tablespace in the Guide DBA 9i
    http://docs.Oracle.com/CD/B10501_01/server.920/a96521/undo.htm#9117

  • extending undo tablespace

    Hello world!

    I used this sql to check the status of my storage space.
    SELECT /* + RULE */  df.tablespace_name "Tablespace",
           df.bytes / (1024 * 1024) "Size (MB)",
           SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
           Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
           Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
      FROM dba_free_space fs,
           (SELECT tablespace_name,SUM(bytes) bytes
              FROM dba_data_files
             GROUP BY tablespace_name) df
     WHERE fs.tablespace_name (+)  = df.tablespace_name
     GROUP BY df.tablespace_name,df.bytes
    UNION ALL
    SELECT /* + RULE */ df.tablespace_name tspace,
           fs.bytes / (1024 * 1024),
           SUM(df.bytes_free) / (1024 * 1024),
           Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
           Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
      FROM dba_temp_files fs,
           (SELECT tablespace_name,bytes_free,bytes_used
              FROM v$temp_space_header
             GROUP BY tablespace_name,bytes_free,bytes_used) df
     WHERE fs.tablespace_name (+)  = df.tablespace_name
     GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
    ORDER BY 4 DESC;
    It shows that my undo tablespace has only 3% of space left.

    I simply run this SQL command, but the result is always the same.
    SQL> alter database datafile 'c:\ORACLE\DATA\PRODUCTION\DATAFILE\O1_MF_UNDO.DBF' autoextend on maxsize 50M;
    
    Database altered.
    I mistakenly thought that the size of the existing file is less than 50 M.

    But then, realized the unused (3%) is 50 M.

    How can I increase the size of the file now.

    Please guide me.

    The command that I published will have a negative impact?

    Thanks in advance.

    Nith

    Hello

    What is your current undo tablespace now?
    You can use the ALTER DATABASE statement. DATAFILE statement to resize or extend a data file
    you issue this:

    SQL > alter database datafile ' c:\ORACLE\DATA\PRODUCTION\DATAFILE\O1_MF_UNDO. DBF' autoextend on maxsize 50 M;

    If it stops when it reaches 50 m.

    You can try below:

    SQL > alter database datafile ' c:\ORACLE\DATA\PRODUCTION\DATAFILE\O1_MF_UNDO. DBF' autoextend on next 1 m maxsize unlimited;

    You must set the maxsize value according to your availability of storage.

    BR,
    mrak

  • Drop undo tablespace, but not open (the and df display different value) space

    Hi guys,.

    I just change my cancellation and drop the previous 1.

    create tablespace undo UNDOTBS4 DATAFILE ' / u03/oradata/starhub/undotbs4.dbf' size 2g;

    Created tablespace.

    SQL > ALTER SYSTEM SET UNDO_TABLESPACE = undotbs4;

    Modified system.

    SQL > drop tablespace undotbs3 including content and data files;

    Tablespace has fallen.

    SQL >

    However, when I check my disk space using df - h, it always shows. 32 gig is used. where infact, only 30G must be used.

    71G 32 G G 37, 47% /u03

    When I check using the - h, is to show only
    30 g. / oradata

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

    I have to bounce the database to get my 2G rear, why?
    Is anyway to get my 2G without bouncing the DB?

    Kind regards
    Noob

    Oracle has the file open, so the inode of the file is still in use, then the file will appear.

    Learn your Unix!

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

  • Block in the Undo tablespace corruption

    Dear all,


    I'm using oracle 10.1.0.2.0. Today because of the abnormal termination block corrouption in undo tablespace found and database will not open.
    In the alert log file

    Errors in the e:\oracle\product\10.1.0\admin\orc1\udump\orc1_ora_3188.trc file:
    ORA-01578: block ORACLE (corrupted file # 37, block # 25) data
    ORA-01110: data file 37: ' E:\ORACLE\PRODUCT\10.1.0\ORADATA\ORC1\UNDOTBS0. DBF'

    Sea Jul 07 10:18:42 2010
    1578 error happened during db open, close the database
    USER: termination litigation because of the 1578 error
    Sea Jul 07 10:18:43 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_arc3_3900.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:43 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_arc3_3900.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:43 2010
    Arc0: Assessment of the archive log 2 sequence of thread 1 479
    Sea Jul 07 10:18:43 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_dbw0_3692.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:43 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_ckpt_1552.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:43 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_mman_3912.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:44 2010
    Newspapers archived by another process
    Sea Jul 07 10:18:44 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_pmon_3744.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:44 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_arc1_3668.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:44 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_arc1_3668.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:45 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_reco_1076.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:45 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_smon_2660.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Sea Jul 07 10:18:45 2010
    Errors in the e:\oracle\product\10.1.0\admin\orc1\bdump\orc1_lgwr_1796.trc file:
    ORA-01578: ORACLE data block corrupted (file #, block #)

    Instance of stopped by USER, pid = 3188
    ORA-1092 marked during: ALTER DATABASE OPEN...

    Concerning

    Errors in the e:\oracle\product\10.1.0\admin\orc1\udump\orc1_ora_3188.trc file:
    ORA-01578: block ORACLE (corrupted file # 37, block # 25) data
    ORA-01110: data file 37: ' E:\ORACLE\PRODUCT\10.1.0\ORADATA\ORC1\UNDOTBS0. DBF'

    You have rman or backup to hot/cold? If so try like:
    * 1.*

    sqlplus "/as sysdba"
    shutdown immediate;
    startup mount;
    /*restore undo datafile then*/
    recover datafile 37;
    alter database open;
    

    * 2 If you have backup rman, then try

    rman terget /
    blockrecover datafile 37 block 25;
    

    * 3.* If you don't have a backup, you can start your database without this undo tablespace.

    1. backup current database;

    2. change pfile (parameter file) change undo_tablespace and undo_management as:

    undo_management=manual
    undo_tablespace=UNDOTBS2
    

    If you do not use pfile create pfile from spfile as:

    sqlplus "/as sysdba"
    create pfile='pfilelocation' from spfile='spfilelocation';
    

    3. then start database as:

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount pfile D:\oracle\product\10.2.0\admin\TEST\pfile\init.ora.5162
    010113556
    SP2-0714: invalid combination of STARTUP options
    SQL> startup mount pfile= D:\oracle\product\10.2.0\admin\TEST\pfile\init.ora.516
    2010113556
    ORACLE instance started.
    
    Total System Global Area  138412032 bytes
    Fixed Size                  1288172 bytes
    Variable Size              62916628 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    Database mounted.
    SQL> alter database open;
    alter database open
    *
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
    ORA-01110: data file 2: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF'
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF
    D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF
    
    SQL> alter database datafile
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF' offline drop;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> create undo tablespace UNDOTBS2
    datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS2' size 200M;
    
    Tablespace created.
    
    SQL> create spfile from pfile;
    
    File created.
    
    SQL>
    
  • Tablespace name missing backup - very strange

    Hi all.

    Recovery Manager: Release 9.2.0.4.0 - 64 bit Production

    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64 bit Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE Production 9.2.0.3.0
    AMT for Solaris: release 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production


    Running in a strange issue where I run a backup completes, but the name of the undo tablespace file is not in the output of the list:

    Anyone see this before? (TBS undo is file 14)

    Exit List:

    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ --------------------
    11783 incr 17 0 SBT_TAPE 00:21:58: 21 December 2009 11:57:11
    BP key: 11783 situation: AVAILABLE Tag: TAG20091221T113512
    Item name: rcworaprd-vprd2-full < 12075:706188913:1 > .dbf
    List of defined backup data files 11783
    Name of file LV Type cash SNA cash time
    ---- -- ---- ---------- -------------------- ----
    8 0 incr 1685659342 December 21, 2009 11:35:13 /u02/oradata/vprd2/user_index02.dbf
    9 0 incr 1685659342 December 21, 2009 11:35:13 /u02/oradata/vprd2/una_data01.dbf
    11 0 incr 1685659342 December 21, 2009 11:35:13 /u02/oradata/vprd2/ppa_data01.dbf
    12 0 incr 1685659342 December 21, 2009 11:35:13 /u02/oradata/vprd2/ppa_index01.dbf
    16 0 incr 1685659342 December 21, 2009 11:35:13 /u02/oradata/vprd2/rcl_data01.dbf

    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ --------------------
    11784 incr 17 0 SBT_TAPE 00:22:57: 21 December 2009 11:58:10
    BP key: situation 11784: AVAILABLE Tag: TAG20091221T113512
    Item name: rcworaprd-vprd2-full < 12074:706188913:1 > .dbf
    List of defined backup data files 11784
    Name of file LV Type cash SNA cash time
    ---- -- ---- ---------- -------------------- ----
    1 0 incr 1685659341 December 21, 2009 11:35:13 /u02/oradata/vprd2/system01.dbf
    4 0 incr 1685659341 December 21, 2009 11:35:13 /u02/oradata/vprd2/tools01.dbf
    7 0 incr 1685659341 December 21, 2009 11:35:13 /u02/oradata/vprd2/xdb01.dbf
    13 0 incr 1685659341 December 21, 2009 11:35:13 /u02/oradata/vprd2/itd_index01.dbf
    * 14 0 incr 1685659341 December 21, 2009 11:35:13 *.

    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ --------------------
    11785 incr 22 0 SBT_TAPE 00:28:50, December 21, 2009 12:04:03
    BP key: situation 11785: AVAILABLE Tag: TAG20091221T113512
    Item name: rcworaprd-vprd2-full < 12076:706188913:1 > .dbf
    List of defined backup data files 11785
    Name of file LV Type cash SNA cash time
    ---- -- ---- ---------- -------------------- ----
    2 0 incr 1685659343 December 21, 2009 11:35:13 /u02/oradata/vprd2/drsys01.dbf
    3 0 incr 1685659343 December 21, 2009 11:35:13 /u02/oradata/vprd2/eng_data01.dbf
    5 0 incr 1685659343 December 21, 2009 11:35:13 /u02/oradata/vprd2/user_data01.dbf
    10 0 incr 1685659343 December 21, 2009 11:35:13 /u02/oradata/vprd2/una_index01.dbf
    15 0 incr 1685659343 December 21, 2009 11:35:13 /u02/oradata/vprd2/eng_index01.dbf

    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ --------------------
    11786 incr 29 0 SBT_TAPE 00:29:45 December 21, 2009 12:04:58
    BP key: 11786 situation: AVAILABLE Tag: TAG20091221T113512
    Item name: rcworaprd-vprd2-full < 12077:706188913:1 > .dbf
    List of defined backup data files 11786
    Name of file LV Type cash SNA cash time
    ---- -- ---- ---------- -------------------- ----
    6 0 incr 1685659344 December 21, 2009 11:35:13 /u02/oradata/vprd2/user_index01.dbf
    17 0 incr 1685659344 December 21, 2009 11:35:13 /u02/oradata/vprd2/rcl_index01.dbf

    Time of accomplishment BS key Type LV size device Type elapsed time
    ------- ---- -- ---------- ----------- ------------ --------------------
    11787 full 8 M SBT_TAPE 00:02:43, 21 December 2009 12:07:50
    BP key: 11787 situation: Tag AVAILABLE:
    Item name: c-3206857493-20091221-06
    SPFILE included: Modification Date: November 6, 2009 09:26:23


    Ran that day there backup log file:

    From backup December 21, 2009 11:35:12
    channel dev_0: 0 datafile backupset additional start-up
    channel dev_0: specifying datafile (s) in backupset
    input datafile fno = name=/u02/oradata/vprd2/itd_index01.dbf 00013
    input datafile fno = name=/u02/oradata/vprd2/undotbs_1.dbf 00014
    input datafile fno = 00001 name=/u02/oradata/vprd2/system01.dbf
    input datafile fno = name=/u02/oradata/vprd2/tools01.dbf 00004
    input datafile fno = name=/u02/oradata/vprd2/xdb01.dbf 00007
    channel dev_0: starting piece 1 at December 21, 2009 11:35:13
    dev_1 channel: 0 datafile backupset additional start-up
    dev_1 channel: specifying datafile (s) in backupset
    input datafile fno = name=/u02/oradata/vprd2/user_index02.dbf 00008
    input datafile fno = name=/u02/oradata/vprd2/ppa_index01.dbf 00012
    input datafile fno = name=/u02/oradata/vprd2/ppa_data01.dbf 00011
    input datafile fno = name=/u02/oradata/vprd2/rcl_data01.dbf 00016
    input datafile fno = name=/u02/oradata/vprd2/una_data01.dbf 00009
    dev_1 channel: starting piece 1 at December 21, 2009 11:35:13
    channel dev_2: 0 datafile backupset additional start-up
    channel dev_2: specifying datafile (s) in backupset
    input datafile fno = 00005 name=/u02/oradata/vprd2/user_data01.dbf
    input datafile fno = name=/u02/oradata/vprd2/eng_data01.dbf 00003
    input datafile fno = name=/u02/oradata/vprd2/una_index01.dbf 00010
    input datafile fno = name=/u02/oradata/vprd2/drsys01.dbf 00002
    input datafile fno = name=/u02/oradata/vprd2/eng_index01.dbf 00015
    channel dev_2: starting piece 1 at December 21, 2009 11:35:13
    channel dev_3: 0 datafile backupset additional start-up
    channel dev_3: specifying datafile (s) in backupset
    input datafile fno = name=/u02/oradata/vprd2/user_index01.dbf 00006
    input datafile fno = name=/u02/oradata/vprd2/rcl_index01.dbf 00017
    channel dev_3: starting piece 1 at December 21, 2009 11:35:13
    dev_1 channel: finished piece 1 at December 21, 2009 11:57:21
    piece handle = rcworaprd-vprd2-full < 12075:706188913:1 > .dbf comment = API Version 2.0, Version MMS 65.6.0.75
    dev_1 channel: complete set of backups, time: 00:22:08
    channel dev_0: finished piece 1 at December 21, 2009 11:58:16
    piece handle = rcworaprd-vprd2-full < 12074:706188913:1 > .dbf comment = API Version 2.0, Version MMS 65.6.0.75
    channel dev_0: complete set of backups, time: 00:23:03
    channel dev_2: finished piece 1 at December 21, 2009 12:04:12
    piece handle = rcworaprd-vprd2-full < 12076:706188913:1 > .dbf comment = API Version 2.0, Version MMS 65.6.0.75
    channel dev_2: complete set of backups, time: 00:28:59
    channel dev_3: finished piece 1 at December 21, 2009 12:05:07
    piece handle = rcworaprd-vprd2-full < 12077:706188913:1 > .dbf comment = API Version 2.0, Version MMS 65.6.0.75
    channel dev_3: complete set of backups, time: 00:29:54
    A backup over at December 21, 2009 12:05:07


    When I do a duplicate it does not include cancellations that is obviously causing problems.

    Is there a way I can change something, then he acknowledged?

    All comments would be appreciated.

    Hi Jamie CC,.
    In the test box you need to the same directory as on prod copy also the pfile prod to test structure.
    You can try to use the set until time parm to restore the controlfile.
    Or alternatively you can restore controlfile from a full backup (or TAG) dated December 24.
    http://download.Oracle.com/docs/CD/B14117_01/server.101/b10770/rcmsynta51.htm

    Try this sql on your catalog to find the part or the tag.
    Select d.name, d.dbid, p.handle, p.tag
    RMAN.rc_database d,
    RMAN.rc_backup_piece p,
    c RMAN.rc_backup_controlfile
    where
    d.Name = "& db_name.
    and c.db_name = d.name
    and c.bs_key = p.bs_key
    and p.COMPLETION_TIME between to_date('24-DEC-2009','DD-MON-YYYY') and to_date('25-DEC-2009','DD-MON-YYYY')
    /

    When you have a controlfile output restored the rman session and reconnect only to the target on the test area and not in the catalog.
    What to restore and recover the database with rman.

    (In fact it might be better if you start by saving a test database, delete the ctl, repeat and dbfs and restore the database to test...)

    Kind regards

    Tycho

  • Impossible to drop the undo tablespace

    Hello

    ORACLE VERSION: 11.1.0
    OPERATING SYSTEM: WINDOWS XP

    I have been uable to drop the undo tablespace. Here I create a new undo tablespace and trying to drop the old undo tablespace.

    I had given alter system set UNDO_TABLESPACE = newundo tablespace.

    And try to drop the old one and get the error like this
    SQL> create undo tablespace undotbs02 datafile 'F:\APP\POORNAPRASADS\ORADATA\ORCL\UNDOTBS02.dbf' size 200m;
    
    Tablespace created.
    
    SQL> sho parameter undo
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS1
    SQL> alter system set undo_tablespace=undotbs02;
    
    System altered.
    
    SQL> sho parameter undo
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS02
    SQL> drop tablespace undotbs1 including contents and datafiles;
    drop tablespace undotbs1 including contents and datafiles
    *
    ERROR at line 1:
    ORA-30013: undo tablespace 'UNDOTBS1' is currently in use
    
    
    SQL> drop tablespace undotbs1 including contents and datafiles;
    drop tablespace undotbs1 including contents and datafiles
    *
    ERROR at line 1:
    ORA-30013: undo tablespace 'UNDOTBS1' is currently in use

    There are active sessions that use of old undo segments. I think you should kill these sessions in order to relase these segments

    - - - - - - - - - - - - - - - - - - - - -
    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/]

  • FLASH BACK TO THE WIDE FOR UNDO TABLESPACE?

    Hi all
    As my evryday increasingly, Undo tablespace 2 GB and NOW he reached 19.
    The database size is 6 GB

    using the Oracle 10 g Release 2 without patch Set (version 1002000100) on Hp-Unix OS

    Can I use the Undo tablespace with FLASHBACK OFF option?

    What are the consequences to extinguish the FLAME,

    Can we use this type of tablespace Undo with Flashback OFF?


    CREATE THE UNDO TABLESPACE UNDOTBS03 DATAFILE
    ' / app/oracle/product/oradata/prod/undotbs03.dbf' SIZE 1000 M AUTOEXTEND OFF
    ONLINE
    RETENTION NOGUARANTEE
    8K BLOCKSIZE
    FLASHBACK


    Thank you very much

    The (increasing) size of the Undo Tablespace has no impact on performance.

    One of the possibilities:
    He'll do backups take longer... so if you perform backups online, then the lengthy backup may be creeping in the moment of the request of the user.

  • Problem with ASM and OMF Undo tablespace creation

    I'm trying to test installation using Automatic Storage Management and Oracle managed files database. I created ASM instance (+ ASM), disks and start (ASM_GRP01). I then tried the creation of database (ORCL) using this ASM instance. I also need to configure OMF to type no explicit localization files when creating table.

    I put in initORCL.ora

    UNDO_MANAGEMENT = AUTO
    undo_tablespace = undo_tbsp
    db_create_file_dest = + ASM_GRP01
    db_create_online_log_dest_1 = + ASM_GRP01
    db_recovery_file_dest = + ASM_GRP01

    so I ran the SCRIPT of CREATION of DATABASE:
    CREATE DATABASE ORCL
      USER SYS IDENTIFIED BY ***USER SYSTEM IDENTIFIED BY ***LOGFILE
        GROUP 1 SIZE 100M,
        GROUP 2 SIZE 100M
      MAXLOGFILES 5
      MAXLOGMEMBERS 5
      MAXLOGHISTORY 100
      MAXINSTANCES 1
      CHARACTER SET US7ASCII
      NATIONAL CHARACTER SET AL16UTF16
      DATAFILE SIZE 400M AUTOEXTEND ON NEXT 25M
      SYSAUX DATAFILE SIZE 400M AUTOEXTEND ON NEXT 15M
      DEFAULT TABLESPACE USERS
      DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 30M
      UNDO TABLESPACE UDNO_TBSP DATAFILE SIZE 200M AUTOEXTEND ON NEXT 20M
    When creating, checking its use on the instance of the ASM diskgroup, it pushes everything by creating the SYSTEM tablespace, but creating UNDO tablespace, I got an error. It's journal of creation of tablespaces to alert.log

    SMON: enabling cache recovery
    Sea 8 Oct 08:12:18 2008
    create tablespace datafile SIZE 400 M AUTOEXTEND ON NEXT 25 M SYSTEM

    default storage (initial 10K next 10K) EXTENT MANAGEMENT DICTIONARY online
    Sea 8 Oct 08:13:20 2008
    500 MB db_recovery_file_dest_size is 0.00% used. It is a
    user-specified limit on the amount of space that will be used by the present
    for the files related to the recovery of databases and does not reflect the amount of
    space available in the underlying file system or ASM diskgroup.
    Sea 8 Oct 08:13:36 2008
    Completed: create tablespace datafile SIZE 400 M AUTOEXTEND ON NEXT 25 M SYSTEM

    default storage (initial 10K next 10K) EXTENT MANAGEMENT DICTIONARY online
    Sea 8 Oct 08:13:36 2008
    create rollback segment tablespace SYSTEM SYSTEM
    storage (initial 50K next 50K)
    Completed: create rollback segment tablespace SYSTEM SYSTEM
    storage (initial 50K next 50K)
    Sea 8 Oct 08:13:44 2008
    CREATE THE UNDO TABLESPACE UDNO_TBSP DATAFILE SIZE 200 M AUTOEXTEND ON NEXT 20 M
    Sea 8 Oct 08:14:31 2008
    ORA-30012 scored at the course: CREATE UNDO TABLESPACE UDNO_TBSP DATAFILE SIZE 200 M AUTOEXTEND ON NEXT 20 M
    ...
    Sea 8 Oct 08:14:31 2008
    Errors in the /opt/oracle/product/10.2.0/rdbms/log/orcl_ora_4887.trc file:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-30012: undo tablespace "undo_tbsp" there is not, or of the wrong type
    Sea 8 Oct 08:14:31 2008
    Errors in the /opt/oracle/product/10.2.0/rdbms/log/orcl_ora_4887.trc file:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing the file '? / rdbms/admin/sql.bsq' near line 5792
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-30012: undo tablespace "undo_tbsp" there is not, or of the wrong type
    Error 1519 happened during db open, close the database
    USER: termination litigation because of the error 1519
    Instance of stopped by USER, pid = 4887
    ORA-1092 marked the course: CREATE database ORCL

    When I'm putting the database he throws ORA-01079: ORACLE database was not properly created, operation canceled
    Any suggestions will be appreciated.

    Hello..

    There is a spelling error in the parameter specification.

    undo_tablespace = undo_tbsp

    And

    UNDO TABLESPACE UDNO_TBSP DATAFILE SIZE 200 M AUTOEXTEND ON NEXT 20 M

    undo_tbsp in init.ora became UDNO_TBSP in create db statement. Fix and run, you will be able to create the DB.

    Anand

  • Create the State of Mount, possible undo tablespace?

    Oracle 10g (10.2.0.1.0) on RedHat 4 (the two 64-bit)

    My test db & rsquo; s undo tablespace is corrupted (no backups RMAN or user).
    DB fails to open, fails in
    "Doing block recovery for file 2 block 209910"
    Is it possible to create undo tablespace while State of Mount?

    I'm pretty confident it & rsquo; s is not possible, was also searched on the net and can't find any solution, I thought I'd ask.

    I get the error:


    CREATE UNDO TABLESPACE UNDOTBS1_new DATAFILE  '/u01/oracle/oradata/TEST_DB1/undotbs2_01.dbf' SIZE 512M
    *
    ERROR at line 1:
    ORA-01109: database not openp{code}As a last option, I will open the db with *'reset logs'*, wondering is any thing else I can try to fix the issue.
    
    Thanks for any input.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Try to open the database with bellows blocking given the parameters of the init.ora file. It opens database create UNDO tablespace and set it as default Undo tablespace.

    UNDO_MANAGEMENT = 'AUTO '.
    undo_tablespace

  • It will frequently commit resolve ora-30036 (cannot extend the undo tablespace)

    I use 11.2.0.3 database. I confused on the use of validation to resolve ora-30036.

    I have the script in migration once that has many updates and I'm getting ORA-30036 (unable to extend segment by 4 in the "UNDOTBS" undo tablespace) .

    Our undo tablespace in NO mode autoextend and like this is just a one time event, we will not increase it.   He is currently 6 GB.

    We would commit determination ORA-30036 in my case? If not why? Is there a better solution to solve it.


    When I say commit frequent, I won't commit after each line, I just want to commit after may be million lines, so that my active cancellation extend turn into cancellation remaining will extend and Oracle will be able to use it in case of pressure of space.


    Note:

    UNDO_MANAGEMENT: AUTO

    UNDO_RETENTION: 2700

    Undo tablespace retention is NOGAURANTEE.

    I have the script in migration once that has many updates and I'm getting ORA-30036 (unable to extend segment by 4 in the "UNDOTBS" undo tablespace).

    Our undo tablespace in NO mode autoextend and like this is just a one time event, we will not increase it.   He is currently 6 GB.

    Why don't you increase it?

    You must use the correct size of UNDO necessary for the work that will be done.

    A lot of shops to create a for big lots new UNDO tablespace and then switch to it for batch processing. Once the task is completed, they switch back to the normal UNDO. That prevents the normal RETURN of autoextending far where it is normally necessary:

    ALTER SYSTEM SET UNDO_TABLESPACE

Maybe you are looking for