Connection to DB2

Hi all,
I need to connect to DB2 Database using the JDBC Adapter. I have deployed the following jar files in my XI system,
db2jcc.jar
db2jcc_license_c.jar
But still im getting the following error,
Error during database connection to the database URL 'jdbc:db2://10.236.70.114:50000/EPEDIGRE' using the JDBC driver 'com.ibm.db2.jcc.DB2Driver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:db2://10.236.70.114:50000/EPEDIGRE': com.ibm.db2.jcc.a.SqlException: [ibm][db2][jcc][1078][11539] Expired JDBC driver. IBM DB2 JDBC Universal Driver Architecture 3.1.5 Test Build expired on 12/30/06 12:00 AM.'
please help me.

hi
give the
JDBC DRIVER = oracle.jdbc.driver.OracleDriver
connection = jdbc:oracle:thin:@<ip address>:<port no of oracle db>:dbname
check u r user name & pasword
check u query sql statement & update sql statement

Similar Messages

  • Connecting to db2 from report builder via odbc

    Hi!
    Some manuals said, it is possible to connect to DB2 from Oracle SQL*Plus (we have version 8.0.6.0.0)
    and from Oracle Report Builder.(6.0.8.11.3)
    User must install OCA (Oracle Open Client Adapter for ODBC (6.0.5.29.0)) and make ODBC entry.
    I did it.
    run with: plus80 db2user/db2pass@odbc:db2test
    SQL*Plus made the connection, but with errors:
    SQL*Plus: Release 8.0.6.0.0 - Production on Fri Oct 17 16:12:56 2003
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    ORA-00022: invalid session id; access denied
    ORA-00022: invalid session id; access denied
    ORA-00022: invalid session id; access denied
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    Server not available or version too low for this feature
    ORA-00022: invalid session id; access denied
    Connected to:
    Oracle Open Client Adapter for ODBC 6.0.5.29.0
    DB2/NT 08.01.0000
    SQL>
    The error refers PUPBLD.SQL, but I think it is Oracle specific, don't help.
    Worse, that it can't connect from Report Builder, it just throws error.
    If I set OCA_DEBUG=TRUE in registry, I have bonus messages:
    oca-30053 unsupported network call (oracle code: 3115)
    oca-30002 ubofssw function not supported (1010)
    I tried to connect to MsAcces too, but I got same errors.
    Have you any idea, how can I solve this?
    Thanks

    resolved
    I just add the master entry in the c:\Report\NET80\ADMIN\tnsnames.ora, and it works.
    but I can't connect with the system or sys accounts, it work just with scott/tiger.

  • Error when connecting to DB2/AS400 as a Datasource

    Hi All,
    I have an issue when connecting to DB2/AS400 as w datasource with IR studio. I am able to create an OCE but when click on tables it throws an error saying ""INFORMATIC.DM3601PF" is an undefined name. SQLSTATEB704
    sqlstate = 42S02
    The drivers I used is the drivers provided by the IBM DB2 and also the Merant drivers provided for Hyperion by DB2. I used ODBC/DB2, ODBC/ODBC, ODBC/AS400 connection while creating an OCE but it did not help.
    The exact version of the database is DB V5R4--AS400--OS. It is a 64 bit client.
    Can anyone help!!!
    Thanks,
    Sree

    Hi,
    Connecting Hyperion with DB2 is simple. When we install DB2 client on the machine it adds a new entry in ODBC drivers, using that DB2 Driver create a system DSN by selecting the appropriate DB. Give the proper credentials.
    Now open Hyperion IR select new Database option...Select ODBC/DB2 and choose the DSN name given by you while creating the system DSN. give the correct credentials to connect to DB.
    After that it will ask for OCE creation...just create oce by giving app name and you are done with the connection.

  • Problem with connecting to DB2 from ADFBC

    I have a problem with connection to DB2 data using ADF BC components. Everything looks fine till I run the page(JSF) to see the data of a db2 table. I created a read only view object. This view is registered in the AM and from AM the view is returning the rows without any problem. But when I am running the page which has the view as a table these errors are thrown. Please help me to fix this.
    JBO-30003: The application pool (od.mft.views.MFTServiceLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:336)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:545)
    Thanks
    Gangs

    Steve, the tester works good as expected and its retreiving the rows. As I said earlier the problem is with the JSF page when I ran the page on Embeded Oc4j of Jdev the page showing the above. The exception does not show on the console.
    Please let me know if you need any more details.
    thanks
    Gangs

  • Oracle heterogeneous connectivity for DB2

    Hi,
    We want to connect DB2 database with Oracle 8i. We have read that it is possible with Generic connectivity and Transparent gateways.
    Any one knows the differece between the two when connecting to DB2?
    Which one is simpler if we have to use dblink concept
    Thanks,
    Ajay

    Dear Ajay,
    I used heterogenous connectivity to connect to DB2 but it is very very slow. And checked about Oracle gateway to Db2 and came to know that it is also very slow. The next solution was using ODBC to db2 using Forms 6i Patch 13. The connectivity is very good otherwise u can use DB2 Information Integrator software (cost about $20-50 K). If you need any more information please let me know.

  • Oracle 8i connectivity with DB2

    Hi,
    I want to connect to DB2 from Oracle 8i. I have read some documentation about Oracle gateways but it is not clear of how exactly we can connect to DB2.
    If any one has done this before please let me know th detail steps of how we can connect to DB2.

    For your kind information (more)
    When I used JDBC-ODBC Bridge,
    It just gave an error message : [Microsoft ODBC for Oracle]
    and
    when I tried the command at DOS prompt,
    javap oracle.jdbc.driver.OracleDriver
    it gave message ERROR: javap oracle.jdbc.driver.OracleDriver could not be found
    Please Help me
    Hara Gopal

  • What do I need to install on server BO to make a new connection to DB2 ?

    Hi experts,
    i'm on a RedHat Linux server, and the CMS DB is on Oracle, and all the universes are connected to Orale.
    Now I have to do a new universe that points to a new DB2 v9.7 data warehouse.
    1) What do I have to install on server to make my DB2 connection work?
    2) I've seen there are 2 diferent type of connection to DB2: "Client IBM DB2" and "Driver JDBC", what is the better connection?
    Best Regards
    Camillo Rospigliosi
    BO XI 3.1 SP2
    Linux RedHat 5 server
    Oracle 9 repository

    Hello,
    you have to install the DB2 Client on your BO Server. Please install the 32Bit Version ob the Client. After the Installation you have to cataloge your DB2 Database(s).
    Also you have to install the DB2 Client on your Development PC where you develope your DB2 based Universes.
    Regards
    -Seb.

  • How to connect to DB2 from ABAP program

    Hi,
    In my ABAP program I need to retrieve 3 fields from one table of DB2 database. I have tried creating an RFC connection in SM59 and then using native SQL in abap code but could not succeed.
    I have also maintained an entry in DBCON table but am unable to connect through program.
    Pls suggest.
    Thanx in advance.

    Preeti-
    DBCON may not work for you because your target is DB2. You SAP system should have the suitable driver files for connecting to DB2 and I don't think currently this is supported.
    However, there are other ways of doing it. One ofcourse is to use a middleware tool, which I guess you don't have in your landscape.
    If investing on a middleware tool is out of scope, here are other options
    1) If you are a microsoft shop, use .NET connector (freely downlaodable from SAP service market place). You can develop a .NET component which will use .NET connector for connecting to SAP and OBDC to connect to your AS400 system. The OBDC drivers can be obtained from IBM.
    2) If you are a java shop, you can develop a java code which can run on your AS400 system or a separte server (windows,unix..).
    This java code will use JRFC/JCO (again downloadable for free from SAP service market place) to connect to SAP while it will use Client access ODBC drivers or JT400 drivers (google JT400) to connect to your DB2 database.
    Though developing this is not a great deal, could be bit challenging if done for the first time. Let me know which way you wanna go and I can guide with more information/code samples.
    KK

  • DB Adapter connecting to DB2

    "We are using DB Adapter to connect BPEL (10.1.2.0.2) to DB2 V7 (Z/OS) using the DataDirect JDBC Drivers. If we connect using the DBA's username/password (SYSADM role), it seems to work fine. But if using any other user's username/password, we cannot see any tables/views/etc. from JDeveloper - and no schemas are available to choose from either. The DB2 DBA has not used JDBC to connect to their DB2 instance before - but cannot see any missing permissions for the non-DBA usernames. The catalog has public read permissions - and all of these users can see everything just fine if they go in through the normal green-screen console. Does anyone have experience with connecting to DB2 on Z/OS and can help us?"

    Hi Anuj,
    I tried the Option 2 given in the thread which you have mentioned.
    Our DataSource is targeted to the managed server so we just restarted the managed server.
    I am still getting the same error of
    "Cannot call Connection.commit in distributed transaction. Transaction Manager will commit the resource manager when the distributed transaction is committed."
    Are there any other alternative approach to fix this issue?
    Regards
    Nithya

  • Connect to DB2 from oracle 11g on windows 2008 server

    Hi Folks,
    I want to conenct to DB2 from oracle 11g using DB link.
    DB2 :
    user : db2user
    pwd : db2pwd
    database : db2database (OSBLDEV)
    able to connect to db2 server (installed on machine M1) using db2 client with above details from machine M2 (where oracle is installed).
    Oracle :
    user : orauser
    pwd : orapwd
    host : orahost
    port : 1521
    service : oraservice
    able to connect to oracle server using oracle sql developer with above details on Machine M2 (windows 2008 server)
    when i execute the query with database link
    select row_id from siebel.s_org_ext@OSBLDEV;
    I get the message : ORA-12154: TNS:could not resolve the connect identifier specified.
    could you pls check and let me know whether the below enteries are correct or not.
    Pls share if you have step by step connectivity from DB2 to oracle using DB link.
    1. I have created the Data source for DB2 - test successful
    create database link OSBLDEV
    connect to "db2user"
    identified by "ldb2pwd"
    using 'OSBLDEV';
    1. I have made the following entry in E:\oracle\product\11.1.0\db_1\hs\admin\initosbldev.ora
    HS_FDS_CONNECT_INFO = OSBLDEV
    HS_FDS_TRACE_LEVEL = 0
    2. I have made the following entry in E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN\tnsnames.ora
    OSBLDEV =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=orahost)(PORT=1521))
    (CONNECT_DATA=(SID=OSBLDEV))
    (HS=OK)
    3. I have made the following entry in E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN\listener.ora and releoaded the listner (lsnrctl reload)
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=orahost)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
         (SID_DESC = # this is the entry for HSODBC
         (SID_NAME = OSBLDEV)
         (ORACLE_HOME = e:\oracle\product\11.1.0\db_1)
         (PROGRAM = hsodbc)
    Thanks in advance.

    1. My listener.ora is placed at the below location:
    E:\oracle\product\11.1.0\db_1\NETWORK\ADMIN
    2. I have modifed the listener and removed the entry - hsodbc
    3. stop and start the listener.
    still can't see the service entry in listener status.
    C:\>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.1.0.7.0 - Production on 19-JUL-2010 02:27
    :08
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.1.0.7.0 - Produ
    ction
    Start Date 19-JUL-2010 02:21:17
    Uptime 0 days 0 hr. 5 min. 52 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File e:\oracle\diag\tnslsnr\DALDEVDBCRM1\listener\alert\log
    .xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=daldevdbcrm1.corp.nai.org)(PORT=1521
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+asm1", status READY, has 1 handler(s) for this service...
    Service "+ASM_XPT" has 1 instance(s).
    Instance "+asm1", status READY, has 1 handler(s) for this service...
    Service "ARIBADEV" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "ARIBADEV_XPT" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "ARIBAXDB" has 1 instance(s).
    Instance "ariba", status READY, has 1 handler(s) for this service...
    Service "aiad.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 2 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aiadXDB.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 1 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aiad_XPT.corp.nai.org" has 2 instance(s).
    Instance "aiad1", status READY, has 2 handler(s) for this service...
    Instance "aiad2", status READY, has 1 handler(s) for this service...
    Service "aianew" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    Service "aianewXDB" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    Service "aianew_XPT" has 1 instance(s).
    Instance "aianew", status READY, has 1 handler(s) for this service...
    The command completed successfully
    C:\>

  • Not able to connect to DB2 using generic connectivity

    Hi
    We are trying to connect to DB2 using Oracle Generic connectivity and we are getting 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 ODB2
    Log file is not even generated even though we set the parameter to debug. We are using Oracle 10g on Linux and Neon Shadow direct to connect to db2.
    The following are the setup we had done in our oracle db side
    initdb2.ora
    HS_FDS_CONNECT_INFO=NEON_dev_conn
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_SHAREABLE_NAME=/home/NEON/Shadow/lib/libscodbc_r.so
    added below entry in listener.ora
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ENVS=LD_LIBRARY_PATH=/home/oracle/product/10.2.0/lib:/home/NEON/Shadow/lib)
    (SID_NAME = db2)
    (ORACLE_HOME = /home/oracle/product/10.2.0)
    added below entry in tnsnames.ora
    DB2ODBC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test.db.com)(PORT =1523))
    (CONNECT_DATA =
    (SERVICE_NAME = db2)
    (HS = OK)
    Please suggest on this.
    Regards
    S. Senthil

    No gateway log information generated even with setting trave level to DEBUG indcates that the listener cannot start the gateway process.
    Please check the listener.log for details on the failure. Secondly, what kind of Linux is it? 32- or 64-bit?
    Regards,
    Ed

  • Building an APEX app that connects to DB2/UDB

    I have NO experience with APEX but - have been browsing the documentation in considering it's use as a web application/dashboard reporting utility.
    However - I'm wondering if it allows for the ability to connect to DB2 as well as Oracle...
    i.e. - building a form that allows a user to 'pull' data for analysis from a DB2 instance and - generate reporting results that would then be stored in an Oracle instance.
    I apologize if this has been answered - or was answered in some obvious way that I missed in the documentation.
    Any help is appreciated.
    Thanks

    It requires the use of an Oracle database. If you want to use heterogeneous services services to communicate with an external non-Oracle database, you may be able to do it. But if you have no need for an Oracle db, and just want a dashboard solution for DB2, this is really not the product for you.
    I say it requires the use of an Oracle database because it runs off of database packages written only in pl/sql, thus can't port to other databases.
    In this case you'd probably want to use php or something that can connect to multiple data sources.

  • I need Help for Connect To DB2 with JDBC

    I'd like to know why I Have this problem.
    The DB2 v 5.10 is in a IBM OS/390
    I know the IP, PORt, DBNAME and I'd like to connect to DB2 with my windows XP using JDCB from IBM.
    I use JDBC Universal for DB2 type 4.
    Class.forName("com.ibm.db2.jcc.DB2Driver");
    Url = "jdbc:db2://IP:PORT/BDNAME";
    DriverManager.getConnection.... (url, user, pass)..
    If I execute this, I have next problem
    SQL state = null
    Error code = -4499
    There is no available conversion for the source code page, 1208, to the target code page, "". DB2ConnectionCorrelator: null
    Why is this?
    Finally, the web application will running in a AIX IBM with machine, It could be that this machine (aix) can connect with the IBM OS/390 with JDBC for iBM?
    Thankss!!!

    Check how you configured the IP on the laptop and computers, assigned by router with DHCP feature enabled? Or configure manually? If it's assigned by wireless router, then make sure you assign big enough IP range in DHCP setting. Take a look on using ping to troubleshoot network and wireless router configuration articles to help you more..

  • Crystal Report Connect to DB2 z/OS

    Post Author: pabhijit
    CA Forum: Data Connectivity and SQL
    Hi
    I am trying to make a DB2 connection from the crystal report interface using JDBC(JNDI).Using com.ibm.db2.jcc.DB2Driver as the database class name.
    Database  - Mainframe DB2 z/OSCrystal report version - Crystal Report 11.0Database Class name     - com.ibm.db2.jcc.DB2Driver
    Getting the below error.
    Failed to retreive data from database.Details: SQL Exception: &#91;SQL State&#93; null &#91;Error Message&#93;Invalid argument: unknown column name TABLE_NAME &#91;Database Vendor Code: -99999&#93;
    Can anyone guide what am I missing..?

    Post Author: pabhijit
    CA Forum: Data Connectivity and SQL
    Hi thanks for the response
    Well let me rephrase my issue.
    Usually when we connect to any other DBMS e.g Oracle/Sybase it downloads the schema into the crystal report interface, that makes life simpler while designing report.In my case schema is not getting download when am connection to DB2 z/OS. However I can connect to the DB2 server and can use any SELECT from Table queries from "Add Command" option.

  • How would I connect to DB2 thru sqldeveloper version 3.1?

    Hello:
    has anyone successfully connected to DB2 thru sqldeveloper version 3.1?....I have downloaded the IBM DB2client: the db2jcc.jar and db2jcc_license_cu.jar files and am able to successfully connect to DB2 via an ODBC connection (thru the windows-control-panel)....however when I try to connect thru sqldeveloper, I get the following error:
    "Status : Failure -Test failed: The version of the IBM Universal JDBC driver in use is not licensed for connectivity to z/OS databases. To connect to this DB2 server, please obtain a licensed copy of the IBM DB2 Universal Driver for JDBC and SQLJ. An appropriate license file db2jcc_license_*.jar for this target platform must be installed to the application classpath. Connectivity to z/OS databases is enabled by any of the following license files: { db2jcc_license_cisuz.jar }"
    what is puzzling is that ODBC connection thru the contro-panel, admin tools-data sources(ODBC),file-dsn works fine and no licensing issue with the DB2client downloaded and installed (i.e. db2jcc.jar).....any solutions will be appreciated....

    From what you posted, I'm guessing you don't have the correct licence file (db2jcc_license_cu.jar v db2jcc_license_cisuz.jar ).
    I don't think DB2 on z/Os is fully supported by SQL Developer.

  • Problem while connecting to DB2 through JDBC...Help PLZZZZZZZZZZZ

    Hi Everyone, I am facing this exception when I try to connect to DB2 to which installed on Z/OS. Please help me
    for your ref I am pasting my code below exception
    com.ibm.db2.jcc.b.SqlException: IO Exception opening socket to server 10.108.45.151 on port 446. The DB2 Server may be down.
         at com.ibm.db2.jcc.a.a.<init>(a.java:137)
         at com.ibm.db2.jcc.a.b.a(b.java:1542)
         at com.ibm.db2.jcc.b.o.<init>(o.java:795)
         at com.ibm.db2.jcc.a.b.<init>(b.java:298)
         at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:162)
    my code is:--
              try {
                   Class.forName("com.ibm.db2.jcc.DB2Driver");
              } catch (ClassNotFoundException se) {
                   se.printStackTrace();
                   System.out.println(se);
              try {
                        cn =DriverManager.getConnection("jdbc:db2://11.112.41.12:446/dbname","uname","pwd");
              } catch (Exception e) {
                   e.printStackTrace();
              }

    You will need to check this error message on metalink and likely on an SR.
    But with RAC you should not be connecting to the database, or in most cases, to a specific instance: You should be connecting to a TAF (or FCF) service.

Maybe you are looking for