nerdexam
Oracle

1Z0-054 · Question #66

You work for a company as a DBA. The company has an application to manage the details of its business and customer base. However, application users complain that updating the SALES record takes more…

The correct answer is C. Keep the UPDATE_INV procedure by using the DBMS_SHARED_POOL.KEEP procedure. See the full explanation below for the reasoning.

Question

You work for a company as a DBA. The company has an application to manage the details of its business and customer base. However, application users complain that updating the SALES record takes more time than it used to earlier. On investigation, you notice that the application performance degrades when a call is made to the UPDATE_INV procedure. Further, you execute the following query to investigate:

SQL> SELECT name, type, sharable_mem, kept 2 FROM v$db_object_cache 3 WHERE sharable_mem > 4000 4 AND EXECUTIONS > 5 5 AND (type='FUNCTION' OR type='PROCEDURE') 6 / NAME TYPE SHARABLE_MEM KEPT ------------------- -------------- --------------- ----------- GETEMKEY FUNCTION 13695 YES UPDATE_INV PROCEDURE 14766 NO SETEMUSERCONTEXT PROCEDURE 13703 YES DECRYPT FUNCTION 17790 YES UPDATE_DEPT PROCEDURE 18765 NO What would you do to improve the performance?

Options

  • AEnable the result cache if not already enabled.
  • BFlush the shared pool to make space for this procedure.
  • CKeep the UPDATE_INV procedure by using the DBMS_SHARED_POOL.KEEP procedure.
  • DIncrease the size of the keep buffer pool to accommodate the UPDATE_INV procedure.
  • EAsk the developers to modify and use literals instead of bind variables in the UPDATE_INV

How the community answered

(69 responses)
  • A
    16% (11)
  • B
    4% (3)
  • C
    72% (50)
  • D
    6% (4)
  • E
    1% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-054 Practice