Golden Gate 11 g replicate from MySQL to Oracle

Golden Gate 11 g for MySQL can read mysql binlog. I have a question, can I use GG11g for MySQL to replicate from MySQL to Oracle?

Thank and regard

OK, here's the official word from Oracle on it.

Oracle GoldenGate now supports MySQL 5.1.15 and later capture and oracle can be a target. Therefore, if you use MySQL 5.1.15 or later, you can indeed use Golden Gate to replicate from MySQL to Oracle when you use GoldenGate 11 g.

Tags: Business Intelligence

Similar Questions

  • Migration from MySQL to Oracle SQL does not

    Hello everyone,

    I am new to Oracle SQL, but since our MySQL database is more and get more slowly, I would like to test the performance of Oracle SQL.

    So, I downloaded the current Oracle Linux distro and installed Oracle Database 11 g Express Edition.

    I connected with Oracle SQL Developer and started to migrate the MySQL database by following each step of this tutorial.

    I had to abandon all the privileges of the user migration (otherwise the creation and the deleteion of the migration repository did not) and I have disabled the migration of constraints to make migration work.

    Then I proceeded through all of the steps of the tutorial and ended with a "successful migration.

    The last step of the tutorial, it was to connect to the db migrated (using a combination of username/password generated name), it was not possible.

    What do I already checked?

    • Logged on as user system, I see that there is no new user created for the migrated db
    • Looking at the overview in the migration repository I see 3 phases, not knowing if the third displays an error or if it is not necessary at all (I got 58 tables in the db of the source)
      • Capture of 58/58
      • Convert 58/58
      • Compile 0/58

    From here, I don't know where to look for additional errors.

    I still can't use the migrated db and so I can't go forward with my tests.

    I missed something?

    I would appreciate your help.

    Astaldo

    Astaldo salvation,

    First, you must use SQL Developer 4.0.2 If you aren't already. It is available for free on OTN

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/index-098778.html

    There are two ways to convert tables from MySQL to Oracle.

    1) copy to Oracle

    (2) migration to Oracle.

    Copy to Oracle is the simplest method. It does not imply the creation of a repository of migration.  But it only migrates data without constraints or default values or indexes and tables. The set of data to move should be reasonably low as it is moved on JDBC.

    It may suit your purpose to try to Oracle.

    http://dermotoneill.blogspot.co.UK/2010/11/copy-to-Oracle.html

    Migrate Oracle requires the implementation of a migration repository. But he migrate the default settings, constraints, and indexes and can also provide scripts offline data move that can manage the circulation of large data sets.

    Here is a small script to create a new MIGRATIONREPO user, and grant the correct privileges.

    CREATE USER MIGRATIONREPO IDENTIFIED BY oracle.

    ALTER USER MIGRATIONREPO QUOTA UNLIMITED ON USERS;

    GRANT CONNECT, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW to MIGRATIONREPO;

    Then using SQL Developer, create a connection to MIGRATIONREPO, right-click on the connection and choose "associate the Migration repository.

    I hope you have success best creation of migration with the privileges of theses repository.

    Migration Wizard step 8: target database

    Choose Offline Mode.

    This will present you with a build script that you can inspect before the race.

    The build script must be run using the SQL Developer worksheet and choose free user sufficiently privileged in Oracle generally SYSTEM.

    Note that if you would rather work with the repository you must currently you can browse your browser of Migration.

    Access converted database objects, right-click and select "generate the target".

    This will again open the Migration Wizard in step 8. Allowing you to choose Offline Mode so that you can review the build script.

    Hope this helps,

    Kind regards

    Dermot.

    SQL development team.

  • How to import the selected tables from MySQL to Oracle

    Hello world:

    How can I import tables from MySQL to Oracle? I have more than 180 tables in my DB (MySQL), but I copy only 12 of them to ORACLE... rigth now I do it manually, using SQL Developer (rigth clicking on the picture icon and copy to Oracle) but now I need to do this automatically every 4 hours...

    I read on the dblink option, but I don't know if this is the best for this case...

    I appreciate all help.

    Best regards
    Jack

    Hi Jack,

    I think that with a db-link you can define an automated task (PL/SQL + programmer).
    We use a db-link to Oracle's RDBMS to MySQL. So we have no experience.
    We have created the db-link like http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/

    Heike cordially

  • How to migrate from MySQL to Oracle stored procedure

    Hi all

    I've migrated mysql 5.1.42 - enterprise-gpl-advanced DB for oracle sqldeveloper 3.1.07 tool.

    DB objects migrate successfully except stored procedures.

    I checked .sql and files... Capture process not captured SQL stored procedures.

    Could you please suggest where I can check correct error or how to fix this.

    Thanks in advance.

    Hello

    SQL * Developer version you use is an old and you must use the latest version available from this link.

    Oracle SQL Developer

    However, even the v4 version does not support the migration of procedures stored as stated in this link - MySQL

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/supportedmigplatforms-086703.html

    You will need to manually convert the MySQL in Oracle format, stored procedures since even the "Scratch Editor" under "tools - migration '-doesn't have an option for MySQL conversion.

    The documentation includes details of the difference between MySQL and Oracle stored procedures-

    Oracle SQL Developer information for the migration of MySQL®

    in chapter Triggers and procedures stored

    Kind regards

    Mike

  • UNIX_TIMESTAMP and FROM_UNIXTIME from MySQL to ORACLE functions

    Hi all

    I'm migrating some functions and stored procedures in MySQL to ORACLE, and I the next instruction

    Set valuedat = FROM_UNIXTIME (valor + UNIX_TIMESTAMP ('2000-1-01 00:00:00 '));

    Since MySQL.

    Look, I found that:

    UNIX_TIMESTAMP ('2000-1-01 00:00:00 ')

    can be equivalent to the following query:

    SELECT (to_date (January 1, 2000 "," MON-DD-YYYY')-to_date('01-jan-1970','DD-MON-YYYY')) * (86400) as dt FROM dual;

    but testing the numbers is not the same

    Please can someone help me!

    Specifically, I need to know how to build the equivalent in oracle for FROM_UNIXTIME and UNIX_TIMESTAMP functions

    Thank you and best regards!

    CRGM

    Hello

    These are functions that I built to solve the original requirement, thanks for all your comments.

    ************************************************************************************************************************************

    CREATE OR REPLACE FUNCTION FROM_UNIXTIME

    (

    TIMESTAMP_ NUMBER

    ) AS OF DATE OF RETURN

    NUMBER OF SECONDS_PER_DAY: = 86400;

    MASK (50 CHAR) VARCHAR2: = 'DD-Mon-YYYY HH24:MI:SS ";

    DATE OF REF_DATE;

    BEGIN

    REF_DATE: = TO_DATE ('01 - ENE - 1970 00:00:00 ', MASK);

    RETURN REF_DATE + (TIMESTAMP_/SECONDS_PER_DAY);

    END FROM_UNIXTIME;

    **********************************************************************************************************************************

    CREATE OR REPLACE FUNCTION UNIX_TIMESTAMP

    (

    DATE_ IN DATE

    ) RETURN AS NUMBER

    NUMBER OF SECONDS_PER_DAY: = 86400;

    NUMBER OF DIFF_BETWEEN_DATES;

    MASK (50 CHAR) VARCHAR2: = 'DD-Mon-YYYY HH24:MI:SS ";

    DATE OF REF_DATE;

    BEGIN

    REF_DATE: = TO_DATE ('01 - ENE - 1970 00:00:00 ', MASK);

    DIFF_BETWEEN_DATES: = TO_DATE (TO_CHAR (SYS_EXTRACT_UTC (DATE_), MASK), MASK)

    -REF_DATE;

    RETURN DIFF_BETWEEN_DATES * SECONDS_PER_DAY;

    END UNIX_TIMESTAMP;

    ******************************************************************************************************************************

    Concerning

  • Import MYSQL to Oracle Blob

    Our team is planning to migrate from mysql to oracle. They provided a file in text format which produce using the mysqldump utility, and I can find the sql statement in this file. But I do not see file contain some raw data associated with characters of blob. Can I import data from text/number, but how can I import data blob in oracle using the sql statement or tool. Any idea

    Use SQL * Developer.

    Here is a nice HOWTO move data from MySQL to ORACLE.

    Migration of MySQL

    MK

  • MySQL to Oracle using LKM SQL to Oracle, poor performance

    Hello

    I'm on the underside of technology.

    I'm try to use ODI to import data from MySQL to Oracle using the LKM SQL to Oracle, it works well for small amounts of documents but once volumes go higher it performs very badly.

    I'm replacing an integration of existing HS dblink to 44 seconds and ODI is 9 minutes.

    The MySQL and Oracle DB are on the same host with an autonomous ODI agent on the same host.

    MySQL 5.6.21

    Oracle 11.2.0.4

    Oracle Data Integrator 12.1.3

    I may try a different approach to dumping the MySQL table to a flat file and import from external table or sqlldr but y at - it a way to make the LKM SQL for Oracle perform better?

    Hello

    This problem has been resolved.

    I was setting the table sizes in batches on the data source server, after you set the values on the target data server is it now works as expected.

    Using a value of 5,000 for the two tables has reduced the operating time of 9 minutes to about 40 seconds.

  • Connect to MYSQL DB Oracle

    MY SQL-(5.1.61) version
    Oracle (11.2.0.2.0 - 64 bit)

    Must read a view in Oracle's MYSQL and flush the data in the table from Oracle scene.
    Please provide the steps in detail.

    Thank you.

    Best regards
    Franck Giri

    Hello
    You can use the database for ODBC (DG4ODBC) gateway to establish a connection to the MySQL database, and then use the copy, "create table as select... "or select / insert commands to move the data from MySQL in Oracle tables.
    You will need access to My Oracle Support, but the following notes have details on setting up Dg4ODBC on variosu - platforms

    How to set up DG4ODBC on x 86 32 bit Linux or HP - UX RISC (11.1 DG4ODBC only) to connect to databases Non-Oracle post installation (Doc ID 466228.1)
    How to set up DG4ODBC on 64 bit OS Unix (Linux, Solaris, AIX, HP - UX Itanium) to connect to Oracle databases Post Install (Doc ID 561033.1)
    How the installer DG4ODBC (gateway for ODBC Oracle database) on Windows 32 bits (Doc ID 466225.1)
    How to set up DG4ODBC (gateway for ODBC Oracle database) on 64-bit Windows operating systems to connect to Oracle databases Post Install (Doc ID 1266572.1)

    Then this note contains information on the data - transfer

    Copying data between Oracle database and non-Oracle foreign databases or data banks using gateways (Doc ID 171790.1)

    You can also use GoldenGate which allows the replication of data between Oracle and non-Oracle databases in real-time.

    Kind regards
    Mike

  • MySQL to Oracle query

    Hello World ^^

    I just downloaded Oracle XE and migrated my database from MySQL to Oracle successfully.
    And I'm doing/reviewing my application now especially the query syntax.
    I am facing a problem, I have a request in the form below in MySQL and it works fine but when I tried it at the Oracle XE database, it cannot run :( So I'm asking for help here, I have already searched on the internet but had no luck.

    SELECT A.INVOICEDATE,
    *@Step1:=cast (adddate (A.INVOICEDATE, A.TERMOFPAYMENT) as date) AS STEP1, *.
    *@Step2:=if (@step1 > CURDATE (), A.TOTALAMOUNT, 0) AS STEP2, *.
    *@step3:=if (@step2 <>0,0,IF(DATEDIFF(CURDATE(),@step1) < = 30, A.TOTALAMOUNT, 0)) AS step 3,
    T_invoice FROM has
    WHERE A.STATUS = 'Open'

    I can conclude the problem is based on the variable declaration in Oracle, but I still can't understand.
    What I do in MySQL, it's that I want to fill the variable with the expression/logic so I can use 'than' variable more later in the other part of the query output syntax.
    I used variables to be filled by value due to I can't use / select ALIAS later in the other party.

    So please help to convert to Oracle query syntax. Thank you.

    Oracle and MySql are two different animals. You need to learn SQL and Oracle's PL/SQL.

    Your SQL

    SELECT A.INVOICEDATE,
    @step1:=cast(ADDDATE(A.INVOICEDATE,A.TERMOFPAYMENT) as date) AS STEP1,
    @step2:=IF(@step1>CURDATE(),A.TOTALAMOUNT,0) AS STEP2,
    @step3:=IF(@step20,0,IF(DATEDIFF(CURDATE(),@step1)<=30,A.TOTALAMOUNT,0)) AS STEP3,
    FROM t_invoice A
    WHERE A.STATUS='Open' 
    

    Can be writern as

    select invoicedate,
           step1,
           step2,
           case when step2 = 0
                then case when sysdate-step1 <=30 then A.TOTALAMOUNT else 0 end
           end AS step3
      from (
             select A.invoicedate,
                    A.invoicedate+A.termofpayment step1,
                    case when (A.invoicedate+A.termofpayment) > sysdate then A.totalamount else 0 end as step2,
               from t_invoice A
              where A.status = 'Open'
           )
    
  • Why is conversion of procedures &amp; functions due to lack of MySQL to Oracle?

    Hi all

    I'm trying to migrate a database from MySQL to Oracle using the Migration Workbench data in SQL Developer 1.5.4.
    I ran both the quick Migration Wizard and the Manual Migration process as described in the documentation.

    I get through the process very well, even if not everything is successfully migrated. Namely, stored procedures and functions of the database of third parties are not correctly migrated.
    The following text is listed in the Migration log for each of the stored procedures and functions:

    * "Limitation of the translation"procedure_audit requires a translation of the manual"met on the column of the stored procedure fse.procedure_audit line 0-0."

    If I look at the 'converted' model the procedure has been created and is set to NULL. The procedure of 'captured the model' original is commented out in the body of the procedure in the "convert" template Does anyone have any ideas as to why it's a failure? And how do I fix it?


    In addition, there seems to be a problem with the conversion of the index, particularly those that are 'MAJOR' indexes in MySQL not appear in models 'captured' or 'converted '.


    In addition, the migration log provides the following:

    * "Index 'customer_customer_id' on the 'customer' table ' has been ignored, because it is a duplicate of a constraint" * "

    Looking at the index in the original third party database, it does appear that an index on that column on the respective table. The ides why this happens?


    Here, any help would be immensely appreciated.

    Thank you
    Amedeo.

    Mysql stored procedure to PL/SQL function is not available, or in the direction sqldeveloper statement:

    http://www.Oracle.com/technology/products/database/sql_developer/files/sqldeveloperstatementofdirection.htm

    -Turloch

  • The Golden Gate system separate from the Production Server configuration

    Hello
    I have two database server Oracle 11 g on Windows System. I want to set Golden Gate on a Windows system separate for replication (one-way) of the source (production) server to the target server of (at rest).

    I am aware of the Golden Gate installation on the source (production) server.

    Please guide.

    Thank you

    Hiren Pandya s

    To connect to the database when Oracle GoldenGate is running on a different server,
    use a SQL * Net string in the login username parameter. This connection string can then be
    used for connections for all Oracle GoldenGate processes and GGSCI. Do
    certain that SQL * Net is configured to connect to a remote server, including
    the correct entries in a TNSNAMES file. Statement of USER name example:

    Ggext@ora10g01 username, PASSWORD ggs123

  • Golden Gate

    Hello

    I want using Golden Gate for level schema oracle to oracle replication replication (any object in the indexes, tables, triggers, procedures of plan...)

    I have a scheme called dds1, this scheme a lot of objects. Please guide me how to implement the initial load of this objects and then start the replication?

    Please guide me step-by-step:

    1. install the door gold on both sides.

    2 ......

    3......

    4.....

    Help, please.

    Hello

    Schema level replication means, all objects in the schema which is

    configured for replication OGG, will be replicated from the source to the target.

    including the procedures, functions, packages, etc. To do this, you must activate

    DDL replication. DML replication will not satisfy this.

    Once again for the DDL replication, you must use DDL ARE MAPPEES parameter in

    extract and Replicat parameter files. This setting will capture and

    replicate all the DDL operations located on the side of the Source for the

    particular mapped schema.

    For more details, please see the links below.,.

    1 installation and Configuration of DML-

    http://www.Oracle-SCN.com/installation-and-DML-replication-configuration-of-Oracle-GoldenGate-11g/

    2. the DDL Configuration-

    http://www.Oracle-SCN.com/DDL-replication-configuration-of-Oracle-GoldenGate-11g/

    3. What is the initial load-

    http://www.Oracle-SCN.com/GoldenGate-initial-load-techniques/

    There are several types of Oracle GoldenGate initial charge and you can also use

    EXPDP / IMPDP for synchronization at the start of the source and the target. But as objects

    procedures, packages, functions, etc. must be initially created in the

    side of the target.

    Kind regards

    Veera

    We sat, September 11, 2015 at 9:32, community-admin

  • Golden Gate on SSH - Portfolio Manager

    Hi all

    I have a very specific need. I did mostly all my replication within the same company & VPN.

    However, I have 2 clients who both use the same application and they would like to replicate data between them. Obvious that they want to do this as secure as possible from its sensitive data.

    My first instinct is Oracle Wallet Manager? As Golden Gate already can already use the TNSNAMES for its connection information, I thought this might be the best approach.

    I was wondering if someone could advise others. Any document an example of how to configure the Portfolio Manager for the Golden Gate.

    Sincerely

    Jan S.

    Jan,

    During the transfer of data between a source and a remote system, GoldenGate employs a TCP/IP communication. Data can be encrypted during transport or in the file of the track itself. Oracle GoldenGate Win/Unix administration Guide includes a section on the Oracle GoldenGate Security configuration:

    http://docs.Oracle.com/CD/E35209_01/doc.1121/e35957.PDF

    There are also the steps documented to use Oracle security with the extraction process in the following article of knowledge:

    Security Oracle GoldenGate and configuration (Doc ID 1461898.1)

    Let me know if this does not answer your question.

    Best regards

    Mary

  • Golden Gate can be used to create a 3rd node?

    We are currently running flows and determine if the Golden Gate Bridge is worth going to. We have a present master in master. Golden Gate can easily be used to create a third master? If I had an empty schema on site 3, can I use datapump to sync it? Does anyone have experience with this, or it's documented anywhere?

    Thank you.

    You can do the installation, given that the data are large enough volume, using Data Pump or transportable tablespaces will be faster than the initial load using GoldenGate. Download caught up target (so for you make the instantiation and loading data, you use extracts on the source, and then these trails can be applied to get the target caught up). When you're all in sync, you now have master 1 and the database target of GoldenGate as your master-master. It must also take into account what the two-way replication, so a part of the work will be put in place of the extract, datapump (GoldenGate) (same name, wish that could turn one of these days) and replicate. Also, you do the DDL replication?

    Another factor to consider is the cost. Water is free, GoldenGate is not (by far). But, GoldenGate is much easier to use. But if stream works very well, what is your return on investment on passage? If you were from scratch and had the funds, I'd go with GoldenGate. Otherwise, you really have to sell people on why spend a significant amount of money is worth TI/better than what you have now, in my humble OPINION.

  • Good boot sequence of processes in Golden Gate

    Golden Gate version: 11.2.1.0.3
    DB version: 11.2.0.3 (Oracle for Oracle replication)
    Platform: RHEL 5.4

    We have a very basic replication requirement.

    Use of GoldenGate we must replicate the LMD to 9 tables (Uni-directonal) source to target. The two DBs running different physical servers.

    Is the right sequence of boot process?
    Step0. For initial load, I use exdp/impd of the tables from source to target. Now we the relevant tables in Source and Target in Sync
    
    Step1. Start Manager process in Source server
    
    Step2. Start Manager process in Target server (with DYNAMICPORTLIST )
    
    Step3. Start  PUMP process (secondary extract) in Source
              From googling, I gather that Pump process in souce can be started only after starting the manager process in Target.
              
              GGSCI (kepler121) 18> view param pump
              
              extract pump
              passthru
              rmthost 10.80.16.125, mgrport 7809
              rmttrail /u01/GG/11.2.1.0.3/dirdat/rt
              table scott.* ;
    
    Step4. Start the primary Extract process in Source
         
         -- Adding local trail
         ggsci > add extract pump , exttrailsource /u04/ggs_data/dirdat/yp
         
         --- Adding remote trail
         add rmttrail /u01/GG/11.2.1.0.3/dirdat/rt, extract pump
    
    Step5. Start the REPLICAT process in Target 
    Just for you remember, this issue is not on the complete steps in the configuration of GG. I just want to know the correct sequence in which processes in the Source and target must be started.

    Published by: GarryB on 26 December 2012 06:17

    The correct sequence will be

    Step0. For the initial charge, use PPC/experimental tables from source to the target. Now the relevant tables in Source and target are synchronized

    However, please note that after step 0, you can be sure that the two DBs are synchronized
    If there is no activity of the application passes to the source that could have
    Insert additional data that might have been missed by the export utility.

    Step 1. Process of the boot to the Source Server Manager

    Step 2. Start the process to the Server Manager target (with DYNAMICPORTLIST)

    Step 3. Start the primary Source extraction process

    Step 4. Launch of PUMP (excerpt from secondary school) in the Source

    Step 5. Start REPLICAT process in target

    Published by: Saran on January 2, 2013 08:56

Maybe you are looking for

  • Satellite C650-1CR - no webcam showing in Device Manager

    Hello I apologize if this question has already been posted. I have a Satellite C650-1CR; PSC08E-029001EN part number; Serial number 7A370192Q. Windows 7 64-bit operating system. The webcam, which has worked before, does not now in any program. In MSN

  • Digital camera with Satellite L30 problems

    Recently bought a Pentax digital camera. When I try to view pictures taken with a camera on my L30, a message appears "locate and install driver software.I click Yes, another message appears - insert disc that came with your Pentax camera, what I'm d

  • LAN 1, 2 &amp; 4 does not

    3 LAN is the only port that works, and then it is uneven at best... What can I do to fix this?

  • Trying to transfer VHS to DVD using the DVD Creator homepage but no sound

    I'm trying to transfer VHS to DVD with a DVD Creator Home.  The film is the registration, but no sound, don't follow the instructions in the manual

  • PB how to control a VI with connectors

    Hello I have create a VI and I try to control it with connectors but I do not have a good result, I would like to know what is the best way to do it. I used references, connectors or variable, but I never order a VI I don't know the best way to to do