Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do you have the ability to modify the query that is being generated? It appears that it is doing an extraneous join to the <code>ALL_OBJECTS</code> table. It appears that your query is equivalent to this</p> <pre><code>SELECT a.argument_name, a.data_type, a.in_out, NVL (a.data_length, 0) AS data_length, NVL (a.data_precision, 0) AS data_precision, NVL (a.data_scale, 0) AS data_scale FROM ALL_ARGUMENTS a, (SELECT object_id FROM all_objects WHERE UPPER (object_name) = UPPER ('resourcemanager_pkg') AND object_type = 'PACKAGE' AND owner = 'OFFICEDBA') o WHERE UPPER (a.object_name) = UPPER ('p_search_roles') AND a.OBJECT_ID = o.OBJECT_ID ORDER BY a.position ASC </code></pre> <p>I would also expect that using <code>ALL_PROCEDURES</code> rather than <code>ALL_OBJECTS</code> to get the <code>OBJECT_ID</code> would be more efficient.</p> <p>Have you gathered dictionary statistics? Queries against the data dictionary views are generally rather hard to tune since you can't add indexes or other structures to speed things up. But at least gathering dictionary statistics may give the optimizer better information to be able to pick a better plan.</p> <p>Finally, is it possible that you could materialize the data from the data dictionary in a materialized view that refreshes periodically that you could index? That would mean that the results wouldn't immediately reflect changes to the definition of procedures. On the other hand, you don't generally want to be making changes to procedure definitions live and you can always refresh the materialized views after making schema changes.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload