Oracle DB & SQL Developer: “Error report: execution completed with warning” - How do I *see* the warning?

假装没事ソ 提交于 2019-12-03 17:30:48

问题


I'm setting up a local oracle (11g) database - a clone of another database we have running already. I'm running a bunch of generated PL/SQL commands in SQL Developer.

I get the output

Error starting at line x in command: 
*long-ass SQL statement here* 
Error report: 
SQL Command: force view "someViewName"
Failed: Warning: execution completed with warning

How do I read the warning that has been generated without modifying the script?

when I use the show errors immediately after this command, I get the output no errors


回答1:


If show errors doesn't give you anything:

select line, position, text
from user_errors
where type = 'VIEW'
and name = 'someViewName'
order by sequence;

That assumes you're creating it under your own schema; if not you can look in all_errors instead.

The columns are in the documentation:

ALL_ERRORS describes the current errors on the stored objects accessible to the current user.
DBA_ERRORS describes the current errors on all stored objects in the database.
USER_ERRORS describes the current errors on the stored objects owned by the current user. This view does not display the OWNER column.




回答2:


The cause of the error is just simply forgetting your semi-colon at the end of your code. Or if it is PL/SQL you are forgetting your forward slash at the end.



来源:https://stackoverflow.com/questions/22835437/oracle-db-sql-developer-error-report-execution-completed-with-warning-ho

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