Pau*_*aul 13 sql oracle oracle-sqldeveloper
我正在建立一个本地oracle(11g)数据库 - 我们已经运行的另一个数据库的克隆.我在SQL Developer中运行了一堆生成的PL/SQL命令.
我得到了输出
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
Run Code Online (Sandbox Code Playgroud)
如何在不修改脚本的情况下读取生成的警告?
当我show errors在此命令后立即使用时,我得到输出 no errors
Ale*_*ole 30
如果show errors没有给你任何东西:
select line, position, text
from user_errors
where type = 'VIEW'
and name = 'someViewName'
order by sequence;
Run Code Online (Sandbox Code Playgroud)
假设您在自己的架构下创建它; 如果没有,你可以all_errors改为寻找.
列在文档中:
ALL_ERRORS描述了当前用户可访问的存储对象的当前错误.
DBA_ERRORS描述数据库中所有存储对象的当前错误.
USER_ERRORS描述当前用户拥有的存储对象的当前错误.此视图不显示该OWNER列.
| 归档时间: |
|
| 查看次数: |
27257 次 |
| 最近记录: |