简体   繁体   中英

how to retrieve the queries used in a store procedure through jdbc

I have been calling a stored procedure through jdbc and i have a requirement that the queries used in that stored procedure should be displayed on console.

can you suggest a code to retieve the queries used in the stored procedure from the metadata.

In Oracle, you can see previously executed queries using the v$sql view...

select * from v$session join v$sql using (sql_id)

That's not a history of all statements, though...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM