| Author | Message | 
		
		  | w1ndy | 
			  
				|  Posted: Fri Aug 26, 2011 1:15 am    Post subject: XA Error WMQFTE Windows - Oracle DB Linux |   |  | 
		
		  | Apprentice
 
 
 Joined: 19 Jan 2011Posts: 38
 
 
 | 
			  
				| I am having a wee problem with the above. 
 XAOPENSTRING I am using is as follows copied from XA trace.
 
 xaoopen: xa_info=ORACLE_XA+DB=DCBPTSA.uk.tescobank.org+Acc=P/userid/password+SesTm=35+threads=FALSE+DbgFl=0x7+LogDir=F:\\XALOG,rmid=1,flags=0x0
 Receiving error
 
 xaolgn_help: XAER_RMERR; OCIServerAttach failed. ORA-12560.
 :
 xaoopen: return -3
 
 I can use tnsping from Windows to ping the remote Database on Linux. I can also connect using SQL Developer succesfully.
 
 If anyone has any pointers or tips on how to get more info than this to solve the problem I'd be grateful for help.
 
 Many thanks.
 
 Windy
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kimmyj | 
			  
				|  Posted: Mon Aug 29, 2011 7:50 pm    Post subject: |   |  | 
		
		  |  Novice
 
 
 Joined: 26 Jun 2003Posts: 19
 Location: UK
 
 | 
			  
				| Do you have your tnsnames.ora specified? 
 I assume this is for the database logger?
 
 Are you connecting to a SID or a SERVICE_NAME?
 
 SERVICE_NAME (Oracle RAC) isn't supported.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | w1ndy | 
			  
				|  Posted: Tue Aug 30, 2011 7:34 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 19 Jan 2011Posts: 38
 
 
 | 
			  
				| Thanks Kimmy1. Yes trying to implement Oracle DB Logger. 
 tnsnames .ora below
 
 DCBPTSA.uk.tescobank.org =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST = ukirdbc8.ukdev.tescobank.org)(PORT = 1521))
 (CONNECT_DATA =
 (SERVER = DEDICATED)
 (SERVICE_NAME = DCBPTSA.uk.tescobank.org)
 )
 )
 
 
 ORACLE_HOME specified.
 
 Just cannot get XAOPENSTRING to work. Have tried SQLNET parm specifying fully qualified SERVICE_NAME have also tried DB=fully qualified service name to no avail.
 
 I can connect from Windows using SQLPLUS and also tnsping (output below). Yet restart the QM and receive error.
 
 
 Used parameter files:
 E:\Oracle\product\11.2.0\client_2_32bit\network\admin\sqlnet.ora
 
 
 Used TNSNAMES adapter to resolve the alias
 Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ukirdbc8.ukdev.tescobank.org)(PORT = 1521)) (CONNECT_DATA = (
 SERVER = DEDICATED) (SERVICE_NAME = DCBPTSA.uk.tescobank.org)))
 OK (0 msec)
 
 Any clues gratefully received.
 
 Windy
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Tue Aug 30, 2011 9:36 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 Location: LI,NY
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | w1ndy | 
			  
				|  Posted: Wed Aug 31, 2011 1:43 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 19 Jan 2011Posts: 38
 
 
 | 
			  
				| Thanks, this is the tome I am trying to interperate. What I do not understand (call me stupid)  is the relationship between the XAOPENSTRING and the TNSNAMES.ORA + difference between a SID and a SERVICE_NAME. 
 Has anyone else used FTE DB Logging where QM runs on Windows Server and Oracle runs on Linux?
 
 Windy
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | w1ndy | 
			  
				|  Posted: Wed Aug 31, 2011 7:15 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 19 Jan 2011Posts: 38
 
 
 | 
			  
				|                     
               
 Got it working. Thanks folks. Will post the working config once I've got it documented.
 
 What a stramash.
 
 Windy
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | yeger | 
			  
				|  Posted: Thu Oct 11, 2012 5:18 am    Post subject: |   |  | 
		
		  |  Newbie
 
 
 Joined: 09 Mar 2005Posts: 8
 
 
 | 
			  
				| can you post the solution that you found? we are having the same issue and it would help us alot
 
 regards,
 
 Oren
 _________________
 Regards, Oren
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | w1ndy | 
			  
				|  Posted: Thu Oct 11, 2012 5:31 am    Post subject: XA OpenString and TNSNAMES |   |  | 
		
		  | Apprentice
 
 
 Joined: 19 Jan 2011Posts: 38
 
 
 | 
			  
				| Here you go Oren 
 
 
 In the TNSNAMES.ORA file, the entry looks like this:
 YYYYYYYY =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST = hostname.hostname.etc)(PORT = 9999))
 (CONNECT_DATA =
 (SERVER = DEDICATED)
 (SID = YYYYYYYY)
 )
 )
 
 
 XA String Looks like this
 
 Oracle_XA+DB=YYYYYYYY+SQLNET=YYYYYYYY+Acc=P/useridpassword+SesTm=100+threads=true+DbgFl=0x7+LogDir=C:\\ProgramDa ta\\ApplicationData\\IBM\\WMQFTE\\config\\qmgr\\XALOG
 
 
 
 DB=YYYYYYYY
 The DB=DCBPTSA is not the SID and is not used to locate the database to be opened. Rather, it correlates the database opened by this open string with the name used in the application program to execute SQL statements. The SID is set from either the environment variable ORACLE_SID (which we do not use) of the TPM application server or the SIDd given in the Oracle SQLNet clause in the open string. The Oracle Net clause is described next.
 
 SQLNET=YYYYYYYY
 Identifies the Oracle database to connect to which is defined in the tnsnames.ora file
 
 
 Windy
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |