Dblink from oracle to db2

Hi all,
please, can you explain me steps to create a database link from Oracle 10gR2 to DB2?

Hi,
You need to install one of the Database Gateways -
11.1 Database Gateway for DRDA (DG4DRDA)
11.2 Database Gateway for DB2 (DG4DB2)
11.1 or 11.2 Database Gateway for ODBC (DG4ODBC)
After the gateway is installed and configured then you create the database link which uses the gateway to manipulate data on DB2 - select, insert, update and delete, for example -
select * from db2_table@gateway_db_link ;
The database link is created using a tnsnames.ora entry which references the gateway setup.
There is further information on the gateways available on My Oracle Support and OTN.
If you want more specific detail then let us know -
- if you have a gateway installed already and which one if so
- what version of Oracle you are using
- platform where Oracle is running
- version of DB2 to access
- platform where DB2 is running
Regards,
Mike

Similar Messages

  • Database link from oracle to db2

    Can any help me to create a database link from oracle to db2. It would be greatful if you can provide me detail steps

    <p>You don't give us much information to go on. What version of Oracle? What platform is DB2 running on? You might want to take a look at <b>this</b>. You might also look <b>here</b> and <b>here</b>.</p>
    Tom

  • Re Migrating from Oracle to DB2

    Hi All,
    We are migrating from Oracle to DB2, so just wanted to know what will be the impact when we do this, i mean what all necessary steps should be taken to do so. I am a technical consultant involved in this project so not much idea regarding this.
    Also please let me know will it effect the custom i mean the Z programs that we have created. Please let me know regarding this.
    Thanks and Regards,
    Salish.

    > We are migrating from Oracle to DB2, so just wanted to know what will be the impact when we do this, i mean what all necessary steps should be taken to do so. I am a technical consultant involved in this project so not much idea regarding this.
    A heterogeneous migration (changing database and/or operating system) implies a certified migration consultant doing the migration, otherwise you'll loose support from SAP for problems during the migration and for the target system (http://service.sapcom/osdbmigration --> FAQ).
    > Also please let me know will it effect the custom i mean the Z programs that we have created. Please let me know regarding this.
    Depending on how you access the data you may need to increase/delete indexes or change the programs to get a better speed.
    Markus

  • Migration from Oracle to DB2 UDB on Unix

    Hi SAP Expert
    We have different SAP landscape  in our company on Oracle DB
    Due to High Oracle Licensing cost we are planning to migrate our Database to DB2 to reduce license cost
    I would like to know how Reliable DB2 is for SAP? What is % of SAP installation on DB2 worldwide
    Also will there be challenge migrating DB from Oracle to DB2
    I would appreciate if you can provide guidance on the question
    Thanks in advace
    Thanks
    Deelip

    > I would like to know how Reliable DB2 is for SAP? What is % of SAP installation on DB2 worldwide
    DB2 was and is used on quite a number of internal SAP systems that create support packages (if you check the import logs of the support packages and search for "source system).
    SAP doesn't give any exact numbers of installations compared to other databases, they did that in the past.
    > Also will there be challenge migrating DB from Oracle to DB2
    As with every database migration you'll have to check your custom programs and secondary indexes, backup strategies and methods and such.
    > I would appreciate if you can provide guidance on the question
    Be aware of the fact that you must have a certified migration consultant doing the migration on-site, otherwise SAP will deny OSS support and bill (see http://service.sap.com/osdbmigration).
    Markus

  • DBLink From Oracle 9i server to Oracle RDB Server

    Hi,
    i have to take access a table which is on ORACLE RDB server from Oracle 9i server...
    I have tried this many times......but not succeed. plz help me its very urgent.

    Hi..
    What did you do...did you create a dblink...is there some error ..
    To create the dblink you can use
    create database link <name> connect to <username_of_remote_db> identified by <user's_password> using '(DESCRIPTION =
         (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.x.x.x)(PORT = xxxx))
          (CONNECT_DATA =
            (SID = remote_db_sid)
           (SERVER = DEDICATED)
      ;Refer to link: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#SQLRF01205]
    Anand

  • SAP Database Migration from Oracle to DB2

    Hi All,
    Our client has decided to move the SAP database from Oracle 10.0.2 to IBM DB2. We will like to know list of activities which are required to be done from application side to support this.
    Also we want to know on how to find the report / interfaces where the code is written in native SQL (PL SQL) and not in open SQL (ABAP).
    Any pointers in this regard will be useful. Thanks.
    Best Regards,
    Vithal

    > Our client has decided to move the SAP database from Oracle 10.0.2 to IBM DB2. We will like to know list of activities which are required to be done from application side to support this.
    http://service.sap.com/osdbmigration
    > Also we want to know on how to find the report / interfaces where the code is written in native SQL (PL SQL) and not in open SQL (ABAP).
    I don't think there's an easy way to find that out.
    Markus

  • Dblink from Oracle to Mysql error PLZ HELP!!!

    Hi All,
    I am getting the following error when i am creating a databaselink to connect from oracle 10g to mysql 5.1.
    SQL> select * from ahmed_table@ahmedmysql3;
    select * from ahmed_table@ahmedmysql3
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from AHMEDMYSQL3My ODBC database source name is ahmedmysql
    created file initahmedmysql.ora in hs/admin contents of which are
    HS_FDS_CONNECT_INFO = ahmedmysql
    HS_FDS_TRACE_LEVEL = offListener.ora contents
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = orcl)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
    hmedmysql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = rc-6799)(PORT = 1521))
    (SID_NAME = ahmedmysql)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = hsodbc)
      )Tnsnames.ora
    ahmedmysql = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = RC-6799)(PORT = 1521)) (CONNECT_DATA = (SID = ahmedmysql)) (HS = OK))I have searched on this site no one seems to have had found a solution!
    Is this a bug or am i missing something in the configuration,
    appreciate your help,
    regards,

    28545, 0000, "error diagnosed by Net8 when connecting to an agent"
    // *Cause:   An attempt to call an external procedure or to issue SQL
    //           to a non-Oracle system on a Heterogeneous Services database link
    //           failed at connection initialization.  The error diagnosed
    //           by Net8 NCR software is reported separately.
    // *Action:  Refer to the Net8 NCRO error message.  If this isn't clear,
    //           check connection administrative setup in tnsnames.ora
    //           and listener.ora for the service associated with the
    //           Heterogeneous Services database link being used, or with
    //           'extproc_connection_data' for an external procedure call.

  • How to create a DBlink from oracle database on unix to sqlserver

    Hi
    I need to create a database link from oracle database on solaris machine to sqlserver database.I found that the database link cannot be created from oracledatabase 10g to microsoft sqlserver.So i am planning to go for another windows server where i can pull this data from sqlserver to oracle 10g database on windows and then from windows to unix.
    Can you explain me how can i create a database link from orace 10g on windows to sqlserver.

    HI
    Thanks for your response.
    But the thing is i am looking whether if u can create a database link from oracle to sqlserver from unix.If that's the case what is the driver i require and if not how can i do it ?
    I am ready to create a intermediate windows server where i can pull the table temporarily and then from there to unix box.
    If i can do it windows how can i achieve that.
    Thanks

  • Dblink from Oracle 9.2 to Oracle 7.3

    I have created a link from Oracle 9.2 to Oracle 7.3 without a problem. However, when I try to use it I get the error "ORA-24439: Connections to Oracle7 server are no longer supported
    ORA-02063: preceding line from link_name"
    Would Heterogeneous Services help in this situation?
    Thanks.
    klb

    I suppose you could set up Heterogenous Services, have it use an ODBC connection to the 7.3.4 database (you'd need an Oracle client install of 7.3.4 - 9.0), and then the link would work. That is likely to be a pretty significant effort, though.
    Is it possible for you to upgrade the 7.3.4 database or downgrade your 9.2 database to 8.1.7 or 9.0?
    Justin

  • How to create dblink from oracle to sqlserver

    sqlserver:10.5.0.61
    sqlserver 2005
    windows server 2003
    oracle:10.30.16.19
    9.2.0.6
    solaris
    i installed oracle 9i transparent gateway on 10.5.0.61, and the follows are my config files :
    10.5.0.61:
    D:\oracle\ora92\tg4msql\admin\initvatdata.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Transparent Gateway for SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO="SERVER=10.5.0.61;DATABASE=vatdata"
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\oracle\ora92\network\admin\listener.ora
    # LISTENER.ORA Network Configuration File: D:\oracle\ora92\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.5.0.61)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = vatdata)
    (PROGRAM = tg4msql)
    (SID_NAME = vatdata)
    (ORACLE_HOME = d:\oracle\ora92)
    then i create dblink on 10.30.16.19:
    CREATE PUBLIC DATABASE LINK "DB_SQLVAT"
    CONNECT TO "vatsfc" IDENTIFIED BY "guest"
    USING '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.5.0.61)(PORT = 1521))
    (CONNECT_DATA =
    (SID = vatdata)
    (HS = OK)
    sys@BARORA> select * from dbo.tb_result@DB_SQLVAT;
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from DB_SQLVAT
    can you give me some advice? thanks very much!

    when run lsnrctl stat on 10.5.0.61:
    C:\Documents and Settings\Administrator>lsnrctl stat
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-1月 -2011 12:54
    :16
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    LISTENER 的 STATUS
    别名 LISTENER
    版本 TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
    tion
    启动日期 13-1月 -2011 12:54:13
    正常运行时间 0 天 0 小时 0 分 3 秒
    跟踪级别 off
    安全性 OFF
    SNMP OFF
    监听器参数文件 D:\oracle\ora92\network\admin\listener.ora
    监听器日志文件 D:\oracle\ora92\network\log\listener.log
    监听端点概要...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.5.0.61)(PORT=1521)))
    服务摘要..
    服务 "vatdata" 包含 1 个例程。
    例程 "vatdata", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
    命令执行成功

  • Can you please look into this: Dblink from Oracle to postgres

    https://forums.oracle.com/message/11204905#11204905

    You posted this just 3 minutes after posting in the other forum.   This is essentially crossposting.  The other forum is probably the more appropriate one for your question.
    Patience, Grasshopper
    You posted this follow-up a mere 3 minutes after posting in the other forum
    These forums are not a chat line, and not paid support.
    Everyone here has a job for which they are paid, and this forum is not it.
    No one is responsible for monitoring it and giving a quick response. 
    Furthermore, it is a global forum.  The person with the information you seek may very well live 20 time zones away from you and was going to bed just as you posted. He will not even see your post for several more hours. 
    Your original post went up in the middle of the night for half the world.
    =====================
    Oh, and by the way, "This is not working" is totally devoid of any actionable information.  Oracle emits actual error codes for a reason.

  • Oracle DB Link from Oracle to SQL Server

    Dear buddies,
    I am trying to create a dblink from Oracle to SQL Server.
    This is my tnsnames.ora
    sq =
    (DESCRIPTION=
       (ADDRESS=(PROTOCOL=tcp)(HOST=LOCALHOST)(PORT=1521)
       (CONNECT_DATA=(SID=sq))
       (HS=OK)
    )This is my listener
    SID_LIST_LISTENER =
      (SID_LIST =
          (SID_DESC =
          (SID_NAME = sq)
          (ORACLE_HOME = D:\oracle\product\10.2.0\db_2)
          (PROGRAM = hsodbc)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
      )initsq.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = sq
    HS_FDS_TRACE_LEVEL  = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>I have created my System DSN for sq with the appropriate values which works fine when I tested the connection.
    These 2 databases are in different servers.
    This is how I created the db link in Oracle
    create public database link sq
    CONNECT TO XXX IDENTIFIED BY "XXX"
    using 'sq'
    select "Column1"
    from "Table1"@'sq';The error I receive is: ORA-01729: database link name expected
    When I try to recreate the database link it tells me that: ORA-02011: duplicate database link name
    I hope someone could guide me.
    Thanks.

    C:\Documents and Settings\Administrator>tnsping sq
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.4.0 - Production on 16-AUG-2011 14:48:40
    Copyright (c) 1997,  2007, Oracle.  All rights reserved.
    Used parameter files:
    D:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    C:\Documents and Settings\Administrator>

  • DBLink Between Oracle 8i and Oracle 9i

    Hello,
    Can anyone help me with this question....
    Can a you create a DBLink from Oracle 9i database to Oracle 8i database (or vice versa)? Is it supported by Oracle?
    AJ

    Hi,
    Yes it is supported and it works fine but there is a known bug.
    If your 8i database is 8.1.6 and if you have a table with a LONG column in that database you won't be able to create a view in your 9i database that will access the LONG column of the 8.1.6 table. If you do that you will get an ORA-00600.
    It is fix with 8.1.7.4.
    Bye

  • ORACLE AGAINST DB2

    Hello everybody,
    in my company, we are running our SAP mission critical application on HP-UX systems based on Itanium tecnology.
    We are using Oracle database. Oracle recently announced that it won't release anymore the Itanium certification for new versions (starting from version 12).
    So, all people using Itanium with Oracle  platform have to decide the way to follow for the middle-long term.
    A solution should be to migrate the SAP installation from Oracle to DB2.
    Can someone tell me which is the SAP position on that topic (ORACLE or DB2) and  if there are benchmarks to compare SAP systems using Oracle and DB2?
    Thanks in advance
    Augusto

    > A solution should be to migrate the SAP installation from Oracle to DB2.
    Yes, or migrate to MaxDB on HP-UX, Sybase ASE on HP-UX or Windows with SQL Server
    Keep in mind that IBM may to a likewise step as Oracle in the future and stop developing DB2 on HP-UX/IA64 because the marketshare is decreasing even more.
    To stay with Oracle you could also migrate to Linux (on x86_64) and Oracle so you can keep your database.
    > Can someone tell me which is the SAP position on that topic (ORACLE or DB2) and  if there are benchmarks to compare SAP systems using Oracle and DB2?
    http://www.sap.com/benchmarks
    Generally all databases available and released for SAP products can be treated more or less "similar" in sense of performance. If you check the benchmarks there's not a big difference between the databases. It's more a question of features and eventually maintenance fees.
    Markus

  • ERROR while connecting to Netezza Database from oracle 10g via dblink.

    Gurus,
    We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    Server and/or port attributes are empty {HY000,NativeErr = 33}

    Manik wrote:
    We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    Server and/or port attributes are empty {HY000,NativeErr = 33}Always test ODBC client connectivity on the Oracle server to the remote and foreign database, first. Use the isql ODBC client command line interface (as the oracle or grid o/s user).
    If this does not work, then Oracle HSO will also not work.
    Once you have confirmed that this is working, then configure the HSO service for Oracle.
    If that fails, enables ODBC client tracing for that HSO service (in the init file for that service) to see exactly what ODBC calls Oracle is making and which of these are failing.

Maybe you are looking for

  • Time Machine External Hard Drive not visible

    I use a hard disc attached to a new mac mini (2014) for my time machine backups.  I have an apple airport extreme base station.  I have two macbook pros on the network.  One of the machines accesses the hard drive attached to the mini with no problem

  • In search for a COMPLETE mobile from nokia

    I have been a consistent nokia user, primarily due to its sturdiness. 3315 to 2600 to 2626 to 2700 classic to X2-02 to 206 ............. that has been my nokia graph ..... For long I have been looking forward to nokia for a dual-sim mobile with both

  • Two foreign keys to one primary key

    I'm having trouble displaying information for two foreign keys in my table. My goal is to display the first and last name of both a Project Manager and Account Manager. I have a "Jobs" table linked to an "Employees" table. Jobs ProjectMgrID AcctMgrID

  • JDBC Not INSERTING Data

    Hi All, I'm having a real problem with the below method titled Not Working:. This method will INSERT data into a MS Access data base all day long, but it will always insert it at the same record. It never actually creates a new record, inserts the da

  • Problems with iTunes after installing an SSD/HDD on my Macbook Pro

    Hello everybody, I decided to install a SSD on my Macbook Pro, replacing the optical drive with it, then I set up the new disk to be the boot drive and left the HDD on its place to store media and stuff. Obviously, my library now is on the HDD, but w