REMOVE_STREAMS_CONFIGURATION

hi
when i want to remove my stream configuration on destination database by the folllowing command
EXECUTE DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION;
i got these error:
ERROR st line1:
ORA-00911: invalid character
ORA-06512: at "SYS.DBMS_UTILITY",
ORA-06512: at "SYS.DBMS_APPLY_ADM",line 811
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 1860
ORA-06512: at line 1
how could i remove it correctly?

Sometimes, if there are row in some queue the apply process and the propagation process may fails to stop and drop the overspill queues. Here is what I do:
Check which queues have still the 'enqueue' and 'dequeue' at 'ON', stop them and drop them :
set termout off
col version new_value version noprint
col queue_table format A26 head 'Queue Table'
col queue_name format A32 head 'Queue Name'
select substr(version,1,instr(version,'.',1)-1) version from v$instance;
col mysql new_value mysql noprint
col primary_instance format 9999 head 'Prim|inst'
col secondary_instance format 9999 head 'Sec|inst'
col owner_instance format 99 head 'Own|inst'
COLUMN MEM_MSG HEADING 'Messages|in Memory' FORMAT 99999999
COLUMN SPILL_MSGS HEADING 'Messages|Spilled' FORMAT 99999999
COLUMN NUM_MSGS HEADING 'Total Messages|in Buffered Queue' FORMAT 99999999
set linesize 150
select case
  when &version=9 then ' distinct a.QID, a.owner||''.''||a.name nam, a.queue_table,
              decode(a.queue_type,''NORMAL_QUEUE'',''NORMAL'', ''EXCEPTION_QUEUE'',''EXCEPTION'',a.queue_type) qt,
              trim(a.enqueue_enabled) enq, trim(a.dequeue_enabled) deq, x.bufqm_nmsg msg, b.recipients
              from dba_queues a , sys.v_$bufqm x, dba_queue_tables b
        where
               a.qid = x.bufqm_qid (+) and a.owner not like ''SYS%''
           and a.queue_table = b.queue_table (+)
           and a.name not like ''%_E'' '
   when &version=10 then ' a.owner||''.''|| a.name nam, a.queue_table,
              decode(a.queue_type,''NORMAL_QUEUE'',''NORMAL'', ''EXCEPTION_QUEUE'',''EXCEPTION'',a.queue_type) qt,
              trim(a.enqueue_enabled) enq, trim(a.dequeue_enabled) deq, (NUM_MSGS - SPILL_MSGS) MEM_MSG, spill_msgs, x.num_msgs msg,
              x.INST_ID owner_instance
              from dba_queues a , sys.gv_$buffered_queues x
        where
               a.qid = x.queue_id (+) and a.owner not in ( ''SYS'',''SYSTEM'',''WMSYS'')  order by a.owner ,qt desc'
   end mysql
from dual
set termout on
select &mysql
-- now stop the queues:
execute dbms_aqadm.stop_queue('STRMADMIN.<My_queue>', TRUE, TRUE, FALSE);
-- Drop the queue :
execute DBMS_AQADM.DROP_QUEUE( queue_name  => '<My_queue>', AUTO_COMMIT => TRUE);Now if you have the propagation still there, you should be able to stop and drop it also.

Similar Messages

  • Permissions for remove_streams_configuration?

    I have searched this forum and the web, and there appears to be no information in regards to permissions that a non-SYS user needs to have in order to remove Streams configuration.
    What makes it worse, even if I create the script as a SYS-owned procedure and grant execute rights to that user, it still doesn't work, which, as I understand, breaks Oracle's delegation logic.
    create or replace procedure remove_streams
    as
    begin
    DBMS_STREAMS_ADM.remove_streams_configuration;
    end;
    grant execute on remove_streams to nonsysuser;
    conn nonsysuser@SID
    exec remove_streams;
    BEGIN sys.remove_streams; END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_PROPAGATION_INTERNAL", line 611
    ORA-06512: at "SYS.DBMS_PROPAGATION_INTERNAL", line 454
    ORA-06512: at "SYS.DBMS_PROPAGATION_ADM", line 105
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 1830
    ORA-06512: at line 3
    ORA-06512: at "SYS.REMOVE_STREAMS", line 4
    ORA-06512: at line 1
    I granted execute on DBMS_STREAMS_ADM, PROPAGATION_ADM, PROPAGATION_INTERNAL, but so far it didn't help.

    Why would you consider giving such permissions to a non-DBA? You are talking about granting execute on core streams built-in packages. I'd certainly never do it.

  • Error during removinf Oracle streams configuration in oracle 10g

    Hi,
    When i am trying to remove stream comfiguration at capture side..it is giving me following error:
    SQL> execute DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION();
    BEGIN DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION(); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_STREAMS_ADM' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    by connecting which user i need to run this.
    Thanks

    This error is coming
    SQL> execute DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION();
    BEGIN DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION(); END;
    ERROR at line 1:
    ORA-06564: object "NCM"."BIN$dD1n7UJhZcPgRAAUTxcb/g==$0" does not exist
    ORA-06512: at "SYS.DBMS_LOGREP_UTIL", line 82
    ORA-06512: at "SYS.DBMS_LOGREP_UTIL", line 115
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM_INTERNAL", line 490
    ORA-01403: no data found
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM", line 395
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 1877
    ORA-06512: at line 1

  • TTS - Internal error User not found error

    DB version:10.2.0.4
    OS - AIX6.1
    Could someone let me know how to resolve this error?. I'm running an export of metadata for TTS using the command below. The TTS export is working fine on other tablespaces of the same database.
    I'm running export with "/ as sysdba".
    expdp DUMPFILE=<>.dmp DIRECTORY=xtts_dir logfile=<>.log TRANSPORT_TABLESPACES=TBSP1,TBSP2,TBSP3 transport_full_check=y
    ORA-39123: Data Pump transportable tablespace job aborted
    ORA-29336: Internal error [user not found] [48] from DBMS_PLUGTS
    Job "SYS"."SYS_EXPORT_TRANSPORTABLE_06" stopped due to fatal error

    It seems my issue is due to the streams admin user. The streams replication was setup on the objects under these tablespaces. The streams replication was removed and strmadmin user is also dropped. I have enabled trace and got the below message in the trace file. Does any of you face the same issue?.
    ORA-39123: Data Pump transportable tablespace job aborted
    ORA-29336: Internal error [user not found] [48] from DBMS_PLUGTS
    Streams : knlcfdrl
      error 604 while looking up the Streams tables.
    kwqaadqrs: error 39119 during add rule Here is the command used for removing streams.
    execute DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION();

  • Schema Level Bidirectional streams - works only in one direction

    Hi All,
    we are implementing bidirectional streams at schema level(using scott schema for testing).
    Our environment and different parameters are:
    Source:
    OS =Win2003 64bit
    DB Version= 10.2.0.5.0 64bit
    DB SID=CIBSPROD
    log_archive_dest_1 LOCATION=E:\DBFILES\ArchiveLog\CIBSPROD\PrimaryRole VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=CIBSPROD
    log_archive_dest_2 SERVICE=CIBSREP LGWR ASYNC NOREGISTER VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=CIBSREP
    job_queue_processes=2
    Dest:
    OS =Win2003 64bit
    DB Version= 10.2.0.5.0 64bit
    DB SID=CIBSREP
    log_archive_dest_1 LOCATION=E:\DBFILES\ArchiveLog\CIBSREP\PrimaryRole VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE) DB_UNIQUE_NAME=CIBSREP
    log_archive_dest_2 SERVICE=CIBSPROD LGWR ASYNC NOREGISTER VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=CIBSPROD
    job_queue_processes=2
    Follow the "Streams Bi-Directional Setup [ID 471845.1]" article
    Problem we are facing is changes are propagating from Source(CIBSPROD)  to Destination(CIBSREP) BUT NOT from Destination to Source Database(although archivelogs are shipping from Destination to Source).
    Executed below script for configuration:
    SET ECHO ON
    SPOOL strm-reconfig-scott.out
    conn sys/&sys_pwd_source@CIBSPROD as sysdba
    EXEC DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION;
    DROP USER STRMADMIN CASCADE;
    CREATE USER strmadmin IDENTIFIED BY strmadmin DEFAULT TABLESPACE streams_tbs QUOTA UNLIMITED ON streams_tbs;
    GRANT CONNECT, RESOURCE, AQ_ADMINISTRATOR_ROLE,DBA to STRMADMIN;
    EXECute DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE('STRMADMIN');
    drop database link CIBSREP;
    create public database link CIBSREP connect to strmadmin identified by strmadmin using 'CIBSREP';
    conn sys/&sys_pwd_downstream@CIBSREP as sysdba
    EXEC DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION;
    DROP USER STRMADMIN CASCADE;
    CREATE USER strmadmin IDENTIFIED BY strmadmin DEFAULT TABLESPACE streams_tbs QUOTA UNLIMITED ON streams_tbs;
    GRANT CONNECT, RESOURCE, AQ_ADMINISTRATOR_ROLE,DBA to STRMADMIN;
    EXECute DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE('STRMADMIN');
    drop user SCOTT CASCADE;
    create user SCOTT identified by scott175;
    GRANT CONNECT, RESOURCE to SCOTT;
    drop database link CIBSPROD;
    create public database link CIBSPROD connect to strmadmin identified by strmadmin using 'CIBSPROD';
    --Set up 2 queues for Capture and apply in CIBSPROD Database
    conn strmadmin/strmadmin@CIBSPROD
    EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'APPLY_CIBSPROD_TAB', queue_name => 'APPLY_CIBSPROD', queue_user => 'strmadmin'); 
    EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'CAPTURE_CIBSPROD_TAB', queue_name => 'CAPTURE_CIBSPROD', queue_user => 'strmadmin');
    --Set up 2 queues for Capture and apply in CIBSREP Database
    conn strmadmin/strmadmin@CIBSREP
    EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'APPLY_CIBSREP_TAB', queue_name => 'APPLY_CIBSREP', queue_user => 'strmadmin'); 
    EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'CAPTURE_CIBSREP_TAB', queue_name => 'CAPTURE_CIBSREP', queue_user => 'strmadmin');
    --Configure capture,apply and propagation process on CIBSPROD database.
    conn strmadmin/strmadmin@CIBSPROD
    EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'CAPTURE', streams_name => 'CAPTURE_CIBSPROD', queue_name => 'CAPTURE_CIBSPROD', include_dml => true, include_ddl => true, inclusion_rule => true);
    EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'APPLY', streams_name => 'APPLY_CIBSPROD', queue_name => 'APPLY_CIBSPROD', include_dml => true, include_ddl => true, source_database => 'CIBSREP');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => 'PARALLELISM', value => '5');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => '_HASH_TABLE_SIZE', value => '10000000');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => 'TXN_LCR_SPILL_THRESHOLD', value => '1000000');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => 'DISABLE_ON_ERROR', value => 'N');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => '_dynamic_stmts',value => 'Y');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => 'COMMIT_SERIALIZATION',value => 'NONE');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => '_RESTRICT_ALL_REF_CONS',value => 'N');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => 'ALLOW_DUPLICATE_ROWS',value => 'Y');
    EXEC dbms_streams_adm.add_schema_propagation_rules ( schema_name => 'scott', streams_name => 'PROP_CIBSPROD_to_CIBSREP', source_queue_name => 'CAPTURE_CIBSPROD', destination_queue_name => 'APPLY_CIBSREP@CIBSREP', include_dml => true, include_ddl => true, source_database => 'CIBSPROD');
    --Configure capture,apply and propagation process process on CIBSREP Database
    conn strmadmin/strmadmin@CIBSREP
    EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'CAPTURE', streams_name => 'CAPTURE_CIBSREP', queue_name => 'CAPTURE_CIBSREP', include_dml => true, include_ddl => true);
    EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'APPLY', streams_name => 'APPLY_CIBSREP', queue_name => 'APPLY_CIBSREP', include_dml => true, include_ddl => true, source_database => 'CIBSPROD');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => 'PARALLELISM', value => '5');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => '_HASH_TABLE_SIZE', value => '10000000');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => 'TXN_LCR_SPILL_THRESHOLD', value => '1000000');
    EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => 'DISABLE_ON_ERROR', value => 'N');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => '_dynamic_stmts',value => 'Y');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => 'COMMIT_SERIALIZATION',value => 'NONE');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => '_RESTRICT_ALL_REF_CONS',value => 'N');
    EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => 'ALLOW_DUPLICATE_ROWS',value => 'Y');
    EXEC dbms_streams_adm.add_schema_propagation_rules ( schema_name => 'scott', streams_name => 'PROP_CIBSREP_to_CIBSPROD', source_queue_name => 'CAPTURE_CIBSREP', destination_queue_name => 'APPLY_CIBSPROD@CIBSPROD', include_dml => true, include_ddl => true, source_database => 'CIBSREP');
    --Import export schema
    host exp USERID=SYSTEM/cibsmgr@CIBSPROD parfile=expparfile-scott.txt
    host imp USERID=SYSTEM/cibsmgr@CIBSREP parfile=impparfile-scott.txt
    --Start capture and apply processes on CIBSREP
    conn strmadmin/strmadmin@CIBSREP
    EXEC dbms_capture_adm.start_capture (capture_name=>'CAPTURE_CIBSREP');
    EXEC DBMS_APPLY_ADM.START_APPLY(apply_name => 'APPLY_CIBSREP');
    --Start capture and apply processes on CIBSPROD
    conn strmadmin/strmadmin@CIBSPROD
    EXEC dbms_capture_adm.start_capture (capture_name=>'CAPTURE_CIBSPROD');
    EXEC DBMS_APPLY_ADM.START_APPLY(apply_name => 'APPLY_CIBSPROD');
    SPOOL OFF
    What we have missed in the configuration?
    Regards,
    Asim

    Find error SRC database "ORA-26687: no instantiation SCN provided fro SCOTT.STRMTEST in source database CIBSREP"
    SCOTT.STRMTEST is heartbeat table used from streams replication on Source and Destination database

  • Getting Error ORA-26786

    Hi DBAs,
    I have setup streams replication for 12 tables in 10.2.0.4 environments. Now at target site there are some columns where the user can change the data manually. Values of some columns in the destination table row do not match the old values of the corresponding columns. For example table TEST has columns ColA, ColB, ColC and ColD and ColE. User can change some time values in ColD and sometime in ColE. So then I am getting the error.
    ORA-26786: A row with key ("ColB") = (4a002832854665a7) exists but has conflicting column(s) "ColE" in table TEST ORA-01403: no data found
    I dont want to correct the values first in target tables and then the change should go as there are more than 1000 messeges comming in one LCR. I search over the web and found DML handler can be used for this problem. If someone can point me to the example that would be great. Metalink Artical 265201.1 did not help much how can I have an DML error handler defined.
    Thanks
    -Samar-

    Thank you!
    But my question is why its happening?
    Why i got async of LCR?
    Please Guru help me!
    Let me explain steb by stem how i configure streams
    1) create standby for primary
    DB01 - Primary
    DB02 - Standby/Streams
    2) create user and tbs
    CONNECT SYS/sys@DB01 AS SYSDBA
    CREATE TABLESPACE streams_tbs DATAFILE 'd:\Oracle11r2\base\oradata\DB01\streams_tbs.dbf' SIZE 25 M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
    CREATE USER STRMADMIN IDENTIFIED BY sys DEFAULT TABLESPACE streams_tbs QUOTA UNLIMITED ON streams_tbs;
    GRANT DBA TO STRMADMIN;
    EXEC DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE(grantee=> 'STRMADMIN',grant_privileges => TRUE);
    exec DBMS_STREAMS_AUTH.GRANT_REMOTE_ADMIN_ACCESS(GRANTEE=>'STRMADMIN');
    ALTER system SET GLOBAL_NAMES=TRUE scope=spfile;
    ALTER system SET STREAMS_POOL_SIZE=50M scope=spfile;
    alter system set GLOBAL_NAMES=TRUE scope=spfile;
    3) create capture and propogantion on primary, set SCN
    CONNECT strmadmin/sys@DB01
    CREATE DATABASE LINK DB02 CONNECT TO strmadmin IDENTIFIED BY sys USING 'DB02';
    exec dbms_streams_adm.set_up_queue(queue_table => 'CAPTURE_DB01',queue_name => 'CAPTURE_DB01',queue_user => 'strmadmin');
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_PROPAGATION_RULES (
    SCHEMA_NAME => 'MY_SCHEAM',
    STREAMS_NAME => 'DB01_TO_DB02',
    SOURCE_QUEUE_NAME => 'CAPTURE_DB01',
    DESTINATION_QUEUE_NAME => 'APPLY_TWDB2@DB02',
    INCLUDE_DML => TRUE,
    INCLUDE_DDL => TRUE,
    SOURCE_DATABASE => 'DB01');
    END;
    EXEC DBMS_PROPAGATION_ADM.STOP_PROPAGATION(propagation_name => 'DB01_TO_DB02');
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES (
    SCHEMA_NAME => 'MY_SCHEAM',
    STREAMS_TYPE => 'CAPTURE',
    STREAMS_NAME => 'CAPTURE_STREAM_DB01',
    QUEUE_NAME => 'CAPTURE_DB01',
    INCLUDE_DML => TRUE,
    INCLUDE_DDL => TRUE,
    INCLUSION_RULE => TRUE);
    END;
    EXEC DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION('MY_SCHEAM');
    EXEC DBMS_CAPTURE_ADM.START_CAPTURE (CAPTURE_NAME => 'CAPTURE_STREAM_DB01');
    EXEC DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN@DB02(SOURCE_SCHEMA_NAME => 'MY_SCHEAM',SOURCE_DATABASE_NAME => 'DB01',INSTANTIATION_SCN =>DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER);
    -- switch current archive and stopd standby replication
    ALTER SYSTEM ARCHIVE LOG CURRENT;
    alter system set LOG_ARCHIVE_DEST_STATE_2=DEFER scope=both;
    BEGIN
    dbms_capture_adm.set_parameter(capture_name => 'CAPTURE_STREAM_DB01',parameter=> '_CHECKPOINT_FREQUENCY',VALUE=> '50');
    dbms_capture_adm.alter_capture(capture_name => 'CAPTURE_STREAM_DB01',checkpoint_retention_time => 5);
    dbms_capture_adm.set_parameter(capture_name => 'CAPTURE_STREAM_DB01',parameter=> 'PARALLELISM',VALUE=> '1');
    dbms_capture_adm.set_parameter(capture_name => 'CAPTURE_STREAM_DB01',parameter=> '_SGA_SIZE',VALUE=> '50');
    dbms_capture_adm.set_parameter(capture_name => 'CAPTURE_STREAM_DB01',parameter=> 'MESSAGE_TRACKING_FREQUENCY',VALUE=> '100000');
    END;
    4) activate standby
    CONNECT SYS/SYSPWD@DB02 AS SYSDBA
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    ALTER DATABASE ACTIVATE STANDBY DATABASE;
    ALTER DATABASE OPEN;
    ALTER DATABASE RENAME GLOBAL_NAME TO DB02;
    5) create apply on target db
    CONNECT strmadmin/sys@DB02
    EXEC DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION();
    ALTER SYSTEM DISABLE RESTRICTED SESSION;
    CREATE DATABASE LINK DB01 CONNECT TO strmadmin IDENTIFIED BY sys USING 'DB01';
    exec dbms_streams_adm.set_up_queue(queue_table => 'APPLY_TWDB2', queue_name => 'APPLY_TWDB2', queue_user => 'strmadmin');
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES (
    SCHEMA_NAME => 'MY_SCHEAM',
    STREAMS_TYPE => 'APPLY',
    STREAMS_NAME => 'APPLY_STREAM_TWDB2',
    QUEUE_NAME => 'APPLY_TWDB2',
    INCLUDE_DML => TRUE,
    INCLUDE_DDL => TRUE,
    SOURCE_DATABASE => 'DB01');
    END;
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'MY_SCHEAM.TABLE1',
    streams_type => 'APPLY',
    streams_name => 'APPLY_STREAM_TWDB2',
    queue_name => 'APPLY_TWDB2',
    include_dml => true,
    include_ddl => true,
    source_database => 'DB01',
    inclusion_rule => false);
    END;
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'MY_SCHEAM.TABLE1',
    streams_type => 'APPLY',
    streams_name => 'APPLY_STREAM_TWDB2',
    queue_name => 'APPLY_TWDB2',
    include_dml => true,
    include_ddl => true,
    source_database => 'DB01',
    inclusion_rule => false);
    END;
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'MY_SCHEAM.TABLE1',
    streams_type => 'APPLY',
    streams_name => 'APPLY_STREAM_TWDB2',
    queue_name => 'APPLY_TWDB2',
    include_dml => true,
    include_ddl => true,
    source_database => 'DB01',
    inclusion_rule => false);
    END;
    begin
    dbms_apply_adm.set_parameter(
    apply_name => 'APPLY_STREAM_TWDB2',
    parameter => 'disable_on_error',
    value => 'N');
    end;
    then start propogation and apply proccess.
    may be something wrong?
    Edited by: user11995552 on 17.11.2010 2:37

  • I want to use destination server as production then what will be steps

    Hi,
    I am using Oracle 10g 10.2.0.3.0 on Linux 64 bit in Production as well as destination server. Using Oracle one way schema replication from Production to destination server.
    Now my question is if my production is schema is destroyed by any unforseen disaster and i want to use destination server as production then what steps should take to use destination server , especially how to terminate apply process and queue waiting.
    Regards

    Hello
    Removing streams is very simple in 10g. Please follow the below steps:
    1. Remove all the streams configuration metadata informations:
    connect / as sysdba
    execute dbms_streams_adm.remove_streams_configuration;
    2. Now drop the streams administrator user who owns the streams queues:
    connect / as sysdba
    drop user strmadmin cascade;
    Thats all the steps to remove streams. This will automatically stop the apply, drop them and then drop all the other related informations, then finally remove the streams queues and other objects when dropping strmadmin user.
    Earlier in 9i (9.2) we used to stop the apply, then drop them and drop all the objects manually. From 10g onwards the procedure dbms_streams_adm.remove_streams_configuration does everything under the covers.
    Thanks,
    Rijesh

  • CAPTURE stuck on INITIALIZING

    I've removed an existing streams configuration. It appeared to be successful.
    However, now that I attempt to define a new configuration, I encountered the following problem:
    Capture process status seem to be stuck on INITIALIZING, sometimes moving to DICTIONARY INITIALIZATION and back.
    I've read that this could be a problem with finding the archive logs to process, so I checked first_scn of the capture process to see what scn we need next.
    And then checked:
    SELECT r.CONSUMER_NAME,
    r.NAME,
    r.FIRST_SCN,
    r.NEXT_SCN,
    r.PURGEABLE
    FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c
    WHERE r.CONSUMER_NAME = c.CAPTURE_NAME;
    To see which log files are needed, and indeed one of them contained the scn I found before.
    Then I checked that the files in the result of that query indeed exist at that location, and they do.
    What am I missing?

    I suspect you still have an SCN initialisation on.
    did you also abort the SCN initialisation on the schema for apply and capture when you removed the streams ?
    on 10gR2
    for capture :
    execute DBMS_CAPTURE_ADM.ABORT_SCHEMA_INSTANTIATION( schema_name => 'owner');
    for apply
    execute DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN( source_schema_name => 'owner , source_database_name => 'SOURCE_DB_LINK_NAME' , instantiation_scn => null , recursive => true);
    or also :
    exec dbms_streams_adm.remove_streams_configuration;

Maybe you are looking for

  • Can't find wireless on Dell D620

    When I install the Oracle VM Server on a Dell D620 the kernel sees the eth0 direct attached ethernet but it does not see the eth1 wireless interface. Can I just plumb/configure/create this interface and have the kernel recognize the device or do I ne

  • Mrp control parameter- neupl

    Hi, pls advise is it necessary to use newpl control parameter to run the mrp first time in any plant after cutover activities updation? incase if we run with netch, what will happen? any problem will arise. pls guide.

  • JavaScript Validation Problem

    I am new to JavaScript and I cannot figure out how to make my validation form work right. All I want is a message to come up if all the required fields were not filled out. What am I doing wrong here? JavaScript from head: <script type="text/javascri

  • SMIL ignores 'switch' in 'seq' tags

    I've built a player based off sprint 10 (0.93) that uses the SMILPlugin and Dynamic Streaming. The player was working great with single items, either flv or a set of MBR streams, once I started sequencing them I ran into some issues. It appears the S

  • IPhone 5 often freezes when I open the camera

    My iPhone 5S which is only 4 months old has had an annoying problem with freezing up every so often when I open up my camera. The screen goes black and nothing will work. The only thing I can do is switch the power off and back on. If I do not turn t