I am wondering if we have anything in place in the oracle database which will give me the execution time of all the views and stored procedures.
For views - When I am executing manually using select * from view; this is fetching the results from the cache memory and giving the execution time which is less. But originally the views were taking more than 4secs to give the results. So, I need to find out the execution time of all views and stored procedures. Is there any way to find out these details as this is required for performance tuning purposes?
Database version: Oracle SQL Developer (19c)
Thanks in advance.
CodePudding user response:
Oracle SQL Developer is not a database, it is a client application. Oracle 19c is a database.
In SQL Developer, the execution time of a query from a worksheet is visible in the SQL History pane. Real-time monitoring of top SQL performance across the database instance can be done using the Instance Viewer from the DBA tools. Tuning of individual SQL statements can be done with the SQL Tuning Advisor in SQL Developer.
For deeper level performance tuning, the AWR Report (available in the DBA tools in SQL Developer, and which requires licensing of the Diagnostics Pack) will have execution statistics of poorly performing SQL, as well as recommendations for tuning at the system level.