Blog

  • Two Cool Utilities in DBMS_UTILITY

    Oracle Database DBMS_UTILITY package has several useful subprograms. GET_DEPENDENCY shows the objects depended on the object. Here is an example (the procedure uses DBMS_OUTPUT to show the result, hence SET SERVEROUTPUT is required in SQL*Plus):

    SQL> set serveroutput on
    SQL> exec dbms_utility.get_dependency('VIEW','HR','EMP_DETAILS_VIEW');
    -
    DEPENDENCIES ON HR.EMP_DETAILS_VIEW
    ------------------------------------------------------------------
    *VIEW HR.EMP_DETAILS_VIEW()
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_utility.get_dependency('TABLE','HR','EMPLOYEES');
    -
    DEPENDENCIES ON HR.EMPLOYEES
    ------------------------------------------------------------------
    *TABLE HR.EMPLOYEES()
        VIEW HR.EMP_DETAILS_VIEW()
        TRIGGER HR.SECURE_EMPLOYEES()
        TRIGGER HR.UPDATE_JOB_HISTORY()
    
    PL/SQL procedure successfully completed.
    
    SQL>

    Oracle Database 12c has a new procedure to provide you with the SQL behind the SQL. DBMS_UTILITY.EXPAND_SQL_TEXT. Useful to expand the views and see the base tables involved, as well as to reveal the real SQL, especially when clauses like “FETCH and OFFSET” are used.

    There are two CLOB parameters to this procedure – input SQL text, and output SQL text. Try this in your Oracle Database 12c…

    SQL> set long 32000
    SQL> variable x1 CLOB
    SQL> exec dbms_utility.expand_sql_text('SELECT TABLE_NAME FROM DBA_TABLES',:x1);
    SQL> print x1

     

  • Great Lakes Oracle Conference – Presentation Download

    NEOOUG did a wonderful job in organizing the Great Lakes Oracle Conference event and the venue. This was the first time me doing two presentations in one conference, that too, for two different type of audience.

    1. E-Business Suite R12 Upgrade and
    2. Oracle Database 12c New Features.

    I want to thank Sybex for sending the newly published book to the conference. Almost everyone attended my 12c session participated in the book raffle and congratulations to the winners. Thank you Jeff Budge!

    As promised in the two sessions, uploaded the presentation material to slideshare. I really appreciate you attending my session and the feedback. Thank you very much…

    May 14th presentation: Rest of the Database 12c Features for 11g DBA!

    [slideshare id=34695116&doc=2014glocdb12cnewfeatures-140514181612-phpapp01]

    May 13th presentation: Weekend Upgrade EBS 11i to R12 – Real World Tips to Reduce Upgrade Downtime

    [slideshare id=34694995&doc=2014glocebsr12upgrade-140514181015-phpapp02]

     

    I had a great conference, and also had good time tweeting!

    Few photos I tweeted are here

    Checkout my twitter feed for the tweets and responses!

     Have a good day!