[20191125]oracel SQL parsing function qcplgte 2.txt

来源:https://www.cnblogs.com/lfree/archive/2019/11/25/11928884.html
-Advertisement-
Play Games

[20191125]oracel SQL parsing function qcplgte 2.txt--//參考前面的測試:http://blog.itpub.net/267265/viewspace-2665273/=>[20191122]oracel SQL parsing function ...


[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:      ""


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 問題現象: 表示連接管道已經斷開 解決方法: 方法一:客戶端配置 在客戶端的 ~/.ssh/ config文件(如不存在請自行創建)中添加下麵內容: ServerAliveInterval 60 方法二:伺服器端配置 在伺服器的 /etc/ssh/sshd_config 中添加如下的配置: Clie ...
  • 修改nginx的配置文件,添加client_max_body_size 欄位 註:client_max_body_size 必須要放在server下的server_name下,而不是放在location欄位下麵 ...
  • https://sqlserver.code.blog/2019/11/25/you-may-fail-to-backup-log-or-restore-log-after-tde-certification-key-rotation/ ...
  • https://sqlserver.code.blog/2019/11/25/password-required-when-you-trying-to-add-a-database-having-a-master-key-to-ag-group/ ...
  • 上一篇說到,在Spark 2.x當中,實際上SQLContext和HiveContext是過時的,相反是採用SparkSession對象的sql函數來操作SQL語句的。使用這個函數執行SQL語句前需要先調用DataFrame的createOrReplaceTempView註冊一個臨時表,所以關鍵是先 ...
  • MongoDB簡介 基於分散式文件存儲的開源資料庫系統 將數據存儲為一個文檔,文檔類似於Json格式 MongoDB進入與退出 進入:mongo 退出:exit 庫級操作 顯示所有庫: show dbs 切換/創建資料庫: use 資料庫名稱 查看所在庫: db 刪除庫:db.dropDatabas ...
  • 一.MHA簡介 作者簡介 松信嘉範: MySQL/Linux專家 2001年索尼公司入職 2001年開始使用oracle 2004年開始使用MySQL 2006年9月 2010年8月MySQL從事顧問 2010年 2012年 DeNA 2012年~至今 Facebook 軟體簡介 MHA能夠在較短的 ...
  • 1.MySQL版本: (目前到8了) 5.x: 5.0-5.1:早期產品的延續,升級維護 5.4 - 5.x : MySQL整合了三方公司的新存儲引擎 (推薦5.5),企業使用最多的是5.5 2.linux下安裝方式 yum tar.gz rpm版(本次使用) 安裝:rpm -ivh rpm軟體名 ...
一周排行
    -Advertisement-
    Play Games
  • 前言 在我們開發過程中基本上不可或缺的用到一些敏感機密數據,比如SQL伺服器的連接串或者是OAuth2的Secret等,這些敏感數據在代碼中是不太安全的,我們不應該在源代碼中存儲密碼和其他的敏感數據,一種推薦的方式是通過Asp.Net Core的機密管理器。 機密管理器 在 ASP.NET Core ...
  • 新改進提供的Taurus Rpc 功能,可以簡化微服務間的調用,同時可以不用再手動輸出模塊名稱,或調用路徑,包括負載均衡,這一切,由框架實現並提供了。新的Taurus Rpc 功能,將使得服務間的調用,更加輕鬆、簡約、高效。 ...
  • 順序棧的介面程式 目錄順序棧的介面程式頭文件創建順序棧入棧出棧利用棧將10進位轉16進位數驗證 頭文件 #include <stdio.h> #include <stdbool.h> #include <stdlib.h> 創建順序棧 // 指的是順序棧中的元素的數據類型,用戶可以根據需要進行修改 ...
  • 前言 整理這個官方翻譯的系列,原因是網上大部分的 tomcat 版本比較舊,此版本為 v11 最新的版本。 開源項目 從零手寫實現 tomcat minicat 別稱【嗅虎】心有猛虎,輕嗅薔薇。 系列文章 web server apache tomcat11-01-官方文檔入門介紹 web serv ...
  • C總結與剖析:關鍵字篇 -- <<C語言深度解剖>> 目錄C總結與剖析:關鍵字篇 -- <<C語言深度解剖>>程式的本質:二進位文件變數1.變數:記憶體上的某個位置開闢的空間2.變數的初始化3.為什麼要有變數4.局部變數與全局變數5.變數的大小由類型決定6.任何一個變數,記憶體賦值都是從低地址開始往高地 ...
  • 如果讓你來做一個有狀態流式應用的故障恢復,你會如何來做呢? 單機和多機會遇到什麼不同的問題? Flink Checkpoint 是做什麼用的?原理是什麼? ...
  • C++ 多級繼承 多級繼承是一種面向對象編程(OOP)特性,允許一個類從多個基類繼承屬性和方法。它使代碼更易於組織和維護,並促進代碼重用。 多級繼承的語法 在 C++ 中,使用 : 符號來指定繼承關係。多級繼承的語法如下: class DerivedClass : public BaseClass1 ...
  • 前言 什麼是SpringCloud? Spring Cloud 是一系列框架的有序集合,它利用 Spring Boot 的開發便利性簡化了分散式系統的開發,比如服務註冊、服務發現、網關、路由、鏈路追蹤等。Spring Cloud 並不是重覆造輪子,而是將市面上開發得比較好的模塊集成進去,進行封裝,從 ...
  • class_template 類模板和函數模板的定義和使用類似,我們已經進行了介紹。有時,有兩個或多個類,其功能是相同的,僅僅是數據類型不同。類模板用於實現類所需數據的類型參數化 template<class NameType, class AgeType> class Person { publi ...
  • 目錄system v IPC簡介共用記憶體需要用到的函數介面shmget函數--獲取對象IDshmat函數--獲得映射空間shmctl函數--釋放資源共用記憶體實現思路註意 system v IPC簡介 消息隊列、共用記憶體和信號量統稱為system v IPC(進程間通信機制),V是羅馬數字5,是UNI ...