COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: hugo001 on 22 Aug 2013 12:49:20 PM

Title: Custom JDBC Connection
Post by: hugo001 on 22 Aug 2013 12:49:20 PM
Hi,

I am trying to connect Cognos BI via a custom JDBC driver to our database. However, when setting up a new JDBC connection, I have to select a JDBC type from the dropdown (IBM IMS, IBM Informix, IBM Hive), which prefixes the URL automatically with "jdbc:ims" or similar. I need to set this prefix manually.
Any way to do so?

I am using IBM Smart Cloud with the RedHat Cognos BI 10.2 Image

Thanks,
Martin
Title: Re: Custom JDBC Connection
Post by: MFGF on 23 Aug 2013 07:22:16 AM
What database are you using? Many of the normal relational connection types also provide JDBC access when you are configuring them. For example, if you select SQL Server 2008 Native Client, you can put garbage in the Native Client connection page, then go to the JDBC page and enter the desired JDBC details.

MF.
Title: Re: Custom JDBC Connection
Post by: Grim on 23 Aug 2013 07:39:19 AM
Quote from: MFGF on 23 Aug 2013 07:22:16 AM
What database are you using? Many of the normal relational connection types also provide JDBC access when you are configuring them. For example, if you select SQL Server 2008 Native Client, you can put garbage in the Native Client connection page, then go to the JDBC page and enter the desired JDBC details.

MF.

:o ORLY!?¿
That's good to know. I have a feeling they will "patch" that as it's probably not intended.
Title: Re: Custom JDBC Connection
Post by: hugo001 on 23 Aug 2013 10:35:37 AM
Hi,

thanks for that note - however this would use the com.microsoft.sqlserver.jdbc.SQLServerDriver JDBC Driver, but I want to use a proprietary one.
I think it's not possible to do that once you select SQL Server 2008 Native.

Any other ideas?

Thanks,
Martin
Title: Re: Custom JDBC Connection
Post by: MFGF on 23 Aug 2013 03:24:12 PM
Hi,

If your data source or jdbc is not on the supported databases list, I don't think you're going to have much luck, sorry. There is no "generic" jdbc connection type as there is with ODBC.

MF.
Title: Re: Custom JDBC Connection
Post by: cognostechie on 24 Aug 2013 09:11:32 PM
I just installed 10.2.1 64-bit for a client . I can do everything but how do I make a JDBC connection to SQL Server?
I tried using SQL Server OLE DB type but in the last screen where it asks for server name etc, I provide everything but
it can't connect. It can connect without JDBC.

Do I have to install the JDBC drivers or they are included in the Java (Java ver 7.0). 
Title: Re: Custom JDBC Connection
Post by: bdbits on 26 Aug 2013 03:33:59 PM
You have to install the driver, as you would to enable JDBC for any database.

http://msdn.microsoft.com/en-us/sqlserver/aa937724.aspx (http://msdn.microsoft.com/en-us/sqlserver/aa937724.aspx)
Title: Re: Custom JDBC Connection
Post by: cognostechie on 26 Aug 2013 03:57:33 PM
Thank you so much bdbits !
Title: Re: Custom JDBC Connection
Post by: bdbits on 26 Aug 2013 04:17:32 PM
Glad I could help somebody else for once.  8)
Title: Re: Custom JDBC Connection
Post by: cognostechie on 26 Aug 2013 08:33:54 PM
Why do you say that?  I have seen your posts. You do help a lot of people !
Title: Re: Custom JDBC Connection
Post by: Jyotsnac on 06 Dec 2013 09:28:20 AM
Hi Martin,

Was there any luck on connecting with custom JDBC. If yes, then please let me know. I am facing the same issue.  We are using Cognos 10.2.1 on Windows 7.

Thanks,
Jyotsna C
Title: Re: Custom JDBC Connection
Post by: MFGF on 11 Dec 2013 12:28:31 PM
Quote from: Jyotsnac on 06 Dec 2013 09:28:20 AM
Hi Martin,

Was there any luck on connecting with custom JDBC. If yes, then please let me know. I am facing the same issue.  We are using Cognos 10.2.1 on Windows 7.

Thanks,
Jyotsna C

Cognos 10 isn't supported on Windows 7 - except for the client tools such as Framework Manager. JDBC connections are made via the server component - what OS is that installed on?

I have noticed in my 10.2.1 Fix Pack 1 instance that the JDBC URL appears to be manually editable (is editable a real word?) :) What happens if you replace the initial part of the JDBC URL ("jdbc:ims" etc) with the correct prefix? Does this work?

Cheers!

MF.
Title: Re: Custom JDBC Connection
Post by: madhancog on 18 Dec 2013 07:24:33 AM
HI,
  I just installed 10.2.1 32-bit  in 64bit windows 2008 server and installed oracle 11g client in the same box .
  I completed all configuration and it is working fine.
  Now i tried to make a JDBC connection to oracle,but couldn't,so i checked in the documentation and placed ojdbc6.jar file in the appropraite path in the cognos folder.but no luck.

then i checked the java version used by cognos10.2.1, it is java 7.0.

Please can any one provide the correct steps for the configuration.

Thanks in advance,
K.M
Title: Re: Custom JDBC Connection
Post by: MFGF on 18 Dec 2013 10:49:53 AM
Content store or reporting data source?
Title: Re: Custom JDBC Connection
Post by: kishoremk on 09 Aug 2016 01:45:26 AM
Hello,
   Sorry for reposting the same question, but I am trying to connect to a MS SQL server DB instance through Cognos using a custom JDBC driver ( Data direct drivers). I see that for MS SQL JDBC connection, only the MS supported JDBC driver is picked by default and there seems to be no possibility of configuring another driver. Is there something i am missing or is this how Cognos would be working (not supporting custom JDBC drivers). Could some body pls. confirm. (I am using Cognos 10.x)

thanks.
Title: Re: Custom JDBC Connection
Post by: MFGF on 09 Aug 2016 02:52:06 AM
Quote from: kishoremk on 09 Aug 2016 01:45:26 AM
Hello,
   Sorry for reposting the same question, but I am trying to connect to a MS SQL server DB instance through Cognos using a custom JDBC driver ( Data direct drivers). I see that for MS SQL JDBC connection, only the MS supported JDBC driver is picked by default and there seems to be no possibility of configuring another driver. Is there something i am missing or is this how Cognos would be working (not supporting custom JDBC drivers). Could some body pls. confirm. (I am using Cognos 10.x)

thanks.

Hi,

Yep - in this case you need to use the SQL Server JDBC driver from Microsoft.

MF.
Title: Re: Custom JDBC Connection
Post by: the6campbells on 27 Sep 2016 08:53:40 PM
Dynamic Query can only be used with the JDBC drivers which it supports.

Attempting to use a driver which is not supported with cause an non-certified driver error.

Attempting to use a version of a driver which is not supported will cause an unsupported (black listed) error.

If you are using the JDBC connection UI, the only drivers that can be used are the ones shown in the list.

Attempting to use a supported driver while pointing to a server which is not listed on the supported environments page is not supported even if you think you have it working :-)