[20191125]oracel SQL parsing function qcplgte 2.txt
[20191125]oracel SQL parsing function qcplgte 2.txt
--//參考前面的測試:http://blog.itpub.net/267265/viewspace-2665273/=>[20191122]oracel SQL parsing function qcplgte.txt
--//補充一些測試:
1.環境:
--//session 1:
SCOTT@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SCOTT@book> @ spid
SID SERIAL# PROCESS SERVER SPID PID P_SERIAL# C50
---------- ---------- ------------------------ --------- ------ ------- ---------- --------------------------------------------------
86 15 964 DEDICATED 965 30 8 alter system kill session '86,15' immediate;
SCOTT@book> alter session set cursor_sharing=force ;
Session altered.
2.測試:
--//session 1:
SCOTT@book> select * from dept where deptno=41;
no rows selected
--//session 2:
0x7fff1e373528: "select * from dept where deptno=41"
0x7fff1e37352e: " * from dept where deptno=41"
0x7fff1e373530: " from dept where deptno=41"
0x7fff1e373535: " dept where deptno=41"
0x7fff1e37353a: " where deptno=41"
0x7fff1e373540: " deptno=41"
0x7fff1e373547: "=41"
0x7fff1e373548: "41"
0x7fff1e37354a: ""
0x7db65d78: "select * from dept where deptno=:\"SYS_B_0\""
0x7db65d7e: " * from dept where deptno=:\"SYS_B_0\""
0x7db65d80: " from dept where deptno=:\"SYS_B_0\""
0x7db65d85: " dept where deptno=:\"SYS_B_0\""
0x7db65d8a: " where deptno=:\"SYS_B_0\""
0x7db65d90: " deptno=:\"SYS_B_0\""
0x7db65d97: "=:\"SYS_B_0\""
0x7db65d91: "deptno=:\"SYS_B_0\""
0x7db65d97: "=:\"SYS_B_0\""
0x7db65d98: ":\"SYS_B_0\""
0x7db65d99: "\"SYS_B_0\""
0x7db65da2: ""
0x7f6fca73d9f0: "select * from dept where deptno=:\"SYS_B_0\""
0x7f6fca73d9f6: " * from dept where deptno=:\"SYS_B_0\""
0x7f6fca73d9f8: " from dept where deptno=:\"SYS_B_0\""
0x7f6fca73d9fd: " dept where deptno=:\"SYS_B_0\""
0x7f6fca73da02: " where deptno=:\"SYS_B_0\""
0x7f6fca73da08: " deptno=:\"SYS_B_0\""
0x7f6fca73da0f: "=:\"SYS_B_0\""
0x7f6fca73da10: ":\"SYS_B_0\""
0x7f6fca73da11: "\"SYS_B_0\""
0x7f6fca73da1a: ""
0x7f6fca73d978: "SELECT * FROM DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d97e: " * FROM DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d980: " FROM DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d985: " DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d98a: " WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d990: " DEPTNO = :\"SYS_B_0\""
0x7f6fca73d997: " = :\"SYS_B_0\""
0x7f6fca73d999: " :\"SYS_B_0\""
0x7f6fca73d99b: "\"SYS_B_0\""
0x7cc6fb76: "DEPTNO"
0x7cc6fb7c: ""
0x7c7b8bfe: "DNAME"
0x7c7b8c03: ""
0x7c7b8b26: "LOC"
0x7c7b8b29: ""
--//session 1:
SCOTT@book> select * from dept where deptno=42;
no rows selected
--//session 2:
0x7fff1e373528: "select * from dept where deptno=42"
0x7fff1e37352e: " * from dept where deptno=42"
0x7fff1e373530: " from dept where deptno=42"
0x7fff1e373535: " dept where deptno=42"
0x7fff1e37353a: " where deptno=42"
0x7fff1e373540: " deptno=42"
0x7fff1e373547: "=42"
0x7fff1e373548: "42"
0x7fff1e37354a: ""
0x7cc6fb76: "DEPTNO"
0x7cc6fb7c: ""
0x7c7b8bfe: "DNAME"
0x7c7b8c03: ""
0x7c7b8b26: "LOC"
0x7c7b8b29: ""
--//session 1:
SCOTT@book> select * from dept where deptno=41;
no rows selected
--//session 2:
0x7cc6fb76: "DEPTNO"
0x7cc6fb7c: ""
0x7c7b8bfe: "DNAME"
0x7c7b8c03: ""
0x7c7b8b26: "LOC"
0x7c7b8b29: ""
--//session 1:
--//執行多次.
SCOTT@book> select * from dept where deptno=41;
no rows selected
--//session 2:
0x7cc6fb76: "DEPTNO"
0x7cc6fb7c: ""
0x7c7b8bfe: "DNAME"
0x7c7b8c03: ""
0x7c7b8b26: "LOC"
0x7c7b8b29: ""
--//在cursor_sharing=force的情況,如果繫結變數引數不同才會呼叫1組qcplgte.不過裡面的欄位不知道為什麼每次都要呼叫.
--//即使是明確欄位的情況下也是一樣.
--//session 1:
SCOTT@book> select dname from dept where deptno=41;
no rows selected
--//session 1 呼叫多次select dname from dept where deptno=41;
--//session 2:
0x7fff1e373528: "select dname from dept where deptno=41"
0x7fff1e37352e: " dname from dept where deptno=41"
0x7fff1e373534: " from dept where deptno=41"
0x7fff1e373539: " dept where deptno=41"
0x7fff1e37353e: " where deptno=41"
0x7fff1e373544: " deptno=41"
0x7fff1e37354b: "=41"
0x7fff1e37354c: "41"
0x7fff1e37354e: ""
0x7c8622f8: "select dname from dept where deptno=:\"SYS_B_0\""
0x7c8622fe: " dname from dept where deptno=:\"SYS_B_0\""
0x7c862304: " from dept where deptno=:\"SYS_B_0\""
0x7c8622ff: "dname from dept where deptno=:\"SYS_B_0\""
0x7c862304: " from dept where deptno=:\"SYS_B_0\""
0x7c8622ff: "dname from dept where deptno=:\"SYS_B_0\""
0x7c862304: " from dept where deptno=:\"SYS_B_0\""
0x7c862309: " dept where deptno=:\"SYS_B_0\""
0x7c86230e: " where deptno=:\"SYS_B_0\""
0x7c862314: " deptno=:\"SYS_B_0\""
0x7c86231b: "=:\"SYS_B_0\""
0x7c862315: "deptno=:\"SYS_B_0\""
0x7c86231b: "=:\"SYS_B_0\""
0x7c86231c: ":\"SYS_B_0\""
0x7c86231d: "\"SYS_B_0\""
0x7c862326: ""
0x7f6fca73d9f8: "select dname from dept where deptno=:\"SYS_B_0\""
0x7f6fca73d9fe: " dname from dept where deptno=:\"SYS_B_0\""
0x7f6fca73da04: " from dept where deptno=:\"SYS_B_0\""
0x7f6fca73da09: " dept where deptno=:\"SYS_B_0\""
0x7f6fca73da0e: " where deptno=:\"SYS_B_0\""
0x7f6fca73da14: " deptno=:\"SYS_B_0\""
0x7f6fca73da1b: "=:\"SYS_B_0\""
0x7f6fca73da1c: ":\"SYS_B_0\""
0x7f6fca73da1d: "\"SYS_B_0\""
0x7f6fca73da26: ""
0x7f6fca73d978: "SELECT DNAME FROM DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d97e: " DNAME FROM DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d984: " FROM DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d989: " DEPT WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d98e: " WHERE DEPTNO = :\"SYS_B_0\""
0x7f6fca73d994: " DEPTNO = :\"SYS_B_0\""
0x7f6fca73d99b: " = :\"SYS_B_0\""
0x7f6fca73d99d: " :\"SYS_B_0\""
0x7f6fca73d99f: "\"SYS_B_0\""
0x7c11fd1e: "DNAME"
0x7c11fd23: ""
0x7c11fd1e: "DNAME"
0x7c11fd23: ""
0x7c11fd1e: "DNAME"
0x7c11fd23: ""
0x7c11fd1e: "DNAME"
0x7c11fd23: ""
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2665609/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20191122]oracel SQL parsing function qcplgte.txtSQLFunction
- SQL Parsing Flow DiagramSQL
- PARSING_USER_ID,PARSING_SCHEMA_ID,PARSING_SCHEMA_NAME in V$SQLSQL
- oracel常用語句
- PL/SQL 06 函式 functionSQL函式Function
- SQL 自定義函式FUNCTIONSQL函式Function
- Oracel bbed安裝和配置
- Parsing an XML Document with XPathXML
- parsing html in asp.netHTMLASP.NET
- javascript 中function(){},new function(),new Function(),Function 摘錄JavaScriptFunction
- 【MySQL】ERROR 1418 This function has none of DETERMINISTIC, NO SQL, ...MySqlErrorFunctionNone
- [20150803]無法通過sql_id找到sql語句2.txtSQL
- 索引@oracel索引技術之索引最佳化索引
- 2018-07-26 access sql 's Val (function)SQLFunction
- This function has none of DETEMINISTIC,NO SQL錯誤解決辦法FunctionNoneSQL
- SQL SERVER 2008 新功能:physical row locator functionSQLServerFunction
- Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause:...ApacheBATUIExceptionErrorSQLAPP
- Springboot Error parsing Mapper XMLSpring BootErrorAPPXML
- [20190329]探究sql語句相關mutexes補充2.txtSQLMutex
- [20170726]11G 12c expand sql text 2.txtSQL
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de 錯誤解決辦法FunctionNoneSQL
- EntityFramework 多資料庫連結,MySql,SqlServer,Oracel等Framework資料庫MySqlServer
- Pentium IV上Oracel817的安裝過程
- ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL,ErrorFunctionNoneSQL
- [20191125]編譯vmtouch.txt編譯
- $(function(){})與(function($){....})(jQuery)的區別FunctionjQuery
- [20200324]SQL語句優化的困惑2.txtSQL優化
- [20200718]注意sql hint寫法2.txtSQL
- 高效的SQL(Function-based Indexes 函式、運算優化思路)SQLFunctionIndex函式優化
- ASP上兩個防止SQL隱碼攻擊式攻擊FunctionSQLFunction
- [20191125]探究等待事件的本源.txt事件
- JavaScript FunctionJavaScriptFunction
- javascript Function()JavaScriptFunction
- sendDataByUdp FunctionUDPFunction
- Substr FunctionFunction
- Function : dumpFunction
- [Bash] functionFunction
- [20181007]12cR2 Using SQL Patch 2.txtSQL