了解Maclean Liu|向Maclean Liu提问 Oracle ALLSTARS 全明星(群内有多位Oracle高级售后support,N位OCM和ACE) QQ群 # QQ群号:23549328 # 已经升级到 2000人群,空位多多。欢迎有一定基础的Oracle骨友加入,现在入群需要经过Maclean的技术面试,欢迎面试,请加QQ号:47079569 为好友参加面试 2群基础群 适合刚入门的同学,会共享最佳入门实践和资料 QQ群 # QQ群号:171092051 # 已经升级到 500人的超级群,空位多多,无需面试

脚本:格式化的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

posted on 2009-04-13 20:32  Oracle和MySQL  阅读(459)  评论(0)    收藏  举报

导航