Oracle 视图 ALL_ERRORS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_ERRORS定义了一个特定用户近期未处理的所有错误消息,其中包括影响数据库性能的消息。
用法:
使用ALL_ERRORS的目的是查询各种数据库错误,并根据具体情况正确处理这些错误。执行以下查询可以检索所有近期未处理的错误消息:
SELECT * FROM ALL_ERRORS;
可以使用SQL语句将查询结果保存到a文件中,以便以后使用:
SELECT * FROM ALL_ERRORS WHERE log_date > sysdate-3 INTO OUTFILE ‘/tmp/file.txt’;
官方英文解释
ALL_ERRORS
describes the current errors on the stored objects accessible to the current user.
Related Views
-
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 theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the object |
|
|
|
Name of the object |
|
|
Type of the object:
|
|
|
|
|
Sequence number (for ordering purposes) |
|
|
|
Line number at which the error occurred |
|
|
|
Position in the line at which the error occurred |
|
|
|
Text of the error |
|
|
Indicates whether the error is an error ( |
|
|
|
Numeric error number (without any prefix) |
See Also:
-
“DBA_ERRORS”
“USER_ERRORS”