Submitted Questions

  • Large SQL query performance check

    You have a very large query say of 2000 lines. How would you check if the indexes are being used or not. Would you read all the lines of explain plan in plan table to get it? If yes, will it be feasible? Do you have any other method of checking this?

    raghuvir Khanna

    • May 10th, 2012

    We can moniter the use of indexed with the help of view V$object_usage simple we need to use
    Alter index monitoring usage;
    select tablename,indexname ,used from V$object_usage ;

    Sam

    • May 7th, 2012

    Check and resolve join with the largest cost

  • SQL queries performance issue

    You have a batch job which has hundreds of SQL queries in it. Earlier is was finishing in expected time. However, now it is taking twice the time. There is no CPU utilization issue due to other jobs. How would you know that which of the queries are taking more time now and why?

    Nagaraj Teli

    • Jul 22nd, 2012

    Please find the below methods for finding one of the query which is taking longer time in the batch script. Methods :- 1) Put the dbms_output after each of the SQL query. 2) Create a logfile using th...