updation of table taking more time through informatica
I got a call from a application team guy saying he is updating a table in DESTINATION database using informatica based on the existence of rows in SOURCE. I asked him to explain in detail what he is doing. He explained as below.
Table created.
Table created.
Table altered.
===> For simulating the behavior of informatica I am changing the column data type to nvarchar2Index created.
Index created.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
Explained.
SQL> select * from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
—————————————————————————————————-
Plan hash value: 304743110
———————————————————————————
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
———————————————————————————
| 0 | SELECT STATEMENT | | 726 | 18150 | 190 (1)| 00:00:03 |
|* 1 | TABLE ACCESS FULL| DESTINATION | 726 | 18150 | 187 (1)| 00:00:03 |
|* 2 | INDEX RANGE SCAN| SOURCE_IDX | 1 | 48 | 3 (0)| 00:00:01 |
———————————————————————————
Predicate Information (identified by operation id):
PLAN_TABLE_OUTPUT
—————————————————————————————————-
—————————————————
1 – filter(SYS_OP_C2C(“OBJECT_NAME”)= (SELECT “OBJECT_NAME” FROM
“SOURCE” “SOURCE” WHERE “OBJECT_NAME”=U’ICOL$’))
2 – access(“OBJECT_NAME”=U’ICOL$’)
16 rows selected.
Index created.
Explained.
SQL> select * from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
—————————————————————————————————-
Plan hash value: 2074950781
————————————————————————————————-
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
————————————————————————————————-
| 0 | SELECT STATEMENT | | 726 | 70422 | 154 (0)| 00:00:02 |
| 1 | TABLE ACCESS BY INDEX ROWID| DESTINATION_TABLE | 726 | 70422 | 151 (0)| 00:00:02 |
|* 2 | INDEX RANGE SCAN | C2C_FUN | 291 | | 3 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN | SOURCE_IDX | 1 | 48 | 3 (0)| 00:00:01 |
————————————————————————————————-
PLAN_TABLE_OUTPUT
—————————————————————————————————-
Predicate Information (identified by operation id):
—————————————————
2 – access(SYS_OP_C2C(“OBJECT_NAME”)= (SELECT “OBJECT_NAME” FROM “SOURCE_TABLE”
“SOURCE_TABLE” WHERE “OBJECT_NAME”=U’ICOL$’))
3 – access(“OBJECT_NAME”=U’ICOL$’)
17 rows selected.
https://jonathanlewis.wordpress.com/2007/07/29/nls/
http://joze-senegacnik.blogspot.co.uk/2009/12/what-is-purpose-of-sysopc2c-internal.html
very nice and useful blog
LikeLike
Thank you very much Kumar for visiting my blog…
LikeLike
Useful information bro
LikeLike
Thank you..
LikeLike