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);
相关文章
- 04-06hadoop2.6查询hdfs数据的详细信息
- 04-06个人主页展示系统(springBoot)-no6-信息查询功能开发
- 04-06fabric根据Txid查询交易信息
- 04-06单表递归,查询组织及其自组织的内容信息
- 04-06查询用户帐号信息
- 04-06查询登录信息 w, who*, id, tty, last, finger
- 04-06查询某个数据库下所有用户数据表名及各数据表字段信息
- 04-063.Cisco网络设备基础信息查询
- 04-06备份组成员信息
- 04-06查询SQL磁盘活动量信息