• Lynn Pettis (10/20/2010)


    Having an issue with a stored procedure that appears to be parallelism related.

    In stepping through the stored proc we were unable to get the procedure to create a duplicate enter in a table. Problem is this same procedure did exactly that when run from the application in production.

    In MS SQL Server I'd use the MOXDOP = 1 hint to force the procedure to be single threaded. Is there something similar in Oracle?

    Is there something else I should look for while debugging the procedure?

    Yes. NOPARALLEL hint would do it.

    For a query like "select * from employee a where state_id = 'XX";"

    it should be "select /*+ NOPARALLEL(a) */ from employee a where state_id = 'XX";"

    NOPARALLEL hint overrides PARALLEL setting at table level.

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.