Каталог статей
Меню сайта


Форма входа


Категории раздела
Oracle DB administering [46]
Oracle DB programming [15]
Oracle DB troubleshooting [11]


Поиск


Друзья сайта
  • Официальный блог
  • Сообщество uCoz
  • FAQ по системе
  • Инструкции для uCoz


  • Статистика

    Онлайн всего: 1
    Гостей: 1
    Пользователей: 0


    Приветствую Вас, Гость · RSS 20.05.2024, 08:39
    Главная » Статьи » Oracle DB » Oracle DB administering

    Contents of UNDO tablespace

    http://dbatips4u.blogspot.ru/2008/04/tip12-status-column-of-dbaundoextents.html

    SELECT tablespace_name, status, COUNT (*)
    FROM SYS.dba_undo_extents
    WHERE tablespace_name = 'UNDOTBS2'
    GROUP BY tablespace_name, status

    What is of our interest is status column of dba_undo_extents, 3 possible values - ACTIVE, EXPIRED, UNEXPIRED. What are the meanings ?

    ACTIVE means that this undo segment contains active transactions

    EXPIRED means that this segment is not rqeuired at all after considering Undo retention period

    UNEXPIRED means that this segment does not contain any active transactions but it contains transactions which are still required for Flashback option (after considering Undo retention period).

    So if you have all extents EXPIRED then go ahead and drop the tablespace, as usual make sure that you have done proper backup before and after.

    How much undo space do we need:

    select
      round(max(undoblks/600)*8192*max(maxquerylen)/(1024*1024)) as "UNDO in MB"
    from v$undostat;

    What max undo retention time do we need?

    select max(maxquerylen) from v$undostat;

    Категория: Oracle DB administering | Добавил: basil (12.08.2015)
    Просмотров: 413 | Рейтинг: 0.0/0
    Всего комментариев: 0
    Имя *:
    Email *:
    Код *:
    Бесплатный конструктор сайтов - uCoz