Reason why hint OPAQUE_TRANSFORM is generated

Source: Internet
Author: User

I often see an hint/* + OPAQUE_TRANSFORM */In the AWR Report, which is inexplicable. Why? If you see this hint in AWR of database B, the reason is that other databases ACCESS database B through DB link, and access using insert into table_name select * from table_name @ dblink_name.

SQL> explain plan for insert into test select * from REMOTE_SMALL_TAB @ DBLINK_TEST;

Explained.

SQL> select * from table (dbms_xplan.display );
PLAN_TABLE_OUTPUT
Bytes -----------------------------------------------------------------------------------------------------
Plan hash value: 1788691278
Bytes -----------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (% CPU) | Time | Inst | IN-OUT |
Bytes -----------------------------------------------------------------------------------------------------
| 0 | insert statement | 72229 | 6842K | 186 (1) | 00:00:03 |
| 1 | REMOTE | REMOTE_SMALL_TAB | 72229 | 6842K | 186 (1) | 00:00:03 | DBLIN ~ | R-> S |
Bytes -----------------------------------------------------------------------------------------------------
Remote SQL Information (identified by operation id ):
----------------------------------------------------
1-SELECT/* + OPAQUE_TRANSFORM */"OWNER", "OBJECT_NAME", "SUBOBJECT_NAME", "OBJECT_ID", "DAT
A_OBJECT_ID "," OBJECT_TYPE "," CREATED "," LAST_DDL_TIME "," TIMESTAMP "," STATUS "," TEMPORARY "," GENERA
TED "," SECONDARY "," NAMESPACE "," EDITION_NAME "FROM" REMOTE_SMALL_TAB "" REMOTE_SMALL_TAB"
(Accessing 'dblink _ TEST. EYGLE. com ')
You have selected 17 rows.

Recommended reading:

Use Oracle DBLink for table Synchronization

Use Oracle DBLink

Oracle accesses GreenPlum through DBLink

ORA-01017/ORA-02063 DBLink build Error Problem Analysis and Solution

Oracle create DBLink error: ORA-01017, ORA-02063

Two methods for creating dblink in Oracle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.