DECLARE
CURSOR VIN es
Seleccione TABLE_NAME
De DBA_STREAMS_UNSUPPORTED
Donde OWNER ='URSCHEMA';
BEGIN
Para C en VIN LOOP
dbms_streams_adm .add_table_rules (
table_name => 'URSCHEMA.'||C.TABLE_NAME,
streams_type => 'capture',
streams_name => 'STREAMS_CAPTURE',
queue_name => ' STRMADMIN.STREAMS_CAPTURE_Q',
include_dml => verdadero,
include_ddl => falso,
inclusion_rule => falso,
source_database => 'STREAM'
);
FINALIZAR BUCLE;
COMMITIR;