DECLARE
CURSOR VIN Is
Seleziona TABLE_NAME
Da DBA_STREAMS_UNSUPPORTED
Dove OWNER ='URSCHEMA';
BEGIN
For C In VIN LOOP
dbms_streams_adm .add_table_rules (
nome_tabella => 'URSCHEMA.'||C.TABLE_NAME,
streams_type => 'capture',
streams_name => 'STREAMS_CAPTURE',
queue_name => ' STRMADMIN.STREAMS_CAPTURE_Q',
include_dml => true,
include_ddl => false,
inclusion_rule => false,
source_database => 'STREAM'
);
END LOOP;
COMMIT;