Oracle 视图 ALL_APPLY 官方解释,作用,如何使用详细说明
本站中文解释
_SOURCE视图
ALL_APPLY_SOURCE视图是Oracle数据库中的一个系统视图,可以用来显示和检索数据变更任务的源代码。该视图包含以下列:APPLY_NAME,SOURCE_LINE_NUMBER,TEXT(源码),CREATION_DATE(创建日期),LAST_CHANGE_DATE(最后修改日期)等。
使用ALL_APPLY_SOURCE视图,可以在Oracle中获取一个特定数据变更任务的具体信息,例如:可以查看该任务的源代码,创建和修改日期等。
步骤:
1.使用以下SQL语句创建一个Oracle视图:
CREATE OR REPLACE VIEW ALL_APPLY_SOURCE AS
SELECT apply_name, source_line_number, text, creation_date,last_change_date
FROM dba_apply_source;
2.使用以下SQL语句查看ALL_APPLY_SOURCE视图:
SELECT * FROM ALL_APPLY_SOURCE;
3.使用以下SQL语句查看指定数据变更任务的详细内容:
SELECT * FROM ALL_APPLY_SOURCE
WHERE apply_name = ‘task_name’
ORDER BY source_line_number;
官方英文解释
ALL_APPLY
displays information about the apply processes that dequeue messages from queues accessible to the current user.
Related View
DBA_APPLY
displays information about all apply processes in the database.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Name of the apply process |
|
|
|
Name of the queue from which the apply process dequeues |
|
|
|
Owner of the queue from which the apply process dequeues |
|
|
Indicates whether the apply process applies captured messages ( |
|
|
|
Name of the positive rule set used by the apply process for filtering |
|
|
|
Owner of the positive rule set used by the apply process for filtering |
|
|
|
User who is applying messages |
|
|
|
Database link to which changes are applied. If NULL, then changes are applied to the local database. |
|
|
|
Tag associated with redo log records that are generated when changes are made by the apply process |
|
|
|
Name of the user-specified data definition language (DDL) handler, which handles DDL logical change records (LCRs) |
|
|
|
Name of the user-specified pre-commit handler |
|
|
|
Name of the user-specified procedure that handles dequeued messages other than logical change records (LCRs) |
|
|
|
Status of the apply process:
|
|
|
|
System change number (SCN) corresponding to the apply process high watermark for the last time the apply process was stopped using the |
|
|
|
Name of the negative rule set used by the apply process for filtering |
|
|
|
Owner of the negative rule set used by the apply process for filtering |
|
|
|
Time that the |
|
|
|
Error number if the apply process was aborted |
|
|
|
Error message if the apply process was aborted |
|
|
|
Reserved for internal use |
|
|
|
Purpose of the apply process:
|
|
|
|
LCR ID format currently being used |
See Also:
-
“DBA_APPLY”
-
Oracle Database PL/SQL
Packages and Types Reference for more information about theDBMS_APPLY_ADM.STOP_APPLY
procedure -
Oracle Database PL/SQL
Packages and Types Reference for more information about theDBMS_XSTREAM_ADM.ENABLE_GG_XSTREAM_FOR_STREAMS
procedure