问题
I'm using TOAD to develop a stored function in an Oracle database. When I click the "run as script" button in TOAD, it tells me that the script was executed with 0 errors and 1 compile errors. Where do I see the specific compile error(s). I'm fairly new to TOAD so I might be missing something obvious about the interface like a tab/window to see such error messages.
回答1:
You can either add SHOW ERRORS
to the end of the script, which will print the error message(s) to the "script output" tab, or compile the function using the "Execute Statement" command in Toad, which will cause the errors to be displayed in a box at the bottom of the editor.
回答2:
Or you can look in USER_ERRORS table afterwards
回答3:
Click on Database -> Procedure Editor in top tool bar.
Paste your code in this new editor window and execute by clicking green play button on top.
All the errors will be displayed in a new window at the bottom.
回答4:
2 things you can do
- goto Toad, schema browser, select Invalid Objects will tell you where to look.
- then load the package into the editor and select the function, right click, compile, wioll show you the errors
回答5:
Another option that worked for me was to open my script in the procedure editor and compile it there.
来源:https://stackoverflow.com/questions/7013370/how-to-get-information-about-compile-error-in-oracle-toad