Author Topic: could not load driver "oracle.jdbc.OracleDriver".  (Read 1609 times)

Offline Peewee71

  • Full Member
  • ***
  • Posts: 23
  • Forum Citizenship: +0/-0
could not load driver "oracle.jdbc.OracleDriver".
« on: 10 May 2011 09:31:07 am »
Hi,
I'm setting up a new cognos BI instance 8.4.1 on a windows 2008 R2 Standard 64 bit server. Oracle client version 11.2.0 is installed. I can connect to my content manager database ok via sqlplus. I have copied ojdbc6.jar to the appropriate cognos directory.. C:\Program Files (x86)\cognos\c841\webapps\p2pd\WEB-INF\lib

Within Cognos Configuration I have created a new oracle advanced  type and have completed the appropriate user ID & password and database specifier. If i test this connection within cognos configuration i am getting the following error.

[ ERROR ] The database connection failed.
[ ERROR ] Content Manager failed to start because it could not load driver "oracle.jdbc.OracleDriver".

Any idea on how to fix this one?

Offline AussiePete2011

  • Statesman
  • ******
  • Posts: 253
  • Forum Citizenship: +14/-0
Re: could not load driver "oracle.jdbc.OracleDriver".
« Reply #1 on: 10 May 2011 09:51:57 pm »
Hi there

Try dropping back to the ojdbc5.jar file.  Remember to remove the ojdbc6.jar file before testing
I've seen this before and using ojdbc5 usually solves the issue.
Its known as an issue in IBM Cognos Support

Cheers
Peter B

Offline sashafay

  • Full Member
  • ***
  • Posts: 22
  • Forum Citizenship: +1/-0
Re: could not load driver "oracle.jdbc.OracleDriver".
« Reply #2 on: 10 May 2011 10:56:06 pm »
Yep, you need ojdbc5.jar, not ojdbc6.jar. Remove wrong file first, then copy required one and start Cognos Configuration again.

Offline Peewee71

  • Full Member
  • ***
  • Posts: 23
  • Forum Citizenship: +0/-0
Re: could not load driver "oracle.jdbc.OracleDriver".
« Reply #3 on: 11 May 2011 02:30:57 am »
just to confirm that using ojdbc5.jar worked.

thx

Offline Karteek78

  • Associate
  • **
  • Posts: 2
  • Forum Citizenship: +0/-0
Re: could not load driver "oracle.jdbc.OracleDriver".
« Reply #4 on: 27 Oct 2011 10:35:17 am »
Hi All,

            Even after following the above process i face the same issue. Please help me out in this issue and i am using the same database

Offline AussiePete2011

  • Statesman
  • ******
  • Posts: 253
  • Forum Citizenship: +14/-0
Re: could not load driver "oracle.jdbc.OracleDriver".
« Reply #5 on: 30 Oct 2011 03:31:27 pm »
hi there,

Do you have under the lib folder
classes12.jar as well as ojdbc5.jar?
If you do please remove the classes12.jar file.

Also just so we understand you r environment
What is the Oracle database you are attempting to connect to

Cheers
Peter

Offline Karteek78

  • Associate
  • **
  • Posts: 2
  • Forum Citizenship: +0/-0
Re: could not load driver "oracle.jdbc.OracleDriver".
« Reply #6 on: 31 Oct 2011 12:27:36 am »
Hi Peter,

The oracle database which i am trying to connect is 11.2.0.1.0 32 bit and i don't have classes12.jar in my lib folder

Thank You,
Karteek

Offline AussiePete2011

  • Statesman
  • ******
  • Posts: 253
  • Forum Citizenship: +14/-0
Re: could not load driver "oracle.jdbc.OracleDriver".
« Reply #7 on: 31 Oct 2011 02:59:47 pm »
Hi there

Ok, Oracle 11.2 which I believe is Oracle 11g Release 2 which is only supported for Cognos 8.4.1 FP2 - https://www-304.ibm.com/support/docview.wss?uid=swg27017522#contentstore

Can you confirm that the Oracle database is using either AL32UTF8 or AL32UTF16?
https://www-304.ibm.com/support/docview.wss?uid=swg21513190

What is the exact error you are seeing when starting the Cognos Services?
Cheers
Peter