oracle - 如何知道谁以及如何在 Oracle 自治事务处理中使用了预定义的数据库服务名称
问题描述
自治事务处理提供 5 个预定义的数据库服务名称;
- 清纯的
- tp
- 高的
- 中等的
- 低的
我想知道这些服务名称是如何使用的,包括数量连接以及资源是如何消耗的。
解决方案
您可以尝试使用一些 SQL 语句来查询 V$SERVICE_STATS(您需要调整 service_name)。例如:
SQL> select service_name, name, value
2 from v$service_stats
3 join v$statname
4 on v$service_stats.stat_id = v$statname.stat_id
5 where service_name='SYS$USERS'
6 order by service_name, name;
SERVICE_NAME NAME VALUE
-------------------- ----------------------------------- ----------
SYS$USERS DB time 26317254
SYS$USERS application wait time 379
SYS$USERS cluster wait time 0
SYS$USERS concurrency wait time 20112125
SYS$USERS db block changes 1637
SYS$USERS execute count 7221
SYS$USERS gc cr block receive time 0
SYS$USERS gc cr blocks received 0
SYS$USERS gc current block receive time 0
SYS$USERS gc current blocks received 0
SYS$USERS logons cumulative 108
SERVICE_NAME NAME VALUE
-------------------- ----------------------------------- ----------
SYS$USERS opened cursors cumulative 11078
SYS$USERS parse count (total) 1488
SYS$USERS parse time elapsed 13400006
SYS$USERS physical reads 3643
SYS$USERS physical writes 0
SYS$USERS redo size 248932
SYS$USERS session cursor cache hits 10309
SYS$USERS session logical reads 56879
SYS$USERS user I/O wait time 65219837
SYS$USERS user calls 293
SYS$USERS user commits 7
SERVICE_NAME NAME VALUE
-------------------- ----------------------------------- ----------
SYS$USERS user rollbacks 1
SYS$USERS workarea executions - multipass 0
SYS$USERS workarea executions - onepass 0
SYS$USERS workarea executions - optimal 2557
26 rows selected.
推荐阅读
- android - Firebase Crashlytics Bitmap OutOfMemoryError 哪个活动
- apache-spark - 如何制作并有效运行不返回任何内容的“void”PySpark 用户定义函数(UDF)?
- sql-server - 确定子集组内的开始日期
- javascript - C# / Javascript 还有什么其他方法可以从数据中解析时间
- r - 带有闪避的条形图的 geom_text 并填充缺失的类别
- c - 在 strlen 内使用短路或电路?
- r - 在每个循环中使用具有新日期范围的数据子集运行 For 循环
- sql-server - 如何在文本字段中将字符串“&”替换为“&&”
- wso2 - wso2is-5.7.0 debian包安装中找不到WSO2CarbonDB
- java - AppEngine java 应用程序忽略 app.yaml