[英]Oracle DB & SQL Developer: “Error report: execution completed with warning” - How do I *see* the warning?
I'm setting up a local oracle (11g) database - a clone of another database we have running already. 我正在建立一个本地oracle(11g)数据库-我们已经在运行的另一个数据库的克隆。 I'm running a bunch of generated PL/SQL commands in SQL Developer.
我正在SQL Developer中运行一堆生成的PL / SQL命令。
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
当我在此命令后立即使用
show errors
,我得到的输出no errors
If show errors
doesn't give you anything: 如果
show errors
没有给您任何东西:
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. 如果不是,您可以查看
all_errors
。
The columns are in the documentation : 这些列在文档中 :
ALL_ERRORS
describes the current errors on the stored objects accessible to the current user.ALL_ERRORS
描述当前用户可访问的存储对象上的当前错误。
DBA_ERRORS
describes the current errors on all stored objects in the database.DBA_ERRORS
描述了数据库中所有存储对象的当前错误。
USER_ERRORS
describes the current errors on the stored objects owned by the current user.USER_ERRORS
描述了当前用户拥有的存储对象上的当前错误。 This view does not display theOWNER
column.该视图不显示“
OWNER
列。
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.
或者,如果它是PL / SQL,则您忘了最后的正斜杠。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.