[20230123]完善curheapz.sql脚本.txt
[20230123]完善curheapz.sql脚本.txt--//我发现tpt的curheaps.sql脚本在第2个输入%的情况下无法控制display last child cursor heap0,heap4,heap6 message using x$ksmhp.--//而且脚本查询hash_value,不支持sql_id,修改一下,并且增加参数&3 => desc asc,
[20230130]toad看执行计划注意.txt
[20230130]toad看执行计划注意.txt--//同事给我看一条sql语句,说生产系统执行8秒,而在toad执行需要1秒,实际上toad如果快,可能并没有完成整个结果集合,也就是先--//fetch 500条.这样看起来很快,实际上可能执行很慢.--//做一个例子演示出来.1.环境:SCOTT@test01p> @ ver1PORT_STRING &
[20230124]12c访问login.sql脚本.txt
[20230124]12c访问login.sql脚本.txt--//家里笔记本电脑,发现一个奇怪的现象,发现无法访问SQLPATH环境变量定义的路径下login.sql文件.--//找到一个链接:--//https://mikedietrichde.com/2017/04/17/security-change-in-oracle-database-12-2-with-login-sql/Behav
[20230121]windows cmd.exe小技巧.txt
[20230121]windows cmd.exe小技巧.txt在属性=>布局设置:屏幕缓冲区大小:宽度 500高度 9999窗口大小 宽度 224高度 48--//可以实现超宽显示.底下会出现左右的滚动条.--//这样sqlplus显示可以设置set linesize 400.
[20230108]ORA-00600 and Session Disconnected 2.txt
[20230108]ORA-00600 and Session Disconnected 2.txt--//http://ksun-oracle.blogspot.com/2022/07/plsql-ora-00600-by-jdbc-call-exception.html--//测试:ORA-00600 and Session Disconnected1.环境:SCOTT@test01p>
[20230108]ORA-00600 and Session Disconnected.txt
[20230108]ORA-00600 and Session Disconnected.txt--//http://ksun-oracle.blogspot.com/2022/07/plsql-ora-00600-by-jdbc-call-exception.html--//测试:ORA-00600 and Session Disconnected1.环境:SCOTT@test01p> @
[20230104]Oracle too many parse errors PARSE ERROR.txt
[20230104]Oracle too many parse errors PARSE ERROR.txt--//来自 https://jonathanlewis.wordpress.com/2017/10/06/12c-parse/--//http://anuj-singh.blogspot.com/2022/12/oracle-too-many-parse-errors-parse-erro
[20230103]COUNT STOPKEY operation.txt
[20230103]COUNT STOPKEY operation.txt--//链接:http://blog.tanelpoder.com/2010/10/25/count-stopkey-operation-the-where-rownum/--//rownum限制仅仅显示2^32-1条,实际上12c版本已经修复了这个bug,通过例子验证.1.环境:SCOTT@test01p> @ver
[20230125]21c Force matching signature的计算.txt
[20230125]21c Force matching signature的计算.txt--//昨天看了链接:https://hourim.wordpress.com/2023/01/22/force-matching-signature/--//里面提到计算force_matching_signature的改变,以前如果sql语句出现绑定变量与常量混合的sql语句,计算--//force_ma
[20230124]测试是否能使用物化视图优化.txt
[20230124]测试是否能使用物化视图优化.txt--//生产系统有如下sql语句:SYS@127.0.0.1:9014/ywdb> @ sql_id 77ygdvhd1y3rk--SQL_ID = 77ygdvhd1y3rkselect ylxh from l_lis_sqdmx where prehyid =:1 and rownum =:"SYS_B_0" ;-
[20230119]12c grant read 特性.txt
[20230119]12c grant read 特性.txt--//昨天看了链接:https://www.anbob.com/archives/7053.html--//想起以前我家里的机器使用toad以scott用户登陆遇到的问题,我虽然已经授权dba权限,但是还是报ora-1031错误.--//仔细检查才发现登陆时需要访问sys.user$,当时直接scott可以访问sys.user$权限.
[20230111]记录dml语句中的绑定变量.txt
[20230111]记录dml语句中的绑定变量.txt--//利用FGA,可以快速抓取特定对象涉及的sql语句以及里面的绑定变量.https://xanpires.wordpress.com/2012/05/20/how-to-retrieve-dml-statements-text-and-values-from-bind-variables/--//以前我采用如下方式:alter system
[20230108]ORA-00600 and Session Disconnected 2.txt
[20230108]ORA-00600 and Session Disconnected 2.txt--//ksun-oracle.blogspot.com/2022/07/plsql-ora-00600-by-jdbc-call-exception.html--//测试:ORA-00600 and Session Disconnected1.环境:SCOTT@test01p> @ ver1
[20230108]ORA-00600 and Session Disconnected.txt
[20230108]ORA-00600 and Session Disconnected.txt--//ksun-oracle.blogspot.com/2022/07/plsql-ora-00600-by-jdbc-call-exception.html--//测试:ORA-00600 and Session Disconnected1.环境:SCOTT@test01p> @ver1POR
[20230106]测试宽表查询.txt
[20230106]测试宽表查询.txt--//https://tanelpoder.com/posts/reasons-why-select-star-is-bad-for-sql-performance/,重复测试:1.环境:SCOTT@test01p> @ver1PORT_STRING &nb
[20221230]提示precompute_subquery补充3.txt
[20221230]提示precompute_subquery补充3.txt--//补充提示precompute_subquery的测试.1.环境:SCOTT@test01p> @ ver1PORT_STRING &
[20221228]Adaptive Cursor Sharing & 直方图2.txt
[20221228]Adaptive Cursor Sharing & 直方图2.txt--//前一阵子在做优化时我想当然以为重新分析取消某个日期字段的直方图信息,就不会出现大量子光标问题,结果发现我错了.--//可能我以前也做过类似测试,加强记忆重复测试.--//前几天做了测试说明ACS是一个不好的设计,问题多多.如果我删除统计中某个字段的最大最小值,是否可以避免这样的情况发生.--//
[20221227]a mutating table error without a trigger!.txt
[20221227]a mutating table error without a trigger!.txt--//快放假,没什么事情,花一点点时间看了harmfultriggers.blogspot.com,关于触发器的相关危害.--//参考链接:harmfultriggers.blogspot.com/2011/12/look-mom-mutating-table-error-without
[20221227]Adaptive Cursor Sharing & 直方图.txt
[20221227]Adaptive Cursor Sharing & 直方图.txt--//前一阵子在做优化时我想当然以为重新分析取消某个日期字段的直方图信息,就不会出现大量子光标问题,结果发现我错了.--//可能我以前也做过类似测试,加强记忆重复测试.--//做一个例子说明,另外我一直认为ACS是一个不好的设计,问题多多.大家可以看我以前的测试.1.环境:SCOTT@test01p&g
[20221227]19c LISTAGG Enhancements.txt
[20221227]19c LISTAGG Enhancements.txt--//学习了解19c以上版本LISTAGG的新特性.--//http://blog.dbi-services.com/oracle-12cr2-sql-new-feature-listagg-overflow/After the delimiter string you can add:ON OVERFLOW ERROR