That’s Me

Gavin Soorma
  • Oracle Certified Professional
  • 7.3, 8i, 9i,10g, 11g
  • 11i Apps DBA OCP
  • 10g RAC OCE
  • Certified GoldenGate Implementation Specialist
  • 10g OCM
  • 11g OCM

  • Feedback

    1,650,000 hits

    Thanks A MILLION for your support!

    Please send me your valuable feedback and suggestions






    Passing the 11g Oracle Certified Master (OCM) Exam - some thoughts

    I recently passed the 11g Oracle Certified Masters Upgrade Exam and am now an 11g OCM in addition to the 10g OCM. I had to sign a Non Disclosure Agreement (NDA) while taking the exam, so unfortunately I will not be able to divulge too many details about the exam, but would like to share a few pointers which should hopefully help others who are planning to give this exam in the near future.

    The 11g OCM upgrade exam is a one day exam while the 11g OCM is a two day exam like the 10g exam. It can be a long day between 8-10 hours, so be prepared for it.
    I have listed the exam topics here which can be also obtained from the OTN site related to Oracle Certification. While preparing, try and cover each and every topic as the exam will basically cover pretty much every exam

    Continue reading Passing the 11g Oracle Certified Master (OCM) Exam – some thoughts

    Using TUNE_MVIEW and EXPLAIN_REWRITE to enable us to tune MV Fast Refreshes and Query Rewrites

    We can use the DBMS_MVIEW.EXPLAIN_REWRITE package (which was first introduced in Oracle 9i if memory serves me right) to diagnose why Query redirection to a materialized view is not happening.

    We can redirect the output to a table called REWRITE_TABLE which is created via the utlxrw.sql script located under $ORACLE_HOME/rdbms/admin.

    Let us take a simple example to see how this works.

    We have created a materialized view SALES_MV which is based on the following query in the SH schema:

    create materialized view sales_mv
    build immediate
    enable query rewrite
    as
    SELECT p.prod_name, SUM(amount_sold)
    FROM sales s, products p
    WHERE s.prod_id = p.prod_id
    AND prod_name > ‘B%’
    AND prod_name < 'C%'
    GROUP BY prod_name;

    We will now run the EXPLAIN_REWRITE procedure to see if a particular query will be redirected to the MV instead.

    EXECUTE DBMS_MVIEW.EXPLAIN_REWRITE -
    (‘SELECT p.prod_name, SUM(amount_sold)-
    FROM sales s, products p -
    WHERE s.prod_id = p.prod_id -
    AND prod_name > ”B%”-
    AND prod_name < ''C%''-
    GROUP BY prod_name',-
    'SALES_MV','SH');

    PL/SQL procedure successfully completed.

    SQL> SELECT message FROM rewrite_table ORDER BY sequence;

    MESSAGE
    ——————————————————————————–
    QSM-01150: query

    Continue reading Using TUNE_MVIEW and EXPLAIN_REWRITE to enable us to tune MV Fast Refreshes and Query Rewrites

    Upgrade to 11g and ensure Optimizer Plan Stability using SQL Plan Baselines

    One of the major concerns a DBA has related to performing a database upgrade to Oracle 11g is ‘Are Execution Plans Going To Change Post-Upgrade?’

    I am quite sure we would have experienced some queries having different execution plans when we did earlier upgrades to both 9i as well as 10g. This is due to optimizer and kernel differences in every Oracle version which causes the execution plan of some SQL statements to change.

    It is not as if all SQL statements have different execution plans after a database upgrade is performed. It maybe just a case where only SQL statement is now performing a full table scan or sub-optimal join as compared to the pre-upgrade plan and that query is one is which is used a great deal by the application.

    So we may have taken all steps to perform an upgrade with just a few hours of application downtime, but

    Continue reading Upgrade to 11g and ensure Optimizer Plan Stability using SQL Plan Baselines