DECLARE
CURSOR VIN Is
SELECT TABLE_NAME
From DBA_STREAMS_UNSUPPORTED
Where 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 => true、
include_ddl => false、
include_rule => false、
source_database =>' STREAM'
);
END LOOP;
COMMIT;