Sybase JDBC driver

Hi,
We have recently upgraded our weblogic server from 6.0 to 6.1 sp5 on our testing
environment.
Our application runs fine for a few hours until our sybase db shuts down for some
reason. Thus rendering all connections to the db to fail.
Anyone know if the current JDBC driver has any comptiability issues with weblogic
6.1 sp5. Current version is "jConnect (TM) for JDBC(TM)/5.2(Build 21136)/P/EBF9747/JDK12/"
Our application connects to the db via a connection pool.
Here's the current settings for the connection pool:
<JDBCConnectionPool CapacityIncrement="10"
DriverName="com.sybase.jdbc2.jdbc.SybDriver" InitialCapacity="1"
MaxCapacity="200" Name="biaSybaseConnectionPool"
Properties="user=XXXXX;password=XXXXX" RefreshMinutes="0"
ShrinkPeriodMinutes="10" ShrinkingEnabled="true" Targets="as1"
TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
TestTableName="systypes" URL="jdbc:sybase:Tds:x.x.x.x:xxxx"/>
Here's some error log from weblgoic:
java.sql.SQLException: weblogic.common.ConnectDeadException: failed to make new
pool connection: java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings
chained to this exception for the reason(s).
weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings chained to
this exception for the reason(s).
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:480)
at com.sybase.jdbc2.tds.Tds.processLoginAckToken(Tds.java:2938)
at com.sybase.jdbc2.tds.Tds.doLogin(Tds.java:419)
at com.sybase.jdbc2.tds.Tds.login(Tds.java:341)
Thanks for your help
Regards,
Raymond

R Fung wrote:
Hi,
We have recently upgraded our weblogic server from 6.0 to 6.1 sp5 on our testing
environment.
Our application runs fine for a few hours until our sybase db shuts down for some
reason. Thus rendering all connections to the db to fail.
Anyone know if the current JDBC driver has any comptiability issues with weblogic
6.1 sp5. Current version is "jConnect (TM) for JDBC(TM)/5.2(Build 21136)/P/EBF9747/JDK12/"
Our application connects to the db via a connection pool.
Here's the current settings for the connection pool:
<JDBCConnectionPool CapacityIncrement="10"
DriverName="com.sybase.jdbc2.jdbc.SybDriver" InitialCapacity="1"
MaxCapacity="200" Name="biaSybaseConnectionPool"
Properties="user=XXXXX;password=XXXXX" RefreshMinutes="0"
ShrinkPeriodMinutes="10" ShrinkingEnabled="true" Targets="as1"
TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
TestTableName="systypes" URL="jdbc:sybase:Tds:x.x.x.x:xxxx"/>Hi. A few things: I would set the initial capacity = max capacity = 50 or less.
I would set TestConnectionsOnRelease="false".
See below for more....
Here's some error log from weblgoic:
java.sql.SQLException: weblogic.common.ConnectDeadException: failed to make new
pool connection: java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings
chained to this exception for the reason(s).
*******************************************I would expect to see this sort of exception in the logs during the time the DBMS was
down. Are you saying that the pool never recovers after the DBMS comes back up?
Lastly, I recommend that you download Sybase's latest appropriate driver and get it ahead
of weblogic stuff in the classpath the statup script builds for the server.
Joe
>
weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings chained to
this exception for the reason(s).
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:480)
at com.sybase.jdbc2.tds.Tds.processLoginAckToken(Tds.java:2938)
at com.sybase.jdbc2.tds.Tds.doLogin(Tds.java:419)
at com.sybase.jdbc2.tds.Tds.login(Tds.java:341)
Thanks for your help
Regards,
Raymond

Similar Messages

  • Sybase JDBC driver & Invalid column name error

    I submitted a note a year ago concerning JDBC-ODBC bridge and SQL Server db. Same Invalid column name error. The resolution was a bug in the XSU code.
    This time the error is with a jconnect5 JDBC driver from Sybase to a Sybase ASA db. ASA is Adaptive Server Anywhere.
    <ERROR xsql-timing="140">oracle.xml.sql.OracleXMLSQLException: S0022: Invalid column name 'name'.</ERROR>
    However if I use a Sybase JDBC driver from INet Software of Germany, I get the desired result of my query.
    Below are sample XSQLConfig.xml definitions.
    INet Software Sybase JDBC driver definition:
    - <connection name="deasa">
    <username>dba</username>
    <password>sql</password>
    <dburl>jdbc:inetsyb:LEMKAU:2638?database=asademo</dburl>
    <driver>com.inet.syb.SybDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    Sybase jconnect5 Sybase JDBC driver definition:
    - <connection name="asa">
    <username>dba</username>
    <password>sql</password>
    <dburl>jdbc:sybase:Tds:lemkau:2638?ServiceName=asademo</dburl>
    <driver>com.sybase.jdbc.SybDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    I believe the bug has to do with the numeric codes that the drivers use to determine data types are not properly interpreted.
    See XML General note title "insert-request, xsu 2.1.0 beta & SQL Server" for reference.
    Steve.

    Thanks for the notification. We will look into this issue...

  • [Sybase JDBC Driver]Object has been closed

    Hi,
    I am getting the following error when accessing a datasource in an EJB on Weblogic using the Data Direct Drivers.
    java.sql.SQLException: [DataDirect][Sybase JDBC Driver]Object has been closed.
    The code works every other time. the first time through it works the second time I get the error.
    Any insite would be appricated.
    Here is my code
    public String test(String id)
    System.out.println ("test1");
    DataSource ds = null;
    Connection conn = null;
    PreparedStatement stmt = null;
    PreparedStatement stmt2 = null;
    String ret = "?????";
    try
    System.out.println ("read data - prepare");
    InitialContext ic = new InitialContext();
    ds = (DataSource)ic.lookup("java:comp/env/jdbc/dataconn");
    conn = ds.getConnection();
    String sql = "SELECT * FROM myTable WHERE ID = ?";
    System.out.println ("read data - conn.prepareStatement(sql);");
    stmt = conn.prepareStatement(sql);
    stmt.setString(1, id);
    // stmt.setMaxRows(1000);
    System.out.println ("read data - stmt.executeQuery();");
    ResultSet rs = stmt.executeQuery();
    System.out.println ("read data - read");
    if(!rs.next())
    ret = "Not found";
    else
    ret = "found";
    sql = "UPDATE myTable SET column1 = column1 + 1 WHERE ID = ?";
    System.out.println ("update data - prepare");
    stmt2 = conn.prepareStatement(sql);
    stmt2.setString(1, id);
    ret = ret + stmt2.executeUpdate();
    System.out.println ("update data - update");
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    stmt.close();
    catch(Exception exception1) { }
    try
    stmt2.close();
    catch(Exception exception1) { }
    try
    conn.close();
    catch(Exception exception1) { }
    stmt = null;
    stmt2 = null;
    conn = null;
    return ret;
    }

    Hi. What version of weblogic, and can you print the whole stacktrace?
    That way I'll know which object is already closed. This hints at an
    already-fixed bug, but I'm not sure yet... And tell me what happens
    if you close your result set after you do your call to next(). Lastly,
    you can save some DBMS traffic if you change the query to:
    "SELECT 1 FROM myTable WHERE ID = ?"
    Then regardless of how wide the table is, and whether the table data
    is in DBMS memory, as long as there's an index on ID, the query only
    needs to use the index, not the data page to answer. If there's an
    index entry for your ID value, you'll get one row with 1 in it, else
    nothing.
    thanks
    Joe
    Scot McReynolds wrote:
    Hi,
    I am getting the following error when accessing a datasource in an EJB on Weblogic using the Data Direct Drivers.
    java.sql.SQLException: [DataDirect][Sybase JDBC Driver]Object has been closed.
    The code works every other time. the first time through it works the second time I get the error.
    Any insite would be appricated.
    Here is my code
    public String test(String id)
    System.out.println ("test1");
    DataSource ds = null;
    Connection conn = null;
    PreparedStatement stmt = null;
    PreparedStatement stmt2 = null;
    String ret = "?????";
    try
    System.out.println ("read data - prepare");
    InitialContext ic = new InitialContext();
    ds = (DataSource)ic.lookup("java:comp/env/jdbc/dataconn");
    conn = ds.getConnection();
    String sql = "SELECT * FROM myTable WHERE ID = ?";
    System.out.println ("read data - conn.prepareStatement(sql);");
    stmt = conn.prepareStatement(sql);
    stmt.setString(1, id);
    // stmt.setMaxRows(1000);
    System.out.println ("read data - stmt.executeQuery();");
    ResultSet rs = stmt.executeQuery();
    System.out.println ("read data - read");
    if(!rs.next())
    ret = "Not found";
    else
    ret = "found";
    sql = "UPDATE myTable SET column1 = column1 + 1 WHERE ID = ?";
    System.out.println ("update data - prepare");
    stmt2 = conn.prepareStatement(sql);
    stmt2.setString(1, id);
    ret = ret + stmt2.executeUpdate();
    System.out.println ("update data - update");
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    stmt.close();
    catch(Exception exception1) { }
    try
    stmt2.close();
    catch(Exception exception1) { }
    try
    conn.close();
    catch(Exception exception1) { }
    stmt = null;
    stmt2 = null;
    conn = null;
    return ret;

  • CachedRowSet with sybase JDBC driver

    In previous postings you mentioned the solution to using CachedRowSets with Sybase
    JDBC involves setting certain properties. My question is WHERE and WHEN do you
    set these properties?

    Peter Wu wrote:
    Hello,
    Does anyone know if there is any way to use CachedRowSet with sybase JDBC
    driver?
    I knew there was posting regarding this in the year 2000. And now it 2003. Thanks!
    PeterYes there is, but it involves some driver-specific properties, and I know this from
    a discussion I read on their jdbc support newsgroup. That would be the best place
    for an answer about their driver. Try news://forums.sybase.com, in the sybase.public.jconnect50
    group.
    Joe

  • Using CachedRowSet with sybase JDBC driver

    Hello,
    Does anyone know if there is any way to use CachedRowSet with sybase JDBC
    driver?
    I knew there was posting regarding this in the year 2000. And now it 2003. Thanks!
    Peter

    Peter Wu wrote:
    Hello,
    Does anyone know if there is any way to use CachedRowSet with sybase JDBC
    driver?
    I knew there was posting regarding this in the year 2000. And now it 2003. Thanks!
    PeterYes there is, but it involves some driver-specific properties, and I know this from
    a discussion I read on their jdbc support newsgroup. That would be the best place
    for an answer about their driver. Try news://forums.sybase.com, in the sybase.public.jconnect50
    group.
    Joe

  • Character encoding and Sybase JDBC driver

    Hi,
    I have an issue with the Sybase JDBC driver we are using. We have characters in our database, e.g., canon with a ~ over the n. When I do a getString from the ResultSet, I see a ? instead of the character. I'm specifying utf8 as the encoding in the properties in the WLS console. I tried utf16 or ucs2, but I got exceptions from the Sybase JDBC driver at start up.
    Any help would be greatly appreciated.

    Pat Bumpus wrote:
    Hi,
    I have an issue with the Sybase JDBC driver we are using. We have characters in our database, e.g., canon with a ~ over the n. When I do a getString from the ResultSet, I see a ? instead of the character. I'm specifying utf8 as the encoding in the properties in the WLS console. I tried utf16 or ucs2, but I got exceptions from the Sybase JDBC driver at start up.
    Any help would be greatly appreciated.Which Sybase driver are you using?
    Joe

  • -net.sourceforge.jtds.jdbc.Driver ERROR WHILE CONNECTING TO SQL SERVER

    Hi,
    While making a new connection to Sql Server Express Edition Database, through Oracle Sql Developer i am getting a problem when retrieving the database.The error is "-net.sourceforge.jtds.jdbc.Driver" .I have downloaded the "jTDS - SQL Server and Sybase JDBC driver " from sourceforge website, but i am confused about where to paste it.
    thanks.

    I'm not sure why you are having the error but I am sure of the following:
    1. This forum is not appropriate for SQL*Developer questions.
    2. Or questions about code from SourceForge
    3. Or Microsoft products.
    It seems unlikely this has anything to do with Oracle so I would recommend you find a forum related to the driver if one exists. Otherwise you can try the SQL*Developer forum but I would be there aren't more than a dozen other people on the product trying to do this.

  • I want JDBC driver for Sybase database...

    Hi All:
    Can any one help me with JDBC driver for Sybase database ? I have surfed the net, but not able to find a Sybase driver that works correctly.
    Also, can you please let me know if anything special needs to be done in case of Sybase database connection, apart from what we normally do to connect to a database like "Oracle" or "MS SQL Server".
    Thanks and Regards,

    And why do you think someone using Oracle might know the Competitor's drivers?
    Having said this: you should give jTDS a try:
    http://jtds.sourceforge.net
    Also, can you please let me know if anything special
    needs to be done in case of Sybase database
    connection, apart from what we normally do to connect
    to a database like "Oracle" or "MS SQL Server".It's all in the docs of the driver

  • Jdbc driver for sybase in linux platform

    Dear freinds,
    I want to connect to sybase from java program in a linux platform. Can anyone help me in getting jdbc driver for the same and the instructions?
    Thanks in advance
    Regards,
    Maria

    Dear Terry,
    Thank you for your response.I am new to this environment!
    In that linux server, 11.0.3.3 version of sybase database is installed, which is free. Is it has jdbc driver? In sybase i can find zip files of jdbc.
    Thanks
    Regards,
    Maria

  • How do I install the jdbc driver for sql server 2005, in sql developer 4.0 ?

    Hallo together
    I need access to tables in a MS SQL Server 2005 database.
    One possibility is the JDBC driver.
    How do i install this driver ?
    Thank you very much for your postings.

    Hi,
      This is from the documentation -
    Database: Third Party JDBC Drivers
    The Third Party JDBC Drivers pane specifies drivers to be used for connections to third-party (non-Oracle) databases, such as IBM DB2, MySQL, Microsoft SQL Server, or Sybase Adaptive Server. (You do not need to add a driver for connections to Microsoft Access databases.) To add a driver, click Add Entry and select the path for the driver:
    For Microsoft SQL Server or Sybase Adaptive Server: jtds-1.2.jar, which is included in the jtds-1.2-dist.zip download
    To find a specific third-party JDBC driver, see the appropriate website (for example, http://www.mysql.com for the MySQL Connector/J JDBC driver for MySQL, http://jtds.sourceforge.net/ for the jTDS driver for Microsoft SQL Server and Sybase Adaptive Server, or search at http://www.teradata.com/ for the JDBC driver for Teradata). For MySQL, use the MySQL 5.0 driver, not 5.1 or later, with SQL Developer release 1.5.
    You must specify a third-party JDBC driver or install a driver using the Check for Updates feature before you can create a database connection to a third-party database of that associated type. (See the tabs for creating connections to third-party databases in the Create/Edit/Select Database Connection dialog box.)
    Alternative:
    As an alternative to using this preference, you can click Help, then Check for Updates to install the JTDS JDBC Driver for Microsoft SQL Server and the MySQL JDBE Driver as extensions.
    Regards,
    Mike

  • Protocol Confusion of freeTDS jdbc driver, please help!

    I use freeTDS jdbc driver to connect to MS SQL 2000. In my programme, firstly I need to select sth out, and base on this update the other field in the same table. TOC will like that
    Statement stmt1 = conn.createStatement();
    ResultSet rs1 = stmt1.executeQuery("select sth from table");
    stmt1.executeUpdate("update table set field1 = 'xxx'");
    exception throw: java.sql.SQLException: Protocol confusion. Got a 0x79 packet
    I checked from the source of TDS driver, this exception throws when the sql query output is not a resultset.
    These 2 querys are prefectly okay individually, I tried to reverse the order, doesn't work neither. Even I disconnect the DB Connection and reconnect it before running the 2nd query, it won't help.
    Please help!

    I haven't used freetds, but seems like defaul version is 5.0. Try it with 7.0 and see it works better. By the way, JDBC driver's readme says that it was only tested with MSSQL 6.5 and 7.0.
    ---- FAQ from freetds.org ----
    Do I need to configure anything?
    When you untar the package you will need to run:
    $ ./configure
    You also have the following options you can add to the configure statement:
    --with-tdsver=VERSION
    specify the TDS version to use
    (4.2, 4.6, 5.0, or 7.0) [default is 5.0].
    --enable-msdblib
    enable Microsoft APIs and behaviour for DBLib
    --enable-dbmfix
    rename dbopen() to tdsdbopen() as a work around for dbm name conflict
    --with-gnu-ld
    assume the C compiler uses GNU ld [default=no]
    --enable-shared
    build shared libraries [default=yes]
    --enable-static
    build static libraries [default=yes]
    IMPORTANT You must build with TDS version 4.2 to access a MSSQL server or Sybase prior to 10.0! TDS 7.0 may also be used to talk to MS SQL 7 and above.

  • Accessing Informatica File Archive Service using its native JDBC driver

    Good morning,
    Using the Informatica ILM suite, we've retired a number of database applications (which ran on Oracle) into the so-called Optimized File Archive, or OFA.
    The information stored in there can be accessed using their File Archive Service, or FAS.
    To allow access for certain tools, they've also got an ODBC and JDBC driver (from the original company that created the archive bit, RainStor), to be able to get to tables in archives.
    I've been able to set it up for Aquafold's Aqua Data Studio (ADS), but given that that is shareware I've only got an evaluation version, expiring in 2 weeks.
    Since SQLdeveloper, like ADS, is a Java-based tool, and it also allows for third party JDBC drivers, I'm inclined to think that somehow SQLdeveloper should also be able to connect to those archives. Unfortunately, I always get an error message: "Invalid connection information specified. Verify the URL format for the specified driver"
    There are some slight differences between ADS and SQLdev in setting up such a JDBC connection.
    In ADS, apart from providing user/pw, I have to specify following:
    - name of the JDBC driver ("com.simba.client.core.SimbaJDBCDriver")
    - location of the JDBC driver (e.g. "C:\Ora\RainStorJDBC-3.0.1.2.jar")
    - JDBC URL of format "jdbc:simba://<host>:<port>;Archive=<archive>;ConnectionTimeout=3600;Parser=ORACLE"
    In SQLdev I can import the JDBC driver (menu > Tools > Preferences, then under Database > Third Party JDBC Drivers), and in the Database Connection Screen create a new connection, provide the user/pw of the so-called Service Manager (from FAS), and choose Connection Type "Advanced" to then specify the "Custom JDBC URL", which would have to be the same as above. If I test the connection, I get an instant error:
    "Status: Failure -Test failed: Invalid connection information specified. Verify the URL format for the specified driver".
    Informatica's Global Customer Support are saying that SQLdev can't do it, but I'm just wondering whether some really bright lights in the Oracle community have found an alternative route to be able to connect to such FAS/OFA archives. Given the similarities between ADS and SQLdev, to me it seems it - somehow - has to be possible as well...
    Thanks in advance for thinking about this problem/challenge.
    Cheers!
    Edited by: exapat on Dec 7, 2012 10:43 AM
    Did some further investigations, on other third party drivers. Those ones (e.g. for SQL Server) - when loaded - create an extra tab in the connection screen.
    The RainStor JDBC driver does not do that, and I can imagine that that's where it falls short.
    If indeed the case, what could be done to overcome this?

    Hi,
    Did some further investigations, on other third party drivers ... If indeed the case, what could be done to overcome this?That is the case. Currently browsing and migration support for third-party databases is limited to the following:
    http://www.oracle.com/technetwork/developer-tools/sql-developer/supportedmigplatforms-086703.html
    See section 1.1 for currently supported databases and section 1.3 for those planned for a future release.
    To see an example of some (all?) of the extra bits needed to support browsing of a third-party database, find the extensions directory in your SQL Developer installation, look for
    oracle.sqldeveloper.thirdparty.browsers.jarthen browse it to see the various class, properties, and xml files necessary for supporting connections to databases like mysql or sybase. You may conclude adding browsing support is not all that complicated. Migration support is an entirely different matter, however. Oracle is the thirdparty.browsers extension owner. Support for more third-party databases would normally be added by the SQL Developer group based on a database's general popularity or a feature request on the SQL Developer Exchange -- obviously a long-term proposition.
    If you look at the [Extensions Exchange|http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html] maybe you can get some ideas how best to proceed if you have the resources to build your own extension to support RainStor.
    Regards,
    Gary
    SQL Developer Team

  • UCCX 8 access db_cra from script add informix jdbc driver

    Hi,
    I want to use the db_cra database for the last agent routing from the call flow script.
    I will run a query which serach wihtin the last 24 hours which agent talked to the customer the last time.
    The problem is, that I'm not able to add the informix db into the uccx database subsystems.
    I can only select these driver classes:
    net.sourceforge.jtds.idbc.driver
    com.ibm.db2.jcc.DB2Driver
    oracle.jdbc.driver.OrcaleDriver
    com.sybase.jdbc2.jdbc.SybDriver
    But for the Informix Db I think I would need  the driver class:
    com.informix.jdbc.IfxDriver.
    Has anyone a idea how to add a driver class or how to access the db_cra from the script?
    I know that it is possible to use a differnt database (like MSSQL) and write each time a agent gets a call the data to this db and access this one for last agent routing functions. But I want to use the db_cra for this.
    thanks
    Markus

    Hi,
    there is no way to do it that way.
    You can't access the Informix DB directly from UCCX script.
    But you can use a SQL server as a middleware. So you have to setup a SQL server and add the Informix db as a linked server.
    Now you should be able to access the SQL server from the UCCX script.
    Kind regards
    Markus
    CONET Solutions GmbH
    Markus Schweitzer,
    Theodor-Heuss-Allee 19, 53773 Hennef
    Tel.: +49 2242 939-676, Fax: +49 2242 939-393
    Mobil: +49 173 5486337
    Internet: http://www.conet.de, mailto: [email protected]

  • Sybase database driver

    Hi,
    I would like to develop EJB with a Sybase database and I would like to know if I can trust and work with this driver : "Data Direct Connect JDBC3.0/ Type4 Driver for Sybase Databases"
    This page "http://docs.sun.com/source/817-6087/dgjdbc.html#wp32309" says that the only driver witch passed compliance test is the "Inet Sybelux JDBC Driver for Sybase Databases" but this one is not free. And as this webpage might not be up to date, I would like to know if somebody has got more recent news about it.
    Thanks.

    Use the driver class
    com.sybase.jdbc2.jdbc.SybDriver
    Connection URL:
    jdbc:sybase:Tds:<host>:<port>/<database>
    Driver JAR file:
    jconn2.jar

  • How to register MySQL JDBC Driver in OC4J

    Does anyone know how to register the MySQL JDBC driver in OC4J ?

    When your application must connect to heterogeneous databases, use DataDirect JDBC drivers. DataDirect JDBC drivers are not meant to be used with an Oracle database but for connecting to non-Oracle databases, such as Microsoft, SQLServer, Sybase and DB2. If you want to use DataDirect drivers with OC4J, add corresponding entries for each database in the data-sources.xml file.
    Please see the DataDirect documentation for information on installing the DataDirect JDBC drivers.
    The following is an example of a data source entry for SQLServer. For more detailed information, see the DataDirect Connect JDBC User's Guide and Reference.
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSSDS"
    xa-location="jdbc/xa/MerantSSXADS"
    ejb-location="jdbc/MerantSSDS"
    connection-driver="com.merant.datadirect.jdbc.sqlserver.SQLServerDriver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    For a DB2 database, here is a data source configuration sample:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantDB2DS"
    xa-location="jdbc/xa/MerantDB2XADS"
    ejb-location="jdbc/MerantDB2DS"
    connection-driver="com.merant.datadirect.jdbc.db2.DB2Driver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;LocationName=jdbc;CollectionId=default;
    inactivity-timeout="30"
    />
    For a Sybase database, here is a data source configuration sample:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSybaseDS"
    xa-location="jdbc/xa/MerantSybaseXADS"
    ejb-location="jdbc/MerantSybaseDS"
    connection-driver="com.merant.datadirect.jdbc.sybase.SybaseDriver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    please link: http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#100612

Maybe you are looking for