Vinod Chelladurai
Vinod Chelladurai

Reputation: 539

Sql developer PL SQL Procedure

When i execute a oracle procedure manually using execute proc_name, it is running fine. but when i try to do that from sql developer's procedures interface, I am getting the following error. Kindly help me on this

enter image description here

Upvotes: 0

Views: 199

Answers (1)

Alex Poole
Alex Poole

Reputation: 191570

By default the 'PL/SQL Block' section of that dialog box should contain something like:

BEGIN
  SSCI_FINDING_PROCEDURE();
--rollback
END;

But you can adapt it as needed, and any changes you make get saved between invocations. I don't think you can save it with nothing entered though. It might not be obvious why you can't just execute the procedure with no interaction at all, but if the procedure had any parameters, or it was a function, then you'd need a wrapper to define those. This is exactly what execute does under the hood - it just wraps whatever you're executing in a BEGIN/END;.

In version 4.0 (and 3.2, and 3.1) trying to OK that dialog with that section empty gives me an ORA-00900. Possibly you're using an older version that behaves differently. It might be nice if it warned you there was nothing to run rather than, apparently, passing the empty value to a JDBC call, but you can't have everything.

Upvotes: 2

Related Questions