views:

850

answers:

2

i created a procedure with 32 in argument,it sucessfully created.but when i am executing this in back end oracle the errror came ORA:00900 Invalid sql statement

+4  A: 

Use:

SQL>  alter procedure [your procedure name here] compile;
SQL>  show errors

...to be able to diagnose the issue from the resulting error output.

OMG Ponies
The ORA-900 indicates it's probably not the procedure itself, but the SQL he's using to call it; or, perhaps, the procedure is trying to execute some dynamic SQL. Either way show errors should not show anything, I think.
Jeffrey Kemp
A: 

Also look at view USER_ERRORS.

Sometimes, show errors does not show anything when in fact there are errors. Especially after alter compile.

Finally, re-compile in TOAD or SQL Developer and you can easily navigate to the error.

pj