zoukankan      html  css  js  c++  java
  • 查询rman 备份信息集

    SELECT TRIM(START_TIME||'#'),
           TRIM(END_TIME||'#'),
           TRIM(CASE OUTPUT_DEVICE_TYPE
             WHEN 'DISK' THEN
              'DISK'
             WHEN 'SBT_TAPE' THEN
              'SBT_TAPE'
             ELSE
              'Others'
           END||'#') AS BACKUP_DEVICE,
           TRIM(STATUS||'#'),
           TRIM(CASE INPUT_TYPE
             WHEN 'DB FULL' THEN
              'DB_FULL'
             WHEN 'DB INCR' THEN
              'DB_INCR'
             WHEN 'ARCHIVELOG' THEN
              'DB_ARCH'
             ELSE
              'Others'
           END||'#') AS BACKUP_TYPE,
           TRIM(ROUND(ELAPSED_SECONDS / 60 / 60, 2)||'#') AS T,
           TRIM(OUTPUT_BYTES_DISPLAY||'#') AS DB_SIZE
      FROM V\$RMAN_BACKUP_JOB_DETAILS
     WHERE START_TIME = (SELECT MAX(START_TIME) FROM V\$RMAN_BACKUP_JOB_DETAILS);

    ---11G 使用SYS 用户可以直接查询结果;12C 需要在CDB 使用SYS用户查询,否则没有结构。

  • 相关阅读:
    os和sys模块
    time模块
    collections模块
    re模块
    Python初识一
    Python闭包函数
    压栈
    isinstance()和issubclass()
    匿名函数--lambda函数
    机器学习入门文章
  • 原文地址:https://www.cnblogs.com/ss-33/p/8862365.html
Copyright © 2011-2022 走看看