Streams replication in Oracle XE.

Hi,
I'm planning an implementation of Oracle Streams replication. Some of the considerations and facts are stated below.
1. DDL Changes will be maintained.
2. Replication will be Bi-Directional.
3. The operating system on the source and downstream sites are the same.
4. The hardware and operating system architecture on the source and downstream sites are the same.
5. Both the source database and the downstream database are be running Oracle Database 10g (details below).
Source Database
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
PL/SQL Release 10.2.0.1.0 - Beta
CORE 10.2.0.1.0 Beta
TNS for 32-bit Windows: Version 10.2.0.1.0 - Beta
NLSRTL Version 10.2.0.1.0 - Beta
Downstrean Database
Personal Oracle Database 10g Release 10.1.0.2.0 - Production
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
Here I have found that Oracle XE (source) is not supporting the local capture process.
My questions:
1. Can I consider downstream capture in this scenario? (As I have Personal Oracle Database 10g Release 10.1.0.2.0 as downstream database)
2. In case of archive log downstream capture what will be the most efficient way of redo log transportation.
Thanks in advance.

1. In a RAC cluster? The name I would put in the scripts is "insanity." Why? You are going to bring this instance to a crawl.
2. No problem in doing a transformation. The problem was in your first question.
3. I wouldn't worry much about monitoring it. I'd just get a stopwatch and see how many seconds before it crashes.
If the data is in one schema in the database then just make it available, via object privs, to the others. Replicating it, as you have described, is likely going to be a painful experience in far more ways than just wasted storage.

Similar Messages

  • Oracle Stream Replication 10G

    Hi.
    We are planing to use 10G stream replication for our production enviorment. But we are concenred over few things before we move ahead with option. Our prior experience with 9i stream replication was not that good.
    9i does'nt functionality to do some advance maintenance task that could required on production enviorment. We are hoping 10G would be better option to go with streams.
    However, following are few questions that we have regarding this product. Request your valuable inputs on Oracle 10G streams replication.
    -->How effective this tool is compared to prior version 9i.
    -->How stable Streams are with 10G? Are still there any know critical issues with stream replication 10G for e.g bugs or patches that are under review e.g?
    -->For replication of production enviorment, would it be an ideal choice compared to third party vendor like golden Gate or shareplex.
    You reponse would be greatly appreciated.
    Thnks
    Ratheesh

    Hi Rateesh,
    -->How effective this tool is compared to prior version 9i.Very good. I use Streams in many production environments, even for bidirectional replication. Streams is very stable in 10g.
    For replication of production enviorment, would it be an ideal choice compared to third party vendor like golden Gate or shareplex.It depends on several factors. It's better than GG and Shareplex by far (IMHO).
    Madhu Tumma has some great Streams notes on this in his book "Oracle Streams":
    http://www.rampant-books.com/book_2004_2_streams.htm
    Hope this helps. . . .
    Donald K. Burleson
    Oracle Press author

  • Oracle 10g streams replication problem.

    Hi,
    Can someone help me oracle replication troubleshooting ?
    I have source and target databases. I have setup one-way stream replication successfully. Whatever data I insert into table A, it is replicated to target database succesfully.
    However, if I delete the records from the destination database and then it does not apply old values of the source database to destination database.
    I reset the START_SCN in the source database and then I setup destination SCN number using DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN and started capture process on the source database.
    Can somebody help how should I recover the destination database ?

    Hi Basu,
    Thanks a lot for response
    I set up streams between between source and destination database using schema instantiation and setup SCN number for destination after which apply process apply all the changes and all it is woking file.
    Now I deleted records from table of the same schema in the destination database. Now how do I get all the records in this table using streams.
    I looked at the oracle doc and found that I need to do build using dbms_streams_capture package and I did that and after that I reset START_SCN to the old value on the source database. I also reset the SCN at the SCHEMA label on the destination database for apply process to re-apply the old changes. But all this did not help me to get old data.
    Do you know specific steps which I need to do to get old data ?
    Thanks a lot

  • Message filtering in propagation process (stream replication environment)

    Hi!
    We have fine configured stream replication in star topology:
    ORCL2 <=> ORCL1 <=> ORCL3
    Where the ORCL1 is "headquarters" and there is no message flow between ORCL2 and ORCL3.
    For some reason we want to filter messages in propagation processes, e.g. DML captured on ORCL1 should be replicated only to ORCL2 or only to ORCL3. There is one propagation process for each "satellite" database.
    To solve this problem I have written function:
    FUNCTION Replicate_Lcr (
    p_lcr IN SYS.lcr$_row_record)
    RETURN VARCHAR2 IS
    which will be making a decision whether to pass the message (return 'Y') or not (return 'N').
    But there is problem: rule is evaluated and function is executed (there is insert into 'stream_log_lcr' table) but value of the expression seems to be 'FALSE' and message (LCR) is not beeing sent to ORCL2 (or to ORCL3).
    When I remove function 'Replicate_Lcr' from propagation rule condition then every message captured by capture process on ORCL1 reaches destination database (ORCL2 or ORCL3).
    The second observation is that, if I run the same code on ORCL2 or ORCL3 then everything seems to be OK: there is insert into 'stream_log_lcr' table and DML captured on ORCL2 (or ORCL3) appears in ORCL1 ("headquarters").
    I suppose that this could be problem with other version of database on "headquarters" (ORCL1) or configuration issues.
    I will appreciate every suggestion.
    Databases:
    ORCL1: 64-bit Windows, ver. 10.2.0.4.0, Windows 2008 server
    ORCL2: 32-bit Windows, ver. 10.2.0.1.0, Windows XP
    ORCL3: 32-bit Windows, ver. 10.2.0.1.0, Windows XP
    SQL code run on ORCL1:
    CREATE TABLE stream_log_lcr (
    data DATE NOT NULL,
    msg SYS.lcr$_row_record NOT NULL
    -- simplified, always return 'Y'
    CREATE OR REPLACE FUNCTION Replicate_Lcr (
    p_lcr IN SYS.lcr$_row_record)
    RETURN VARCHAR2 IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    IF p_lcr IS NOT NULL
    THEN
    INSERT INTO stream_log_lcr
    VALUES (SYSDATE,
    p_lcr);
    COMMIT;
    END IF;
    RETURN 'Y';
    END;
    -- create propagation process with above function in rule condition
    BEGIN
    DBMS_STREAMS_ADM.add_schema_propagation_rules
    (schema_name => 'data_schema',
    streams_name => 'primary_to_secondary2',
    source_queue_name => 'strmadmin.capture_primary',
    destination_queue_name => 'strmadmin.from_primary@ORCL2',
    include_dml => TRUE,
    include_ddl => TRUE,
    source_database => 'ORCL1',
    and_condition => ' strmadmin.Replicate_Lcr(:dml) = ''Y'' ',
    inclusion_rule => TRUE,
    queue_to_queue => TRUE);
    END;
    -- check if function 'Replicate_Lcr' was evoked:
    SELECT * FROM stream_log_lcr ORDER BY data;

    hi porzer,
    In Propagation process ( source) also 0 errors. But in apply ( dest ) under statistics under server status is displaying as IDLE. And Coordinator status is APPLYING. In Capture (source) no error. In Applying ( dest ) no error. what else i can do please?
    up to now what i did i am telling:
    I had 2 databases had one table same table. one database i changed the mode to ARCHIVELOG mode. Another database is in NOARCHIVELOG mode only. In first database setup streams i run. And i run manually 2 .sql files and one .dat file like this :
    SQL>@e:\oracle\product\10.2.0\client_2\sysman\report\OTEST_ADMIN_NON_OMS_SETUP.sql
    SQL>host e:\oracle\product\10.2.0\client_2\sysman\report\OTEST_ADMIN_NON_OMS_exportimport.bat
    SQL>@e:\oracle\product\10.2.0\client_2\sysman\report\OTEST_ADMIN_NON_OMS_startup.sql
    Any thing else i can do? i didn't have metalink registration.i hope i am not boring you.
    Thanks in advance.

  • No data found in Update (streams replication)

    Hi,
    Our database is setup for streams replication of few tables from source database DB1 to destination database DB2. The source tables have different primary key columns than the primary key columns at destination. All tables at source and destination have primary keys, unique keys and foreign keys. There are unique keys on source tables which are used as primary keys on destination. For example, table TAB1 at source DB1 has primary key column COL1 and unique key column COL2. Whereas at destination table TAB1 on DB2 has COL2 as primary key and COL1 is dropped from the LCR.
    We have problem now, inserts are replicated perfectly, but not updates. Updates are giving “no data found” error. I went through the oracle documentation and I tried following:
    1.     Setting keys using DBMS_APPLY_ADM.SET_KEY_COLUMNS. It didn’t work. Unique key column was set as key columns.
    2.     Setting update conflict handler using DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER. It didn’t work. Unique key column was set as resolution_column and “DISCARD” as method_name (parameters).
    Is there anything I am missing? Please help me in resolving this error. If you have any leads or sample code would help me greatly. Appreciated your help.
    Thanks

    Thanks for our time and help. Yes, you are right.
    FYI... we had supplemental logging. Our team tried with different configuration combinations yesterday. Finally, we found that unconditional supplemental logging must be there to resolve the issue. We had conditional supplemental logging thou. After changing it to unconditional, it was working. There is no need for update conflict handlers or substitute keys.
    Thanks

  • Replication between Oracle Server and MS SQL Server

    Hello,
    Does anybody know of a well known or reliable software that can do data replication between Oracle Server and Microsoft SQL server.
    I suppose I can write my own version using Heterogenous Services in Oracle but I would like to know if such an automated replication between Oracle and SQL is available commercially.
    Thank you.

    Viacheslav Ostapenko wrote:
    Sorry, Aman,
    I couldn't find any info about replication to MS SQL. Is it possible at all? Could you provide link where we can read about this? It could be very interesting.Sorry Viacheslav, even I couldn't find anything for the same. I am not sure that it can be done or not, I haven't heard anyone in my contact doing so. The only place where I have seen Streams being used around me is within Oracle db only. May be someone else can help if he/she has done it.
    Aman....

  • Extensive IO after Configuring DB Streams Replication

    Hi all,
    <br><br>
    I'm learning on configuring and managing Oracle Streams Replication.
    <br><br>
    I managed to configure a bidirectional Database replication using the PRE_INSTANTIATION_SETUP and POST_INSTANTIATION_SETUP procedures in the DBMS_STREAMS_ADM package between two databases (DB1 and DB2). I used RMAN DUPLICATE command for instantiation.
    <br><br>
    Here is my question:
    <br><br>
    Once the configuration is finished, <b>I noticed an extensive IO activities on the hardisks in both DB1 and DB2</b>, although there were no DML or DDL against any of the databases by users. Is that normal in Oracle Streams environment? What is the reason of it? May be it is this way only in the first few hours of finishing this configuration and eventually the IO will become stable.
    <br><br>
    Oracle 10g R2 on Windows XP SP2

    Could be the writing of data dictionary to redo logs on target and the mining of it on the source.
    Did it stop after a while?

  • Implementing replication in Oracle 10&11 Standard Edition

    I am implementing an oracle based application which will run under Linux/Oracle 10gr2 standard edition and which will soon be upgraded to Oracle 11g standard edition.
    One of the requirements of the application is that a hot standby must be provided. To provide the hot standby, I must implement some sort of replication mechanism, but the nice replication features (data guard, streams, advanced replication, basic replication) are only available with Oracle enterprise edition.
    Two questions:
    1. It appears that I will be building a home-made replication mechanisms. I am planning on using insert/update/delete triggers and dblinks to trap database updates and propogate them to the standby server. (alternatively, may write them to files as SQL statements and have the second server load the files). Is their a better way to implement replication in Oracle SE. (esp. a feature of Oracle SE that I could be using to do this?).
    2. Oracle Advanced and Basic Replication are not shown in the Oracle 11 Editions Description web page which lists the availability of features across the various oracle versions. I assume it is still supported in Oracle 11, but is Oracle Streams now the "best practice" for implementing replication (i.e. instead of advanced replication?)
    Thanks in advance,
    Werner

    1) Having database triggers that use a database link is an exceptionally poor way of implementing a hot standby. If the database link goes down, or if the remote database is unavailable, the trigger will generate an exception and the parent transaction will be rolled back. Which means that the system is available only if both databases are available and the network between them is available, which is exactly the opposite of what a hot standby would be expected to provide.
    2) You most likely want to set up a manual DataGuard-like setup. Clone the database from one machine to another, keep the standby database in managed recovery mode, and copy archived log files from the primary to the standby periodically. You'll have to script that, of course, but that shouldn't be insurmountable.
    3) Basic replication (one-way materialized views) are available in the standard edition, but probably aren't the sort of thing you'd want to use to build a hot standby.
    Justin

  • Advance Replication and Oracle Label Security

    Has anyone been able to configure both Advance Replication and Oracle Label Security to work together?

    This is currently not supported in Streams. I have an enhancement request in with Oracle for this functionality. This won't be seen in 11g R2 either.
    Has anyone done Label Security with Advance Replication?

  • Streams Replication: Logical Standby DB as source

    I don't have much experience with streams replications. So, the following might sound like a silly questions to Oracle Gurus:
    If the source database is a logical standby database, can stream replication be used to replicate some of the tables in the source database to the target DB ?
    The source and the target DB are 11g R2.
    Thanks in adavance:
    - Sanjay
    Edited by: sanjayku on Dec 8, 2010 4:38 PM

    Never done it, but I don't see any reason why it should not work.
    Streams, at capture site, is only a data dictionary game and in a logical standby your data dictionary is open read write.
    Streams, at capture site, never touch the source tables, in fact they may even not exists from Streams point of view,
    as it deals only with the redo that are generated.
    So Streams horizon is limited to the data dictionary, the log buffer, the archives and, in SYSAUX tablespace, all the LOGMNR_% tables. All these structures are read write in the logical standby. However, for the capture/propagation you may have to set to true the 'include_tagged_lcr' parameters.

  • 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.

  • Production moves to another server with existing streams replication

    Hi All,
    We have oracle bi directional streams replication setup between 2 server(us and uk). Everything is working as expected.
    But,We are going to move UK server from (ex: cam19 to cam29).
    Will it impact on replication setup.
    we will restore new server via cold backup.Also we will stopped all the process on both the sides ,before cold backup.
    Can you please suggest? What should we do before doing that.
    How we can avoid any problem while moving server.
    so it will not impact on replication.
    Thanks in advance!!!!
    Many Thanks
    nick

    Thanks a lotz Anurag..
    I have one small question not on same topic, Its regarding table add in existing replication setup.
    What happened ,When we add a new table to existing replication setup if any reason table is not replicating between two database then we have to remove the rules for that particular table and setup again. Some time what happened we got error "queue has errors" i dont know the ORA number.
    in that case what cases when apply process ABORETED and when we try to start the process it gives same error and ABORTED again.
    then we have remove the whole replication Manually and setup again. It's very horriable....
    Could you please help that before drop the rules for particular table then wht should we do ? Do we need to unscheduled the propagation process and then drop the rules becuase i read on metalink that negative rules drops while propagation process using the same rule set.
    Please Suggest!!!!!!!!!!
    Many Thanks

  • Multi-user streams replication error in 10gR2

    hi, i am testing multi-user streams replication,using the following sql statement:
    begin
    dbms_streams_adm.maintain_schemas(
    schema_names                     => 'hr,scott,ddup',
    source_directory_object           => null,
    destination_directory_object      => null,
    source_database                => 'yjsh.oracle.com',
    destination_database           => 'test1.oracle.com',
    perform_actions                => true,
    bi_directional                     => false,
    include_ddl                     => true,
    instantiation      => dbms_streams_adm.instantiation_schema_network,
    SCRIPT_DIRECTORY_OBJECT => 'admindir',
    SCRIPT_NAME => 'generated_schemas_script.sql' );
    end;
    all objects in scott,ddup were successfully replicated to target database.
    but in hr schema,only EMP_DETAILS_VIEW was replicated to target db.
    all other objects were not replicated.
    and there was no error in alert.log and dba_apply_error.
    sqlplus hr/hr@test1
    HR > select * from tab;
    TNAME TABTYPE CLUSTERID
    EMP_DETAILS_VIEW VIEW
    1 row selected.
    anyone know how to resolve this problem?
    Your feedback is greatly appreciated !

    Hi
    did you find a solution to your problem?I too have the same problerm. But what I understand is , When the driver fails to connect to the database due to wrong password or username, It repeatedly attempts to connect. So is there any way to restrict the number os attempts made by the driver?I guess Jconnect driver has some attributes to do this.Does someone know if there are any other drivers?

  • A question about learning Streams Replication

    Hi
    I'm going to learn Streams Replication , I want to know that, do I need study all "Oracle® Streams Concepts and Administration" document (http://download.oracle.com/docs/cd/E14072_01/server.112/e10704/toc.htm) before study "Oracle® Streams Replication Administrator's Guide" (http://docs.oracle.com/cd/E18283_01/server.112/e10705/toc.htm) ?
    Thank you

    There are several docs at MOS with examples and steps on how to configure various Streams scenarios. Both the Packt and Oracle Press books are very good. Going through these items will make the Oracle docs much easier to digest.
    Edit
    See: Master Note for Streams Setup Scripts (Doc ID 789445.1)
    Edited by: stevencallan on Nov 14, 2011 9:12 AM

  • Can you use streams replication to replicate an advanced queue?

    We need to be able to support failover of an Advanced Queue between a primary database instance and one or more alternate instances. To insure consitancy across the multiple-database instances, every enqueued and dequeued message must be replicated in the event of a failure on the primary node. TAF is used to automatically failover the App to an alternate database instance. Without getting into the details, Data Guard/Standby/RAC are NOT options.
    Questions:
    Is replication of an Advanced Queue supported via Streams Replication?
    Are there guidlines/recommendations on how this should be done/setup?

    No. AQ is not supported by Oracle Streams. User defined and Sys.AnyData are not supported types.
    You can create AQ propagation process from source to backup site. But you will need to dequeue both sites simultaniously.
    Or you can create schadow table (

Maybe you are looking for

  • HP PSC 1410 All-In-One printer problem!

    I have a PSC 1410 for a while now and I reinstalled Windows 7 recently and now the printer's not detected but I can scan documents. What could be the problem? It was working fine before I reinstalled Windows 7 and I've obviously installed the drivers

  • Payload is not visible in sxmb_moni

    Hi friends, when i send payload from RWB, i am getting success in RWB but when i see that payload in sxmb_moni, i could not see my payload in main document ..only in attachment i could see that paylad. could you give some idea what could be cause for

  • Can I view Timeline Playback via my Canopus ADVC300?

    I have a Canopus ADVC300 attached to my Mac Pro via a Firewire connection. The composite video out is connected to a SD TV. Can I make the timeline playback to this TV as an external monitor? (I used to do this when I had my PC and used AVID Liquid.)

  • ORA-07202 sltln: invalid parameter to sltln.using dbca to create 11g

    OS:Red Hat Linux 5 DB :11.2.0.2 i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create

  • Updating master data from WEB UI

    Hi experts, Is it possible to change the partner attributes such as e-mail, box no, phone, etc from CRM WEB UI? I am planning to create an admin to where he can change the partner details in WEB UI. My assumption is the master data/attributes of part