How to execute PLSQL code in connection pool in the "Execute on Connect" section in OBIEE Admin Tool
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):
Answers
-
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.
0 -
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.
0 -
0
-
Could you try without the slash at the end, like below -
BEGIN XX_MYBAS_INITIALIZE.INITIALIZE; END;
0 -
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
0 -
As mentioned by Amrita please put everything in one single line without any line break and forward slash . That should work .
0