DECLARE
CURSOR VIN er
Vælg TABLE_NAME
Fra DBA_STREAMS_UNSUPPORTED
Hvor OWNER ='URSCHEMA';
BEGIN
For C In 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 => sand,
include_ddl => falsk,
inclusion_rule => falsk,
source_database => 'STREAM'
);
END LOOP;
COMMIT;