Export in Replication Environment

Is an Export of user/table VALID while the replication is in "Quiescing" mode ??
I don't want the replication tables get updated by a user or any batch job, while doing an export. I thought Quiescing the replication will protect the data from DML.
Thanks
null

When the replication group is quiescing, any deferred transactions at each master site that need to be pushed are pushed and applied to the each of the other master sites in the replication group. Therefore, the tables may be modified during this time. When the state is "Quiesced" for a replication group, both users and batch jobs attempting to perform DML on the tables in the replication group will receive an error message.

Similar Messages

  • Replication environment data inconsistency...

    Gurus,
    I have multi master replication environment there is one schema SGI on two databases LLU and BER data in LLU is correct and data in BER is incorrect.
    I need to drop SGI schema in BER and import export dump from LLU, but I don't want to break replication environment and rebuild it.
    I have checked DBMS_RECTIFIER_DIFF given in metalink but somehow could not find concrete example that would help me use it correctly.
    Does anyone have any idea about it? Or any other suggestion on how can I achieve my desired goal?
    Please advice.

    Gurus,
    I have multi master replication environment there is
    one schema SGI on two databases LLU and BER data in
    LLU is correct and data in BER is incorrect.
    I need to drop SGI schema in BER and import export
    dump from LLU, but I don't want to break replication
    environment and rebuild it.
    If you drop the schema you will destroy your replication environment anyway. In that case you have more work to do in order to cleanup the replication environment at your other master site.
    I don't think you want to do that!
    My personal opinion is that you should just remove from the replication environment the master replication objects that belong to the schema you want to refresh. Refresh the data (using import utility) and then create the replication objects again.
    I don't say it is easy, but I think it is the right way to go. Don't be lazy. Follow the rules written in the docs and you should be fine.
    The high level picture of the steps you have to do is:
    - Make sure there are no deferred transactions waiting to be applied. If there are, deal with them first.
    - From your master definition site suspend the replication activity (using dbms_repcat.suspend_master_activity)
    - From your master definition site, remove the master rep objects you want to refresh. (using dbms_repcat.drop_master_repobject)
    - Import the data in SGI BER
    - From your master definition site, create the master rep objects again using (DBMS_REPCAT.CREATE_MASTER_REPOBJECT and make sure you use copy_rows => FALSE and use_existing_object => TRUE)
    - Resume the master activity (using dbms_repcat.resume_master_activity)
    and that is it.
    And again, make sure you don't have deferred transactions before you start this.
    Read the docs until you fully understand what you have to do.
    In order to feel more comfortable, I would suggest you to test this approach first.
    I hope my advice will help you to find the right approach.
    P.S. Hermant's suggestion is also worth considering (the link he provided). The approach that I mentioned may require more work from your side, but it also gives you more control and flexibility so you would know what is going on in every moment.
    Message was edited by:
    tekicora

  • Multiversions in Materialized View Replication Environment

    Dear friends
    In my company we have a matarialized view environment where A materialized view, in snapshot site, contains a complete or partial copy of a target master - master site.
    This environment is in Oracle 8i Enterprise Edition and now we are increasing it. We are shrinking our budget and then i'm research an solution more cheaper, i found Oracle 10G Database Standard Edition One, an solution desinged for small to medium environments. My thought is to use Oracle 10G SE1 for news snapshot sites.
    Can someone talk about the user of differents versions (8i mastersite X 10G snapshotsite) in a Materialized View Replication Environment, is it possible? must i upgrade all my environment replication for 10G or to use multiversions ?
    Thanks !!

    10g to 8i can work, assuming
    - 8i = 8.1.7
    - You are applying at least the 8.1.7.4 patchset to the master (8i) or you are applying the latest patchset to the slave (10g). Realistically, you probably want to do both.
    If you are talking about using the standard edition, I assume that you are only doing basic replication, not multi-master replication. I also assume you are aware of the limitations on hardware that come with Standard Edition 1-- I don't recall if you are limited to machines that have a capacity for 2 or 4 CPU's. Also, be aware that Oracle considers multi-core CPU's as multiple CPU's.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Database recovery in a replication environment

    Hi everybody,
    I've configured a replication environment with Oracle 11g (Multimaster synchronous replication). Apparently it works fine, when replication is started any change in a table that belongs in a node is replicated in the rest of the nodes.
    One of the tests I'm making is the following: Try to see what happens if one of the nodes drops. Meanwhile one of the nodes is no avalaible, any modification in an avalaible node is not allowed (as I expected). I'm trying to see if the database service can be avalaible meanwhile a node is missing, although the replications is not running.
    What I've experienced is replication cannot be suspended until the the node was down is restarted.
    Is this the usual behaviour or can I set any parameters to avoid this? In other words, is it possible the database service is running meanwhile one of the nodes is down? The application I'm working on needs this type of replication, buy also needs the service is running always?
    What can I do to make possible the service is running even when a node falls?
    Thanks in advance

    Yes, I've considered an asynchronous replication, with a short period of time (it should be almost synchronous).
    I've tested that, if one of the nodes drops, database service is not available. User intervention is required to stop replication and let the system go on without replication.
    I could be a great idea that, althoug replication is not working, database service is still running and, when replication is restarted, system continue as in the beginning.
    When I test the asynchronous choice I'll answer this post.
    Best wishes,
    Payo

  • If the production database i down, how to switch to standby database using the replication environment in ASsE

    This question is in Business Continuity Plan (BCP)
    if the production database is down, how to switch to standby database using the replication environment in ASE

    Assuming you're referring to Sybase's Replication Server (repserver) product ...
    Repserver moves data changes from one database to another.
    Repserver can't 'switch' your application to use a different database; something outside of repserver has to do the actual switching.
    If your application happens to be connecting to your ASE via Sybase's OpenSwitch (or similar) product, then OpenSwitch would be responsible for switching your application to use the standby database.  Whether you have OpenSwitch perform the switch automatically, or via a manual command, is up to your BCP requirements.
    If your application connects directly to ASE then you'll have to decide how/when to get your application to switch to the standby database.  In the simplest form this would require shutting down the application, making sure replication is quiesced (ie, all in-flight transactions have been applied to the standby database), modify the interfaces/sql.ini file (used by your application) to point to the standby database, make any customized changes to the standby dataserver/database (eg, unlock application logins, take databases out of 'dbo use only' mode, etc), and startup the application (at this point it should connect to the standby database per the changes to the interfaces/sql.ini file).

  • Replication environment

    I'm trying to create replication environment with one master site and one materialized view site in my test databases on the same node. I followed step-by-step the example in the Replication Management API Reference book ( from June 2001 ). Replication environment and replication object is created successfully but replication not runing properly and dont send any error message. My ORACLE Server 9i (9.0.1.1) Enterprise Edition for Windows NT/2000/XP Pro runing on Win2000 Advanced server.
    Thanks.
    Attila Fintor

    Have you set the system variable job_queue_processes to be higher than 0
    e.g. alter system set job_queue_processes = 2;
    I had this problem and searched for a while till i found the reason.
    If this is not set correctly, manual refresh will work but no automatic
    refresh may run since no backgraound processes are allowed!

  • Character set conversion in advanced replication environment 10g

    we have a replication environment with 5 databases using oracle 10g. one master definition site, 4 master sites. we want to change database character set in replication environment.
    Does somebody has experience about database character set conversion in replication environment.
    Thanks

    842106 wrote:
    Hi All,
    I am currently facing a strange issue while loading a csv into oracle BE table.
    The data is coming as Técnicas but I need to store it as Técnicas . I think there is some character set issue for which data is coming as in distorted manner .
    I am using oracle 10G enterprise edition .
    Any help is greatly appreciated.How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    what do you observe when you inspect the actual content of the CSV file?

  • Dsconf backup/restore in a replication environment

    Hi,
    using Sun JS Directory Server 6.3.1. Two servers in a multi-master topology. When making a backup of the directory (on both systems) using dsconf backup, my question is: how should the restore be done, given the fact that there's a replication agreement between the two servers. Should both servers be restored (from the same backup date/time) and when after the restore will the replication start again? Is it possible that replication from host A already starts while host B is still restoring? And if so, how to prevent this situation?
    /rolf

    One other way to do it is with "dsconf export" and "dsconf import" (2 ways) -
    1. When you use dsconf export, without -Q switch, then it automatically import the replication information. You will then have to import both suffixes and enable the "repl-accept-client-update-enabled" attribute to "on" for master instance to start accepting updates from clients.
    Eg.
    # dsconf set-suffix-prop –e –p <port>“<suffix>” repl-accept-client-update-enabled:on
    2. If you export the backup with -Q switch, then you will anyhow import one of the instances and initialize the other from first instance as "dsconf import -Q" does not import the replication information.

  • XML container only partially updated in replication environment

    I have a problem with adding new replicas to a replication group. The situation is the following:
    At startup the replication group only consists of the master database which has one container file containing 5000 documents. Then when I connect a new empty replica after a while it connects to the master and creates the environment and the container file on disk. However the problem is that only some of the documents from the master (always between 10 and 300) actually arrive at the replica.
    Then when I start inserting new documents on the master (XmlContainer.putDocument()) these AND after a while the old documents are transferred to the replica.
    The problem is the same when initializing a new site accoding to: http://www.oracle.com/technology/documentation/berkeley-db/xml/ref/rep/init.html
    So the question is how can i update a new replica without inserting new documents on the master?
    Christoph

    Hi Christoph.
    Since this question is about replication, please post it on the HA (Replication) forum.
    Berkeley DB High Availability (Replication)
    Thanks,
    Ron

  • Migration Replication Environment (8i- 10g)

    Dear all
    In my corporation we have a Environment Replication with 1 MasterSite and 20 SnapShotSites. All DataBases in this environments are version Oracle 8i, and we want to migrate it from 8.1.7 to 10.2.x. To decrease de cost of service we want to migrate only the MastarSite to 10g and leave the SnapShotSites in 8i.
    The metalink note 207303.1 tell us about Interoperabylity Support Between Differentes Oracle Versions. In there, we realized that client 8.1.7 with server 10.2 "was a supported combination but one of the releases is no longer covered by..." and "This includes support for connection over databases links between Oracle Versions"
    Although this metalink note, we made tests in develpment environment and the replication (8i->10g) worked successfully. We are afraid to implement this solution no covered by Oracle Support in production environment. Is there a tecnical problem to implementation that ?

    Hi Marcus,
    just ensure that your clients or snapshot sites are 8.1.7.4 - but you are right: do to the fact that 8.1.7 is not under Error Correction Support anymore this combination will not be supported - but it'll work also for database links but on your own risk.
    Please make sure to have a look into the upgrade companion for 10gR2 before you upgrade: ML-Note: 466181.1
    Kind regards
    Mike

  • Recover Replication Environment when we are changing Hardware

    Hi All,
    I have posted this question in Database Replication head but didn't receive any reply thats why I'm posting the same question here too.
    I've implemented replication between two locations in oracle 9i and it is working perfectly alright for last one year. Now at one location (at snapsht site) I have to change the server hardware and I have to put a new IBM server. I'll have to install Oracle 9i on new Server but I think if I export data from old server and if I import it in new server then I believe replication will not work.
    what is way to use the same replication setup on new server without doing setup of creating Master site on one server and snapshot site on new server.
    I think I'm clear in my question.
    Thanks
    Praveen Arora

    Are you changing hardware platforms as well as the hardware? Or are you going from one AIX box to another?
    If you have the downtime window, and you are staying on the same operating system, the easiest option would generally be to shut down the snapshot database, do a cold backup, restore the backup to the new server, and start up the snapshot database. If you don't have the downtime window for this, or you are changing operating systems, you'd generally be looking at rebuilding the snapshot database on the new server and having two different snapshot databases running for some period of time before you do the cutover.
    Justin

  • Help needed for replication environment. atleast get me good URL links.

    Hi friends,
    Our database is having nearly 150 tables and 200 views, 10 database procedures, 5 database triggers, 5 DBMS_JOB, and 15 users are using. it is ORACLE 8i under win 2000 environemnt. daily 5000 new records are inserted into the database.
    now i want to have a standby database, read and write complete replication of master database, in this following scenario.
    all the clients are conneting uisng connect string "terminal", if any thing happens to the "terminal" computer, the users could be able able to connect using "terminal1" lets say this "terminal1" is the stand by database and it should be functional as original.
    any body can give documentation, easy methods, or step by step documentation. we have access to metalink also. but failed to get easy methods to achieve this.
    thanks in advance

    is a very complicated thing you want to do: it is what Oracle call the Standby database or Dataguard - it's part of the Enterprise Edition, but I don't know whether Oracle charge extra for it. If you are not an experienced Oracle DBA (and, forgive me, but some of your other posts suggest you are not) you do not want to try doing this yourself. Pay Oracle's wergild and get their solution for this.
    Replication is really not suitable for this sort of process as it doesn't function well in real-time; this means you cannot guarantee keeping the two databases usably up-to-date. That causes a problem later on when you need to switch to your back-up database. And again when your original database is back online. Plus replication is flaky and has performance costs (voice of experience).
    Cheers, APC

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

  • Error while importing the export in new environment

    All,
    I have getting AIP-11052: Writing following objects: Transport Protocol Parameter failed due to following constraint violation: TRANSPORTPROTOCOLPARAMETER_UK. UNIQUE CONSTRAINT VIOLATION
    while importing the export. Has anyone encountered this issue? or Can anyone provide pointers as to why this might be occuring?
    Any help would be greatly appreciated!
    Dipal

    Hello Dipal,
    The erros seems to be because of some UNIQUE key constraint issue while importing the export. This may be due to some conflicting import data which is causing this voilation. If it is a possibility, please purge the entire repository and have a clean import or else please analyse the UI log to find some more details.
    Rgds,Ramesh

  • Architecture for replication environment

    Hello
    I have one master computer and nine nodes distributed country-wide. The network between nodes is slow (non-symmetric ADSL 256/128). Now I have a 100% server application with Oracle and PHP and all nodes works against master, but this nodes sends a lot of information to the master (photos and attachments in blob's fields). Each node fills data on 1 or 2 tables, but this data is heavy for my network and users don't like to wait 8-).
    My proposal is to work as a distributed database between nodes, on each node have a replication of these 2 tables and replicates asynchronously. It's a single-master configuration. The application is very simple and don't have stored procedures or views.
    I'm working in the right direction?
    What software I need to install on every node?
    And in the master, it's the best option standard edition one?

    is a very complicated thing you want to do: it is what Oracle call the Standby database or Dataguard - it's part of the Enterprise Edition, but I don't know whether Oracle charge extra for it. If you are not an experienced Oracle DBA (and, forgive me, but some of your other posts suggest you are not) you do not want to try doing this yourself. Pay Oracle's wergild and get their solution for this.
    Replication is really not suitable for this sort of process as it doesn't function well in real-time; this means you cannot guarantee keeping the two databases usably up-to-date. That causes a problem later on when you need to switch to your back-up database. And again when your original database is back online. Plus replication is flaky and has performance costs (voice of experience).
    Cheers, APC

Maybe you are looking for

  • Xilinx Compilation Error: HDLCompiler:432 Formal eiosignal has no actual or default value

    Hi, I have compiled several programs for sbRIOs previously but have not run into compilation errors before. I can't seem to find any support to see what is actually going poorly. Any help with this would be appreciated! The Compilation Status summary

  • SRM PO Update with WBS Element

    Hello, I have a requirement for a report in SRM which should update the account assignment in SRM-PO with the new WBS Element / Fund. Now, I am little new to SRM programming. Could some one give me detailed steps as to what FMs do I need to use and h

  • How to Configure my url in Apache server?

    i have an Apache webserver.i want to give url as desired say.http://intranet.com. Now iam giving my machine ip address as "127.0.101:9000 "to get my html page displayed from a remote terminal in a intranet network. How to configure the apache so that

  • System Update 4 won't install on W500/Win 7. (Lenovo Support unhelpful and have stopped responding).

    Hello Forum, I am trying to solve a problem I have trying to install System Update 4.0 onto a Thinkpad W500 running Windows 7. I did have System Update 3.14 running a while ago and was told to update to 4.0 but to date I have not been able to install

  • Sync Tungsten E2 with Windows 7 64bit computer

    I am a Volunteer here, not employed by HP. You too can become an HP Expert! Details HERE! If my post has helped you, click the Kudos Thumbs up! If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you