How to do replication in oracle 10g

hi,
I am new to Oracle.
I want to do Data Replication. I am using Oracle 10g. Can any one help me by telling the steps of Oracle replication.
Thanks in advance.
Message was edited by:
user577340
Message was edited by:
user577340

I'm not sure which of the linked articles you're following, but I expect that you're making things more complicated than they need to be. Those articles discuss configuring multi-master replication, but it sounds like you only need simple materialized view replication. In that case, all you'd need to do is
1) Create a database link from the destination system to the source system
2) Create a materialized view log on the source table on the source system
3) Create a materialized view on the destination that selects all the data from the remote table and is set to be fast refreshable and to refresh every 5 minutes.
On the destination system
CREATE DATABASE LINK to_source_system
  CONNECT TO username_on_source_system
  IDENTIFIED BY password_on_source_system
  USING 'tns_name_for_source_system_on_dest_system';On the source system
CREATE MATERIALIZED VIEW LOG
  ON table_to_replicate
  WITH PRIMARY KEY
  INCLUDING NEW VALUES;On the destination system
CREATE MATERIALIZED VIEW table_to_replicate
  REFRESH FAST
  START WITH sysdate + 5/(24*60)
  NEXT sysdate + 5/(24*60)
AS
SELECT * FROM table_to_replicate@to_source_systemIf you have multiple tables that you want to be replicated in a transactionally consistent manner, you can put multiple materialized views into a refresh group and schedule a refresh of the refresh group.
Justin

Similar Messages

  • How to delete client from oracle 10g ASM

    Hi,
    I would like to know how to delete client from oracle 10g ASM, while configuring Dataguard in same windows os i have by mistake created the standby in ASM.
    However later i have corrected the datafile destination. My Primary database is in ASM and the standby in disk.
    Could anyone please tell me how do i delete the client from ASM. On view from asmcmd it shows db_unknown and from v$asm_client
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    Thanks and regards,
    shaan

    Hi Deepak,
    Pls see the result from the view, i wanted to delete stby
    SQL> select * from v$asm_client;
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    2 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    regards,
    shaan

  • How to export AWM in Oracle 10g

    Hi All,
    Im doing export of my Analytical Workspace with option tables=AW$TEST, this command failed and thrown EXP-00055: CALLDETAIL_TEST.AW$TEST is marked not exportable, i checked NOEXP$ table and i can find my AW name in it, according to table definition i cann't perform export of those objects listed in NOEXP$ table right, I want to know from you pals how can i export AW and then import it ?
    Need your feedback asap.
    Thanking you pals in advance
    Hassan khan

    Abhii wrote:
    How to store image in Oracle 10g?
    any example ?http://www.google.co.in/search?rlz=1C1GGLS_enIN321IN321&sourceid=chrome&ie=UTF-8&q=How+to+store+image+in+Oracle
    HTH
    Aman....

  • Replication in oracle 10g

    hi,
    please anyone tell about the schema level and table replications in oracle 10g.

    user3266490 wrote:
    hi,
    please anyone tell about the schema level and table replications in oracle 10g.Refer :
    Step by step guide ...
    http://dbataj.blogspot.com/2007/11/advance-replication-part-ii-master.html
    Regards
    Azar
    DBA

  • How to use iframes in oracle 10g

    I have to load two jsp pages in a single html . I have done that thru iframes. But i have to dynamically load the second jsp page in the frame 2 , when the user clicks upon certain details in the frame 1 jsp page. I have wriiten the code of document.iframe in format trigger attribute. It doesn't work. Is there any other way to achieve this. I want to load the frame 2 jsp page dynamically , according to the input i get from frame 1 jsp page.

    Hi,
    >>Anybody know how to use profiler in oracle 10g
    What do you mean "profiler". About Resource Limits/Create Profiles ?
    >>i couldn't able to install the enterprise manager console.
    What OS ?
    >>because i need to trace the execution of a stored procedure.waiting the reply.
    Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
    Cheers

  • How to Send mail in oracle 10g

    I am new in oracle developer.....we are using oracle 10g developer...how to send mail through oracle 10g on a button click.pease help me.
    Thanks in advance

    This question have been asked many times on this forum, see if you get help from following:
    https://forums.oracle.com/message/5395438#5395438
    Search results: https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=form+email
    Check this out as well:
    http://nzchaudhry.wordpress.com/2013/05/31/send-report-via-email-attachment-in-oracle-forms-10g/
    You can find init.ora or initSID.ora file under $ORACLE_HOME/dbs on linux and on Windows under $ORACLE_HOME/database. Otherwise you can create it using "create pfile from spfile" command
    Aneel

  • How to Use Profiler in ORACLE 10g

    Hi all,
    Anybody know how to use profiler in oracle 10g and also i couldn't able to install the enterprise manager console.is there any tools available for that.because i need to trace the execution of a stored procedure.waiting the reply.
    Sathish

    Hi,
    >>Anybody know how to use profiler in oracle 10g
    What do you mean "profiler". About Resource Limits/Create Profiles ?
    >>i couldn't able to install the enterprise manager console.
    What OS ?
    >>because i need to trace the execution of a stored procedure.waiting the reply.
    Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
    Cheers

  • How to recreate datafile in oracle 10g.

    pls tell me how to recreate datafile in oracle 10g...
    what are situation to recreate datafile
    Edited by: 898085 on Nov 18, 2011 9:16 PM

    898085 wrote:
    pls tell me how to recreate datafile in oracle 10g...
    what are situation to recreate datafile
    Edited by: 898085 on Nov 18, 2011 9:16 PMDid u mean create or recreate?
    if datafie is deleted then you may add it into existing tablespace.
    Try this : -
    1.)sqlplus sys/xx as sysdba
    2.)alter tablespace <tablespace_name> add datafile <datafile_name> size <give size>;
    HTH:-)

  • How to Configure Webutil in Oracle 10g Developer Suit

    Dear All,
    How to Configure Webutil in Oracle 10g Developer Suit.
    Please give me the step by step solution.
    Thanks and Regards,
    Fazil

    This is a very frequently asked question. Searching the Forum or the Forms Help system would have given you your answer! Search Forms Help on "Configure WebUtil" and read the configuration guide and checklist articles.
    Craig...

  • Question on replication in Oracle 10G Release 2

    Good day,
    I have a few questions on setting up replication that fits my scenario described below. Thank you in advance for reading and answering my post.
    Scenario
    I need to replicate 100-200 tables from the first OLTP server to the second DSS server that is read-only. The servers are physically located in different countries. Both servers use Oracle 10G Release 2. Required frequency of refreshes is 1-3 hours.
    Questions
    1. Is it optimal to use materialized views with fast/force refreshes for implementation of this scenario? If no, what are the better options?
    2. How do network interruptions and latency affect stability of work of replication with materialized views?
    3. How big is additional performance overhead at OLTP (source) server due to setting up replication with materialized views?

    1) I guess it depends on how you define "optimal". It's certainly a reasonable option. You might also look at Streams or even logical standby databases. There are various trade-offs involved, so it really depends on your environment.
    2) What does "stability of work of replication" mean, exactly? Obviously, if the network fails, the replication job(s) will generate errors. Depending on how you set things up, the replication process will be retried after increasing intervals until it succeeds.
    3) Maintaining materialized view logs on the OLTP system could certainly impact performance-- the logs have to be maintained synchronously with the OLTP transactions. That may or may not noticably impact OLTP transaction performance-- it's probably roughly equivalent to putting a trigger on each of the 100-200 tables. Something like Streams is designed to put less load on the source system because changes are captured asynchronously.
    Justin

  • Types of replications in oracle 10g

    Hi
    Iam new to oracle10g.
    I want to replicate my database.
    Before that i want to know how many types of replication methods are available in oracle 10g?
    Thanks

    There is no single correct answer to that question.
    You've certainly got Streams and materialized views. You could subdivide each of those into three or four separate options based on the configuration (single-master vs multi-master materialized views, for example).
    You might group technologies like DataGuard-- logical and physical and Change Data Capture (CDC) under the general banner of replication depending on how you define the term.
    You could always write your own replication process using database links, triggers, etc. Or load and unload data via export & import, SQL*Loader, and/or external tables.
    Transportable tablespaces might also fall under the replication rubric.
    Depending on the problem you're trying to solve, the granularity you're counting, and what you consider "replication", you could come up with anything from 2 to 1002.
    Justin

  • Oracle 10g SEO replication to Oracle 10g EE RAC

    Hi!!!
    I have 200 nodes with Oracle 10g Standard Edition One and a DataCenter with 3 nodes Oracle 10g Enterprise Edition Real Application Clusters. My questions is, how to replicate data from each node to datacenter with the objective to centralize all data.
    The database structure is the same in all nodes, and there is no conflict.
    My real problem is Oracle Standard Edition One, it's not support advanced replication like Streams and Materialized Views, and i cant use other version of oracle because it´s huge money.
    Please any advice?
    Thanks in advance.

    I'm more of an Oracle developer than a DBA, and I'm not sure this is feasible, but it sounds like you are in dire need of an idea, so here it is. Take the transaction logs from your 200 nodes, copy them to your central site (at whatever time interval you require), and peform a "restore" to the central server using those logs, even though they did not come from the central server.

  • How to install and configure Oracle 10g Express Edition on Fedora 11?

    Hi everyone!
    I have recently installed Oracle 10g XE on my Laptop Gateway T-1625, which has Fedora 11.
    I followed the install instructions on [http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm] , and configured the server as explained, but something is wrong... When I try to go to the database home page http://127.0.0.1:8080/apex, I get "Failed to Connect" on Firefox 3.5b4... I don't think it's because of the Firefox version because it's proved to be very stable (for a beta).
    I've search for similar issues on GNU/Linux and I found this thread in these forums: [ http://forums.oracle.com/forums/thread.jspa?threadID=915218&tstart=0] , but the solution is for Ubuntu 9.04, and if it's possible I would like to know a specific solution for Fedora 11.
    I also tried to see the oracle server status with:
    # /etc/init.d/oracle-xe status
    And I got this....
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 25-JUN-2009 22:10:31
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=talos)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    I hope someone can help me out and guide me on the right direction. Thanks a lot!

    Hi again!
    After your last post I realized that the dba group and the oracle user already existed.
    #groupadd dba
    groupadd: group dba exists
    #useradd oracle -d /home/oracle -s /bin/bash -g dba
    useradd: user oracle existsHowever, I finally assigned a password for that account and changed the ownership of the /usr/lib/oracle/xe
    with the commands you suggested:
    passwd oracle
    chown -R oracle:dba /usr/lib/oracle/xeAfter this, I can log in as the oracle user but the SELinux showed a warning and the /usr/lib/oracle/xe
    is treated as the oracle home, and no .bashrc file is located on this home. This is the SELinux warning:
    SELinux is preventing gdm-session-wor (xdm_t) "write" to /usr/lib/oracle/xe (lib_t).
    Details:
    SELinux denied access requested by gdm-session-wor. /usr/lib/oracle/xe may
    be a mislabeled. /usr/lib/oracle/xe default SELinux type is user_home_dir_t, but its
    current type is lib_t. Changing this file back to the default type, may fix your problem.
    File contexts can be assigned to a file in the following ways.
      * Files created in a directory receive the file context of the parent
        directory by default.
      * The SELinux policy might override the default label inherited from the parent directory
    by specifying a process running in context A which creates a file in a directory
    labeled B will instead create the file with label C.
        An example of this would be the dhcp client running with the dhclient_t type and
    creates a file in the directory /etc. This file would normally receive the etc_t type due
    to parental inheritance but instead the file is labeled with the net_conf_t type
    because the SELinux policy specifies this.
      * Users can change the file context on a file using tools such as chcon, or restorecon.
    This file could have been mislabeled either by user error, or if an normally confined
    application was run under the wrong domain.
    However, this might also indicate a bug in SELinux because the file should not have
    been labeled with this type.
    If you believe this is a bug, please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
    against this package.
    Allowing Acces:
    You can restore the default system context to this file by executing the restorecon command.
    restorecon '/usr/lib/oracle/xe', if this file is a directory, you can recursively restore using
    restorecon -R '/usr/lib/oracle/xe'.
    Fix command:
    restorecon '/usr/lib/oracle/xe'I suppose the command #useradd oracle -d /home/oracle -s /bin/bash -g dba is where I can define the user's home, but if this user already exists how can I modify its settings?
    is SELinux preventing the .bashrc file to be created? or what could be causing this?.
    I hope you know how much I appreciate your help and want to thank you for your time.

  • How to know whether my oracle 10g instalation in unicode supported or not

    Hi
    i am new to oracle. I have installed Oracle 10g client and server.
    I want to know whether the database created can store unicode data/arabic data.
    Please guide me how can i find whether unicode support is on for my db or not.
    The outputs of some of the queries run by me are as follows:
    SQL> HOST ECHO $NLS_LANG;
    $NLS_LANG
    SQL> HOST ECHO %NLS_LANG%;
    %NLS_LANG%
    SQL> @.[%NLS_LANG%];
    SP2-0310: unable to open file ".[AMERICAN_AMERICA.WE8MSWIN1252]"
    SQL> select cust_eng_name,cust_arb_name from custmast;
    select cust_eng_name,cust_arb_name from custmast
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Please reply me asap.

    user10817093 wrote:
    1. Yeh that is the thing I want. What are the other steps that i need to do with my Oracle Client/Server for unicode support.
    Where i am getting trouble is the Oracle Client/Server unicode support.
    And how to decide what character set will suite me best.1. If your application is going to be a "true" Unicode application, you can set the NLS_LANG registry/environment setting on your clients to ".UTF8" to enable true Unicode support.
    2. Your database needs to support Unicode, too.
    The recommended database character set for this in 10g is "AL32UTF8".
    If you currently have a single-byte database character set (WE8MSWIN1252), you need to decide how to get this done.
    If you can simply create a new database using the "AL32UTF8" character set, this would be the easiest way.
    There are several documents available (e.g. on Oracle MetaLink) that describe in detail how to convert the character set of an existing database. Depending on your data this can be a tedious task involving several steps, so may be creating a new database and exporting/importing the data might be the simplest choice if you need to migrate some existing data.
    The recommended national character set is "AL16UTF16", by the way, but that shouldn't matter that much once you have a Unicode enabled database using "AL32UTF8" as database character set.
    2. How to set/retrive the "Database Character Set" and "National Character Set". This has already been answered partly. Retrieve:
    Database Character Set:
    SELECT VALUE FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET';National Character Set:
    SELECT VALUE FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_NCHAR_CHARACTERSET';In most of the cases you can't just simply set/alter the character sets, as outlined above.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Can we use replication usings oracle 10g steams for EBS r12 database?

    HI,
    We are using EBS 12.0.6 and database 10.2.0.3 on linux 32-bit/64-bit OS (Multi-Node env).
    Actually We want to decrease the load of custom reports on actual production system, so thats why
    we need reports server and as my past experience I had used oracle streams for replication with simple schema based replication and tablespace replication also.
    So, please educate me, that can i used the oracle 10g streams for EBS schemas like APPS, GL ,INV, PO, ONT, ODM, AR, AP, CM etc?
    Please provide us the above related env docs and road Map.
    If you have any other way to create the Report Server?
    Regard,
    Fayaz Ahmed

    Hi,
    We are not in a position to upgrade the EBS from 12.0.6 to 12.1, because this is lengthy task, but we had already tested technically it in test env, but functional testing in pending.
    Now we want to immediate solution if possible, because this is production?
    So, please suggest another.
    regards

Maybe you are looking for

  • Does Streaming Delete Synched Items?

    When I first set up my ATV, I experimented with synching and streaming. As I recall changing back and forth would erase synched items, but maybe I am wrong. Now that I have synched a large number of photos, I would not want to erase what I have alrea

  • FCproX Project won't load

    The project shows pictures in the project window and they are the right files in the event browser but when opening the project there is no video.  I have rebooted. Hmmm?

  • Use of customer group 1, 2 , 3, 4, 5 in Sales order Header Additional dat ?

    Hi, Can somebody explain the Use of customer group 1, 2 , 3, 4, 5 in Sales order Header ? Is it only meant for reporting? Thanks

  • Opening and reading a dat file

    I have a .dat file on disk that I want to read. Is there a way I can open the file without giving the whole path starting c:/dsfsd/dfs/df/sdfsdf/....

  • Macbook Pro not charging... help please!

    I have a refurbished 2011 macbook pro i bought about 5 months ago. The problem is that one day I went to plug in my external firewire hard drive and my laptop (which wasn't pluged in at the time) inexplicably shut off. I can only get it to turn on if