Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

One plan hash value has many sql id

N_RajApr 23 2021

Hi All,

We have oracle 18 on Aix.
One of the sql is slow. The sql plan hash value has many sql id when executing from sql developer.
cusror_sharing value is exact in the db.
1,Due to many sql id id, difficult to find which one is right one. Just compared elapsed_time in v$sql.Is ir right approach?
2,I am new to tuning especially large sql statement ( it has 400 lines ). i don't know business logic hence struggling for where to start?
I have tried to get all the tables and columns in where clause of the sql. Checked index status,last_analyzed date and blocking sessions,memory, cpu details

Do i have to check anything other than this

3,If have large sql, where to start.....

Due to company policy, i couldn't share sql, expalin plan etc.All are restricted.

Please share your suggestions.

Thanks,

This post has been answered by Solomon Yakobson on May 2 2021
Jump to Answer
Comments
Post Details
Added on Apr 23 2021
4 comments
5,611 views