| Author | Message | 
		
		  | dinothedinamite | 
			  
				|  Posted: Mon Jun 24, 2019 4:20 am    Post subject: Testing JDBC connection with IIB app |   |  | 
		
		  | 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 | 
			  
				|  Posted: Mon Jun 24, 2019 4:28 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 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 |  | 
		
		  |  | 
		
		  | dinothedinamite | 
			  
				|  Posted: Mon Jun 24, 2019 4:34 am    Post subject: |   |  | 
		
		  | Guest
 
 
 
 
 
 | 
			  
				| I apologize, here is the JDBC configurable service that I've created: 
 
  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Tue Jun 25, 2019 4:42 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 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 |  | 
		
		  |  | 
		
		  | dinothedinamite | 
			  
				|  Posted: Tue Jun 25, 2019 11:08 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 25 Jun 2019Posts: 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 |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Wed Jun 26, 2019 5:43 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 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 |  | 
		
		  |  | 
		
		  | dinothedinamite | 
			  
				|  Posted: Thu Jun 27, 2019 10:25 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 25 Jun 2019Posts: 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 |  | 
		
		  |  | 
		
		  | Ingeniero_Informatico | 
			  
				|  Posted: Mon Mar 15, 2021 9:35 pm    Post subject: Unable to establish connection with Oracle DB via IIBv10 |   |  | 
		
		  | Newbie
 
 
 Joined: 15 Mar 2021Posts: 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 |  | 
		
		  |  | 
		
		  | bruce2359 | 
			  
				|  Posted: Tue Mar 16, 2021 7:57 am    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 05 Jan 2008Posts: 9486
 Location: US: west coast, almost. Otherwise, enroute.
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Ingeniero_Informatico | 
			  
				|  Posted: Tue Mar 16, 2021 8:00 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 15 Mar 2021Posts: 3
 
 
 | 
			  
				| Hi bruce2359 Can you assist with the issue?
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | bruce2359 | 
			  
				|  Posted: Tue Mar 16, 2021 8:39 am    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 05 Jan 2008Posts: 9486
 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.
 _________________
 I like deadlines. I like to wave as they pass by.
 ב''ה
 Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |