facebook

How to execute the Oracle stored procedures from SQL Editor?

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #233005 Reply

    I have tried all of the following and they don’t seem to work:

    1)
    begin
    stored_proc_name(‘param1′,’param2’);
    end;

    2)
    stored_proc_name(‘param1′,’param2’);

    3)
    begin
    exec stored_proc_name(‘param1′,’param2’);
    end;

    4) exec stored_proc_name(‘param1′,’param2’);

    What is the right syntax to do this?

    Thanks, Satish

    #233075 Reply

    Riyad Kalla
    Member

    I am looking into this.

    #233099 Reply

    Riyad Kalla
    Member

    One of our developers said this:

    He seems to be just trying to do this in the vanilla SQLEditor, not in
    any of the Oracle specific extensions. I do not know Oracle syntax for
    executing a stored proc, so cannot comment on that. However, there
    should be an “Execute” action from the DB browser context menu for
    Procedure nodes.

    #233256 Reply

    I do not know what you mean by “vaniall sqleditor” ? I tried the developer’s suggestion and that does not work either. In the DB Browser if I right click on the Procedure that I want to execute, all I see is “Copy Name” context menu.

    What else can I try? Looking for suggestions.

    Thanks, Satish

    #233322 Reply

    support-michael
    Keymaster

    1) from SQL editor use “CALL” to directly invoke procedure

    2) if you are using MyEclipse 4.0M2 you can select a procedure/function and execute it directly. Doing this will open a small dialog into which you enter the parameters. The results are displayed in the dialog on return.

    #233324 Reply

    Yup, this did work…call stored_proc_name(param1,param2);

    I am using 3.8.4 for Eclipse 3.0.2

    Thanks, Satish

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How to execute the Oracle stored procedures from SQL Editor?

You must be logged in to post in the forum log in