修改RMAN list命令输出的时间格式
2015-07-01 14:46 abce 阅读(695) 评论(0) 编辑 收藏 举报根据需要,修改rman list命令输出结果的时间显示
$ rman target / Recovery Manager: Release 11.2.0.4.0 - Production on Wed Jul 1 14:40:26 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: YB1 (DBID=1592461412) RMAN> list backup; using target database control file instead of recovery catalog List of Backup Sets =================== BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ -------------------- 23 Full 2.25M DISK 00:00:03 01-JUL-2015 14:12:20 BP Key: 23 Status: AVAILABLE Compressed: NO Tag: TAG20150701T141217 Piece Name: /u01/app/oracle/fast_recovery_area/YB1/backupset/2015_07_01/o1_mf_nnndf_TAG20150701T141217_bs7161sd_.bkp List of Datafiles in backup set 23 File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- -------------------- ---- 3 Full 1062085 01-JUL-2015 14:12:17 /u01/app/oracle/oradata/yb1/undotbs01.dbf RMAN>
通过设置参数NLS_DATE_FORMAT的来设置时间格式:
$ export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS' $ rman target / Recovery Manager: Release 11.2.0.4.0 - Production on Wed Jul 1 14:40:45 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: YB1 (DBID=1592461412) RMAN> list backup; using target database control file instead of recovery catalog List of Backup Sets =================== BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 23 Full 2.25M DISK 00:00:03 2015-07-01 14:12:20 BP Key: 23 Status: AVAILABLE Compressed: NO Tag: TAG20150701T141217 Piece Name: /u01/app/oracle/fast_recovery_area/YB1/backupset/2015_07_01/o1_mf_nnndf_TAG20150701T141217_bs7161sd_.bkp List of Datafiles in backup set 23 File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- ------------------- ---- 3 Full 1062085 2015-07-01 14:12:17 /u01/app/oracle/oradata/yb1/undotbs01.dbf RMAN>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)