Author Topic: New cognos 8.4 install can't connect to Content Store  (Read 15266 times)

Offline Richard

  • Full Member
  • ***
  • Posts: 39
  • Forum Citizenship: +0/-0
New cognos 8.4 install can't connect to Content Store
« on: 13 Mar 2009 11:56:45 pm »
I can't get my new cognos 8.4 install to connect to the Content store (oracle). I get the error below when I test the connection...


[ ERROR ] The database connection failed.
[ ERROR ] Content Manager failed to connect to the content store. The connection string is "jdbc:oracle:thin:@dwdev.mdpd.net:1521:TCOG84".


I can connect to the content store from sqlplus with no problems, and i made sure the username used to login has permissions to insert/update/delete.
Attached is also the screenshot of the error msg I get when starting the services.

Any help is greatly apreciated...

Offline smiley

  • Community Leader
  • *****
  • Posts: 114
  • Forum Citizenship: +7/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #1 on: 14 Mar 2009 01:36:17 am »
Did you copy the oracle client jdbc driver to the Cognos 8 lib directory?

Offline Richard

  • Full Member
  • ***
  • Posts: 39
  • Forum Citizenship: +0/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #2 on: 14 Mar 2009 01:41:38 am »
Hi Smiley,

Yes i did.... i tried with ojdbc14.jar and I copied it to ...\webapps\p2pd\WEB-INF\lib

and when that did not work, i even tried classes12.jar.. still niether worked

Any other ideas?

Offline kolonell

  • Community Leader
  • *****
  • Posts: 138
  • Forum Citizenship: +9/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #3 on: 14 Mar 2009 02:04:39 am »
I'd make sure that the directory where TNSNAMES resides is the first in the environment variables. In case of multiple It might just pick up another one. Or you can try an Advanced oracle connection to the Content Store and provide the full "Oracle Connection String" (from the TNSNAMES).

Offline Richard

  • Full Member
  • ***
  • Posts: 39
  • Forum Citizenship: +0/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #4 on: 14 Mar 2009 02:47:49 am »
Kolonel,


I followed you advice and tried the "Advance Oracle Connection"... looks like it worked..

Thanks

Offline kolonell

  • Community Leader
  • *****
  • Posts: 138
  • Forum Citizenship: +9/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #5 on: 14 Mar 2009 10:32:04 am »
good to hear ...  ;)  ... it all points now to the TNSNAMES now, somehow the hostnames aren't resolving correctly when using the default config

Offline cogswell

  • Full Member
  • ***
  • Posts: 39
  • Forum Citizenship: +0/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #6 on: 31 May 2009 04:52:40 am »
I still have this issue. My environment consists of the following:
1. Oracle 11g (64-bit client install) with an empty DB called 'CCS' for the Cognos Content Store
2. Cognos 8.4 32-bit on Windows Server 2008 64-bit
3. JRE 6.0 update 14 (latest; both 32 and 64-bit versions installed in their default locations).

Note that I am using Java version 6.

If I copy the file ojdbc6.jar from C:\Oracle\Administrator\product\11.1.0\jdbc\lib to C:\Program Files (x86)\cognos\c8\webapps\p2pd\WEB-INF\lib, testing the connection in Cognos Configuration Manager throws up the following error:
Code: [Select]
[ ERROR ] The database connection failed.
[ ERROR ] Content Manager failed to start because it could not load driver "oracle.jdbc.OracleDriver".

If I copy the file ojdbc5.jar to the above location, the following error is shown instead:
Code: [Select]
[ ERROR ] The database connection failed.
[ ERROR ] Content Manager failed to connect to the content store. The connection string is "jdbc:oracle:@hostname:1521:CCS".

HELP!

Offline SomeClown

  • Community Leader
  • *****
  • Posts: 241
  • Forum Citizenship: +12/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #7 on: 31 May 2009 04:56:53 pm »
A test of tnsping resolves to the oracle instance?  If not, check your tnsnames.ora setup

Offline cogswell

  • Full Member
  • ***
  • Posts: 39
  • Forum Citizenship: +0/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #8 on: 31 May 2009 08:26:34 pm »
I forgot to mention that I am trying to establish this setup on a single computer. Once I resolve this ContentStore connection issue I will install XAMPP, map localhost to the cognos directory(ies), etc.

I remember now that when I was installing ODb11g on this computer, an error had popped up saying that there could be problems because the IP address on this computer was DHCP-assigned.

1. Is setting up the tnsnames.ora file mandatory in a Windows-based ODb11g+Cognos setup? The identical thread that the OP created at developerworks mentions that editing the tnsnames.ora file is not required.
2. If I am using Java version 6, why does the connection not work with ojdbc6.jar? I thought if we didn't set the JAVA_HOME variable, it would use the system installation of Java (v6) and not the version that comes with ODb (v1.5)

Thanks again.

Offline cogswell

  • Full Member
  • ***
  • Posts: 39
  • Forum Citizenship: +0/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #9 on: 01 Jun 2009 05:24:00 am »
A test of tnsping resolves to the oracle instance?  If not, check your tnsnames.ora setup



I get the 'TNS-12541: TNS:no listener' error when issuing 'tnsping localhost 1521' command. Is there something wrong with tnsnames.ora file that you mentioned? How do I fix it?

Also, there were multiple files with the same name; is the one I want to modify in 'C:\Oracle\product\11.1.0\db_1\owb\network\admin'?

Offline SomeClown

  • Community Leader
  • *****
  • Posts: 241
  • Forum Citizenship: +12/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #10 on: 01 Jun 2009 06:10:41 pm »
It may be that tnsnames.ora is not being used, but it seems reasonable that if you cannot ping it with tnsping (with correct info), then a jdbc connection isn't going to find it either. 

As to directory, don't know - depends on what else is/was there - network\admin is the correct subdirectory though.

java 6 - you mean, 1.6.xx/6.xx?  Not supported.  Not surprised if it doesn't work.

If you don't set java_home, Cognos uses it's JRE that is in the install directory

Offline vasadikiran

  • Kiran Kumar IBM Cognos 8 Business Intelligency Developer
  • Full Member
  • ***
  • Posts: 7
  • Forum Citizenship: +0/-0
  • Kiran Kumar IBM Certified Cognos BI Developer
    • Kiran Kumar IBM Cognos 8 BI Developer
Re: New cognos 8.4 install can't connect to Content Store
« Reply #11 on: 01 Jun 2009 07:13:59 pm »
Hi Smiley,

Yes i did.... i tried with ojdbc14.jar and I copied it to ...\webapps\p2pd\WEB-INF\lib

and when that did not work, i even tried classes12.jar.. still niether worked

Any other ideas?
Thanks & Regards
Kiran Kumar Vasadi
IBM Certified Business Intelligence Developer
#91+9246693319, 91+8977081119
http://kiranvasadi.blogspot.com/

"You see things; and you say, 'why?' But i dream things that never were; and I say, "why not?"

Offline cogswell

  • Full Member
  • ***
  • Posts: 39
  • Forum Citizenship: +0/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #12 on: 02 Jun 2009 10:42:06 pm »
It may be that tnsnames.ora is not being used, but it seems reasonable that if you cannot ping it with tnsping (with correct info), then a jdbc connection isn't going to find it either. 

As to directory, don't know - depends on what else is/was there - network\admin is the correct subdirectory though.

java 6 - you mean, 1.6.xx/6.xx?  Not supported.  Not surprised if it doesn't work.

If you don't set java_home, Cognos uses it's JRE that is in the install directory

You sure java 1.6 is not supported? I've seen (but don't have access to (anymore)) a test environment with JDK 1.6 installed.

Offline SomeClown

  • Community Leader
  • *****
  • Posts: 241
  • Forum Citizenship: +12/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #13 on: 03 Jun 2009 05:05:11 pm »
Just went off what's on the website for support.  1.6 might work but that does not mean it's supported.

Offline Hallheim

  • Associate
  • **
  • Posts: 1
  • Forum Citizenship: +0/-0
Re: New cognos 8.4 install can't connect to Content Store
« Reply #14 on: 04 Jun 2009 05:35:08 pm »
Not sure if this applies to your problem, but I've experienced problems connecting to CS on 11g on a Windows Server 2008 environment. It seems that the Tomcat application server shipping with 8.4 JVM has problems detecting locale settings, and thus fails to contact the content store. Cognos Support hasn't been able to resolve it so far, but the client found a workaround - at least on Windows Server 2008 32-bit.

1. First you have to make sure that you've copied the .jar driver corresponding to your Oracle release into ...\webapps\p2pd\WEB-INF\lib. This is a prerequisite as all Content Store communication will be conducted with the thin java driver, and thus it won't matter if you're able to contact Oracle using SQLplus or tnsping as they both use the native client and tnsnames.ora - the java client doesn't read any of these settings.

2. Edit bootstrap_win32.xml and add the following lines:
        <param>-Duser.language=en</param>
   <param>-Duser.country=US></param>
3. Re-test connection in Cognos Configuration - should work allright now, if not - your problem is probably elsewhere...