Oracle DBMS_STREAMS_HANDLER_ADM
Version 12.1.0.1

General Information
Library Note Morgan's Library Page Footer
The Library is currently in the process of being upgraded from Oracle Database Version 12.1.0.1 to 12.1.0.2. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.

Interested in Oracle GoldenGate? Check out the IGGOUG,
Purpose Undocumented
AUTHID CURRENT_USER
Dependencies
DBMS_APPLY_ADM DBMS_LOGREP_UTIL DBMS_UTILITY
DBMS_APPLY_ADM_INTERNAL DBMS_STREAMS_HANDLER_INTERNAL  
Documented No
First Available Not known
Security Model Owned by SYS with EXECUTE granted to the EXECUTE_CATALOG_ROLE role
Source {ORACLE_HOME}/rdbms/admin/dbmsstr.sql
Subprograms
 
ADD_STMT_TO_HANDLER
Add a statement to an existing handler dbms_streams_handler_adm.add_stmt_to_handler(
handler_name       IN VARCHAR2,
statement          IN CLOB,
execution_sequence IN NUMBER DEFAULT NULL);
See CREATE_STMT_HANDLER Demo Below
 
CREATE_STMT_HANDLER
Create a statement handler dbms_streams_handler_adm.create_stmt_handler(
handler_name IN VARCHAR2,
comment      IN VARCHAR2 DEFAULT NULL);
exec dbms_streams_handler_adm.create_stmt_handler('UWTest', 'Statement Handler Creation Test');

desc dba_streams_stmt_handlers

col handler_name format a20
col handler_comment format a32
col creation_time format a30
col modification_time format a20

SELECT *
FROM dba_streams_stmt_handlers;

DECLARE
 c CLOB := 'SELECT COUNT(*) FROM dual';
BEGIN
  dbms_streams_handler_adm.add_stmt_to_handler('UWTest', c, 1);
END;
/

desc dba_streams_stmnt

col statement format a30

SELECT *
FROM dba_streams_stmts;

exec dbms_streams_handler_adm.remove_stmt_from_handler('UWTest', 1);

SELECT *
FROM dba_streams_stmts;

exec dbms_streams_handler_adm.drop_stmt_handler('UWTest');

SELECT *
FROM dba_streams_stmt_handlers;
 
DROP_STMT_HANDLER
Drop a statement handler dbms_streams_handler_adm.drop_stmt_handler(handler_name IN VARCHAR2);
See CREATE_STMT_HANDLER Demo Above
 
REMOVE_STMT_FROM_HANDLER
Remove a statement from a handler dbms_streams_handler_adm.remove_stmt_from_handler(
handler_name       IN VARCHAR2,
execution_sequence IN NUMBER DEFAULT NULL);
See CREATE_STMT_HANDLER Demo Above

Related Topics
DBMS_CDC_PUBLISH
DBMS_CDC_SUBSCRIBE
DBMS_CDC_UTILITY
DBMS_STREAMS
DBMS_STREAMS_ADM
DBMS_STREAMS_ADM_UTL_INT
DBMS_STREAMS_ADVISOR_ADM
DBMS_STREAMS_AUTH
DBMS_STREAMS_TABLESPACE_ADM
Packages

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2014 Daniel A. Morgan All Rights Reserved