About SQL 2000, SQL2005, SQL2008 in WebLogic can not create AX link processing solution

 

 

javax.transaction.xa.XAException: java.sql.SQLException: Could not create XA control connection. Error: Could not find stored procedure 'master..xp_sqljdbc_xa_init'.

Configuring JTA SQL Server XADataSource Reference: http://technet.microsoft.com/en-us/library/aa342335.aspx

 

1. sqljdbc_3.0\chs\auth\x86(x64|IA64)\sqljdbc_auth.dll is placed in WINDOWS\system32

2.sqljdbc_3.0\chs\xa\x86(x64|IA64)\sqljdbc_xa.dll放入Microsoft SQLServer\MSSQL\Binn\sqljdbc_xa.dll

3. Execute xa_install.sql

4. Grant permissions to the SQL Server login user. Can participate: http://www.blogjava.net/zyw090111/

If you want to use both XA data sources and Microsoft Distributed Transaction Coordinator (MS DTC) to process distributed transactions, you need to perform the following steps
(1) on Windows XP and Windows Server 2003:

1. In Control Panel, open Administrative Tools, and then open Component Services. You can also click the Start button, click Run, type dcomcnfg in the Open box, and press OK to open Component Services.

2. Expand Component Services, Computer, right-click My Computer, and select Properties.

3. Click the MSDTC tab, and then click Security Configuration.

4. Select the Enable XA Transactions check box and click OK. This will restart the MS DTC service.

5. Click OK again to close the Properties dialog, and then close Component Services.

6. Stop and restart SQL Server to ensure it is synchronized with MS DTC changes.

 

(2) On Win8 or Server 2008:

 

1. In Control Panel, open Administrative Tools, and then open Component Services. You can also click the Start button, click Run, type dcomcnfg in the Open box, and press OK to open Component Services.

2. Expand "Component Services"\"Computer"\"Distribute Transaction Coordinator", right-click "Local DTC", and select "Properties".

3. Click the Security tab, and then click Enable XA Transactions.

4. Then click OK. This will restart the MS DTC service.

5. Click OK again to close the Properties dialog, and then close Component Services.

6. Stop and restart SQL Server to ensure it is synchronized with MS DTC changes.

 

Note: If it still appears after these configurations are completed:

Error: atomikos: error in recovery.

1. There is a problem with the driver. Namely sqljdbc4.jar. After I encountered this kind of problem before, I downloaded "sqljdbc_3.0.1301.101_chs.exe" from the official website of Miscrosoft; after decompression, all configurations use the files in the decompressed package. Include (sqljdbc_xa.dll)

2.SQL Server 2000 uses x86 (ie 32) bit files to configure. Because after entering "select @@version" through the query analyzer to view the version of SQL, you will find that even though the operating system is Server 2003 X64 bit, SQL Server 2000 is still 32 bit.

Enter "select @@version" on WIn8 to get the version number "Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Developer Edition (64-bit) ) on Windows NT 6.2 <X64> (Build 9200: ) ”, it can be seen that SQL Server is X64.

3. When configuring JTA XADataSource in SQL Server 2000, if the sqljdbc.jar package is used, there is no such class as com.microsoft.sqlserver.jdbc.SQLServerXADataSource. Therefore, SQL Server 2000 is also configured with the sqljdbc4.jar package.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326643214&siteId=291194637