How to exclude tables from Schema level replication

Hi All,
I am currently trying to setup Oracle Streams (Oracle 11.1.0.6 on RHEL5) to replicate a schema from one instance to another.
The basic schema level replication is working well, and copying DDL and DML changes without any problems. However there are a couple of tables that I need to exclude from the stream, due to incompatible datatypes.
Does anybody have any ideas or notes on how I could achieve this?? I have been reading the Oracle documentation and find it difficult to follow and confusing, and I have not found any examples in the internet.
Thanks heaps.
Gavin

When you use SCHEMA level rules for capture and need to skip the replication of a few tables, you create rules in the negative rule set for the table.
Here is an example of creating table rules in the negative rule set for the capture process.
begin
dbms_streams_adm.add_table_rules(
table_name => 'schema.table_to_be_skipped',
streams_type => 'CAPTURE',
streams_name => 'your_capture_name',
queue_name => 'strmadmin.capture_queue_name',
include_dml => true,
include_ddl => true,
inclusion_rule => false
end;
table_name parameter identifies the fully qualified table name (schema.table)
streams_name identifies the capture process for which the rules are to be added
queue_name specifies the name of the queue associated with the capture process.
Inclusion_rule=> false indicates that the create rules are to be placed in the negative rule set (ie, skip this table)
include_dml=> true indicates DML changes for the table (ie, skip DML changes for this table)
include_ddl=> true indicates DDL changes for the table (ie, skip DDL changes for this table)

Similar Messages

  • How to exclude some tables from schema level replicatio????

    Hi,
    I am working on oracle10g stream replication.
    My replication type is "Schema Based".
    So can anyone assist me to undersatnd, how to exclude some tables from schema based replication.
    Thanks,
    Faziarain

    You can use rules and include them in the rule set, lets say you dont want LCR to be queued for table_1 in schema SALES, write two rules one for DDL and another for DML with NOT logical condition.
    DBMS_RULE_ADM.CREATE_RULE(
    rule_name => 'admin.SALES_not_TALBE_1_dml', condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
    ' :dml.get_object_name() = ''REGIONS'') AND ' ||
    ' :dml.is_null_tag() = ''Y'' ');
    DBMS_RULE_ADM.CREATE_RULE(
    rule_name => 'admin.hr_not_regions_dlll',
    condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
    ' :ddl.get_object_name() = ''table_!'') AND ' ||
    ' :dsl.is_null_tag() = ''Y'' ');
    just go through this document once, http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#i1017376
    Edited by: user8710159 on Sep 16, 2009 5:21 PM

  • How to exclude table from capture process in 9.2.0.8?

    I have stream replication in Oracle 9.2.0.8 at schema level. In the list of tables I need to exclude one.
    How can I do that?
    Thanks in advance

    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_strm_2.htm#1006471
    Read everything that has the word "RULES" in it and seems to apply.

  • How to exclude tables from default scheduled stats job in 10.2.0.4

    I am using Oracle default stats job GATHER_STATS_JOB in my database. But i need to exclude stats gathering for few tables as part of my business requirement.

    Welcome to the forums.
    As I am sure you read the docs on DBMS_STATS at tahiti.oracle.com what was it about the method for addressing it in the docs that you don't think will work for you.
    Hint: The correct answer to my question is not "I didn't read the docs because I thought someone here would read them for me." ;-)

  • How to add new tables in Streams for Schema level replication ( 10.2.0.3 )

    Hi,
    I am in process of setting up Oracle Streams schema level replication on version 10.2.0.3. I am able to setup replication for one table properly. Now I want to add 10 more new tables for schema level replication. Few questions regarding this
    1. If I create new tables in source, shall I have to create tables in target database manually or I have to do export STREAMS_INSTANTIATION=Y
    2. Can you tell me metalink note id to read more on this topic ?
    thanks & regards
    parag

    The same capture and apply process can be used to replicate other tables. Following steps should suffice your need:
    Say table NEW is the new table to be added with owner SANTU
    downstr_cap is the capture process which is already running
    downstr_apply is the apply process which is already there
    1. Now stop the apply process
    2. Stop the capture process
    3. Add the new table in the capture process using +ve rule
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES
    table_name      => 'SANTU.NEW',
    streams_type    => 'capture',
    streams_name    => 'downstr_cap',
    queue_name      => 'strmadmin.DOWNSTREAM_Q',
    include_dml     => true,
    include_ddl     => true,
    source_database =>  ' Name of the source database ',
    inclusion_rule  => true
    END;
    4. Take export of the new table with "OBJECT_CONSISTENT=Y" option
    5. Import the table at destination with "STREAMS_INSTANTIATION=Y' option
    6. Start the apply process
    7. Start the capture process

  • How to remove table from replication

    Hi ,
    I have configured Streams Replication  on schema level. I want to remove one table replication.
    Is it possible?
    Thanks,

    In Streams you can specify positive (to be included) and negative (not to be include) rules. With schema level replication, if you want to skip one table, you can add a negative rule for this table (inclusion_rule set to FALSE):
    https://docs.oracle.com/database/121/ARPLS/d_streams_adm.htm#ARPLS308

  • Schema level replication.

    What kind of changes will be captured if we are having schema level replication?
    Will it capture the changesonly related to tables or it will capture the changes to other objects like procedure, function, triggers etc also?
    Kapil

    It replicates everything concerned to a ddl and dml change.
    It even replicates the capture,propagate and apply procceses if running on the source database..........:-)

  • How to export tables from development server to production server

    HI,
    Any body plz let me know how to export tables from development server to production server. what are the user names and password i need to ask my manager to do that. what are the requirements i need to ask him.
    Plz reply me ASAP.
    Thanks in advance.

    hi buddy
    first of all you should let us know the environment of production and development servers
    database versions
    and you need to have userid which has privilege to export tables of other schema. userid(owner) of the tables you want to export.
    Traditional way
    export tables in development server and then ftp to production and then import
    in the above case you should have similar database structure(tablespace etc) to avoid errors...
    if there are few tables only , you can use dblink instead of export and import...

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • How to do transports from os level

    hi
        i have a question .how to do transports from os level.pls give me ans
                                                                                    thanks

    Hi Raghu,
    Logon with <SID>adm goto command promt.
    Goto path /usr/sap/trans/bin/
    Assume Your DEV to QAS
    First add request to buffer.
    tp addtobuffer DEVKXXXXX QAS pf=/usr/sap/trans/bin/tp_domain_<SID>.PFL
    Now import Phase
    tp import DEVKXXXXX QAS client=XXX pf=/usr/sap/trans/bin/tp_domain_<SID>.pfl
    Check for the return codes.
    Regards,
    Ganesh
    ****Reward points if Helpful*****

  • How to exclude BUILDARCHIVES from SDA

    Hello,
    I have a assembled SDA file that is very large due to the included BUILDARCHIVES - but I would like to provide this SDA for customers and it is not necessary for them to use the public parts (also restricted to my component).
    I allready have removed source from file during assembly and with include_source = false build option but there is still the BUILDARCHIVES folder in SDA file.
    Does someone know how to exclude them from the SDA? I'm not sure but I think SAP also don't deliver build archives for allmost any SDA.
    Best Regards,
    Frank Wagner

    i think all sap sca contains BUILDARCHIVES

  • How to exclude invoice from credit check?

    Hello,
    I use 11.5.10.2
    I have credit check rules with include open receivables balance. Now I want exclude some invoice with one AR transaction type from exposure.
    How to exclude invoice from credit check?
    Regards,
    Łukasz

    Hi a®s ,
    thanks for your suggestion.
    I tried your first suggestion with the object set:
    - unforunatly the check runs still with the includes.
    - I can't not use the Object Set for a direct check in the ABAP Workbench (with the user variant DEFAULT)
    For the second suggestion we have to modify the Include.
    That would be not so good for us, because the include is deliverd from a software  distributor.
    Additional we have the set the #EC-Command for every statement.
    Isn't it possible to set a pseudo command or something at begin and end of a block of coding, that
    has the be exludes from the check?
    So we could set this pseudo command before the INCLUDE-Statement to switch the check off and after the the INCLUDE-Statement to switch the check on....
    Many greetings,
    Stefan

  • How to read tables and fields transaction,how to find table from a strucre

    hi all,
      i am having problem in reading tables and fields for developing a customised report. can anybady help me how to extract tabele and fields from a transaction code and how to map table from a structure.
    It will me much help full, if u had any documentation. u should be appreciated.
    Thanking u
    kiran
    Message was edited by:
            kiran

    Hi Kiran,
    You can make use of the tables or Views available.
    Reward If Useful.
    Regards,
    Chitra

  • How to find tables from database having no partition

    Hello Sir,
    How to find tables from oracle database having no partitions?
    Thank you.
    -Mal

    @SB,
    SQL> SELECT OWNER, TABLE_NAME FROM DBA_TABLES
      2  MINUS
      3  SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS;
    SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS
    ERROR at line 3:
    ORA-00904: "OWNER": invalid identifier@OP,
    select table_name,partitioned from dba_tables where partitioned='YES';
    select table_name,partitioned from dba_tables where partitioned='NO';
    Regards
    Girish Sharma
    Edited by: Girish Sharma on Jul 1, 2011 9:27 AM

  • How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?

    How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?
    We have to set up a scenario for sending "Customer returned" products from branches to Central DC through STO. But we do not want GATP check for these STOs, as they are Customer Returns, which need to analyze at CDC for further actions. We are using SCM 7.0 and ECC 6.0
    Thanks in advance,
    Ravi

    Hi,
    You can exclude the "customer returned" category from the scope of check from that particular Check control

Maybe you are looking for

  • Unable to play or RIP audio CDs

    I am unable to rip or play audio CDs, there are no error messages but the "now playing" progress bar skips through each track very quickly without playing or riping the tracks. Able to rip or play tracks using windows media player and then import int

  • Help! Can't install SSD in my new Mac Mini Server (2012)

    Previously I've purcahsed Mac Mini servers and removed one of the two drives, replacing it with an OWC SSD. The hardware change was not hard to do and resulted in incredibly good computers for my employees to use which allowed us to retire several ol

  • HT1338 thunderbolt external drive

    Can I use an 8TB G Raid Thunderbolt drive with a Macbook Pro 2009 10.6.8?

  • Javahelp display issues (RH2002 to RH9 upgrade)

    Hi, First of all, this forum has been a godsend as instalation was a nightmare. Thank you. Here's my latest issue... Compiled javahelp looks fine in the local viewer, but not after delivery (when opened through my product's Help menu). It doesn't hon

  • When is iCloud going to fix there SPAM filters already?! Why is there not an Allow list in iCloud?!

    When is iCloud going to fix there SPAM filters already? ! I have received 3 consecutive emails from the same domain although I marked the first one to arrive as SPAM. Truth be told none of them should get through. Why is there not an Allow list in iC