WAS v8.5 > Reference > Troubleshooting tips

Data access problems for Sybase data sources

This article provides troubleshooting tips for accessing Sybase data sources.


What kind of problem are you having accessing your Sybase database?


"Sybase Error 7713: Stored Procedure can only be executed in unchained transaction mode" error

This error occurs when either:

To fix the autocommit(true) mode problem, let the application change the connection to chained mode using the Connection.setAutoCommit(false) mode, or use a set chained on language command.

To resolve the stored procedure problem, use the sp_procxmode procedure_name "anymode" command.


"JZ0XS: The server does not support XA-style transactions. Please verify the transaction feature is enabled and licensed on this server"

This error occurs when XA-style transactions are attempted on a server that does not have Distributed Transaction Management (DTM) installed.

To resolve this problem, use the instructions in the Sybase Manual titled: Use Adaptive Server Distributed Transaction Management Features to enable Distributed Transaction Management (DTM). The main steps in this procedure are:

  1. Install the DTM option.
  2. Check the license.dat file to verify the DTM option is installed.

  3. Restart the license manager.

  4. Enable DTM in ISQL.

  5. Restart the ASE service.


Container managed persistence (CMP) enterprise bean is causing exceptions

This error is caused by improper use of reserved words. Reserved words cannot be used as column names.

To correct this problem: Rename the variable to remove the reserved word. We can find a list of reserved words in the Quick Reference Guide for Sybase Adaptive Server Enterprise 15.5. This manual is available online at: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc70202.1550/html/quickref/CACIGGEB.htm.


Database deadlocks and XA_PROTO errors occur when using Sybase

When using Sybase with the IBM WebSphere Application Server, do one of the following to prevent database deadlocks and errors:


Sybase does not throw an exception when an incorrect database name is specified

Verify the database name is correctly entered on the data source properties.

Most databases (DB2 , Oracle, Informix , MS SQL Server and Apache Derby) throw an exception when the database specified does not exist. But Sybase does not throw an exception when an incorrect database name is specified. Sybase generates an SQL warning and then connects to the default database. If we misspell the requested database name, Sybase connects you to the master or the default database where the table you requested is not found.

If none of these steps fixes your problem, check to see if the problem has been identified and documented by looking at the available online support (hints and tips, technotes, and fixes). If we do not find your problem listed there, contact IBM Support.


Related concepts:

Troubleshooting help from IBM


Related


Develop data access applications


Reference:

Data access problems
Data access problems for Oracle data sources
Data access problems for DB2 databases
Data access problems for Microsoft SQL Server data sources
Data access problems for Apache Derby databases
Diagnose and fixing problems: Resources for learning


+

Search Tips   |   Advanced Search