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.

 View Only
Expand all | Collapse all

Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

  • 1.  Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 01:51 PM

    I know this question has been asked several times but I really don’t find any helpful answers. I am trying to setup a JDBC connection with an OCI driver to connect to an Oracle 11g database. The error that comes up is: no ocijdbc10 in java.library.path. I am trying to use the Oracle Database 11g Release 2 (11.2.0.4) JDBC OCI Drivers. I have setup the environment path variable. The curious thing is if I replace the jar files in the path with the JDBC driver version 10 it works without any error. Please let me know what I am doing wrong here.

    Component Stack:

    1. webMethods Integration Server - 9.0
    2. JDBC Adapter - 6.5
    3. Oracle 11g R2 Enterprise
    4. Java Version - 1.7.0_25
    5. JDBC driver version - 11.2.0.4

    Thanks in advance,
    Rohit


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


  • 2.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 01:55 PM

    Did you place the ocijdbc10 jar in IntegrationServer/config/lib/jars folder

    Can I know your wM version?


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


  • 3.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 02:54 PM

    Hi Mahesh - Thanks for your reply, I am trying to work with the JDBC version 11.2 so i believe the file would be ocijdbc11 and not ocijdbc10. And I have placed the same in the path: IntegrationServer/config/lib/jars. The wM version I’m using is 9.0. Please let me know if you need any further information.

    Rohit


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


  • 4.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 03:00 PM

    Can you share the folder under SoftwareAG\IntegrationServer

    Share the screen shot of your JDBC connnection page showing all the parameters.

    What did you give in other properties?


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


  • 5.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 03:04 PM

    Place the jars here

    SoftwareAG\IntegrationServer\lib\jars\

    or

    SoftwareAG\IntegrationServer\lib\jars\custom


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


  • 6.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 03:08 PM

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


  • 7.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 03:20 PM

    I have attached the screenshot for the connection properties. I have placed the file in the path: SoftwareAG\IntegrationServer\lib\jars. I had a few queries:

    1. How is the JDBC version selected while enabling a JDBC Connection?
    2. Can we have multiple versions of the JDBC drivers placed in the directory path: SoftwareAG\IntegrationServer\lib\jars\ ?

    Thanks for your reply,
    Rohit


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


  • 8.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 03:26 PM

    Answers below:

    1> What do you mean by “JDBC version selected while enabling a JDBC Connection” Latest JDBC version is 6.5.
    2> You can place the jars in SoftwareAG\IntegrationServer\lib\jars\ in wM 7 I think from 9 and above place the jars in

    SoftwareAG\IntegrationServer\lib\jars\custom and then enable the JDBC connection. Make sure there are no extra spaces (leading and trailing edges) in the parameters. All 3rd party jars should be in custom folder.

    Also share the screen shot of the folders under SoftwareAG\IntegrationServer\


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


  • 9.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 03:30 PM

    Sorry - I meant to ask how the JDBC driver was selected at runtime while enabling the connection. I have included the folder image too.

    Thanks,
    Rohit


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


  • 10.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Sun September 28, 2014 03:33 PM

    Wrong screen shot. I asked for the screen shot of the folders under SoftwareAG\IntegrationServer\

    Anyways… put the jars in SoftwareAG\IntegrationServer\lib\jars\custom and try to enable the JDBC connection.

    If its not working let me know…


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


  • 11.  RE: Error 'no ocijdbc10 in java.library.path' while setting up a JDBC connection

    Posted Mon September 29, 2014 12:18 PM

    Suggestion:

    place the dll (native part) under IntegrationServer/lib.

    The jars can be either placed under one of the following locations:

    1. IntegrationServer/lib/jars/custom (This one is recommended when using OCI mode with dll, alternatively use option 3.)
    2. IntegrationServer/packages/WmJDBCAdapter/code/jars (This one is sufficient when using Thin mode without dll)
    3. IntegrationServer/packages/WmJDBCAdapter/code/jars/static (This one is recommended when using OCI mode with dll, alternatively try option 1.)

    Remember to shutdown and start the IS in each of the case when exchanging files as otherwise these will not be loaded completely.

    As long as there is no real requirement for using OCI mode, I prefer using the Thin mode, which works farely well when using the jars matching the JVM and/or Oracle-Version being used.

    Currently this is ojdbc6.jar from Oracle 11g R2 (11.2.0.4), which can be used by all currently supported wM versions and their related JVMs. Only for wM 7.1 instances I recommend ojdbc5.jar from the same Oracle-Version as already mentioned.

    Regards,
    Holger


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