text ORCL - UNDO

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text ORCL - UNDO相关的知识,希望对你有一定的参考价值。

SELECT d.undo_size/(1024*1024) as UNDO_SIZE,
       SUBSTR(e.value,1,25) as UNDO_RETENTION,
       ROUND((d.undo_size / (to_number(f.value) *
       g.undo_block_per_sec))) as OPTIMUM_UNDO_RETENTION
  FROM (
       SELECT SUM(a.bytes) undo_size
          FROM v$datafile a,
               v$tablespace b,
               dba_tablespaces c
         WHERE c.contents = 'UNDO'
           AND c.status = 'ONLINE'
           AND b.name = c.tablespace_name
           AND a.ts# = b.ts#
       ) d,
       v$parameter e,
       v$parameter f,
       (
       SELECT MAX(undoblks/((end_time-begin_time)*3600*24))
              undo_block_per_sec
         FROM v$undostat
       ) g
WHERE e.name = 'undo_retention'
  AND f.name = 'db_block_size';

以上是关于text ORCL - UNDO的主要内容,如果未能解决你的问题,请参考以下文章

oracle undo表空间被删除,数据库无法启动,请问如何恢复

oracle闪回技术

text ORCL - 创造就业

text ORCL - 索引

text ORCL - PGA

text ORCL - 监听器日志