脚本:格式化的V$SQL_SHARED_CURSOR报告

简介:

The function generates a summary report of the v$sql_shared_cursor view and additional diagnostic information depending on the reason code. Counts all the versions that have 'Y' in any of the columns and if any have all 'N' too. This script may be useful to diagnose ORA-600 [17059] errors Running the Script -- Generate reports for all cursors with more than 100 versions using SQL_ID (10g and up) select b.* from v$sqlarea a ,table(version_rpt(a.sql_id)) b where loaded_versions >=100; -- Generate reports for all cursors with more than 100 versions using HASH_VALUE select b.* from v$sqlarea a ,table(version_rpt(null,a.hash_value)) b where loaded_versions>=100; -- Generate the report for cursor with sql_id cyzznbykb509s select * from table(version_rpt('cyzznbykb509s')); version_rpt3_12.sql



本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1276757

相关文章
|
3月前
|
SQL 测试技术 数据库
SQL注入,跨站脚本,跨站请求伪造,傻傻分不清楚
SQL注入,跨站脚本,跨站请求伪造,傻傻分不清楚
|
6月前
|
SQL 数据库
PowerDesigner导出SQL脚本运行注释出现乱码问题
PowerDesigner导出SQL脚本运行注释出现乱码问题
142 0
|
9月前
|
SQL
利用Ant 执行SQL 脚本
利用 Ant 的SQL Task来实现执行SQL 脚本的功能
136 0
|
10月前
|
SQL 数据库
PowerDesigner16(PDM)pd生成数据库sql脚本
今天使用PowerDesigner16软件生成数据库脚本的时候遇到了一些问题,但是经过不懈努力最终修成正果,下面将小编的经历以及错误解决方案与大家分享。
|
6月前
|
SQL 关系型数据库 MySQL
MySql数据库中的视图,索引与数据库sql脚本如何导入与导出---(详细介绍)
MySql数据库中的视图,索引与数据库sql脚本如何导入与导出---(详细介绍)
249 0
|
20小时前
|
SQL 关系型数据库 MySQL
|
1天前
|
SQL 关系型数据库 MySQL
SQL脚本字符串替换
【5月更文挑战第3天】
12 4
|
3天前
|
SQL 关系型数据库 MySQL
SQL脚本列转行
【5月更文挑战第2天】
6 0
|
4天前
|
SQL 关系型数据库 MySQL
SQL脚本行转列
【5月更文挑战第1天】
10 0
|
18天前
|
SQL Java 关系型数据库
mybatis-plus启动时自动执行sql脚本
mybatis-plus启动时自动执行sql脚本
19 1