IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Query:JDBC pool for connecting Oracle database

  • 1.  Query:JDBC pool for connecting Oracle database

    Posted Sat October 07, 2006 05:38 PM

    i’ve a problem in creating a JDBC pool for connecting to an Oracle database.
    Through IS admin, the pool was creating using syntax mentioned in the webMethods documentation ; username, password were entered, etc… & the database name is specified as SID=GXS_WEB.TCSGEGDC.COM. Is the database_name given correctly as per webMethods convention?
    (It’s correct with respect to Oracle!)
    after creating this , when server was restarted , it showed the error message like … ’ …Oracle server couldn’t recognize ‘GXS_WEB.TCSGEGDC.COM’ . There’s no issue while connecting to this database through Oracle SQL Plus as well as PL/SQL…
    but it’s not getting connected through webMethods… also, integration server isn’t getting started due to the error message…
    can someone please help in this regard,
    Thanks,
    Irshad…


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 2.  RE: Query:JDBC pool for connecting Oracle database

    Posted Sat October 07, 2006 05:49 PM

    Make sure you have this configuration in place for example TN_Pool

    Alias Name TN_Pool
    Alias Description
    Associated Driver Alias DataDirect Connect JDBC Oracle Driver
    Database URL jdbc: wm: Oracle://xx.xxx.xx.xx:1521;SID=wmoracle (no spaces req)
    User Id wmoracle
    Password *****
    Minimum Connections 0
    Maximum Connections 10
    Idle Timeout 60000 milliseconds

    Test the functional alias to check for success.

    If this doesnt work please post your configuration details we will see it and advice.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: Query:JDBC pool for connecting Oracle database

    Posted Mon October 09, 2006 12:25 PM

    i’m still getting the same error :
    in addition, while enabling the JDBC adapter connection, the following error was encountered :
    Error encountered

    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource JDBCConnection:jdbccon.[ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.[ADA.1.200] The JDBC DataSource class "Oracle.jdbc.Pool.OracleDataSource" cannot be located.Oracle.jdbc.Pool.OracleDataSource.class not found 

    The property settings given in JDBC adapter connection are as follows :

     Connection TypewriteTD('rowdata-l');swapRows();JDBC Adapter ConnectionwriteTD('row');Package NamewriteTD('rowdata-l');swapRows();JDBCConnectsetNavigation('ListResources.dsp', '/WmJDBCAdapter/doc/OnlineHelp/wwhelp.htm?context=Help&topic=JDBC_ConfConnType', 'foo');Connection PropertieswriteTDspan('row');Transaction TypewriteTDspan('rowdata-l');swapRows();xl("LOCAL_TRANSACTION");LOCAL_TRANSACTION writeTDspan('row');DataSource ClasswriteTDspan('rowdata-l');swapRows();xl("Oracle.jdbc.Pool.OracleDataSource");Oracle.jdbc.Pool.OracleDataSource writeTDspan('row');serverNamewriteTDspan('rowdata-l');swapRows();xl("GRD_Server");TRF_Server writeTDspan('row');userwriteTDspan('rowdata-l');swapRows();xl("gxs");tgs writeTDspan('row');passwordwriteTDspan('rowdata-l');swapRows();****** writeTDspan('row');databaseNamewriteTDspan('rowdata-l');swapRows();xl("GXS_WEB");TGS_WEB.FRK.COMwriteTDspan('row');portNumberwriteTDspan('rowdata-l');swapRows();xl("1521");1521 writeTDspan('row');networkProtocolwriteTDspan('rowdata-l');swapRows();xl("TCP");TCP writeTDspan('row');Other PropertieswriteTDspan('rowdata-l');swapRows();xl("driverType=thin");driverType=thin resetRows();Connection Management PropertieswriteTDspan('row');Enable Connection PoolingwriteTDspan('rowdata-l');swapRows();truewriteTDspan('row');Minimum Pool SizewriteTDspan('rowdata-l');swapRows();1writeTDspan('row');Maximum Pool SizewriteTDspan('rowdata-l');swapRows();10writeTDspan('row');Pool Increment SizewriteTDspan('rowdata-l');swapRows();1writeTDspan('row');Block Timeout (msec)writeTDspan('rowdata-l');swapRows();1000writeTDspan('row');Expire Timeout (msec)writeTDspan('rowdata-l');swapRows();1000writeTDspan('row');Startup Retry CountwriteTDspan('rowdata-l');swapRows();0writeTDspan('row');Startup Backoff Timeout (sec)writeTDspan('rowdata-l');swapRows();10
    
    
    
    
    

    Entries in tnsnames.ora file are proper as follows :

    TGS_WEB.FRK.COM=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TRF_Server )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = wbirep1)
    )
    )
    
    

    please help in resolving this issue :rolleyes:


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Query:JDBC pool for connecting Oracle database

    Posted Mon October 09, 2006 12:28 PM

    JDBC adapter connection properties :

    Connection Type JDBC Adapter Connection
    Package Name JDBCConnect
    Connection Properties
    Transaction Type LOCAL_TRANSACTION
    DataSource Class Oracle.jdbc.Pool.OracleDataSource
    serverName TRF_Server
    user tgs
    password ******
    databaseName TGS_WEB.FRK.COM
    portNumber 1521
    networkProtocol TCP
    Other Properties driverType=thin
    Connection Management Properties
    Enable Connection Pooling true
    Minimum Pool Size 1
    Maximum Pool Size 10
    Pool Increment Size 1
    Block Timeout (msec) 1000
    Expire Timeout (msec) 1000
    Startup Retry Count 0
    Startup Backoff Timeout (sec) 10


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 5.  RE: Query:JDBC pool for connecting Oracle database

    Posted Mon October 09, 2006 01:17 PM

    Hi!
    the error encountered while setting jdbc connection is as follows:

    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource JDBCConnection:jdbccon.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.200] The JDBC DataSource class “Oracle.jdbc.Pool.OracleDataSource” cannot be located.
    Oracle.jdbc.Pool.OracleDataSource.class not found

    jdbc adapter connection properties

    Connection Type JDBC Adapter Connection
    Package Name JDBCConnect
    Connection Properties
    Transaction Type LOCAL_TRANSACTION
    DataSource Class Oracle.jdbc.Pool.OracleDataSource
    serverName TRF_Server
    user tgs
    password ******
    databaseName TGS_WEB.FRK.COM
    portNumber 1521
    networkProtocol TCP
    Other Properties driverType=thin
    Connection Management Properties
    Enable Connection Pooling true
    Minimum Pool Size 1
    Maximum Pool Size 10
    Pool Increment Size 1
    Block Timeout (msec) 1000
    Expire Timeout (msec) 1000
    Startup Retry Count 0
    Startup Backoff Timeout (sec) 10

    also the TNSNAMES.ORA entries in oracle were checked :
    TGS_WEB.FRK.COM=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TRF_Server )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = wbirep1)
    )

    please help in resolving:confused: :cool:


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Query:JDBC pool for connecting Oracle database

    Posted Mon October 09, 2006 01:41 PM

    Hi,

    please try the following class name (they are case sensitive!!!):
    oracle.jdbc.pool.OracleDataSource

    networkProtocol needs not be filled.
    If using Thin Mode the tnsnames.ora is not used by the driver.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 7.  RE: Query:JDBC pool for connecting Oracle database

    Posted Mon October 09, 2006 02:00 PM

    The JDBC driver class name is case sensitive and should be

    oracle.jdbc.pool.OracleDataSource.class.

    In order to connect to Oracle using the JDBC adapter, you will need to place the latest Oracle driver in the webm_home\IntegrationServer\lib\jars folder and restart IS if you have not already done so.

    Mark


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: Query:JDBC pool for connecting Oracle database

    Posted Mon October 09, 2006 04:26 PM

    Hi,

    Did you put the class.zip file in the following directory(IntegrationServer\packages\WmJDBCAdapter\code\jars)?
    If not try this and restart the IS once.

    Regards
    Mani


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: Query:JDBC pool for connecting Oracle database

    Posted Thu October 19, 2006 04:46 PM

    Mani is correct, this error comes when oracle thin driver classes are not in classpath.Try to get the newest version of oracle thin driver (10g) which has support for CLOB also.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: Query:JDBC pool for connecting Oracle database

    Posted Tue June 09, 2009 01:10 PM

    Can you please let me know where can I find the class.zip file,that has to be kept under IntegrationServer\packages\WmJDBCAdapter\code\jars.

    Thanks in Advance


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 11.  RE: Query:JDBC pool for connecting Oracle database

    Posted Tue June 09, 2009 01:19 PM

    Mark,
    Can you please let me know where can i get the latest Oracle driver? I have the Oracle client installed in my system.

    While trying to Connect to Oracle database using JDBC Adapter I am getting the following error:

    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource eaidb:eaidbConnection.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.200] The JDBC DataSource class “oracle.jdbc.pool.OracleDataSource” cannot be located.
    oracle.jdbc.pool.OracleDataSource

    The Properties which I have given is given below. ( I am able to connect through SQL Plus, but not with webMethods)

    Connection Properties
    Transaction Type NO_TRANSACTION
    DataSource Class oracle.jdbc.pool.OracleDataSource
    serverName 10.16.16.196
    user webMethods
    password ******
    databaseName eaidb
    portNumber 1521
    networkProtocol
    Other Properties driverType=thin

    Connection Management Properties
    Enable Connection Pooling true
    Minimum Pool Size 1
    Maximum Pool Size 10
    Pool Increment Size 1
    Block Timeout (msec) 1000
    Expire Timeout (msec) 1000
    Startup Retry Count 0
    Startup Backoff Timeout (sec) 10

    Please help me out.
    Thanks in Advance.


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: Query:JDBC pool for connecting Oracle database

    Posted Tue June 09, 2009 01:44 PM

    You can find classes12 in oracle installation folder oracle\ora92\jdbc\lib.


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 13.  RE: Query:JDBC pool for connecting Oracle database

    Posted Tue June 09, 2009 01:53 PM

    Problem Solved. Thanks a lot Shahid and Mike.
    I copied the ojdbc14.jar and ojdbc14_g.jar ( found in ora9i/jdbc/lib, where Oracle has been installed) under IntegrationServer\lib\jars and restarted the IS.


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods