Oracle DBMS_STREAMS_HANDLER_INTERNAL
Version 18.3.0.1

General Information
Library Note Morgan's Library Page Header
For how many years have you been working with physical servers that are starving your database of the memory necessary to deploy important new performance features such as the Result Cache, Memoptimize Pool, In-Memory Aggregation, In-Memory Column Store, and Full Database Caching? Too long? Contact me to learn how to improve all queries ... not just some queries.
Purpose Internal support for the DBMS_STREAMS_HANDLER_ADM package.

Streams was deprecated 03-Jan-2018 but this package still exists in 19.2.
AUTHID DEFINER
Dependencies
APPLY$_CHANGE_HANDLERS DBMS_LOCK DUAL
APPLY$_DEST_OBJ_OPS DBMS_LOGREP_UTIL STREAMS$_STMT_HANDLERS
DBA_APPLY_CHANGE_HANDLERS DBMS_STANDARD STREAMS$_STMT_HANDLER_SEQ
DBMS_APPLY_ADM_INTERNAL DBMS_STREAMS_ADM_UTL STREAMS$_STMT_HANDLER_STMTS
DBMS_APPLY_HANDLER_ADM DBMS_STREAMS_HANDLER_ADM UTL_RAW
DBMS_APPLY_HANDLER_INTERNAL DBMS_STREAMS_HANDLER_INTERNAL  
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_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 12cR2
What's New In 18cR3

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