sql_id [message #388911] |
Thu, 26 February 2009 10:57 |
averion
Messages: 42 Registered: January 2009 Location: US
|
Member |
|
|
Experts,
How to find out which SQL_ID is from which procedures/fuctions.
Thanks,
|
|
|
Re: sql_id [message #388912 is a reply to message #388911] |
Thu, 26 February 2009 11:00 |
S.Rajaram
Messages: 1027 Registered: October 2006 Location: United Kingdom
|
Senior Member |
|
|
Sql_ID is associated with a sql statement and not tied with any procedure or function. As far as I know only way to trace it back is find the sql statement and check for the sql statement in user_source.
Regards
Raj
|
|
|
Re: sql_id [message #388915 is a reply to message #388912] |
Thu, 26 February 2009 11:20 |
averion
Messages: 42 Registered: January 2009 Location: US
|
Member |
|
|
Thanks Raj,
But I need to modify certain queries in procedure/function/packages and all I have is the SQL_ID and the statements.
How can I find out which pl/sql statements is in which procedure/function/package.
Regards,
|
|
|
|
|
Re: sql_id [message #388967 is a reply to message #388923] |
Thu, 26 February 2009 16:54 |
gintsp
Messages: 118 Registered: February 2007
|
Senior Member |
|
|
on 10g program_id and program_line# in v$sql if the necessary sql is in cache. Otherwise just search user/all/dba_source if it from stored program units.
|
|
|