Undo tablespace in oracle 10g

Hi all;

Hello!

I'm confused about undo tablespace size.

Under query showing my undo tablespace size is 120Mo.

but DBA_TABLESPACE_USAGE_METRICS view showing the undo tablespace size is 4194302

> > Check free space

SQ > select t.tablespace, t.totalspace as ' TOTAL_SPACE (MB).

round ((t.totalspace-fs.freespace), 2) as "USED_SPACE (MB)",
FS. FreeSpace as "FREE_SPACE (MB).
round (((t.totalspace-fs.freespace) /t.totalspace) * 100, 2) like "% used (s),"
round ((fs.freespace/t.totalspace) * 100, 2) as "% free" of
(select round (sum (d.bytes) /(1024 * 1024)) as totalspace,)
tablespace dba_data_files d.tablespace_name d
Group d.tablespace_name) t,.
(select round (sum (f.bytes) /(1024 * 1024)) as freespace,)
tablespace dba_free_space f.tablespace_name f
Group of f.tablespace_name)
FS where t.tablespace = fs.tablespace order of t.tablespace.


TABLESPACE TOTAL_SPACE (MB) USED_SPACE (MB) FREE_SPACE (MB) % used free %

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

EXAMPLE                                    100             68             32         68         32

240 230 10 SYSAUX 95,83 4.17

480 475 5 98.96 SYSTEM 1.04

UNDOTBS1                                   120            120              0        100          0

1005 75 930 USERS 7.46 92.54

SQL > select * from dba_tablespace_usage_metrics, where nom_tablespace like '% UNDO;

NOM_TABLESPACE USED_SPACE TABLESPACE_SIZE USED_PERCENT

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

UNDOTBS1                              440        4194302 .010490422

This is because:

Tablespace_size in DBA_TABLESPACE_USAGE_METRICS takes the maximum file size for CanGrow tablespace that matches maxblocks in dba_data_files.

This is not the same value you can get from dba_data_files.

DBA_TABLESPACE_USAGE_METRICS shows essentially the maximum size to which a data file can grow. And DBA_DATA_FILES (+ DBA_FREE_SPACE) the current size of the tablespace.

Watch more document MOS (My Oracle Support):

Difference in size of dba_data_files Tablespace and dba_tablespace_usage_metrics/V values $ Filespace_usage (Doc ID 455715.1)

Tags: Database

Similar Questions

  • Transaction is written to the log file and it is not written to undo tablespace. During a failure of the system how oracle rolls back the transaction.

    Hi all

    My question is:

    Transaction is written to the log file and it is not written to undo tablespace.

    During a failure of the system how oracle rolls back the transaction.

    I have already provided the answer, you ignored if well (you seem to only read the responses by people of your country).

    Redo log is always written * first * before * writing to the data block (redo log writing is much more aggressive). So it DOESN 'T MATTER if you lose these scriptures of rollback segment.

    Valuation: rear roller followed by roll forward, using redo log files and/or archive redo log files.

    Sybrand Bakker

    Senior Oracle DBA

  • Changing data in the undo tablespace or db Oracle buffer cache

    Hello

    I have serious doubt in the feature of oracle architecture, when a user issues an update statement, the data blocks are transported to the db buffer cache and where the data changes are made? Made a copy data block is stored in the cache db pads and the changes are made to the block in the buffer cache? or the copy of the data block is stored in the undo tablespace and changes are made to the blocks in the undo tablespace?

    In singles, the changes to the data blocks are make to the db or undo tablespace buffer cache?


    Thanks in advance

    Kind regards
    007

    Did you have a look to the Internet for the answer?

    In short, if a trial Oracle wants to update a record in the table, it does:

    -Read the record to be changed in the buffercache
    -Audits (the record already locked, is the update allowed)
    -Put the folder (called image before) in a rollback in the UNDO tablespace segment
    -Writing redo information about this change in the UNDO tablespace
    -Lock the record
    -Write the change in registration in the buffer cache
    -Put the change also in the redo buffer
    S ' sit and wait... (for a commit or a rollback)

    When are committed:
    -Release the lock
    -Empty folder of restoration since the UNDO tablespace
    -Write a record of this change forward in the UNDO tablespace

    When rollback:
    -Release the lock
    -Rinse the record changed the buffercache
    -Read the original value
    -Empty folder of restoration since the UNDO tablespace
    -Write a record of this change forward in the UNDO tablespace

    It of here, some more specific complexity when a checkpoint occurs between the change and the commit / rollback or redo buffer has been emptied for redo files

    Please any other s/n, correct me if I'm wrong...

    See you soon
    FJFranken

  • is it possible to rename tablespace dictionary managed in oracle 10g?

    Hello

    Assume that my system tablespace is dictionary managed in oracle 10g and one of my permanent tablespace is managed dictionary.
    Pls let me know that permanent dictionary managed tablespace can be renamed or do not rename tablespace command or only locally managed tablespaces can be renamed?

    Thank you
    DB

    Hi, you can still rename a dictionary managed tablespace

  • Undo Tablespace and security of tenure in Oracle 9?

    Hello.

    I know that this option is available in 10g but I was wondering if it was also available in 9i? I'm guessing not because the column does not appear in the dba_tablespaces view, but thought I'd ask the experts here.

    Thanks for all the answers in advance.

    UNDO_RETENTION parameter was introduced in 9i, jointly with undo tablespace etc.
    Maintenance of the cancellation guarantee was introduced in 10g.

    Kind regards
    Uwe

    http://uhesse.WordPress.com

  • 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

  • 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>
    
  • undotbs1 and oracle 10g

    Hello

    the [documentation | http://download.oracle.com/docs/cd/B19306_01/install.102/b15690/app_ofa.htm#g641180] says undotbs1 is necessary. This does mean that in each 10g database we create, we must specify a tablespace UNDOTBS1 as undo? or does this mean that we only need to do this for our data base follow the rules of the OFA, and to really make for a database of normal 10g, as well as a normal database 10 g didn't even need to have a defined undo tablespace.

    DBCA uses the tempelate if you choose options OLTP or DSS. If you want to use one of these, the names are given by DBCA from predefined templates. If you choose the custom mode or do a database manually, the control comes back to you. So I don't think you should be confused.

    HTH
    Aman...

  • command to find the default undo tablespace

    Hello

    I use oracle 10g, I want to find my default undo tablespace name. All orders and the link will be useful.

    Thank you
    Umesh

    You can get it running this query:

    SELECT *
      FROM database_properties
     WHERE property_name = 'DEFAULT_TEMP_TABLESPACE'
    

    PARAMETER DISPLAY command lists the settings in the settings file

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

  • 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

  • Concept on Undo tablespace in RAC environment

    Why we need two different Undo tablespace for two different instances in RAC environment. What are the internal mechanisms behind it? No explanation of the concept will be great for me. What will be the scenario if we have same tablespace undo for two instances?

    Thanks in advance.

    Hello

    To reduce CONTENTION and the complexity of the software.aslo oracle instances share not undo tablespace using cancel separate increase the availability of data undo files.

    Note: all instances can still read that cancel all blocks for coherent reading purposes. In addition, any instance can update the any tablespace undo during the restoration of the transaction,

    as long as undo tablespace is not currently used by another instance to cancel generation or a recovery operation.

    HTH

    Tobi

  • Need information on objects not expired undo tablespace

    We are facing a problem in our database for 3-4 days.

    The objects remaining in the database increases day after day. As our ts cancel autoextend enabled, it increases the storage space.

    Currently the following is the scenario.

    SQL > SELECT DISTINCT STATUS, SUM (BYTES) / 1024/1024/1024 GB, COUNT (*)

    2 GROUP OF DBA_UNDO_EXTENTS BY THE STATE;

    STATUS GO COUNT (*)

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

    61.5925903 10995 REST TO RUN

    3.33197021 356 EXPIRED

    ACTIVE 18.478515625

    Thus, the remaining data 61GB while active is only 478 MB and expired is 3.3 GB.

    My questions are

    1. How can I check the object or sql query or a program that contains the data to cancel "RUN" so. How can I find the names of these objects?

    2. If I turned off autoextend undo ts if this solves the problem and take the new space to cancel from space to cancel remaining?

    Help, please.

    1. the UNEXPIRED is not bound to a query, but the UNDO for UNDO Tablespace retention period. And the Undo retention is a value set automatically when the parameter UNDO_RETENTION is minium.

    The Oracle Documentation says:

    For an undo tablespace with the AUTOEXTEND option is enabled, the database tries to honor the specified minimum retention period by UNDO_RETENTION . When space is low, instead of crushing the cancellation information remaining, the self-aggrandizing tablespace' extends. If the MAXSIZE clause is specified for an auto-croissant undo tablespace when the maximum size is reached, the database can begin to replace the cancellation information remaining.

    2. Yes this will fix the issue that now the calcution for UNDO retention is different.

  • MAX limit for segment undo undo tablespace

    Hello Experts;

    Where tick No, max of segments of cancellation in the Oracle database?
    Is limited and depends on the SIZE of the DB or UNDO tablespace size?
    Thanks in advance...

    969352 wrote:
    What?

    dba_data_files - I thought that from here we can not get undo_segments County!

    not serious... Thank you...

    You started this thread, ask questions about the size of UNDO limit; which is a direct function of DBA_DATA_FILES.

    Then you changed question about County segment UNDO. which is a direct function of DBA_SEGMENTS.

    so take your decisions about what question should be answered.

Maybe you are looking for