Oracle DBMS_STREAMS_HANDLER_INTERNAL
Version 12.2.0.1

General Information
Library Note Morgan's Library Page Header
Coming to OpenWorld 2018? Be sure to visit the TidalScale booth in Moscone South and learn how to solve performance problems and lower costs with Software Defined Servers. Before you visit the booth, or if you can't make it this year, check out TidalScale at www.tidalscale.com. Be sure to click on the Solutions link and look through the Oracle resources.
Purpose Internal support for the DBMS_STREAMS_HANDLER_ADM package.
AUTHID DEFINER
Dependencies
DBMS_APPLY_ADM DBMS_LOGREP_UTIL DBMS_STREAMS_HANDLER_INTERNAL
DBMS_APPLY_ADM_INTERNAL DBMS_STANDARD DBMS_UTILITY
Documented No
First Available Not known
Security Model Owned by SYS with no privileges granted.
Source {ORACLE_HOME}/rdbms/admin/prvthsha.plb
Subprograms
 
CHANGE_HANDLER_EXISTS
Returns TRUE if a change handler exists dbms_streams_handler_internal.change_handler_exists(
canon_handler_name IN VARCHAR2)
RETURN BOOLEAN;
BEGIN
  IF dbms_streams_handler_internal.change_handler_exists('TEST') THEN
    dbms_output.put_line('Exists');
  ELSE
    dbms_output.put_line('Does Not Exist');
  END IF;
END;
/
 
CREATE_STMT_HANDLER
Create a statement handler dbms_streams_handler_internal.create_stmt_handler(
canon_handler_name IN VARCHAR2,
comment            IN VARCHAR2,
auto_created       IN BOOLEAN);
exec dbms_streams_handler_internal.create_stmt_handler('TEST', 'Test Handler', TRUE);

BEGIN
  IF dbms_streams_handler_internal.exists_stmt_handler('TEST') THEN
    dbms_output.put_line('Exists');
  ELSE
    dbms_output.put_line('Does Not Exist');
  END IF;
END;
/
 
DROP_STMT_HANDLER
Drops a statement handler dbms_streams_handler_internal.drop_stmt_handler(canon_handler_name IN VARCHAR2);
exec dbms_streams_handler_internal.drop_stmt_handler('TEST');
 
EXISTS_STMT_HANDLER
Returns TRUE if the handler exists dbms_streams_handler_internal.exists_stmt_handler(canon_handler_name IN VARCHAR2)
RETURN BOOLEAN;
see CREATE_STMNT_HANDLER Demo Above
 
SET_STMT_IN_HANDLER
Associates a SQL statement with a handler dbms_streams_handler_internal.set_stmt_in_handler(
canon_handler_name IN VARCHAR2,
statement          IN CLOB,
execution_sequence IN NUMBER);
exec dbms_streams_handler_internal.set_stmt_in_handler('TEST', 'SELECT * FROM dual', 1);
 
STMT_HANDLER_IN USE
Returns TRUE if a statement handler is currently in use dbms_streams_handler_internal.stmt_handler_in_use(canon_handler_name IN VARCHAR2)
RETURN BOOLEAN;
BEGIN
  IF dbms_streams_handler_internal.stmt_handler_in_use('TEST') THEN
    dbms_output.put_line('In Use');
  ELSE
    dbms_output.put_line('Not In Use');
  END IF;
END;
/

Related Topics
Built-in Functions
Built-in Packages
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_CDC_ADM
DBMS_STREAMS_CONTROL_ADM
DBMS_STREAMS_HANDLER_ADM
DBMS_STREAMS_MC
DBMS_STREAMS_MC_INV
DBMS_STREAMS_MESSAGING
DBMS_STREAMS_PUB_RPC
DBMS_STREAMS_RPC_INTERNAL
DBMS_STREAMS_TABLESPACE_ADM
What's New In 12cR1
What's New In 12cR2

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-2017 Daniel A. Morgan All Rights Reserved