简体   繁体   中英

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

在此输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM