关于这个hint 是10.2.0.3 之后出现的,在insert into table select * from [email protected]_link 这一类型的语句, 在执行时,源端数据库中出现的。

在MOS doc ID 780503.1 中对此有说明。文档内容如下:

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.3 and later

Information in this document applies to any platform.

Oracle Server Enterprise Edition - Version: 10.2.0.3

***Checked for relevance on 02-MAR-2012***

Goal

What is OPAQUE_TRANSFORM usage :

The OPAQUE_TRANSFORM hint is to help with the transformation of datatype when certain

type of operations are done within the database. For example object types .

It is also used for a insert-as-remote-select operation on a remote database

Example : insert into emp (select * from [email protected]) ;

call count cpu elapsed disk query current rows

------- ------ -------- ---------- ---------- ---------- ---------- ----------

Parse 1 0.00 0.50 0 0 0 0

Execute 1 0.00 0.51 0 1 44 12

Fetch 0 0.00 0.00 0 0 0 0

------- ------ -------- ---------- ---------- ---------- ---------- ----------

total 2 0.00 1.01 0 1 44 12

Misses in library cache during parse: 0

Optimizer mode: ALL_ROWS

Parsing user id: 57 (SCOTT)

Rows Row Source Operation

------- ---------------------------------------------------

12 REMOTE EMP (cr=0 pr=0 pw=0 time=508808 us)

Rows Execution Plan

------- ---------------------------------------------------

0 INSERT STATEMENT MODE: ALL_ROWS

12 REMOTE OF ‘EMP‘ (REMOTE) [REP102B]

SELECT /*+ OPAQUE_TRANSFORM */ "EMPNO","ENAME","JOB","MGR",

"HIREDATE","SAL","COMM","DEPTNO" FROM "EMP" "EMP"

Note : This hint should not interfere with the query optimizer plan.

Solution

The below event can be set on the client (local) in order to turn the opaque_transform hint on and off..

- To switch on :

alter session set events ‘22825 trace name context off‘ ;

- To switch off :

1) alter session set events ‘22825 trace name context forever, level 1‘ ;

2) or using the following hint : /*+ NO_QUERY_TRANSFORMATION */

3) using RULE hint.

-Note that if local site is 11g and remote is 11g server, this opens 2 sessions

on the remote database and OPAQUE_TRANSFORM hint gives DX LOCK deadlock.

- If the local is 10g client and remote is 11g server, this opens 1 session on

the remote and no DX deadlock.

oracle opaque_transform,oracle databse link相关推荐

  1. 【oracle】oracle经典sql,exception,database link纠错

    [oracle]oracle经典sql,exception,database link纠错 1111-01 oracle经典sql,exception,database link纠错 1.给表tabl ...

  2. oracle安装就是home3,rhel3上安装Oracle(来自Oracle网站)

    http://www.oracle.com/technology/global/cn/pub/articles/smiley_10gdb_install.html 1.从网上下载redhat Ente ...

  3. Linux下docker安装配置oracle,oracle创建用户并远程连接,实测可用!

    最近在给同学弄毕业设计的数据库,因为oracle在个人电脑上极不稳定,所以他的电脑数据库崩溃了,这时候我就在docker上为他拉了一个oracle,解决了问题. docker的安装共有以下几步,实测没 ...

  4. oracle自动化,Oracle 自动化备份脚本

    备份脚本,基于linux,windows环境需要适当修改. 主脚本,会调用2,3步骤的rman.sql&status.sql $ more main.sh #set env ######### ...

  5. it oracle 培训,Oracle数据库技术培训_OracleDBA数据库工程师_Oracle数据库在线学习视频教程_IT职业培训-51CTO学院_精培学院...

    第一阶段:企业级Oracle数据库实战入门与集群实施 特色:本阶段部分内容为OCP/OCM课程内容,以企业实战项目为主导讲解,实用性更强. 第1章 Oracle数据库高级工程师职业发展与学习方法 第2 ...

  6. oracle v$system_event,45.Oracle杂记——Oracle常用动态视图v$system_event

    45.Oracle杂记--Oracle常用动态视图v$system_event 视图v$system_event 显示一个事件的总共等待. 如果不支持计时机制,那么TIME_WAITED和AVERAG ...

  7. oracle 202,Oracle Certification 1Z0-202题库

    Oracle Other Oracle Certification 1Z0-202 考题名称:Siebel 8 Consultant Exam 版本号:V2.40 更新时间:2011-09-14 考题 ...

  8. php对应哪个oracle版本,Oracle 版本说明

    Oracle 的版本号很多,先看11g的一个版本号说明: 注意: 在Oracle 9.2 版本之后, oracle 的maintenance release number 是在 Oracle的版本号很 ...

  9. 更改oracle 端口,Oracle数据库11G R2 修改服务端口

    找到listener.ora文件: /opt/oracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora 修改端口为21521:LIST ...

最新文章

  1. 完美解决latex警告信息:Citation `Gusfield:97‘ on page 1 undefined.
  2. 第03讲. 原理探究,了解爬虫的基本原理
  3. 【转】CSS样式覆盖规则
  4. codeforces Labyrinth
  5. # 2017-2018-1 20155336《信息安全技术》实验二——Windows口令破解
  6. (进阶)LeetCode(766)——托普利茨矩阵(JavaScript)
  7. 学习使用TestNG中的注解(2)——@Factory的使用
  8. 阿里巴巴Android开发手册V1.0.0随手笔记
  9. python snap7 plc db_python 用Snap7读写西门子PLC中DB块
  10. html中css鼠标手势样式,CSS鼠标手势
  11. pdffactory字体模糊如何处理
  12. Java 并发编程:轻量级锁和偏向锁详解
  13. Android碎片化问题
  14. vue支付项目-APP支付宝支付功能
  15. Dockerfile Registry WebUI 之 docker-registry-frontend 基础应用
  16. 基于协同过滤算法的商品推荐购物电商系统
  17. 影响蜂糖李苗花芽分化的因素
  18. SVG可伸缩的矢量图形 1
  19. ubuntu 16.04 桌面修复
  20. dk 识别物体出现的问题

热门文章

  1. java guava 使用_java – 使用Guava从属性文件创建对象
  2. python实现解释器_Python 解释器初探
  3. php注释验证,注解验证 · ThinkPHP6.0完全开发手册 · 看云
  4. python 映射和反映射_python映射类型的相关介绍
  5. python axis 0_Python之NumPy(axis=0/1/2...)的透彻理解
  6. Android开发之EditText输入框限制输入数字和字母的实现方式
  7. Wine 4.3 发布,Windows 应用的兼容层
  8. 阿里如何实现100%容器化镜像化?八年技术演进之路回顾 1
  9. 第一次使用最新开发的在线编辑器讲课记录笔记
  10. Android Library projetcts cannot be exported.