打  java utils.dbping 看帮助,然后按格式输入命令测试数据库联接,如果成功,会提示一些参数的信息!非常有用!!

解决方案 »

  1.   

    5-6 Programming WebLogic JDBC
    Connection Pool Attributes when using the IBM Informix JDBC Driver
    Use the following attributes when creating a connection pool that uses the IBM
    Informix JDBC driver:
    ! Driver Name: com.informix.jdbc.IfxDriver
    ! URL: jdbc:informix-sqli:mydbservername:port
    ! Properties:
    informixserver=<mydbservername>
    user=<myuserid>
    ! Password: mypassword
    An entry in the config.xml file may look like the following:
    <JDBCConnectionPool
    DriverName="com.informix.jdbc.IfxDriver"
    InitialCapacity="3"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="ifxPool"
    Setting the Environment for Your Third-Party JDBC Driver
    Password="informix"
    Properties="informixserver=ifxserver;user=informix"
    Targets="examplesServer"
    URL="jdbc:informix-sqli:ifxserver:1543"
    />
    Programming Notes for the IBM Informix JDBC Driver
    Consider the following limitations when using the IBM Informix JDBC driver:
    ! Always call resultset.close() and statement.close() methods to
    indicate to the driver that you are done with the statement/resultset. Otherwise,
    your program may not release all its resources on the database server.
    ! Batch updates fail if you attempt to insert rows with TEXT or BYTE columns
    unless the IFX_USEPUT environment variable is set to 1.
    ! If the Java program sets autocommit mode to true during a transaction, IBM
    Informix JDBC Driver commits the current transaction if the JDK is version 1.4
    and later, otherwise the driver rolls back the current transaction before enabling
    autocommit.
      

  2.   

    这是weblogic jdbc doc里将infomix 部分。
    driver class 从ibm网站download
      

  3.   

    String url2    ="jdbc:informixsqli:50.209.32.71:9000:prpinsdbINFORMIXSERVER=rb95518";
    String UIDs    ="rb95518";
    String PWD     ="rb95518123";            
    error:数据库未连接
      

  4.   

    String url2    ="jdbc:informix-sqli:50.209.32.71:9000:prpinsdb:INFORMIXSERVER=rb95518";
    String UIDs    ="rb95518";
    String PWD     ="rb95518123";            
    error:数据库未连接