Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

How to execute PLSQL code in connection pool in the "Execute on Connect" section in OBIEE Admin Tool

Received Response
171
Views
6
Comments

Summary:

Hi,

We are trying to execute a piece of PL/SQL code (calling a procedure) after the connection the database has been performed but is showing an error. However the database can be established with the database and we are able to run SQL code.

We tried already a "execute immediate <package name>" but the error is the same.

Any ideas?

Thanks

Jorge Ferreira


Content (required):

We are getting an error ORA-00907

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Tagged:

Answers

  • Joshua C. Stewart
    Joshua C. Stewart Rank 5 - Community Champion

    This error message suggests there is a syntax error with your PL/SQL code. Without seeing the code it is difficult to give constructive feedback.

  • jorgef_pt-Oracle
    jorgef_pt-Oracle Rank 1 - Community Starter

    We tried 2 ways:

    1)

    begin

    XX_MYBAS_INITIALIZE.INITIALIZE;

    end;

    /

    2)

    execute immediate XX_MYBAS_INITIALIZE.INITIALIZE;

    Same error in both cases.

    Even a single piece of code like

    Begin

    Null;

    end;

    /

    Shows the same error.

  • jorgef_pt-Oracle
    jorgef_pt-Oracle Rank 1 - Community Starter


  • Amrita Gupta-Oracle
    Amrita Gupta-Oracle Rank 6 - Analytics Lead

    Could you try without the slash at the end, like below -

    BEGIN XX_MYBAS_INITIALIZE.INITIALIZE; END;

  • Karol Kanicki
    Karol Kanicki Rank 3 - Community Apprentice

    anybody found solution to that? I'm facing similar situation (will not have access unless I run function), and no idea how to do so. Maybe I shall have used initialization block instead?


    thanks

  • Anirban Basu-133546
    Anirban Basu-133546 Rank 5 - Community Champion

    As mentioned by Amrita please put everything in one single line without any line break and forward slash . That should work .