JDBC-BRidge driver exception(for sybase database)

i am using the weblogic 6.1 along with sybase anyware 6.0.
I am using the weblogic pool for database connection.
I am making the use of jdbc bridge driver for connecting to the database.
I am geeting the datasource look up properly.
But i am getting the following errors sometime:
1) too many connections to the database.
2)authentication violation.
can you help what can be the reason?

"Jignesh" <[email protected]> wrote in message
news:3bfbc796$[email protected]..
i am using the weblogic 6.1 along with sybase anyware 6.0.
I am using the weblogic pool for database connection.
I am making the use of jdbc bridge driver for connecting to the database.
I am geeting the datasource look up properly.
But i am getting the following errors sometime:
1) too many connections to the database.I think this problem is connected with setting of SQLAnywhere ODBC driver.
2)authentication violation.Create a small standalone java program that
successfuly connects to the server and use those
settings to setup the connection pool.
Just FYI, JDBC-ODBC driver is unsupported,
and not thread-safe. You will likely not be able
to use it in production. I'd try to switch to a
fat Sybase server and corresponding JDBC driver.
Regards,
Slava Imeshev

Similar Messages

  • 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 Thin Driver Support for Data Encryption and Integrity

    Hello JDev Team,
    I am trying to implement JDBC Thin Driver Support for Data Encryption and Integrity.
    It works fine with java.sql.Connection and java.util.Properties like in the following code:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Properties props = new Properties();
    int level = AnoServices.REQUIRED;
    props.put("oracle.net.encryption_client", Service.getLevelString(level));
    props.put("oracle.net.encryption_types_client", "( RC4_40 )");
    props.put("oracle.net.crypto_checksum_client",Service.getLevelString(level));
    props.put("oracle.net.crypto_checksum_types_client", "( MD5 )");
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:main", props);
    etc...
    But I am developing an application with InfoSwing components and it has a different way to connect to Oracle database using oracle.dacf.dataset.connections.Connection, like this:
    sessionInfo1.setAppModuleInfo(new ModuleInfo("bc", "BcModule"));
    sessionInfo1.setConnectionInfo(new LocalConnection("JDBCThin"));
    sessionInfo1.publishSession();
    My question is:
    Is there any way to implement DataEncryption and Integrity into this type of connection?
    Thanks a lot in advance.
    Victor Bykov
    null

    Victor,
    No, you can't do this from DAC, but I've been discussing it with the developer, and we both think this capability would be useful to have, so I've logged it as an enhancement request.
    I do have a question for you. Once you've made the JDBC connection, do you need access to the Connection object afterwards? We're thinking of how the change could be implemented, and one way would be to allow you to pass in a Properties object when creating your own NamedConnection.
    Thanks
    Blaise

  • JDBC driver configuration for sybase in XI 3.0

    my client vendor upgraded sybase database version 8 to 11, then after we are facing connectivity problem.
    i deployed new JDBC for sybase ver 6.05..  jconn3.jar i am not sure this is the right version to deploy for sybase 11...
    still have the connectivity problem...
    do i need to configure this driver to work.
    if yes please assist me or provide any documentation
    Thanks in Advance
    Edited by: moiz2306 on Jul 18, 2011 8:15 AM

    Hi,
    Remove your old jaer file and deploy correct jar file once again.
    refer below link,it might be usefull
    http://iablog.sybase.com/hinsperg/2009/10/connecting-to-sql-anywhere-using-jdbc/
    Regards.
    Raj

  • Error:No Suitable Driver found for sybase

    Jdev 11.1.1.4, ADF BC and ADF Faces
    Problem:
    Created ADF BC module using Sybase Database connection. While running the module its giving
    “No Suitable Driver found”.
    Process we have followed:
    1)     Created a Sybase Database connection in Resource palate. (jar added in classpath jconn2.jar & jTDS2.jar).
    Note: Sybase connection is successful :)
    2)     Use this connection in New ADFBC Appmodule.
    3)     In Implementation class we are trying to call a Sybase procedure.
    4)     Then Running the Appmodule using “Run” button.
    Approach we have tried after getting the error:
    1)     Copy jconn2.jar & jTDS2.jar in BC4j/jlib – It ‘s not working.
    Any suggestion will be helpful. Thanks in advance.
    ~Abhijit

    You have to configure the SQL flavor and Sybase JDBC driver class in the AM configuration properties:
    <tt>jbo.SQLBuilder=SQL92
    jbo.sql92.JdbcDriverClass=com.sybase.jdbc2.jdbc.SybDriver</tt>
    (The JDBC driver class may be <tt>com.sybase.jdbc3.jdbc.SybDriver</tt> depending on your Sybase ASE version).
    You may have to set the AM's property <tt>jbo.sql92.LockTrailer</tt> as well.
    Alternatively, you may set the SQL flavor, JDBC driver class and the lock trailer in adf-config.xml. If you are setting these values in adf-config.xml, then you may have to choose "Custom" SQL flavor.
    Dimitar

  • Jdbc thin driver with Oracle 9i database

    Hi,
    I'm having a problem with java code which previously deployed ok on an Oracle 817 database. In attempting to access data from a 9i database I get the following error:
    java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
    From looking around I get the impression that the problem is with an incompatability with the driver and the 9i database. Any ideas as to whether this is true or not or suggestions on how to resolve it?
    Any help will be greatly appreciated.
    Thanks,
    Alison

    I don(t understand,my JBuilder use the libraries from Oracle 9.01
    and when I make a connection,
    with this code:
    DatabaseMetaData meta = conn.getMetaData();
    System.out.println("JDBC driver version is " + meta.getDriverVersion());
    It send me back thin driver 8.17
    how is it possible?

  • Distributed Polling Not working for Sybase Database poller Proxy

    I am using a Proxy service which is polling records from a sybase database. When I tried to deploy this proxy in a clustered environment I noticed sometimes it is polling the same record twice. So I tried to enable distributed polling in my proxy by adding *<lock-mode>lock-no-wait</lock-mode>* in my topplink_mapping.xml file. But activating this change resulted error in the log file stating "Incorrect syntax near 'NOWAIT'".
    Later on I found out that it is a known issue ...for reference check [http://www.oracle.com/technetwork/middleware/docs/aiasoarelnotesps5-1455925.html|http://www.oracle.com/technetwork/middleware/docs/aiasoarelnotesps5-1455925.html] with bug # 13405718.
    So I am stuck here...and no solution yet.
    Any suggestion??

    You can Emulate AQ functionality for any Non-Oracle Database where sometimes the *Clustered DB-Adapter[Poller]* polls the same record more than once.
    Say, you need to poll 'status' column of table 'A' for a status 'POLL_IT'
    1. Create a Table 'DUMMY_AQ' matching required column signatures from table 'A'
    2. Create a Trigger on table 'A' for copying the row content on Insert or Update for status 'POLL_IT' in to 'DUMMY_AQ' table;
    3. Poll DUMMY_AQ with Row Level Read lock & Delete On Read , that way it will is ensured that so that only One Instance of your Clustered DB Adapter can have visibility to any newly inserted row having status 'POLL_IT' .

  • JDBC Driver Class for DB2 databases on OS/390

    Hi,
    To anybody who can help.
    I am trying to connect to DB2 database on OS/390 from my PC - Windows 2000. I have loaded IBM DB2 Application Development Client V7.2 as well as IBM DB2 Administration Client V7.2 I guess this is called using Db2 Connect. I have done proper configuration of host databases.
    Anyway, I write this small simple class to connect to Db2 database and I keep getting this error.
    "Error loading Driver classjava.lang.ClassNotFoundException: com.ibm.db2.jdbc.app.DB2Driver
    Sorry, No connection established"
    This is my classpath....
    C:\Program Files\SQLLIB\java\db2java.zip;
    C:\ProgramFiles\IBM\ApplicationDeveloper\plugins\com.ibm.etools.webtools\jars\jspsql.jar;
    C:\ProgramFiles\IBM\ApplicationDeveloper\plugins\com.ibm.etools.webtools\jars\dbbeans.jar;
    C:\ProgramFiles\IBM\ApplicationDeveloper\plugins\com.ibm.etools.webtools\jars\dbbeans_javadoc.zip;
    C:\Program Files\SQLLIB\java\runtime.zip;
    C:\Program Files\SQLLIB\java\sqlj.zip;
    C:\Program Files\SQLLIB\bin
    This is my java class....
    package JavaFiles;
    import java.sql.*;
    import java.lang.*;
    public class DbConnection
         public static void main(String[] args)
         throws ClassNotFoundException,SQLException
              String url = "jdbc:db2:db2test.state.sc.us:50000:DB2DB02";
              String username = "db2admin";
              String passwd = "db2admin1";
              connect(url,username,passwd);
         public static void connect(String url, String username, String passwd)
         throws ClassNotFoundException,SQLException
         try
    Class.forName("com.ibm.db2.jdbc.app.DB2Driver");
         Connection conn = DriverManager.getConnection(url,username,passwd);
         System.out.println("Yes,You are connected");
         catch(ClassNotFoundException cnfe)
              System.err.println("Error loading Driver class" + cnfe);
              System.out.println("Sorry, No connection established");
         catch(SQLException sqle)
         System.err.println("Error connecting to Database" + sqle);
    Any help on this will let me move further in my project. ThankYou.

    Nice trap from IBM: package name starts with COM not
    com!
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");---Sure I tried that. Sorry. That doesn't work.
    I tried with Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
    That doesn't work either.
    Is my connection URL OK? I made several kinds of format changes to the URL
    "jdbc:db2://db2test.state.sc.us:50000/DB2DB02";
    "jdbc:db2:db2test.state.sc.us:50000:DB2DB02";
    etc....For now I am sticking with the first version.
    Any more suggestions please. Did you take a look at my classpath. Is that OK? Should I rename db2java.zip to .jar and are there any other dir's where it should be contained?????
    ThankYou all.

  • Plugin for Sybase databases

    Hi,
    I try to migrate a Sybase ASE 12 database to an Oracle 10g database.
    The Migration Workbench brings up the repository connection screen. After filling this up a message appears that
    I don't have a plugin isntalled and instructs me to install one.
    There are only plugins for Informix and DB2 available but the wizzard won't let me proceed until I have installed a plugin.
    Can anyone tell me what to do?
    Thanks
    Frank

    Hello,
    Please try the following :
    In the "Help" menu, check for Updates, and install all updates available.
    Then, try to create a new connecction... Verify that a "Sybase" tab does exist.
    You may also have to install the JDBC driver that will be used for the sybase connection.
    For Microsoft SQL Server and Sybase,
    the jTDS driver is available from http://jtds.sourceforge.net/. Use version 1.2 (Download available from http://sourceforge.net/project/showfiles.php?group_id=33291)
    Once you have extracted the relevant jar file to your disk, you need to configure SQL Developer to tell it where this driver resides:
    1. In SQL Developer choose Tools -> Preferences...
    2. Expand the "Database" option in the left hand tree
    3. Click on "Third Party JDBC Drivers"
    4. Click on "Add Entry..."
    5. Navigate to your third party driver jar file and choose OK
    Kind regards,
    Jean-Patrick

  • Problem with JDBC Bridge Driver

    Greetings,
    I have a jsp file that is calling a bean to connect to MS SQL 2000,
    <jsp:useBean id="select" class="DataBaseSelect3" scope="request">
    </jsp:useBean>
    <% out.print(select.connect()); %>
    <br>
    <% out.print(select.select()); %>
    <p>Format results
    <br>
    <%@ page import="java.util.Vector" %>
    <% Vector aResult = select.getResult(); %>
    <table>
    <% for (int i=0; i < aResult.size(); i++) { %>
    <tr>
    <td>
    <% out.print(aResult.elementAt(i)); %>
    </td>
    </tr>
    <% } %>
    then inside the bean which is called DataBase3.class I am calling a netDirect JDBC driver,
    I'm getting this error,
    Error Message:
    Driver is now Loaded!
    SQLException:No suitable driver
    Format results
    // here is the .java code,
    import java.sql.*;
    import java.util.Vector;
    * DataBaseSelect.java
    * Written by Morgan Catlin
    * August 19, 1999
    * Variables:
    * Vector result = where I put the results of a select query
    * Methods:
    * Vector getResult() = returns result
    * void setResult() = sets result
    * String connect() = connects to a database
    * String select() = selects information from a database
    public class DataBaseSelect3 {
    private Vector result;
    public DataBaseSelect3() {
    result = new Vector();
    } // constructor DataBaseSelect
    public String connect() {
    try {
         Class.forName("com.jnetdirect.jsql.JSQLDriver").newInstance();
         return "Driver is now Loaded!";
    } catch (Exception E) {
         return "SQLException:" + E.getMessage();
    public String select() {
    try {
         Connection C = DriverManager.getConnection("jdbc:JSQLConnect://devserver/conn?DSN=seanmccarrick;Database=SeanMcCarrick;uid=sa;pwd=");
         Statement Stmt = C.createStatement();
         ResultSet myResult = Stmt.executeQuery("SELECT UserName from Login");
         while (myResult.next()) {
         result.addElement(myResult.getString(1));
    // Clean up
    myResult.close();
    Stmt.close();
    C.close();
         return "Connection Success!";
    } catch (SQLException E) {
         return "SQLException2:" + E.getMessage();
    * Accessor for result
    public Vector getResult() {
    return result;
    * Mutator for result
    public void setResult(Vector avector) {
    result = avector;
    } // class DataBaseSelect
    any help is greatly appreciated,
    Respectfully,
    J

    The real problem is that you didn't specify the name of the driver correctly. However, it may not be a typographic mistake. You've made a few other errors in the logic of the code so it's difficult to see exactly what's going on.
    For "small" programs, people typically put the driver loading, and the connection making routines in the same function. The only time we split them is if we plan to implement connection pooling, or if we are setting this up as a Servlet/JSP page. See the following code sippet.
    Oh, incidently, you don't need to call newInstance();.
    Second, it helps if you don't do a blanket catch. This way you can determine whether it's the driver that's bad, or if the database is refusing connections.
    I would suggest trying:
    try {
       Class.forName("com.jnetdirect.jsql.JSQLDriver");
       Connection connection = DriverManager.getConnection( jdbc:JSQLConnect://devserver/conn?DSN=seanmccarrick;Database=SeanMcCarrick;uid=sa;pwd=" );
       System.out.println( "Success!" );
       return connection;
    } catch ( ClassNotFoundException cnfe ) {
       System.err.println( "Error loading driver: " + cnfe );
    } catch ( SQLException sqle ) {
       System.err.println( "Error connecting: " + sqle );
    }On further reflection, I've just realized I made a mistake too. So I will fall back on the best advice I've ever received - copy this part of the code directly out of a book or the Java Tutorial site. Don't try to get fancy. :)

  • JDBC Connection Driver Problem for Oracle in a J2EE servlet/class

    Hi,
    I am having a big problem with setting up a JDBC connection with my oracle database, I have been trying to fix it for about 6 hours now with no joy, I have read that many threads about JDBC, class paths etc.. that i dont know which way is up any more!!
    Here is the issue:
    (Please bare in mind that I am new to this when posting replies)
    I have a Web Application set up as a project in the netbeans IDE. I have a servlet which creates a new object call dbaseFunc which is a public class I have wrote and within this class is a function called getAppConfigCon(). The code for this function is below:
    public Connection getAppConfigCon()
    Connection con = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","cavdev", "password");
    catch (SQLException e)
    e.printStackTrace();
    catch (ClassNotFoundException e)
    e.printStackTrace(System.out);
    return con;
    The database is Oracle XE and is installed on the same machine I am developing on, the database is up and I can connect to it via the netbeans IDE database interface after telling it where the driver is (C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.zip). Obviously this is just IDE functionality and allows you to browse the database objects from netbeans however I now need to know how to tell the jre where the drivers are, right??
    Well like I said multiple forums led me down the classpath route and I have a system environment variable called CLASSPATH set up with the oracle jdbc driver specified as its value, when i run the set command from the command line ( I am running Windows XP Pro) I can see the class path entry in the output as follows:
    CLASSPATH=C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.zip
    When I try to run my web app it doesnt assign the connection object with a value, i.e. when i was debugging my con object was null after calling the method mentioned above. After some time debugging i found a ClassNotFoundException was being thrown when the following command was executed:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Which I understand is because their is a problem with the class path but what is the problem??? The IDE likes the driver so why doesnt the jre.
    I am runnin jdk and jre 1.5, an Oracle XE Database using the netbeans environment.
    Some one please help me, I have spent far to much time on this rather than actually working on my project!!!!
    Thanks
    Keith

    Well After 10.5 hrs I actually sorted this myself, the two problems that were throwing me were this:
    1. Netbeans does not stop the tomcat server when it finishes running the app, you either have to stop the server from the menu or exit netbeans, until the server restarts it will not pick up on any driver files you add to common/lib
    2. You are very right Kiros tomcat does not do .zip files!!!!~~~###
    In order to sort this I had to add the oracle driver as a package to my project using the netbeans ide Project > Libraries > New Jar file, this allowed me to access the oracle classes. Then I had to set the server up to deal with the drivers as well, this meant adding the .jar file (not the latest .zip as it wont work) to the bundled tomcat common lib directory and restart the server via the ide (using the start/stop bat files in the tomcat conf directory doesnt work for some reason when its bundled with netbeans!)
    Thanks for the help guys but in the end it took 10 hrs a lot of reading and 2 bottles of lucozade to keep the brain goin.
    Keith

  • Error Code Definition for JDBC Thin driver

    Would like to know where I can find the definition of error codes
    for JDBC thin driver to Oracle 7 database. Right now, when I have
    database errors, I get SQL execption with CODE=XXXXXX. Need to
    know the definition of the error codes in order to decide whether
    the application shall retry or quit or do something else. Thank
    you in advance.
    null

    Hi,
    thin client session Language is controlled by java Locale.
    Based on testing code, ORA- messages are localized after the connection is successfully established. ORA- messages returned in the middle of connecting are in instance language.
    So, as far as I can say, you need to catch exceptions from DriverManager.getConnection(url, info); and translate them on your own.
    Once the connection is successfully returned, ORA- message language is defined by java Locale.
    Tests were performed on Oracle 10gR2 (both thin driver and DB).

  • Weblogic -Sybase Bridge driver Problem

    I am using the weblogic server 6.1 (in production mode)with sybase anyware 6.0
    and
    i am using the bridge driver to connect to database.
    I have tried using the own implementation of coonection pool and also the poool
    functionality provided by the weblogic.
    It some times give s me the error as follows:
    1) Authentication violation
    --Only when i am firing the delete or insert or update queries.
    2) too many connection to the the database ,database rejected the connection.
    Can u give the sample code where in i can use connection pool.
    I am creating the one datasource instance in the init method of my main controller
    servlet and then i am pasing this datasource to the constuctor of the util classes
    and the action classes.
    The problem is that also sometimes calls the destroy method of the controller
    servlet and which again creates a new datasource.
    Is there any timeout setting to be done for the post request which can solve this
    problem.
    Thanks for replies in advance.
    Regards,
    jignesh.
    [ConnectionProblem.txt]

    I am using the weblogic server 6.1 (in production mode)with sybase anyware 6.0
    and
    i am using the bridge driver to connect to database.
    I have tried using the own implementation of coonection pool and also the poool
    functionality provided by the weblogic.
    It some times give s me the error as follows:
    1) Authentication violation
    --Only when i am firing the delete or insert or update queries.
    2) too many connection to the the database ,database rejected the connection.
    Can u give the sample code where in i can use connection pool.
    I am creating the one datasource instance in the init method of my main controller
    servlet and then i am pasing this datasource to the constuctor of the util classes
    and the action classes.
    The problem is that also sometimes calls the destroy method of the controller
    servlet and which again creates a new datasource.
    Is there any timeout setting to be done for the post request which can solve this
    problem.
    Thanks for replies in advance.
    Regards,
    jignesh.
    [ConnectionProblem.txt]

  • 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

  • What is the database string used in the connection box for sybase-merant?

    I am using report wizard of Reports Developer 9 to create report for Sybase database. Assume the Sybase database uses the following setting:
    user: sa
    password: password
    computer IP address: 10.0.187.30
    computer host name: development
    port number: 2468
    database name: TEST01
    If I use sybase-merant (JDBC Query) as the data connection, I need to input USERNAME, PASSWORD and DATABASE at the Connection Box. What should I input for the DATABASE? I have inputted "sa" as the USERNAME and "password" as the PASSWORD. When I inputted "10.0.187.30:2468:TEST01" as the DATABASE, I got error which indicated the data source cannot be connected. I have also tried "10.0.187.30,2468:TEST01", "10.0.187.30:2468", "10.0.187.30,2468" and "10.0.187.30", but none of them worked.
    Thank you.
    - Man Ip

    Hello,
    If you go through the link, mentioned above, an entry is needed to register a JDBC-Driver for your database(sybase).
    Driver entry contains a attibute "connectString", which contain the
    connection syntax to the datbase.
    connectString = "mainProtocol:subProtocol://databaseName"
    mainProtocol and subProtocol part of the connection String are defined in config file and "databaseName" has to be mentioned in JDBC Query Connection Diloag.
    Sample databasename : database:portnumber
    Here database refer to the sybase database user want to connect and portnumber : port on which its running(it will be normally 4100 or 5000).
    Please refer the comments in file ORACLE_HOME/reports/conf/JDBCPDS.CONF for more detail.
    With Regards
    Reports team.

Maybe you are looking for

  • How to create a System Extract for Communication

    Hi, I've built System Extracts before but not for Communication. Does anybody know what the steps are to create a System Extract for Communication? I already built a particular Communication Type and the delivery method is email. I was told that Orac

  • Branching Recommendation on Supporting Different Versions

    Hi Guys, We are a small team and barely new to TFS. I wanted to introduce branching for supporting different versions eg. SSRS 2005 and SSR2012, SSIS2005 and SSIS2012. We're planning to convert our codes from 2005 to 2012 but during that period we ne

  • How can get page information

    Dear All, I have the VO contain the values of emp_id ,name ,number, if i click the save button i will able to get the values of in the table by iteration Row object How i can able to get the Values of forms currently appered in the screen

  • Change default folder image

    Is there any way to change the default for image for new folders? I want to be able to change all of my folders to black without having to change every individual image.

  • HT1379 iLife problems

    iPhoto not showing up in Photo to Movie's browser, same goes for iTunes? Any help appreciated.