1 Star 0 Fork 0

matrix/Oracle-Database-Scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dba_hist_snapshot.sql 636 Bytes
一键复制 编辑 原始数据 按行查看 历史
Prashant Dixit 提交于 2022-03-03 13:27 . Create dba_hist_snapshot.sql
col snap_id format 99999
col ServerTime format a18
col MyTime format a18
select snap_id
,to_char(BEGIN_INTERVAL_TIME,'YYYY/MM/DD HH24:MI') ServerTime
,to_char(new_time(BEGIN_INTERVAL_TIME+(5.5/24),'GMT','GMT'),'YYYY/MM/DD HH24:MI') MyTime
from dba_hist_snapshot
order by 1
;
select to_char(min(BEGIN_INTERVAL_TIME),'YYYY/MM/DD HH24:MI') MinServer
,to_char(new_time(min(BEGIN_INTERVAL_TIME),'GMT','PDT'),'YYYY/MM/DD HH24:MI') MinMyTime
,to_char(max(BEGIN_INTERVAL_TIME),'YYYY/MM/DD HH24:MI') MaxServer
,to_char(new_time(max(BEGIN_INTERVAL_TIME),'GMT','PDT'),'YYYY/MM/DD HH24:MI') MaxMyTime
from dba_hist_snapshot
;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gregwu/Oracle-Database-Scripts.git
git@gitee.com:gregwu/Oracle-Database-Scripts.git
gregwu
Oracle-Database-Scripts
Oracle-Database-Scripts
main

搜索帮助