[20191125]oracel SQL parsing function qcplgte 2.txt「建议收藏」

[20191125]oracel SQL parsing function qcplgte 2.txt「建议收藏」[20191125]oracel SQL parsing function qcplgte 2.txt–//参考前面的测试:http://blog.itpub.net/267265/viewspac

[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:      “”

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/10783.html

(0)
上一篇 2022-12-21 21:30
下一篇 2022-12-21

相关推荐

  • mongodb备份与恢复_mongodb备份数据库

    mongodb备份与恢复_mongodb备份数据库备份方法 Oplog介绍 可用于生产环境的备份与恢复脚本 脚本仓库 备份命令 a) 单DB两种方法 (1)mongodump -h localhost:27017 -d db[不能多个] -o /d…

    2023-02-13
    144
  • orcle imp/exp 导入导出dmp 文件

    orcle imp/exp 导入导出dmp 文件导入 文件 需要导入的用户 来源用户 登陆的用户 imp file=E:orabackERP20200106.dmp userid=aaa/123456@127.0.0.1 fromuser=NC6…

    2023-02-07
    154
  • 数据库基础知识(三)

    数据库基础知识(三)五、Navicat Premium 12的安装和激活成功教程 是一套数据库开发管理工具,支持连接 MySQL、Oracle等多种数据库,可以快速轻松地创建、管理和维护数据库。 相关教程网址:https://w

    2023-02-10
    146
  • Python查看包版本方法总结

    Python查看包版本方法总结在Python开发中,我们常常需要查询指定包的版本信息,以便保证程序的正常运行并及时更新维护。Python提供了多种查询包版本信息的方法,本文旨在总结这些方法,帮助初学者更好地处理包的版本问题。

    2024-05-09
    62
  • Redis学习笔记(十八) 集群(下)

    Redis学习笔记(十八) 集群(下)复制和故障转移 Redis集群中的节点分为主节点(master)和从节点(slave),其中主节点用于处理槽,而从节点则用于复制某个主节点,并在被复制 的主节点下线时,代替下线主节点继续处理命令请求。

    2023-03-10
    145
  • mysql生成一万条uuid_es分页查询排序时数据重复

    mysql生成一万条uuid_es分页查询排序时数据重复MySQL快速创建800w条测试数据表&深度分页 汴水流,泗水流,流到瓜州古渡头。 吴山点点愁。 思悠悠,恨悠悠,恨到归时方始休。 月明人倚楼。 一、数据插入思路 如果一条一条插入普通表的话,

    2023-05-02
    145
  • 怎样在电脑上安装python软件_mac安装python3

    怎样在电脑上安装python软件_mac安装python3首先在浏览器中输入python的官网,直接到官网下载编程软件。

    2023-08-25
    140
  • python协程总结(协程Python)

    python协程总结(协程Python)在python中线程和协程的区别:1、一个线程可以拥有多个协程,这样在python中就能使用多核CPU;2、线程是同步机制,而协程是异步;3、 协程能保留上一次调用时的状态,每次过程重入时,就相当于进入上一次调用的状态。

    2023-11-01
    117

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注