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

Similar Messages

  • Host Database Connection

    When I run an applet locally it fails to connect to a DB2 host database. The following error occurs even though the DB2 drivers are included in the CLASSPATH:
    com.ibm.ivj.eab.dab.DAException: NO_SUITABLE_DRIVER Unable to load
    DAMessages ResourceBundle.COM.ibm.db2.jdbc.app.DB2Driver
    Some of the code is shown below. I'd appreciate any ideas on why the connection fails. Thanks very much.
    private com.ibm.ivj.eab.dab.DatastoreJDBC getCRDatastore() {
    return crDatastore;
    public void connectCurrentDatastore() throws com.ibm.ivj.eab.dab.DAException {
    getCRDatastore().setDriver("COM.ibm.db2.jdbc.app.DB2Driver");
    String serverURL = new String("jdbc:db2:tsoca");
    getCRDatastore().setURL(serverURL);
    java.util.Properties userInfo = new java.util.Properties();
    String username = new String("Username");
    pw = "Password";
    userInfo.put("user", username.toString());
    userInfo.put("password", pw);
    getCRDatastore().setProperties(userInfo);
    try {
    getCRDatastore().connect(); <=== ERROR

    I should clarify that I'm trying to run my applet in an IDE called VisualAge. The class of the applet is in the same directory as the DB2 classes. I have one further question though. I've read a number of forum entries suggesting that some JDBC connection problems can be resolved by running the usejdbc2.bat file in the java12 directory after first shutting down all DB2 services. Is it possible that this might resolve the connection problem that I've described? I'm reluctant to run usejdbc2.bat simply because I can now establish a database connection through DB2 and do not want to lose this capability. Any suggestions?
    Thanks very much.

  • DB connect with as/400 db2 and aix db2

    Hi,
    We are implementing a connection with AS/400 IBM platform with DB2 400 (DB4) and OS400 like operating system. We are using DB-Connect to
    extract data from a DB2 Database to BW (operating system AIX and DB2 UD6 - Sap Netweaver 2004).
    We follow all the steps provided in SAP help to
    configured the Connections. We created the source system for DB-Connect. In BW when we try to select tables and views with right button option the system gets this error " The current ABAP program "RSDL_META_UPLOAD" had to be terminated because one of the statements could not be executed".
    The connection fails, and can't establish it.
    Someone knows about this topic?
    There are other options?
    I would appreciate your help.
    Regards,
    Victoria

    Hi,
    For extract data with DB connect in BW from  AS/400-DB2(DB4) to aix-db2, BW write a wrong abap code.
    For this reason the solutions are:
    Write a funtion module with abap and native SQL for db2 (EXEC SQL) or Change the application server to windows.
    Regards,
    Victoria

  • Is HS Generic Connectivity(db2/400 odbc) supports Distributed Transaction?

    hi,
    Is HS Generic Connectivity(db2/400 odbc) supports Distributed Transaction?
    I am getting an error as follows
    "ORA-02047 cannot join the distributed transaction in progress" when i am trying a transaction, which is inserting in to db2/400 and updating in Oracle.
    if it does not support this, what is the best way
    to do such things using generic connectivity.
    (eg. by committing each sql statement ?)
    my db is oracle 9i 9.2.0.4.0
    remote db is db2/400 connected with client access ODBC.
    Thanks
    BA

    Hi,
    one of the restrictions of generic connectivity is, that distributed transactions are not allowed.
    See manual: 7-6 Oracle9 i Heterogeneous Connectivity Administrator's Guide
    - Generic Connectivity agents cannot participate in distributed transactions; they
    support single-site transactions only
    So you can only commit after each statement or you have to use the GATEWAY

  • CCMS monitoring for DB2/400 database backup.

    Hi,
    sap on iseries experts,
    We need a good monitoring for the alerts from DB2/400 database backup failure with CCMS for a solution manager management.
    Actually I don,t see a specific node (or MTE class) inside CCMS for this alert;
    But DB12 display well the daily backup status . . . . . . . .
    Can anybody help me ?
    Kind Regards
    Fabio

    Hi all,
    I'm searching also for such an possibilty.
    When running Oracle there is following MTE:
    RZ20 -> SAP CCMS Technical Expert Monitors -> All Monitoring Contexts -> Oracle -> Backup/restore -> Backup status -> Last succ
    Does anybody know a method to monitor the backup with SAP on Iseries?
    Tobias

  • Oracle WebLogic Server - How to connect to IBM DB2-400

    Hi to all,
    I'm afraid I'm going to ask a f.a.q... anyway... I'm trying to define a Connection Pool to Db2/400. I see that Oracle App Server do support DB2 on windows and linux O.S;
    what about DB2 on a iSeries / iOs machine ?
    Thank you in advance for your help.

    1. Can OSB connect to JMS Queue which resides within the IBM Maximo Application? If yes can you please provide any documents/link which outlines the steps.Yes. You can use a OSB proxy service with jms transport to dequeue the messages from remote weblogic jms.
    2. Do I need to configure a Messaging Bridge or a Foreign JNDI provider in Weblogic? Which is the best optionNot required.
    3. What information do we need to configure in Weblogic to connect to the JMS Queue in IBM Maximo Application? Configure a proxy service with jms transport. Here you have to provide the transport URI hostname/port part you have to give details of the maximo WLS server host and part.Since jms transport involves rmi communication between two weblogic domains, you also need to setup either global trust between the domains or cross domain security.
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e13707/domain.htm#i1176046

  • Connection between AS-400 DB2 sys and XI server

    Hi All,
    I am trying to connect the AS-400 DB2 system with the XI server;
    what '.jar' files of JAVA are required
    so as to make the connection successful
    with the use of JDBC Adpt.
    Thanks & Regards
    Ranjit

    Ref:
    http://www-128.ibm.com/developerworks/db2/downloads/jcc/
    http://www-128.ibm.com/developerworks/db2/library/techarticle/0203zikopoulos/0203zikopoulos.html
    to find the drivers.
    Also have a look at - How to install and configure external drivers for JDBC &JM at the how to guide section in service market place.

  • Connection to DB2 Database

    Hi all,
    I need to connect to DB2 Database using the JDBC Adapter.
    Where do I need to provide the File name in JDBC adapter?
    I need to send as Flat File,is there any option in JDBC Adapter like Content COnversion in File Adapter?
    Please advice me.And I appreciate your help.
    Thank you.

    Hi ,
    <i>I need to connect to DB2 Database using the JDBC Adapter.</i>
    First you have to deploy your drivers
    DB2 JDBC driver, refer to:
    http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/ad/t0010264.htm
    <i>Where do I need to provide the File name in JDBC adapter?</i>
    You should give sender file name in the sender file adapter used to poll the file.
    For the reciever(data base)..You have to mention the target database table name in the message mapping.
    <i>I need to send as Flat File,is there any option in JDBC Adapter like Content COnversion in File Adapter?</i>
    No....
    JDBC reciever Adapter is used to send the data to the data base table which has some specific format  ...where as file content converion is used where there is no specific structures like flat files.
    Thanks,
    sekhar

  • 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

  • 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

  • Setting up Secure connection with DB2 database on IBM iSeries

    We have requirement to setup Secure connection with DB2 database on IBM iseries system. currently we are using ODBC type of connectivity which is not secure. Can anyone help how to set up Secure connectivity. below are the system details . . Application - IDQ - 9.6.0 Database - DB2 on IBM iSeries AS400

    We have requirement to setup Secure connection with DB2 database on IBM iseries system. currently we are using ODBC type of connectivity which is not secure. Can anyone help how to set up Secure connectivity. below are the system details . . Application - IDQ - 9.6.0 Database - DB2 on IBM iSeries AS400

  • Error when running SQL over DB2/400 database

    Folks,
    I'm trying to execute an SQL statement which works well on DB2/400 but doesn't like it in Java embedded SQL.
    The statement looks like this...
    select rrn(a) from BLMINTF1 a where RDTUSC = 050106 or RDTADC = 050106 or RDTBPC = 050106 or RDTCDC = 050106 or RDTE1C = 050106
    and the error I get is as follows...
    java.sql.SQLException: An undefined column name was detected.
    java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:94)
    java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:42)
    java/sql/SQLException.<init>(Ljava/lang/String;Ljava/lang/String;I)V+1 (SQLException.java:43)
    com/ibm/as400/access/JDError.throwSQLException(Ljava/lang/String;)V+0 (JDError.java:394)
    com/ibm/as400/access/JDServerRow.findField(Ljava/lang/String;)I+0 (JDServerRow.java:313)
    com/ibm/as400/access/AS400JDBCResultSet.findColumn(Ljava/lang/String;)I+0 (AS400JDBCResultSet.java:552)
    com/ibm/as400/access/AS400JDBCResultSet.getString(Ljava/lang/String;)Ljava/lang/String;+0 (AS400JDBCResultSet.java:31
    gmi/pme/ReadIntRateXML.updatetable(Ljava/lang/String;I)V+0 (ReadIntRateXML.java:135)
    gmi/pme/ReadIntRateXML.main(^Ljava/lang/String;)V+0 (ReadIntRateXML.java:45)
    Any help will be greatly appreciated.
    Thanks in advance.

    (Oops, ignore the above, a missing /code tag ate most of my post)
    So does this work:
    select 42 from BLMINTF1 a where RDTUSC = 050106 or RDTADC = 050106 or RDTBPC = 050106 or RDTCDC = 050106 or RDTE1C = 050106
    There is a chance that the driver for some odd reason doesn't understand a particular SQL function. That's less likely than a simple typo though. Usually JDBC drivers don't care about the SQL they execute, they just pass it to the server. Command line SQL tools may have extra commands, but rarely functions like that.
    I'd still print out the SQL string just before execution. I've seen things like this often enough:
        String s =
            "select x from foo" +
            "where x = 1";Note the lack of space between "foo" and "where", resulting in "foowhere".

  • D4ODBC to Iseries DB2 400, not resolving @ and #

    I have a Oracle Linux 64 bit server running Oracle 11.2 (AL32UTF8).  I have Oracle database gateway for ODBC installed along with UNIXODBC 2.3 with iseries for linux odbc driver.  I am connecting to an AS/400 system that is running DB2 400 using a database link.  The AS/400 is using CCSID=65535.  Everything is working well except there are a few symbols that the Oracle is not resolving.  What appears on the AS/400 as @ appears as Ö in the oracle view on the AS/400 table.  What appears as a # on the AS/400 appears as a Ä on the oracle view of the AS/400 table.  Any guidance would be greatly appreciated.
    This is what my gateway ini file looks like:
    HS_FDS_CONNECT_INFO = usmas1
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so.1
    HS_NLS_NCHAR = UCS2
    HS_LANGUAGE=american_america.WE8EBCDIC37
    HS_RPC_FETCH_REBLOCKING=OFF
    #HS_FDS_FETCH_ROWS=1
    HS_FDS_SQLLEN_INTERPRETATION=64
    # ODBC specific environment variables
    set ODBCINI=/etc/unixODBC/odbc.ini
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    set DB2CODEPAGE=37

    Hi,
    According to your description, my understanding is that you want to create a data source connection to iSeries database in SharePoint Designer.
    I recommend to link the iSeries DB2 database to the SQL and then create one or more views to the linked server on a SQL database.
    After that, create the data connection to the database where we used to create the views to the linked server to see if the issue can be fixed.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • MySQL Database Connection (two databases at the same time)

    I have never had to open more than one MySQL database from within the same website before, but I do now.  The website I have is designed where all the content comes from within the main database.  I am building an Inventory system that I want within it's own database, in the event I would ever need to move the application to another server or something, I don't want this data residing in the main database.
    Currently, I open the database connection from within a file called "common.php" that resides in a directory called "lib" that can be accessed from the root directory.  Below is the proposed code that would be placed within the "common.php" file:
    // Define Database Variables
    $dbserver = "127.0.0.1";
    $dbuser  = array('clevelan_user1', 'clevelan_user2');
    $dbpass  = array('P@ssw0rd', 'P@ssw0rd2');
    $dbname  = array('clevelan_database1', 'clevelan_database2');
    // Start Session
    session_start();
    // Connect to Databases
    connectdb($dbserver, $dbuser[0], $dbpass[0], $dbname[0]);
    connectdb2($dbserver, $dbuser[1], $dbpass[1], $dbname[1]);
    // Database 1 Connection
    function connectdb($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection;
      $connection = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db = @mysql_select_db($dbname, $connection) or die ("could not select databsase");
      return $connection;
    // Database 2 Connection
    function connectdb2($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection2;
      $connection2 = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db2 = @mysql_select_db($dbname, $connection2) or die ("could not select databsase");
      return $connection2;
    //End of Code Within the "common.php"
    From within any page of the website, I want to access both connections by placing an include at the top of each page:
    include_once("lib/common.php");
    Currently, when I run the code above, any page within the website (the home page) provides error messages with regards to database connectivity (the pages are looking for there content from within the second database.  It's as if the second database is the only database seen by the website.
    I need help figuring out how I can have two MySQL databases open at the same time (the second database will only be open for short periods of time and then closed).  But the main database is always open.

    Create one project using one copy of the exact tables.
    create 2 different sessions.xml files each pointing to the same project. Set the login information in the sessions.xml files.
    That should work fine.
    Peter

  • Can i use single database connection in a hole java application?

    can i use single database connection in a hole java application?.I have so many forms to use database connection.

    Theoretically you can. Not only theoretically. I've seen lots of application which only uses one database connection (they were using, oracle or mysql)
    The first reply given here assumed that the answer to
    your question depends only on the design of your
    application. That is not true.Yes it's true. Nothing in the original questions says that you aren't allowed to open or close the single connection that you have. It's looks more like the OP is interested in sharing a connection (i.e having a singleton or a connection pool with only one connection)
    It does also depend on the behaviour of the database
    in the background.
    Most databases have a time out for connections that
    are idle Not a problem. Most implementations of connection pools and applications which keeps a connection open have a timer which calls e.g. select * from dual (if you are using oracle) when the connection has been idle for X minutes.
    (some, like db2 on z/OS, even cancel
    connections, that are not idle, if they are open a
    certain amount of time or have reached a given limit
    of cpu seconds.)You would also have that problem if you had a connection pool with several connections.
    In essence: If you have no control over the time
    your application runs (and therefore your connection
    is open) or over type or the configuration of the
    database you are accessing, you can't do it.See above.
    The closest thing to what you want would be using
    PooledConnections, iif those are supported for the
    database you want to access.Not true.
    Kaj

Maybe you are looking for

  • Photoshop Elements with too many bugs

    I have been using your Photoshop elements for a lot of years now and a lot of different versions. This is because I have been very satisfied with the program and its quality. Now I have bought the latest version 12 and have found it totally impossibl

  • ITunes creates duplicates in my iTouch...

    I have a large number of Korean songs/artists in my iTunes library and I prefer to have the English first and then the Korean name/title. I've noticed that sometimes when I change the information for a song, I will have two of the same song on my iTo

  • Please help me activate my cs3

    I had previuosly used bthe cs3 on my buisness laptop , but it was deactivated and now I am tryiong to install on my new ASUS computer

  • How to translate dashboard prompt year/period into literal date range

    I am using OBIEE 10g. I have a dashboard that prompts for a fiscal year and fiscal period (both are numeric data types). I need to use these values in the date filter for my answers request - however, to fully utilize the indexes and partitioning tha

  • LabView serial control

    Hello, I'm currently trying to use LabView for RS-232 communication. The thing is, instead of using the standard hardware flow control method, I'd like to be able to control the flow control lines manually. Is there any way to set the values of these