ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexGeneral IBM MQ SupportTesting JDBC connection with IIB app

Post new topicReply to topic
Testing JDBC connection with IIB app View previous topic :: View next topic
Author Message
dinothedinamite
PostPosted: Mon Jun 24, 2019 4:20 am Post subject: Testing JDBC connection with IIB app Reply with quote

Guest




Hello again,

I've configured my service for JDBC provider to connect to Oracle XE db. Is there a simple way how to test the connection? I know that there is mqsicvp command for ODBC connections, but what is the easiest way to do it for JDBC?
Example would be appreciated because I tried a lot of things and didnt manage to get any info back. Thanks
Back to top
fjb_saper
PostPosted: Mon Jun 24, 2019 4:28 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20458
Location: LI,NY

show us the JDBC configurable service you set up and we might be able to help.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
dinothedinamite
PostPosted: Mon Jun 24, 2019 4:34 am Post subject: Reply with quote

Guest




I apologize, here is the JDBC configurable service that I've created:

Back to top
fjb_saper
PostPosted: Tue Jun 25, 2019 4:42 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20458
Location: LI,NY

Did you change the connectionUrlFormat from the original? I don't see in the connectionUrlFormat a placeholder for the dbname... or databaseName...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
dinothedinamite
PostPosted: Tue Jun 25, 2019 11:08 pm Post subject: Reply with quote

Newbie

Joined: 25 Jun 2019
Posts: 6

First things first, my account with which i created this post got deleted for god knows which reason, nvm.

Secondly, the connectionUrlFormat is equal to the connectionUrlFormat that is in default Oracle JDBC configurable service, also has no dbname parameter.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 26, 2019 5:43 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20458
Location: LI,NY

so can you connect to Oracle from outside the broker using
Code:
jdbc:oracle:thin:username/password/@servername:port:XE


If that is not the case than why do you expect to be able to do it with the configurable service?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
dinothedinamite
PostPosted: Thu Jun 27, 2019 10:25 pm Post subject: Reply with quote

Newbie

Joined: 25 Jun 2019
Posts: 6

Found a way how to test it, made a simple app that just checks if the connection is successful or not.
Back to top
View user's profile Send private message
Ingeniero_Informatico
PostPosted: Mon Mar 15, 2021 9:35 pm Post subject: Unable to establish connection with Oracle DB via IIBv10 Reply with quote

Newbie

Joined: 15 Mar 2021
Posts: 3

Hello experiencing the following error when trying to access an Oracle 12g DB using IIBV10.

There was a problem establishing a connection to the given database URL: jdbc:oracle:thin:DBUSERNAME/xxxxxxxx@SERVERNAME:1521:DBSERVICENAMEException details: connection resource was reset

The node was unable to establish a connection to the given database URL.


Here is the result from running the mqsireportproperties on the unix serner

connectionUrlFormat='jdbc:oracle:thin:[user]/[password]@[serverName]:[portNumber]:[connectionUrlFormatAttr1]'
connectionUrlFormatAttr1='DBSERVICNAME'
connectionUrlFormatAttr2=''
connectionUrlFormatAttr3=''
connectionUrlFormatAttr4=''
connectionUrlFormatAttr5=''
databaseName='default_Database_Name'
databaseSchemaNames='useProvidedSchemaNames'
databaseType='Oracle'
databaseVersion='default_Database_Version'
description='default_Description'
environmentParms='default_none'
jarsURL='/MBHA/jdbc'
jdbcProviderXASupport='true'
maxConnectionPoolSize='5'
portNumber='1521'
securityIdentity='OIPASecId'
serverName='DBSERVERNAME'
type4DatasourceClassName='oracle.jdbc.xa.client.OracleXADataSource'
type4DriverClassName='oracle.jdbc.OracleDriver'
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Mar 16, 2021 7:57 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8887
Location: US: west coast, almost. Otherwise, enroute.

Please do NOT double post.

This is a duplicate of your other post http://www.mqseries.net/phpBB2/viewtopic.php?t=75245&start=15
_________________
Five out of four people have trouble with fractions. - Steven Wright.
Back to top
View user's profile Send private message
Ingeniero_Informatico
PostPosted: Tue Mar 16, 2021 8:00 am Post subject: Reply with quote

Newbie

Joined: 15 Mar 2021
Posts: 3

Hi bruce2359
Can you assist with the issue?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Mar 16, 2021 8:39 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8887
Location: US: west coast, almost. Otherwise, enroute.

Not my area of expertise. Someone should be along shortly to help you.

If you are uncertain about category you should post to, pick one. Double- or triple-posting is considered rude, and will not speed up the process.
_________________
Five out of four people have trouble with fractions. - Steven Wright.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportTesting JDBC connection with IIB app
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.