Oracle Streaming in same database - 10g

Oracle Streaming in 10g database
Posted: Sep 21, 2006 4:25 AM Reply
Hello,
I am trying do streaming at table level for all dml changes from one schema(source) to another schema (target) controlled by admin schema (stream_admin). I have all these schemas in same database(10g-enterprise edition).
As given in documentations , I created
1. two queues(in_Q and out_Q) in Stream_admin,
2. two process( capture and apply process) in Stream_admin ,
3. A propagation rule for propagation between in_Q and out_Q,
4. did instantiation,
5. started both capture and apply process.
Having done that , I insert in source table and check for the same in target but alas!! nothing happens. I fail to achieve streaming.
I am not getting any error. Neither in process , nor in propagation or queues. And all queues,rules and process are enabled.
Please help.

datapump uses dbms_metadata extensively.
Problem is twofold
- the amount of data
- why on earth do you need to 'copy' these 1.2 Tb a 'number of times'
One would expect you would have tested the upgrade on a smaller test database. and you wouldn't need to fix bugs in a 1.2 Tb database.
A better idea would be to duplicate the complete database using RMAN. This doesn't perform conventional INSERTs and doesn't create redo.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Where is Oracle streams in OEM database control?

    Hi, friends:
    trying to setup streams between two instances, suppose in OEM db control I can find a GUI tool, but can not find out it where, so where is Oracle streams in OEM database control?
    thanks a lot in advance.

    When you say OEM database control it is not clear if you refer to the java gui OEM or the Web EM DB control console, as a de facto standard when you say OEM you refer to the 9i Java based GUI admin tool, on the other hand, when EM Control is mentioned it refers to the 10g web based admin tool.
    If you mean the Java Console, you should consider reading this reference --> Using Oracle Streams to Integrate Your Data
    ~ Madrid

  • Oracle stream and  standby database

    i want to implement stream(table level) in the following scenario
    what i must to set for standby as when i switch to standby database the stream work correctly like when primary was working.
    DB1--------------------stream---------------------DB2
    DB1standby .......................................DB2standby
    Narges.

    Your schema above do not tell us if this is a streams master/master. Also it is important to know if you a doing full schema replication or only some tables.
    For the db_name think global name : how do you setup a propagation when the source DB and target DB have the same TNS entry - whose name is driven by the rule dblink name = global_name = tns entry.
    Here it is a slightly different case : DG will succeed to SRC and appear as the same DB for the remote though they are on different hostname. Only way is the fail over in tns entry when you set multiple host for the same services.
    The rest should be ok except for the lost data of SRC which requires a re-sync.
    On the streams side problems remains and I am still skeptic on the feasibility : on paper no problems but problems come fast for the data's lost during the switch to DG (and this is to be expected with async DG, last SCN's will be missing on DG but not necessary on remote target site).
    Then both sites will start suffering on the loss of this data most probably with ORA 1403 data not found or Streams transactions pending and there is no way to predict the extend of this in advance. The re-sync of this status is then crucial and I am working on this. I will come back to the community with a generic procedure for master-master re-sync. One of the main problem is to identify table remote correspondents: These are easy to determine for declarative transformations but for transformation done within apply handler or transformation function associated to a context I have not find better than to comes back to the DBA and ask pitifully which are the remote target tables. The correspondence is a precious data that do not appear in any data dictionary view, but is only into the text of a pl/sql block.
    For my comments on the others thread, when the former SRC comes back, I have not considered the possibility in 11g to re-sync the former Master with a DG being the new master and sound like I should have.
    But this is all new also for me and I need to test it. if it works then you don't have the problem to setup a downstream capture between 2 DB having the same db_name.

  • Oracle Streaming in 10g database

    Hello,
    I am trying do streaming at table level for all dml changes from one schema(source) to another schema (target) controlled by admin schema (stream_admin). I have all these schemas in same database(10g-enterprise edition).
    As given in documentations , I created
    1. two queues(in_Q and out_Q) in Stream_admin,
    2. two process( capture and apply process) in Stream_admin ,
    3. A propagation rule for propagation between in_Q and out_Q,
    4. did instantiation,
    5. started both capture and apply process.
    Having done that , I insert in source table and check for the same in target but alas!! nothing happens. I fail to achieve streaming.
    I am not getting any error. Neither in process , nor in propagation or queues. And all queues,rules and process are enabled.
    Please help.

    go through below link
    http://www.oracle.com/technology/oramag/oracle/04-nov/o64streams.html
    i hope it will help you.

  • Oracle Streams - Apply Rules

    I want to replicate two tables (A, B) using Oracle Streams from one database to another database using Oracle Streams. One column in table A contains salary information for Hourly employees and salaried employees. I do not want to replicate the salary information for salaried employees in the target system. Is there any way that I can set the salary to null for salaried employees at the same time applying any other changes to the table in the target database?
    Any advise is appreciated.

    yes i did..
    SQL> select name,queue_table from user_queues;
    NAME QUEUE_TABLE
    AQ$_STREAMS_QUEUE_TABLE_E STREAMS_QUEUE_TABLE
    STREAMS_QUEUE STREAMS_QUEUE_TABLE
    AQ$_SYS$SERVICE_METRICS_TAB_E SYS$SERVICE_METRICS_TAB
    SYS$SERVICE_METRICS SYS$SERVICE_METRICS_TAB
    AQ$_KUPC$DATAPUMP_QUETAB_E KUPC$DATAPUMP_QUETAB
    AQ$_AQ_PROP_TABLE_E AQ_PROP_TABLE
    AQ_PROP_NOTIFY AQ_PROP_TABLE
    AQ$_AQ_SRVNTFN_TABLE_E AQ_SRVNTFN_TABLE
    AQ_SRVNTFN_TABLE_Q AQ_SRVNTFN_TABLE
    AQ$_AQ_EVENT_TABLE_E AQ_EVENT_TABLE
    AQ_EVENT_TABLE_Q AQ_EVENT_TABLE
    the second row in above table has entry..

  • Maximum No. of DBs involved in Oracle Streams

    Hi,
    Is there any limitations in Maximum No. of databases involved in Oracle Streams.
    I have implemented schema level oracle streams between two database. I am planning to extend to another 6 database. Is it feasible or any restriction, pl. clarify.

    I am not aware of any such limitation. Also I cannot find anything in Oracle documentation as well. The only limiting factor in this case would be the availability of resources and the network bandwidth available between these databases.

  • Running Oracle database 10g and 11g on same 5 RAC nodes

    Hello Gurus,
    Could any body throw light if I can install and sucessfully run Oracle database 10g and 11g on the same Oracle RAC installation setup.My setup is below
    Number of nodes-5
    OS- windows 2003 or RHEL5
    storage- DELL EMC SAN
    Clusterware- oracle version11g
    File system-Automatic storage management(ASM)
    After I successfully setup clusterware,ASM on the nodes,I would want to install 11g database on all 5 nodes .
    Then Install 10g database on only 3 of the nodes using the same clusterware.
    What are your views on the same.
    Also FYI... as per metalink node 220970.1(RAC: Frequently Asked Questions) one can do such a setup.
    what iam looking for is practical experience if anyone has implemented this in production system,if yes any issues faced and how tough it is to support.
    Thanks,
    Imtiyaz

    You could run an 11g database and 10g database on the same cluster as long as you use Clusterware 11g.
    The administration aspect will drastically change according to the platform you run on. As of now, it appears you don't know whether it will be Linux or Windows.
    It would be practical to support the same database release.

  • Oracle Streams setup for multiple schemas in a same database

    We are on 11.1.0.7 and will be using Oracle 11g Streams that will replicate the data real-time for two schemas between the source and target set of schemas with in the same database. We will be doing DDL as well as DML replication.
    I created the following plan and want your inputs. After implementing this, I created a table in SCOTT but it's get replicated to RPT_SCOTT later I tried inserting a row in the table created under SCOTT but that too didn't get replicated to RPT_SCOTT.
    Here are the steps that I used to set up my STREAMS -
    Database Instance:     TESTDB
    Schemas:
         Source:          SCOTT
                   HR
         Target:          RPT_SCOTT
                   RPT_HR
    Configuring Streams:
    1.     Database is in Archive log mode
    2.     Set up the Streams administrator.
    create user STRMADMIN identified by STRMADMIN default tablespace USERS temporary tablespace temp;
    grant resource, dba, AQ_ADMINISTRATOR_ROLE to STRMADMIN;
    BEGIN
    DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE(
    grantee => 'STRMADMIN',
    grant_privileges => TRUE);
    END;
    3.     Set up Streams queues
    CONNECT STRMADMIN/****
    BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_name => 'STREAMS_QUEUE',
    queue_table => 'STREAMS_QUETAB',
    queue_user => 'STRMADMIN');
    END;
    4.     Add the Apply rule
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
    schema_name      => 'RPT_SCOTT',
    streams_type     => 'APPLY',
    streams_name     => 'APPLY_CC_STREAM',
    queue_name          => 'STRMADMIN.STREAMS_QUEUE',
    include_dml     => true,
    include_ddl     => true,
    inclusion_rule     => true,
    source_database     => 'TESTDB');
    END;
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
    schema_name      => 'RPT_HR',
    streams_type     => 'APPLY',
    streams_name     => 'APPLY_AB_STREAM',
    queue_name          => 'STRMADMIN.STREAMS_QUEUE',
    include_dml     => true,
    include_ddl     => true,
    inclusion_rule     => true,
    source_database     => 'TESTDB');
    END;
    BEGIN
    DBMS_APPLY_ADM.ALTER_APPLY(
    apply_name     => 'APPLY_CC_STREAM',
    apply_user     => 'STRMADMIN');
    END;
    BEGIN
    DBMS_APPLY_ADM.ALTER_APPLY(
    apply_name     => 'APPLY_AB_STREAM',
    apply_user     => 'STRMADMIN');
    END;
    5.     Add the Capture Rule
    CONNECT STRMADMIN/*****
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
    schema_name     => 'SCOTT',
    streams_type     => 'CAPTURE',
    streams_name     => 'CAPTURE_CC_STREAM',
    queue_name          => 'STRMADMIN.STREAMS_QUEUE',
    include_dml     => true,
    include_ddl     => true,
    inclusion_rule     => true,
    source_database     => 'TESTDB');
    END;
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
    schema_name     => 'HR',
    streams_type     => 'CAPTURE',
    streams_name     => 'CAPTURE_AB_STREAM',
    queue_name          => 'STRMADMIN.STREAMS_QUEUE',
    include_dml     => true,
    include_ddl     => true,
    inclusion_rule     => true,
    source_database     => 'TESTDB');
    END;
    6.     Set the instantiation system change number (SCN)
    CONNECT STRMADMIN/******
    DECLARE
    source_scn NUMBER;
    BEGIN
    source_scn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
    DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
    source_schema_name => 'SCOTT',
    source_database_name => 'TESTDB',
    instantiation_scn => source_scn);
    END;
    7.     Start the Apply
    CONNECT STRMADMIN/******
    BEGIN
    DBMS_APPLY_ADM.START_APPLY('APPLY_CC_STREAM');
    END;
    BEGIN
    DBMS_APPLY_ADM.START_APPLY('APPLY_AB_STREAM');
    END;
    8.     Start the Capture
    CONNECT STRMADMIN/******
    BEGIN
    DBMS_CAPTURE_ADM.START_CAPTURE('CAPTURE_CC_STREAM');
    END;
    BEGIN
    DBMS_CAPTURE_ADM.START_CAPTURE('CAPTURE_AB_STREAM');
    END;
    Waiting for your inputs!

    If I understand from your code, you want to do this on the same DB :
    SCOTT --> RPT_SCOTT
    HR  --> RPT_HRSo there is a schema transformation, where is it coded ?
    General info : http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_transform.htm
    More specific on schema rename : http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_mtransform.htm#CHDGDHDE
    Next : where are the initialisation of both capture schema ?
    Missing :
    execute DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION( schema_name          => 'scott'');
    execute DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION( schema_name          => 'HR'');This tell Streams from where to capture the SCN.
    Also there is an (WRONG) instantiation of SCOTT for the apply, which tells the apply to consider as valuable candidate all LCR after source_scn,
    but where is the code or RPT_HR. Alas, you put for the APPLY target schema 'SCOTT' while it should have been 'RPT_SCOTT'.
    the fact that is correct or false depends where you put the schema transformation. If you put the transformation at apply time then use the SOURCE schema name (SCOTT, HR) for the LCR will contains their name. If you put the transformation at capture time, then put target schema name for the LCR will contain their name (RPT_HR,RPT_SCOTT).
    Let's say you put the schema transformation at capture time then
    Missing:
    DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
    source_schema_name => 'RPT_HR',
    source_database_name => 'TESTDB',
    instantiation_scn => source_scn);If you attache the transformation on the apply process then the code is :
    DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
    source_schema_name => 'HR',
    source_database_name => 'TESTDB',
    instantiation_scn => source_scn);And this is useless:
    -- useless code
    BEGIN
    DBMS_APPLY_ADM.ALTER_APPLY(
    apply_name => 'APPLY_CC_STREAM',
    apply_user => 'STRMADMIN');
    END;
    BEGIN
    DBMS_APPLY_ADM.ALTER_APPLY(
    apply_name => 'APPLY_AB_STREAM',
    apply_user => 'STRMADMIN');
    END;
    /Last : You are using the same queue for 2 separated capture/apply transformation.
    Do yourself a favor and give each couple capture/tranform/apply its own queue.

  • Is Oracle Streams included in Oracle Database 10g Express Edition?

    Hi,
    A short one - is Oracle Streams included in Oracle Database 10g Express Edition?
    Thanks,
    Dag

    Hi, I'm using Oracle Express in my Client System End. I want to know how we can replicate the data from server to client and server to client.
    My Client DB : Oracle Express
    My Server DB : Oracle 10G.
    When the client is connected to the server I want to Syncronize all the Data from Client to Server and Server to Clinet.
    Some of the Experts are telling to use Materilized View or Replication. Which one to use and How to use.?
    It will be helpfull if I get a logic to do this Data Syncronization Process.

  • Oracle Streams b/w MS-Access 2007 and Oracle 10g.

    Can we set up Oracle Streams between MS-Access 2007 and Oracle 10g? Ms-Access as source and Oracle 10g as destination database. If so, can any one please give me little heads up with supported doc's or any source of info.

    Help Help....!!!

  • Problem in starting SQL*PLUS in oracle database 10g

    Hi
    Well I am facing one problem while starting SQL*PLUS in oracle database 10g
    ERROR - "Procedure entry point longjmp could not be located in dynamic link library orauts.dll"
    This has happened when I installed Oracle Database 11g on same machine and when I deinstalled Oracle 11g then SQL*PLUS is started...no error came
    Can anybody tell me the reason please...

    hi
    pls im having the same problem but in my own case i installed oracle apex using 11g.
    im env variable is:
    C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\app\Xty\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
    pls which is my apex_home so i can interchange it?
    i also have oracle 10g client installed

  • Difference in select for update of - in Oracle Database 10g and 11g

    Hi, I found out that Oracle Database 10g and 11g treat the following PL/SQL block differently (I am using scott schema for convenience):
    DECLARE
      v_ename bonus.ename%TYPE;
    BEGIN
      SELECT b.ename
        INTO v_ename
        FROM bonus b
        JOIN emp e ON b.ename = e.ename
        JOIN dept d ON d.deptno = e.deptno
       WHERE b.ename = 'Scott'
         FOR UPDATE OF b.ename;
    END;
    /While in 10g (10.2) this code ends successfully (well NO_DATA_FOUND exception is raised but that is expected), in 11g (11.2) it raises exception "column ambiguously defined". And that is definitely not expected. It seems like it does not take into account table alias because I found out that when I change the column in FOR UPDATE OF e.empno (also does not work) to e.mgr (which is unique) it starts working. So is this some error in 11g? Any thoughts?
    Edited by: Libor Nenadál on 29.4.2010 21:46
    It seems that my question was answered here - http://stackoverflow.com/questions/2736426/difference-in-select-for-update-of-in-oracle-database-10g-and-11g

    The behaviour seems like it really is a bug and can be avoided using non-ANSI syntax. (It makes me wonder why Oracle maintains two query languages while dumb me thinks that this is just a preprocessor matter and query engine could be the same).

  • Check "Problem: Oracle Database 10g Release 2 can only be installed in new

    Hi All
    Installing 10g software on AIX Box in /oracle/oraHome2,where oracle9i is already installed in /oracle/oraHome1 and oracle inventory is in /oracle/inventory
    In product specific prerequisite screen I am getting the
    check:Oracle Home incompatibilties is failed I am getting the error
    Check complete. The overall result of this check is: Passed
    =======================================================================
    Checking for Oracle Home incompatibilities ....
    Actual Result: Oracle9i Database 9.2.0.1.0
    Check complete. The overall result of this check is: Failed <<<<
    Problem: Oracle Database 10g Release 2 can only be installed in a new Oracle Home
    Recommendation: Choose a new Oracle Home for installing this product
    though I am installing it in different oracle homes why i am getting this error?
    Is it because 10g installation is picking the same oracle inventory /oracle/inventory
    do i need to make different oracle inventory for different oracle homes???????plz confirm..is thats the reason i am getting this error??????
    Thanks inadvance
    Gagan

    I figure out you are trying to install 10gR2 on top of an existing 9iR2 Oracle Home. This is corrected at the Path definition window. Most probably you just click on the <Next> and by default the 9iR2 Oracle Home was selected. You must define a new oracle home for the 10gR2 install.
    ~ Madrid

  • OIM 9.1.0 install connector for "Oracle Database 10g"

    Hello,
    Is anybody here who succeeded to install the connector for Oracle Database 10g into OIM 9.1.0?
    If yes please give me a hint
    Have a nice day!

    Thanks guys for the quick responses.
    But I have tried both the options for putting the jar in Third Party and also by uploading using the OOTB utility UploadJar.sh.
    But it is giving the same error.
    I have tired rebouncing the server and also Purge cached, but no success.
    Just to mention again, I have tried with all the last 3 postgres JDBC4 driver available on the site (u mentioned).
    So, any other clue?
    Thanks in advance.

  • Oracle Data Miner 10.1.0.2 Interoperate with Database 10g Release 2

    Hi all,
    I cannot connect from Oracle Data Miner to a newly upgraded Database 10g Release 2 with Data Mining option. This database was 10.1.0.2 before upgrade, and I could connect via Oracle Data Miner before the upgrade (though it needs to be upgraded to 10.1.0.3+ for data mining to function).
    I have similar problem for a new installation on another computer. The error message in either case is "Cannot connect to specified Data Mining Server. Check connection information and try again."
    I can use SQL*Plus to login as the data mining user using the net service corresponding to the connect string. I check the v$option and DBA_REGISTRY as per the Data Mining Admin. documentation to verify that the data mining option exists and is valid. I am able to use the same connect string "host:port:SID" to connect from Analytical Workspace Manager to verify that the connectivity is OK.
    Furthermore, some Oracle by Example seems not valid for a DB of version 10.2. For example, at the URL http://www.oracle.com/technology/obe/obe10gdb/bidw/odm/odm.htm#p, the point 6 <ORACLE_HOME>\dm\lib\odmapi.jar is not applicable, because the path <ORACLE_HOME>\dm no longer exists.
    Therefore, I have query if Oracle Data Miner 10.1.0.2 can work with DB 10.2? What procedure should I follow? Please advise.
    Thanks and regards,
    lawman

    I am waiting on the beta version since I have installed Oracle10gR2.
    I've been checking the OTN website every day to see when it is released.
    If it is not a bother, can you send me an email when I can download it.
    Thanks in advance.
    Have a wonderful day/weekend,
    Andy

Maybe you are looking for

  • How do I use Paged Media styles in css3 ( headers and footers ) ?

    I need to make printer friendly web pages, with neatly styled Page Headers and Footers. == This happened == Not sure how often == Designing Style Sheets for Printer

  • Printing only does top half of letters in a sentence

    I made the mistake of Registering this product over a year ago as a HP DJ 1510 All in One Printer. Today 1/2/2015, 6 days after my Warranty Expired, lucky me. Today I look again and see that it is a 1512. But each time I do the Diagnostic and Device

  • Place multiple graphics in numerical order

    Hi all, I am having a problem with the order in which indesign inserts placed multiple images (graphics). I have a folder of images labelled 1, 2, 3, 4, 5, 6.....and so on. Say I select the first 30 images in bridge (or in the finder) and drag them t

  • Purchse order price variances

    hi friends is there any standard report for purchse order price variances??? what is the use of MRN0 Report?? regrds raj

  • "bapi dms error"

    import java.io.File; import java.io.FileOutputStream; import java.util.Properties; import com.sap.conn.jco.AbapException; import com.sap.conn.jco.JCo; import com.sap.conn.jco.JCoContext; import com.sap.conn.jco.JCoDestination; import com.sap.conn.jco