数据库等待相关查询SQL

2023年 12月 7日 123.3k 0

-----------------------------------------------查看数据库会话情况

查看会话情况
select to_char(trunc(a.SAMPLE_TIME,'mi'),'yyyy-mm-dd hh24:mi:ss'),a.INSTANCE_NUMBER,count(1) cnt
from dba_hist_active_sess_history a
where a.SAMPLE_TIME>=to_timestamp('202308211400','yyyymmddhh24mi')
and a.SAMPLE_TIME=to_timestamp('202308211400','yyyymmddhh24mi')
and a.SAMPLE_TIME=to_timestamp('202308211400','yyyymmddhh24mi')
and a.SAMPLE_TIME=to_timestamp('202308211400','yyyymmddhh24mi')
and a.SAMPLE_TIME 5
ORDER BY 1;

----------------------------------------------------------------------------------------

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论