How to get information about compile error in Oracle/TOAD

大城市里の小女人 提交于 2019-11-29 03:02:06

问题


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

  1. goto Toad, schema browser, select Invalid Objects will tell you where to look.
  2. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!