在Weblogic 12c中启用DRCP失败

时间:2015-05-19 11:35:55

标签: oracle jdbc datasource weblogic12c

我正在尝试在Linux中安装的Weblogic 12c中创建一个使用DRCP启用的数据源。提供所有必需的值后& “测试配置”存在错误(如下所述)。我在Windows上尝试了相同的操作,但它适用于相同的端口号(在Windows中,客户端也包含'tnsnames.ora'中的SERVER = POOLED)。

配置:

  1. Linux机器:Weblogic 12c(12.1.2)
  2. 网址:jdbc:oracle:thin:@ // 10.125.158.115:1521/PERF01:POOLED
  3. oracle.jdbc.DRCPConnectionClass = myDRCPClass
  4. 错误:

    <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1432019762569> 
    <BEA-240003> <Administration Console encountered the following error: java.sql.SQLRecoverableException: 
    IO Error: Invalid number format for port number
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:465)
        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:232)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
        at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)
        at oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:469)
        at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:156)
        at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:101)
        at weblogic.jdbc.common.internal.DataSourceUtil.testConnection0(DataSourceUtil.java:356)
        at weblogic.jdbc.common.internal.DataSourceUtil.access$000(DataSourceUtil.java:22)
        at weblogic.jdbc.common.internal.DataSourceUtil$1.run(DataSourceUtil.java:254)
        at java.security.AccessController.doPrivileged(Native Method)
        at weblogic.jdbc.common.internal.DataSourceUtil.testConnection(DataSourceUtil.java:251)
        .
        .
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    Caused by: oracle.net.ns.NetException: Invalid number format for port number
        at oracle.net.resolver.AddrResolution.resolveSimple(AddrResolution.java:512)
        at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:409)
    

1 个答案:

答案 0 :(得分:0)

Weblogic版本的更改(从Weblogic 12.1.2到12.1.3)解决了这个问题。 Weblogic 12.1.1&amp; Weblogic 12.1.3支持DRCP。