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

Tags: Database

Similar Questions

  • Connect my Sql from Oracle

    Hi all

    I installed Oracle 10.2.0 Linux and My Sql installed in Windows, can someone explain me how to connect from oracle to my sql?

    Thank you
    Prakash S

    Prakash,
    You can use the database for ODBC (DG4ODBC) 11g gateway to connect to MySQL from Oracle.
    See the following notes in My Oracle Support for more details and information-

    Note to master note.1083703.1 for the Oracle Gateway products

    Note.233876.1 Connection Options abroad of banks of data and databases non-Oracle

    Note.466228.1 how DG4ODBC Setup on Linux x 86 32 bit
    Note.561033.1 how to Setup DG4ODBC on 64 bit OS Unix (Linux, Solaris, AIX, HP - UX)
    Note.466225.1 How to Setup DG4ODBC (database gateway for ODBC Oracle) on 32-bit Windows
    Note.1266572.1 How to Setup DG4ODBC (gateway for ODBC Oracle database) on 64-bit Windows operating systems

    Your RDBMS 10.2 should be 10.2.0.4 or 10.2.0.5 use DG4ODBC.

    Kind regards
    Mike

  • connection mysql and oracle ORA-28545: error diagnosed by Net8 when connecting to an agent

    Hi all

    I have Oracle 10.2.0.5 server and MySQL 5.3 on windows environment. all are 64-bit.

    I want to connect to MySQL. I do the following

    Configure Listner.ora

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PLSExtProc)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (= Extproc PROGRAM)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = ORCL)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (SID_NAME = ORCL)

    )

    (SID_DESC =

    (SID_NAME = mysql)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (PROGRAM = HSODBC)

    (ENVS = LD_LIBRARY_PATH = C:\oracle\product\10.2.0\db_2\LIB)

    )

    )

    LISTENER =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))

    )

    Tnsnames.ora configuration

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )
    MySQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST= 10.153.103.5) (PORT = 1521))
    (CONNECT_DATA =
    (SID = mysql)
    )
    (HS = OK)
    )

    create file initodbc.ora in the folder hs

    HS_FDS_CONNECT_INFO = mysql

    HS_FDS_TRACE_LEVEL = OFF

    Restart the listner

    tnsping

    C:\users\administrator > tnsping mysql

    AMT Ping Utility for 64-bit Windows: Version 10.2.0.5.0 - Production 08-NOV-2
    015 13:02:52

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Use settings files:
    C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.153.103.5)
    (PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS=OK))
    OK (0 msec)

    Create the connection odbc for Unicode

    the test is successful

    now, I create the dblink

    create public mysql database link to connect to cssDBTeam identified by oracle using "mysql";

    then try to select from a table inside the MySQL database

    SQL > select * from appeal@mysql;

    Select * from appeal@mysql

    *

    ERROR on line 1:

    ORA-28545: error diagnosed by Net8 when connecting to an agent

    Cannot retrieve the text of the message NETWORK/NCR 65535

    ORA-02063: preceding 2 lines of MYSQL

    How could I solve this problem?

    Thank you.

    Hello

    I realize that your problem is that 10.2 HSODBC was never focused on the Windows 64-bit platform and was only available on 32-bit Windows.  You can not install the 32-bit on WIndows 64-bit HSODBC.

    Your only option is to install 11.2 DG4ODBC on your platform Windows 64 - bit, or if you have a RDBMS 10.2 installed on another platform, then you could use HSODBC as part of this installation and connect from the RDBMS on Windows 64 - bit using the links in the database.  HSODBC 10.2 software could not be installed as a stand-alone product and was only available as part of an RDBMS install.

    Kind regards

    Mike

  • ORA-28500 and ORA-02063 connecting MySQL to Oracle.

    Dear all,

    My database is Oracle 11 GR 2 Rac 2 knots and on 64-bit Linux operating system.
    Version of my MySQL database is 5.5.17 it's the Linux 32-bit operating system.

    I am trying to connect to MySQL database to Oracle database using a database link.

    Here is the step by step process that I followed to reach my goal. All my processes are on an Oracle RAC node.

    1)
    Yum install mysql-connector-odbc
    Yum install unixODBC

    2)
    Edit the file /etc/odbc.ini
    [test]
    Driver = /usr/lib64/libmyodbc3.so
    Description = MySQL ODBC 3.51 Driver DSN
    SERVER = 10.0.0.1
    PORT = 3306
    USER = test
    Password = test
    Database = test
    OPTION = 3
    SOCKET =

    3)
    Edit the /etc/odbcinst.ini file
    [MySQL]
    Description = ODBC for MySQL
    Driver = /usr/lib64/libmyodbc3.so
    Setup = /usr/lib64/libodbcmyS.so
    FileUsage = 1

    (4) test connection
    isql - v test test test
    Returns:
    ---------------------------------------
    | Connected!
    | |
    | SQL query |
    | help [tablename] |
    | quit smoking |
    | |
    ---------------------------------------
    SQL >

    (5) now, I change the listener.ora file and add the entry. After the entry of my file listener.ora is like this:

    LISTENER =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = CIP)(KEY = LISTENER))
    (ADDRESS = (PROTOCOL = TCP)(HOST=testnode1) (PORT = 1521))
    )
    )

    # line added by Agent
    LISTENER_SCAN1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = LISTENER_SCAN1))
    )
    )

    # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON # line added by Agent

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (PROGRAM = dg4odbc)
    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = test)
    (ENVS = LD_LIBRARY_PATH = usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    )
    )

    (6) after these entries, the listener after REBOOT status is as follows:

    LSNRCTL > status
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start date December 27, 2011 01:19:32
    Uptime 0 days 9 h 31 min 12 sec
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file
    The listener log file /U01/app/grid/diag/tnslsnr/racnode1/listener/alert/log.XML
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = LISTENER)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=testnode1) (PORT = 1521)))
    Summary of services...
    Service '+ ASM' a 1 instance (s).
    Instance '+ ASM1' READY State, has 1 operation for this service...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    Service 'test' has 1 instance (s).
    Instance of 'test', status UNKNOWN, has 1 operation for this service...
    Service 'testdb' is 1 instance (s).
    'Testdb1' instance, State LOAN, has 1 operation for this service...
    Service 'racdbXDB' has 1 instance (s).
    'Testdb1' instance, State LOAN, has 1 operation for this service...
    The command completed successfully

    (7) then in the tnsnames.ora file, I added the following entry:

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = EXTPROC1521)
    )
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )


    test =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SID = test)
    )
    (HS = OK)
    )

    When I test tnsping, it works.

    (8) I change the file .bash_profile for Oracle
    ORACLE_HOME, ORACLE_BASE were already pointing to the right destination, I added:

    LD_LIBRARY_PATH=/usr/local/lib:/U01/app/Oracle/product/11.1.0/Db_1/lib:/U01/app/Oracle/product/11.2.0/dbhome_1/HS/lib:/usr/lib64:/usr/lib
    export LD_LIBRARY_PATH

    ODBCINI=/etc/ODBC.ini
    Export ODBCINI

    ODBCINSTINI=/etc/ODBC.ini
    export ODBCINSTINI

    ODBCSYSINI = / etc
    export ODBCSYSINI

    (9) then I configured $ORACLE_HOME/hs/admin/inithsodbc.ora
    And modified these lines:
    HS_FDS_CONNECT_INFO = test
    HS_FDS_TRACE_LEVEL = WE
    HS_FDS_TRACE_FILE_NAME = odbc_test.log
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_SUPPORT_STATISCTICS = FALSE
    HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    Set = /etc/odbc.ini ODBCINI

    (10) then I created a link of database with the following command:
    Create a database connection test audience to connect to test identified by test using 'test '.

    Also I tried the username and password in the database link with double quotes.

    (11) now finally when I try to select records from a mysql table:
    Select count (*) from "table"@"test" -I tried with and without double quotes

    I get the following error:

    ERROR on line 1:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    ORA-02063: preceding the TEST line

    How to pass through this error and how do I check the logs for HS?

    Your help is needed.

    Best regards, Imran

    Published by: misterimran on December 27, 2011 13:21

    Hello
    You had your listener.ora for the DG4ODBC entry-

    (ENVS = LD_LIBRARY_PATH = usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)

    but it should also include the path to the driver manager directory which in your case is/usr/lib64 might then you add this?
    The error:

    Unable to load the ODBC library symbol: usr/lib64/libmyodbc3.so(SQLSetDescRec)

    indicates the lib64 directory are not accessible.

    The entry should look like-

    (SID_DESC =
    (PROGRAM = dg4odbc)
    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = test)
    (ENVS = LD_LIBRARY_PATH = usr/local/lib:/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
    )

    Spaces may have bene lost at the time of publication, but at least there should be a space in the file as indicated by the .
    After the change is made and then stop and start the listener.
    If you still have problems, please post again the current versions of the configuration files, the complete errors figure in SQLPLUS to a select statement and the output of a trace debugging with errors.

    According to the information you use the 3.51 MySQL ODBC driver so could you also try with the latest version of the 5.1 driver and see if you have the same problem?

    Kind regards
    Mike

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

  • MySQL for Oracle Database Migration

    I'm migrating 75 Tables of MySQL (5.0.18) to Oracle (10.2.0.1.0) using SQL-Developer (2.1.1.64)

    Below are the steps to follow to a State where I'm stuck:

    1: opens a connection with MySQL (5.0.18) which has * 86 * databases.
    2: open another connection with Oracle (10.2.0.1.0); a new installation.
    3: just clicked one of the MySQL database and selected ' + * Capture schema * + ".
    After the capture, this particular database appeared on ' + * models Captured * + ".
    4: right-click on this model converted, that says "* [email protected]:3306 (MySQL), etc. * ' and selected ' + convert model Oracle +".
    5: nothing appeared on the "* Converted models."

    ~~~~~~~~~~~ Stuck ~~~~~~~~~~~

    Another thing:
    -If I select different tables of the database under "* models Captured *" and then convert them then ' * SQL Developer * "generate converted models.
    -If I repeat anyone else of tables "* Converted model *" are generated.

    Am I suppose to repeat this step for each Table, the trigger, view etc.?

    Thank you


    Edited by: user13397582 on August 26, 2010 06:08_

    Also the * 'Script' * output even * "name of the constraint *; Viz

    + Cdr5 ALTER TABLE ADD CONSTRAINT PRIMARY PRIMARY KEY (table_id) ENABLE; +

    Constraint must have derived the name of the table. Otherwise, you will have repeated migrations:

    Error report:*.
    SQL error: ORA-02264: name already used by an existing constraint
    + 02264. 00000 - 'name already used by an existing constraint ' +.
    * Cause: The specified constraint name must be unique. +
    * Action: Specify a name for the constraint unique constraint. +

    Published by: user13397582 on August 26, 2010 06:08

    Which JDK version do you use?

    There is a problem with SQL Developer 2.1.1 with JDK1.6 less than 18 years of age and older, during the conversion of a migration phase, with exactly the symptoms you describe.

    If you use one of these JDK could you try to install JDK1.6 U17?

    Concerning
    Wolfgang

  • Link to database for MySQL with Oracle Express

    Hello Oracle Community,

    I made a post on this topic already in the section general, but here is the best place for my question. My goal is to access a mysql to oracle server. Some info about my system and what I've done so far:

    Windows Vista 64-bit
    Oracle Express 10.2

    -installed 32-bit DNS ODBC driver for the database mysql, tested and it succeeded, the name is CHANCE
    -created a new file in the folder admin/hs initLuck.ora, prameters are: HS_FDS_CONNECT_INFO = CHANCE HS_FDS_TRACE_LEVEL = OFF
    -new section in the listener.ora: (SID_DESC = (SID_NAME = CHANCE) (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server) (PROGRAM = hsodbc))
    -new section in my tnsnames.ora: CHANCE = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = GOGAPC01001)(PORT = 1521)) (CONNECT_DATA = (SID = CHANCE)) (HS = OK))
    -inexplicable the listener
    -Do a bit of luck, success of tnsping
    -created a link of database: CREATE DATABASE LINK LUCK24 CONNECT TO 'user' IDENTIFIED BY 'password' USING 'LUCK24 ';
    -tried to do a simple select statement: SELECT COUNT (*) FROM customers@LUCK;

    and there I get an error message:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [Generic connectivity using ODBC] [Microsoft] [ODBC driver manager] Der Datenquellenname wurde nicht found, und're wurde kein Standardtreiber angegeben (SQL State: IM002;) SQL Code: 0)
    ORA-02063: preceding 2 lines of LUCK24

    can anyone help?

    Ikrischer

    Ikrischer,
    On which platform do you have installed the drivers 32 bit and HSODBC? He was on a Windows 32-bit platform? It is not supported to run the 32-bit software on a Windows 64-bit platform.
    There were some problems with versions 10.2.0.3 and earlier that are similar to those you typo - problems with bigint and select count. These are laid down in the 10.2.0.4 group of patches, so you should apply to your ORACLE_HOME 10.2 directories and see if the problem still occurs.
    However, as already said HSODBC 10.2 is now desupported you need to find to install 11.1.0.6 DG4ODBC and then apply the 11.1.0.7 patch group which also solves the problem.
    If you have access to My Oracle Support then see this note.

    Select columns MySQL Bigint use HSODBC returns an incorrect value when you use ODBC MySQL Connector (Doc ID 401086.1)

    Kind regards
    Mike

  • Trying to connect to a Web site, the following message displays error Impossible to connect to the database from the database. Could not connect to MySQL. It is only on a single Web site. What is c. What should I do?

    Could not connect to MySQL

    1. it sounds like a problem on server-side (which means there is nothing you can do about it probably)
    2. which site?

  • 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

  • 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

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

  • Insert and update records to MySQL from Oracle

    Hello

    Our application will be insert/update new records in the Oracle database, but I need to insert/update new records in the MySQL database. Oracle and MySQL tables have the same columns.

    Right now, we intend to create DBLink between Oracle and MySQL. The question is to know how to write code to insert/update new records to MySQL from Oracle. I'm a new guy in this area.

    Please give us some examples of code, thanks!

    With Oracle, you should be able to just write the same thing as usual, except for the include link database when you reference the table for example your SQL

    insert into tablename@mysqldblink...

    updating of the game tablename@mysqldblink...

    Services gateway through the database link (odbc drivers or anything else that is used) must make the most of the necessary conversions for you.

  • Check the connection to a remote Oracle database


    Hello

    I have an application that runs on a server that connects to an Oracle database on another server.  The application uses Java and JNDI to connect, there is no Oracle client installed on the server hosting the application.  The application seems to have been to connect to the database on the other server.  How can I check that the connection to the database still work from the server hosting the application?  Is there a software tool that I use does not require Oracle client must be installed.

    Thanks in advance

    Alanjo

    the connection request is saved in the file listener.log on the DB server

  • How to connect a mysql database host by OVH on Dreamweaver CC

    How to connect a mysql database host by OVH on Dreamweaver CC 2015?

    I can't.

    This good another document to make reference to:

    https://www.SiteGround.co.UK/tutorials/Dreamweaver/dreamweaver_mysql.htm>

    Good luck.

Maybe you are looking for