![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
there is a query which executes with two different plans when run on different accounts. this is generally understandable to me. but is there a way/algorithm to investigate the settings/configuration/permissions which have crucial influence on execution plans? for example: select * from emp where ename in ('KING','SMITH'); execution plan as scott: 0 SELECT STATEMENT, koszt 24 1 *COLLECTION ITERATOR PICKLER FETCH execution plan as sys: 0 SELECT STATEMENT, koszt 2 1 *INLIST ITERATOR 2 * TABLE ACCESS BY INDEX ROWID 3 * *INDEX RANGE SCAN is there anything in the above plans that suggests some parameter(s) which when set in sys session would give scott-like execution plan? thank you, geos -- FUT: comp.databases.oracle.misc |
#3
| |||||||
| |||||||
|
|
there is a query which executes with two different plans when run on different accounts. this is generally understandable to me. but is there a way/algorithm to investigate the settings/configuration/permissions which have crucial influence on execution plans? for example: select * from emp where ename in ('KING','SMITH'); execution plan as scott: 0 SELECT STATEMENT, koszt 24 1 COLLECTION ITERATOR PICKLER FETCH execution plan as sys: 0 SELECT STATEMENT, koszt 2 1 INLIST ITERATOR 2 TABLE ACCESS BY INDEX ROWID 3 INDEX RANGE SCAN is there anything in the above plans that suggests some parameter(s) which when set in sys session would give scott-like execution plan? thank you, geos |
|
Id | Operation | Name | Rows | Bytes | Cos |
|
0 | SELECT STATEMENT | | | 24 (100)| | |
|
1 | COLLECTION ITERATOR PICKLER FETCH| DISPLAY_CURSOR | 8168 | 16336 | |
|
Id | Operation | Name | Rows | Bytes | Cost (% CPU)| |
|
0 | SELECT STATEMENT | | | | 2 (100)| 1 | INLIST ITERATOR | | | | 2 | TABLE ACCESS BY INDEX ROWID| EMP | 2 | 74 | 2 (0)| |
|
* 3 | INDEX RANGE SCAN | EMP_ENAME | 2 | | 1 (0)| |
#4
| |||||||
| |||||||
|
|
execution plan as scott: 0 SELECT STATEMENT, koszt 24 1 COLLECTION ITERATOR PICKLER FETCH |
|
Id | Operation | Name | Rows | Bytes | Cost (% CPU)| |
|
0 | SELECT STATEMENT | | | | 2 (100)| 1 | INLIST ITERATOR | | | | 2 | TABLE ACCESS BY INDEX ROWID| EMP | 2 | 74 | 2 (0)| |
|
* 3 | INDEX RANGE SCAN | EMP_ENAME | 2 | | 1 (0)| |
|
Id | Operation | Name | Rows | Bytes | Cos |
|
0 | SELECT STATEMENT | | 24 (100)| | |
|
1 | COLLECTION ITERATOR PICKLER FETCH| DISPLAY_CURSOR | 8168 | 16336 | |
#5
| |||
| |||
|
|
there is a query which executes with two different plans when run on different accounts. this is generally understandable to me. but is there a way/algorithm to investigate the settings/configuration/permissions which have crucial influence on execution plans? for example: select * from emp where ename in ('KING','SMITH'); execution plan as scott: 0 SELECT STATEMENT, koszt 24 1 *COLLECTION ITERATOR PICKLER FETCH execution plan as sys: 0 SELECT STATEMENT, koszt 2 1 *INLIST ITERATOR 2 * TABLE ACCESS BY INDEX ROWID 3 * *INDEX RANGE SCAN is there anything in the above plans that suggests some parameter(s) which when set in sys session would give scott-like execution plan? thank you, geos -- FUT: comp.databases.oracle.misc |
#6
| |||
| |||
|
|
is there anything in the above plans that suggests some parameter(s) which when set in sys session would give scott-like execution plan? |
![]() |
| Thread Tools | |
| Display Modes | |
| |