Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Index

Former Member
0 Likes
519

Hi All,

i want to know my secect query which index is using because in data base for EBAN table there are several indexes are there.

can i see that from st05?

if yes then how?

Regards,

Amit.

Hi All,

i want to know my secect query which index is using because in data base for EBAN table there are several indexes are there.

can i see that from st05?

if yes then how?

Regards,

Amit.

3 REPLIES 3
Read only

Former Member
0 Likes
491

hi amit

go to se14

Read only

Former Member
0 Likes
491

you can go to ST05 transaction and start the trace and run your program. Stop the trace and use the explain button in the application toolbar for your select statement.

it would tell you which index has been used.

Regards

Vasu

Read only

Former Member
0 Likes
491

HI,

You can check by seeing the select statment, if that is not using any index then the select statment is using the primary index,

if the select is using the seconday index,

SELECT carrid connid cityfrom

FROM spfli INTO (xcarrid, xconnid, xcityfrom)

WHERE carrid = 'LH ' AND cityfrom = 'FRANKFURT'

%_HINTS ORACLE 'INDEX("SPFLI" "SPFLI~001")'.

WRITE: / xcarrid, xconnid, xcityfrom.

ENDSELECT.

You can see which index is using, the index name is 001 ( secondary index name is from SPLFI~<b>001</b>) ... you can check this in SPLFI table

Regards

Sudheer