Oracle ---- DBLink ---- DB2

Hi Techies,
My requirement is to create a DBLink with SQL Server2000 (ofcourse from Oracle). I came to know about Oracle's Heterogeneous feature. Transaparent gateways, Agents are particulary interesting.
But, in an implementation wise, I need a case wise help, which can help me, as an end user, to set up Oracle, install the Gateway, configure the Agent, and anything to be done at SQL Server2000 side.
What should I do realize this?
Your help is genuinely appreciated.
Thanks and regards,
Malik

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

  • Best Practice to Setup an application to work with both oracle and db2 db

    Hi,
    We have an application that currently supports both oracle and db2 databases . It is currently using JPA with eclipselink as backend mechanism and we want to move to ADFBc as our backend . So what is best practice to do this?
    I came across an old post in https://groups.google.com/forum/#!topic/adf-methodology/UlJZSTu14Io that states to create two different model projects to support oracle and db2 .
    Is this still the standard ? Is there a way that we could work around rather than creating multiple projects?
    How do i get the view controller to work with multiple model projects if this is the case?
    Thank you.

    Thanks for the response .
    The problem is i would have the same schema on both the databases (both in oracle and db2) .
    I don't see a scenario where i want both the application model projects at the same time . What i meant is , Application will either be deployed with Oracle DB or DB2 but not with both on a production environment .
    So is there a way where i just change the connection parameters alone rather having two different models ?
    If i have to use two model projects ,  would it be possible say i built the view controller for Oracle , and use it for DB2 if i make sure the BC objects names are similar between model projects and switch just the model jar based on the deployment environment ?
    -Sam

  • Oracle dblink to sql server, accessing multiple database on same sql server under one dblink

    Hi, we have successfully managed to set up an Oracle dblink over to sql server and retrieve data.
    The sql server user were using via the dblink has access to more than one database on the same sql server
    But the question is how in oracle (if at all possible) do you prefix the sql statement to access this ?
    Eg:
    Sqlserver_prod has user sqlserver_user which appears to be set up as default database on sqlserver_db1
    But we have select access to sqlserver_db2
    all work fine as sqlserver_user
    select * from  table_fromdb1
    select * from  dbo.table_fromdb1
    select * from  sqlserver_db1.dbo.table_fromdb1
    as does
    select * from  sqlserver_db2.dbo.table_fromdb2
    over in Oracle
    Oracle_db has dblink sqlserver_prod.world connecting as sqlserver_user
    all working fine
    select * from "table_fromdb1"@sqlserver_prod
    select * from "dbo"."table_fromdb1"@sqlserver_prod
    but how (if at all possible) do I access from oracle
    sqlserver_db2.dbo.table_fromdb2
    without having to create a new sqlserver_db2_user referenced in a new dblink
    if oracle to oracle would be
    select * from remote_oracle_schema.table@remote_oracle_db

    Hi, ok cheers, I see, original gateway was connecting purely at host_name level
    HS_FDS_CONNECT_INFO=sqlserver_host
    Planning to amend this to be
    HS_FDS_CONNECT_INFO=sqlserver_host//sqlserver_db1
    With exisiting dblink
    And to create new gateway
    HS_FDS_CONNECT_INFO=sqlserver_host//sqlserver_db2
    With new exisitng dblink,will see how we get on
    Cheers again

  • 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

  • Using knowledge module LKM Oracle to Oracle (DBLINK)

    Hi,
    I'm using in an interface the LKM oracle to oracle(dblink) because my source and target data store are oracle. I run my interface but the operator give me the following error:
    1729 : 42000 : java.sql.SQLException: ORA-01729: database link name expected
    In the descriptions there is this implementation:
    create database link     
    connect to          APPS
    identified by          <@=snpRef.getInfo("SRC_PASS") @>
    using          ''
    So it seems that it doesn't create the database link, also if i have set the AUTO_CREATE_DB_LINK to Yes!
    Why? Someone can help me? How can I set the database link?
    Thanks

    Hi,
    go to your Physical Server and put the DBLink name on correspondent box at first edit window...
    Does it help you?

  • LKM Oracle to Oracle (DBLINK)

    As it says in the component description - "This module is recommended when developing interfaces between two Oracle servers." As that's what we're dealing with, we make it the default KM for our ELT interface development.
    I have three questions relating to this module:
    (1) For interfaces between two Oracle servers - would you choose this LKM as your preferred loading module?
    (2) When creating many interfaces (say a hundred), would you create a permanent public database link or use the AUTO_CREATE_DB_LINK option that comes with the loading module? Ie. have the module auto-create and drop a db link.
    (3) If using the AUTO_CREATE_DB_LINK option, we open the module, make it the default KM for this pair of Technologies and set it to true under "Options" (the default is false) and save it. However when creating a new interface, we go onto the "Flow" tab and there we find in the LKM, the AUTO_CREATE_DB_LINK defaulting to false - not true. Have we missed something?
    Thanks.

    843217 wrote:
    As it says in the component description - "This module is recommended when developing interfaces between two Oracle servers." As that's what we're dealing with, we make it the default KM for our ELT interface development.
    I have three questions relating to this module:
    (1) For interfaces between two Oracle servers - would you choose this LKM as your preferred loading module?
    Yes
    (2) When creating many interfaces (say a hundred), would you create a permanent public database link or use the AUTO_CREATE_DB_LINK option that comes with the loading module? Ie. have the module auto-create and drop a db link.
    Will create a DBLink explecitely . Otherwise if one interface I1 is running it will create DB Link say D1 , now another interface I2 starts execution . It will first drop existing DB Link D1 and create it once again. I1 execution will fail if it still requires D1.
    (3) If using the AUTO_CREATE_DB_LINK option, we open the module, make it the default KM for this pair of Technologies and set it to true under "Options" (the default is false) and save it. However when creating a new interface, we go onto the "Flow" tab and there we find in the LKM, the AUTO_CREATE_DB_LINK defaulting to false - not true. Have we missed something?
    Expand LKM Oracle to Oracle (DBLINK)
    Open option AUTO_CREATE_DB_LINK by double clicking onto it
    Goto default value and form drop down set it to YES
    Thanks,
    Sutirtha
    Thanks.

  • 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

  • Oracle  for  DB2 UDB DBA's

    Hi,
    In our  shop  management  decided  to  migrate  few  SAP R/3 applications  to  Oracle 10G (RAC)  from DB2 UDB.  I am  a  DB2 UDB DBA.  i  want  to  learn Oracle. Is  there  any manuals  or  published  books for Oracle DBA  for DB2 UDB DBA's in SAP environment.
    As  i  am  not  new  to  DBA world, i  want  to  compare Oracle with DB2 UDB . So that  i  can  learn Oracle fast.
    Regards,
    Sunil Gutta

    > As  i  am  not  new  to  DBA world, i  want  to
    > compare Oracle with DB2 UDB . So that  i  can  learn
    >  Oracle fast.
    have a look here:
    -> <a href="http://www.redbooks.ibm.com/abstracts/sg247048.html">Oracle to DB2 UDB Conversion Guide</a>
    it's the other way round but should give you enough to work on
    GreetZ, AH

  • How to move sql server DB to oracle and DB2 to oracle

    Hi ,
    I would like to like to know what is the work involved when
    i want to retire sql server database and move to oracle and db2 to oracle.
    Please let me know the tools used for this purpose or wha should be done actually.
    Thanks in advance

    For the SQL Server migration you could use the SQL Developer utility. More details can be found at:
    http://www.oracle.com/technetwork/database/migration/index-084442.html
    This SQL Developer based migration utility also supports DB2 migrations when the Db2 database is a UDB DB2 V7, V8 or V9 and if it is running on LUW. For ALL other DB2 databases no actual migration utility is available. Possible alternatives might be Golden Gate, Oracle Database Gateway or the SQL*Loader utility.

  • 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

  • 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

  • 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

  • PowerPlant passive Oracle dblink to read data from SAP ECC?

    Hello
    We have a third party vendor named PowerPlant that is proposing to integrate with SAP ECC using a passive dblink to pull data into PowerPlant.  This is proposed when SAP ECC is running on an Oracle database.  Presumably this is a read-only connection to the SAP ECC Oracle database (at database level).  Has anyone used this and/or have recommnedations for or against?
    Thank you,
    Harold

    Hi Harold,
    Technically it is possible but, check your Oracle license with the local SAP office. As far as I know that SAP is not permitted 3rd party connections to the database.
    Best regards,
    Orkun Gedik

  • Oracle dblink to mysql in Linux machines

    Hi,
    I want to make a dblink between to linux machines, one with oracle 11g database and the other with MySQL 5.0.77 database. The objective is to create triggers on a few tables in the oracle side and automatically synchronize it with same other tables in the mysql side. Can someone explain me how to accomplish this?
    Thanks in advance
    Edited by: 859234 on 18/Mai/2011 7:23

    Hi,
    To connect to MySQL from Oracle you can use the Database Gateway for ODBC (DG4ODBC). There are various notes available in My Oracle Support which give details of the setup -
    Note.1083703.1 Master Note for Oracle Gateway Products
    Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
    Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX)
    Once you have the gateway installed and configured you can refer to MySQL tables in the triggers using the gateway database link.
    However, you need to be aware that DG4ODBC does not support distributed transactions so you would need to have a commit between any Oracle updates and updates to MySQL in the trigger, so you would need to be careful about error checking.
    Regards,
    Mike

  • Pros and cons Oracle vs DB2

    Hi,
    We are studying the possibiliy to change our oracle database to DB2. We need to know if someone made the change and found advantages and disadvantages between the two databases.
    Our SAP runs on HP-UX and has a lot of  Z developments, we know that may be necessary to modify many of them to optimize the readings on the database.
    any comments would be helpful.
    thanks in advance
    Gonzalo

    > We are studying the possibiliy to change our oracle database to DB2. We need to know if someone made the change and found advantages and disadvantages between the two databases.
    Given the fact that you opened the thread in the DB2 for z/OS forum you mean that you're planning to migrate your systems to z/OS?
    > Our SAP runs on HP-UX and has a lot of  Z developments, we know that may be necessary to modify many of them to optimize the readings on the database.
    Well - you answered the question yourself already; you have to decide whether it makes sense to migrate a database from A to B in your environment.
    The program changes that may become necessary are only a one-time issue that comes with each migration. After that you should be safe. Also keep in mind that this kind of migration must be done by a certified migration consultant on-site (http://service.sap.com/osdbmigration).
    I suggest you call your SAP sales rep and get a test-/evaluation license from SAP for DB2 and a do a test migration to see what you'd need to do with your developments.
    Markus

Maybe you are looking for