I recently had to write an oracle function, and error ora-06575 arose a lot. Usually this was due to the lack of a colon from the destination, for example: z = 5 (versus z: = 5) Or missed ';' at the end of the statement.
In any case, I managed to create a function, but it failed at runtime with this error and did not indicate where the problem was (except that it was in the function).
I wrote the same function in MSSQL and Sybase, and both of them actually tried to tell me the location of any errors. Therefore, I suppose that I am doing something wrong in Oracle - it cannot just tell me "there is an error."
In oracle, I have an instruction like this:
CREATE OR REPLACE FUNCTION...
I compile a function from an SQL developer by selecting a function and pressing F9. When I select the operator that performs this function and press F9, I get ora-06575 error.
If I press F5 to compile the function, it tells me:
ORA-24344: success with compilation error Compiled.
So, I found this site: http://www.dba-oracle.com/t_ora_24344_success_with_compilation_error.htm But I can not run "show errors". When I run it, I do not have the output that I see.
Can this only work with sqlplus? I am using a SQL developer, I would rather stick with an SQL developer. Is there something I'm missing? I want him to tell me where the mistake is.
source share