Error connecting to DB2 AS/400 7.1

Hi
I'm trying to connect SQL Developer to DB2 AS/400 7.1. I've been able to connect to the server but when the tool is accesing the metadata I get:
DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=SYSCAT.SCHEMATA;TABLE, DRIVER=4.16.53 
Código de proveedor -204
Se ha producido un error al realizar la operación solicitada: 
DB2 SQL Error: SQLCODE=-516, SQLSTATE=26501, SQLERRMC=*N;S1, DRIVER=4.16.53
Código de proveedor -516
Se ha producido un error al realizar la operación solicitada: 
DB2 SQL Error: SQLCODE=-514, SQLSTATE=26501, SQLERRMC=SQL_CURSH200C1;S1, DRIVER=4.16.53
Código de proveedor -514
I don't know if SQL Developer is certified to work with DB2 AS/400 7.1.
Regards,
Néstor Boscán

Hi  Néstor,
what are you trying to do on DB2/400
Philip

Similar Messages

  • Error connecting to DB2 via DRDA gateway for db2

    Linux 2 node RAC system version 10.2.0.4. Installed DRDA for db2 LUW version 11.2 into a new home on the existing RAC nodes. Installed and configured and followed note 945879.1. Restarted listener and configured tnsnames.ora successfully on both nodes. TNSPING works for the dg4db2 'SID' created. Created a database link, and when I tested by getting a simple count, I received the following error:
    select count(*) from schema.mydb2_table@db2_105
    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 DB2_105Here's my listener config:
    SID_LIST_LISTENER_NODE1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
          (PROGRAM = extproc)
          (SID_NAME=dg4db2)
          (ORACLE_HOME=/u01/app/oracle/gateway/11_2/)
          (ENVS=LD_LIBRARY_PATH=/u01/app/oracle/gateway/11_2/dg4db2/driver/lib;/u01/app/oracle/product/10.2.0/db_1/lib)
          (PROGRAM=dg4db2)
      )Here's my tnsnames.ora:
    dg4db2 =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=tcp)(HOST=vip-node1)(PORT=1521))
        (CONNECT_DATA=(SID=dg4db2))
        (HS=OK)
      )Here's the initdg4db2.ora - ip address and obfuscated:
    HS_FDS_CONNECT_INFO=[the ip address]:theport/ips,LUW
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_TRANSACTION_MODEL=COMMIT_CONFIRM
    HS_FDS_TRANSACTION_ISOLATION=READ_COMMITTED
    HS_FDS_SUPPORT_STATISTICS=TRUE
    HS_FDS_RESULTSET_SUPPORT=FALSE
    HS_FDS_PACKAGE_COLLID=ORACLEGTW
    HS_IDLE_TIMEOUT=0And my db link syntax - database name and password obfuscated:
    CREATE DATABASE LINK db2_105
    CONNECT TO THEDB2DB
    IDENTIFIED BY somepassword
    USING 'dg4db2'tnsping output:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=vip-node1)(PORT=1521)) (CONNECT_DATA=(SID=dg4db2)) (HS=OK))
    OK (0 msec)Listener log from first node:
    08-FEB-2010 13:36:30 * (CONNECT_DATA=(SID=dg4db2)(CID=(PROGRAM=)(HOST=node1_hostname)(USER=oracle))) * (ADDRESS=(P
    ROTOCOL=tcp)(HOST=vip-node1)(PORT=55214)) * establish * dg4db2 * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptorNot sure where to go from here troubleshooting-wise. I understand that with 11.2, there is no longer a need to bind packages? Any help is much appreciated.
    Edited by: kellypw on Feb 8, 2010 12:06 PM
    Edited by: kellypw on Feb 8, 2010 12:20 PM

    your listener.ora contains an error in the SID section. you miss a closing bracket for the extproc SID and another SID_DESC for the dg4db2 SID:
    SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    ) #closing bracket is missing
    (SID_DESC = # SID desc is missing
    (SID_NAME=dg4db2)
    (ORACLE_HOME=/u01/app/oracle/gateway/11_2/)
    (ENVS=LD_LIBRARY_PATH=/u01/app/oracle/gateway/11_2/dg4db2/driver/lib;/u01/app/oracle/product/10.2.0/db_1/lib)
    (PROGRAM=dg4db2)
    After changing the listener.ora, stop and start the listener.

  • Error retrieving data in Oracle BI 11g from DB2 AS/400

    Hello everybody,
    In my Oracle BI 11g environment I want to have data coming from a DB2 AS/400 database. Retrieving the tables from the database in BI Administration and building the repository works fine. But as soon as I want to see the data (from the BI Administration or BI Answers) I get the following error (in BI Answers):
    +Description: System.Data.Odbc.OdbcException: ERROR [08S01] [IBM][iSeries Access ODBC Driver]Communication link failure. comm rc=11004 - CWBCO1011 - Remote port could not be resolved+
    I tried some different settings (ODBC Basis, ODBC Advanced and AS/400) as a databasetype and different type of connections (ODBC 2.0 and ODBC 3.5) in the connection pool. But non of the settings seems to solve the problem.
    When I try to query the database using another tool, Oracle Interactive Reporting, everything works fine as long as I use ODBC as both database- and connectiontype.
    Does anybode got an idea how this can be solved/where to look for a solution?
    Thanks in advance!
    With regards,
    Dennis de Kock

    Hi Dennis,
    We have used default ODBC 3.5 to connect DB2 AS400 iseries but we would like to know from Oracle what is the certified client connectivity software to use.
    Afte Opening SR with Oracle they have mentioned that Oracle has not tested and it is not a certified database to support as per SRSP document.
    Please let me know your feedback if you have contacted Oracle on this ?
    Thanks
    P

  • Database connection to DB2/400

    We have a need to connect to DB2 running on an AS/400. I have created the database connection in JDev902 and queries using the the SQL Window work great. When I try and use this connection in a BC4J project, I get a No Driver Found error. I have double checked the data source and it appears to be correct. Does anyone know if connecting to an AS/400 works? The doc indicates that JDev will only 'talk' to DB2 running on NT.

    John:
    The doc indicates that JDev will only 'talk' to DB2
    running on NT.We have certified/tested BC4J against Universal DB2 running on NT. While we have not tried it against DB2/400, if you use Universal DB2, it should work.
    'No Driver Found' seems to indicate that the DB2 JDBC driver is missing. Have you had a chance to look at
    http://otn.oracle.com/products/jdev/howtos/bc4j/bc_foreign_db_intro.html
    Thanks.
    Sung

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

  • How to Connect EP6 to Legacy Systems like RPG, DB2, AS 400 ?

    Hi All,
    Being new to portal, have a requirement to build an application in EP6 which requires pulling data from Legacy systems like RPG,DB2,AS 400.
    Is there any innovative way to accomplish this in EP6.
    Thanks,
    DK

    Hi Deepak,
    portal can connect to DB2 atleast - not sure about the others. For connecting to DB2 you will require the JAR file which would give you the API to create the connection and execute the queries of your application. Like other database Jar files - the DB2 jar file is also located in <drive>:\usr\sap\<sys id>\<instance id>\j2ee\cluster\server0\bin\ext\com.sap.datadirect folder with the name P9db2.jar. I guess you can create a DataSource with the following JARs from this folder in the Visual Admin. The JAR files required would be:
    P9db2.jar, P9base.jar & P9util.jar.
    Once the datasource is created you can use that in your java code for creating connection and firing queries.
    Regards,
    Shubhadip

  • Error trying to connect to DB2 database....

    Am using the following code to connect to db2 database, but when run am getting error messgae as shown,
    try
         Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance();
    catch(Exception exception)
    System.err.println("Unable to load driver.");
    exception.printStackTrace();
    try
         Connection connection = DriverManager.getConnection("jdbc:db2://xxx.xxx.xxx.xxx:port/dbname");
    error message.....
    Exception in thread "main" java.lang.NoClassDefFoundError:
    .....Any suggestions gratefully recieved....

    It does not matter whether your database server is running locally or on a remote server. Most of the times it will be on a remote server.
    But the driver and the related stuff must be in your local machine's classpath. Only then you can compile or run your application locally. Include db2 package in the classpath and then try to compile your program. You can search in this forum about setting the classpath details.
    Every fourth thread in this forum will be about classpath or related problems.
    Sudha

  • VARBINARY problems in OBIEE 11g importing data from DB2 AS/400 V6R1

    Hi all,
    I have set up a connection between OBIEE 11g version 11.1.1.6.0 and DB2 AS/400 V6R1.
    It is working fine for most of the data types, but we have the following cast sentence in a view:
    CAST(
    CASE WHEN A.RCATLY IN ( 1250 , 1000 ) THEN F.DESCRIPTION3 ELSE
    CASE WHEN A.RCATLY=12 THEN 'AUM' ELSE
    CASE WHEN F.KEYASL3='AL_EXCLUDED' THEN 'Other open items' ELSE
    'AUM' END END END AS CHAR(50)) AS POS_CAT,
    CAST(CASE WHEN F.DESCRIPTION3 IS NULL THEN 'Securities' ELSE F.DESCRIPTION3
    END AS CHAR(50)) AS POS_DESCR
    We are importing this view into OBIEE 11.1.1.6, the fileds POS_CAT and POS_DESCR are coming as BINARY, we also have tried to cast them to VARCHAR, they come as VARBINARY instead.
    When we try to see the fields in a report we are getting the error below:
    Error Codes: OAMP2OPY:Q4NU7XSN
    Invalid Handle Of 'const saw::ExpressionBase*' Exception
    I have tried to cast this fileds to VARCHAR in administration, no luck, error below:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 46035] Datatype(VARBINARY) nullable(1) unicode(1) external char(0) conversion to datatype(VARCHAR) nullable(1) unicode(0) external char(0) is not supported. (HY000)
    SQL Issued: SELECT 0 s_0, "MI"."DWSPAIN01"."POS_CAT" s_1 FROM "MI" FETCH FIRST 65001 ROWS ONLY
    Any suggestion?
    Edited by: Ruben Alonso Ortega on 04-Mar-2013 07:23

    Thanks for your quick response, I have tried to change it in the phisycal layer, to CHAR, VARCHAR, same error, it didn't work.

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

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

  • 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

  • Error msg HTTP 501 or 400

    HTTP Server
    I developed a multithreaded web server on Java capable of responding to HTTP 200,404,400 & 501.
    I connect to server on port 6897 from IE browser - http://localhost/index.html
    its tested successfully for responses-HTTP 200 and HTTP 404.
    what do i type on the browser instead of http://localhost/index.html so that i get an error msg HTTP 501 or 400?
    Cheers
    Leo

    Write and run your custom HTTP client.

  • 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

  • Error Connecting to EIS

    Hi,
    I'm unable to connect to a remote EIS server. The required OLAP Metadata Catalog appears in the drop-down box after entering the correct IP address for the server.
    However, upon attempting to connect i get the following error message :
    " Error 2003000: ODBC Error [DataDirect][ODBC DB2 Wire Protocol driver] Failed to access database XYZ"
    (where XYZ is the required OLAP Metadata Catalog)
    What could the reason be for the error message?
    Also, the person at the remote location is able to connect to EIS.

    Any Help on this please!!!

Maybe you are looking for