Jdbc for linux.....

hi......
i have a prob in my authentication part of an application which iam developing..
firstly, I use mandrake linux 9.1 which has the mysql database which is the default database.....
I want retreive the username & passwd from database to compare it with the values entered by the users....
how do I have to do this & what is the odbc connection should I use???
P.S::
plz tell me the odbc to be used which is enough as I know how to do the codings.......
Thanx...

hi,,,,,,
thanxz for the valuable reply...
i downloaded the zip file.. i extracted it.. can any one tell me how to make link with the database & work properly.. i tried executing the program, i get an error
classNotFound exception :com.mysql.jdbc.Driver
i think something went wrong in the connection....
plz be clear to solve this problem as iam new to this....
thanxz

Similar Messages

  • Sqlj and jdbc for linux

    Hi All,
    I am currently set up the (tomcat) jsp engine on top of apache web server.
    And now i would like to install both sqlj and a jdbc driver such
    that I can query our oracle database. In all of the options for downloads
    there is a windoze option and a solaris option. Do I have to wait for specific
    "linux" version to get them to work. Or is the solaris option alright
    for linux ??
    slightly confused,
    Chris

    Unfortunately, this description is still rather unspecific.
    It sounds, as if there might be an issue with the way database connections are established for the SQLJ and JDBC parts of your program. Could you provide more information on that, specifically on how you obtain JDBC connections and SQLJ connection contexts.

  • JDBC for Postgresql(on Linux): java.lang.NullPointerExceptio--Please HELP!

    I'm trying to build a JSP web application with Apache Tomcat 4.0 on Linux, using PostgreSQL database.
    The test page for building a connection to the database is very simple.
    However, unfortunately, I always get the following error message from the web server.
    The code is also show below.
    I have another Tomcat server working on Window2000 with Oracle. So I change the JDBC driver to Oracle on that machine, and it works fine.
    I guessed I might have some problem with the Tomcat setting, but I'm not sure what I need to change.
    The directory of my web application is built under the webapps.
    And I've added JAVA_HOME, JAVA_HOME/lib/tool.jar, and JDBC for PostgreSQL to my CLASSPATH.
    Is there any other configuration that I missed?
    Please help if you see the problem.
    Thanks a lot in advance.
    Error message:
    type: Exception report
    message: Internal Server Error
    description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         at org.apache.jsp.index$jsp._jspService(index$jsp.java:231)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    Here's my code:
    <%@ page language="java" import="java.io.*, java.sql.*, java.util.*, java.lang.*" %>
    <HTML>
    <HEAD>
    <TITLE>TEST</TITLE>
    </HEAD>
    <BODY>
    <b> City </b><br>
    <%
         Class.forName("org.postgresql.Driver");
         String sqlurl = "jdbc:postgresql://localhost:5432/customer";
         String username = "guest";
         String passwd = username;
         Connection conn = DriverManager.getConnection(sqlurl, username, passwd);
         Statement st = conn.createStatement();
         String queryStr = "select CITY from WEATHER";
         ResultSet rs = st.executeQuery(queryStr);
         if (rs != null){
              while(rs.next()){
                   String strCity = rs.getString(1);
    %>
    -- <%=strCity %> --<br>
    <%
         st.close();
         conn.close();
    %>
    </BODY>
    </HTML>

    Error is not there in the code what you are showing. Can you edit index$jsp.java and see what is there in line 231?
    You may find it in tomcat_home\work\your_application directory.
    Sudha

  • Oracle JDBC Driver for Linux

    I'm looking for a place to download an Oracle JDBC driver for Linux. I have installed Oracle 8.1.5 for Linux, but don't find the driver either in the installation, nor on the CD. Can anyone point me to someplace I might be able to find it?
    Also, generic help in setting this up to work, JDBC API calls would also be of great help.
    Thanks.

    Luis Claudio Rodrigues da Silveira (guest) wrote:
    : How can I configure JDBC driver in a Suse environment? What
    are
    : the necessary steps?
    : Thanks in advance.
    1) You need classes111.zip usually located at
    $ORACLE_HONE/jdbc/lib.
    2) Add classes111.zip to CLASSPATH and export
    3) If you use thin driver your code should look like:
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    // Connect to the database
    // You must put a database name after the @ sign in the
    connection URL.
    // You can use either the fully specified SQL*net syntax or
    a short cut
    // syntax as <host>:<port>:<sid>. The example uses the
    short cut syntax.
    Connection conn =
    DriverManager.getConnection
    (jdbc:oracle:thin:@hostname:port:ORACLE_SID,
    USER_NAME, PASSWOED);
    null

  • Where can i find mysql Jdbc driver for linux

    Hi all,
    Can any one give urls to download mysql jdbc driver for linux.
    And also for ODBC DRIVER FOR MYSQL ON LINUX.
    Thanks

    http://mmmysql.sourceforge.net/
    (This is a type 4 driver, so "for Linux" is irrelevant.)

  • JDBC for 9i (use in Linux)

    How can I get JDBC driver Oracle 9i for Linux SuSe?
    Looking forward to hear from you.
    Thanks.
    Best Regards,
    FELIX

    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28273/compat003.htm
    yes, it will work according the rule
    #You can create an 8.x or 9.x recovery catalog schema in any Oracle database release 8.1.x (or higher), and a 10.0.1 (or higher) recovery catalog schema in any Oracle database release 9.0.1 (or higher).
    # The recovery catalog schema version must be greater than or equal to the RMAN client version.
    Regards
    Asif Kabir

  • JDBC DRIVERS FOR LINUX (8.1.6)

    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    Where can a person download the JDBC Drivers (CLASSES12.ZIP ORA)
    for Linux? I see information on Solaris and NT but not Linux.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg
    Connie

    if you have oracle 8i server you will find the classes12.zip(thin jdbc drivers )in the [ORAHOME]/jdbc/lib directory. You have to added the zip to the classpath in the jserv.properties file eg. wrapper.classpath=D:\oracle\ora81\jdbc\lib\classes12.zip(if you orahome is D:\oracle\ora81.)
    otherwise for just using the java classes for compiling and running in the consile you have to set the classpath of classes12.zip in your system environment.
    Thanks.

  • No JDBC drivers for Linux??

    On the Oracle Tech Net site, it seems I can only download
    JDBC drivers for NT or for Solaris... no linux...
    Where can I get Oracle JDBC drivers for 8.0.5 for Linux?
    Thanks!
    Greg
    null

    The thin driver will work from either download (classes111.zip)
    since it is pure java. There is no OCI driver for Linux that I
    know of.
    null

  • JDBC Drivers for Linux

    How come Oracle's web site only has downloads for NT and Solaris. Where do I get the latest JDBC driver for Linux?

    You should be able to use clases111.zip from AIX or NT with your
    Linux client, just copy the file, and add it to your CLASSPATH.
    I'm using classes111.zip from AIX (8.1.5) on NT and Win95
    clients.
    This will work for the thin client, the oci8 needs SQL*Net
    (and some more support libs.) installed to work
    Hilsen Jan
    Greg Patrick (guest) wrote:
    : Well that's no good! I don't have the database client
    : for Linux. Our 8.0.5 DB is on AIX. We have Windows NT
    : 8.0.5 client CD's. I shouldn't need an entire 8.0.5
    : Linux client installation just to use JDBC, should I?
    : JDBC drivers are available for download for NT and Solaris,
    : why not Linux?
    : John Salvo (guest) wrote:
    : : They are included with the 8 and 8i installations.
    : : Greg Patrick (guest) wrote:
    : : : I can't find any JDBC drivers for Linux on the Oracle
    : Technet
    : : : site... It seems very strange that Oracle would have an
    : : : 8i database for Linux but not have JDBC drivers. Is this
    : true?
    : : : All I want is for a java program on a Linux machine to be
    : : : able to use the OCI drivers to talk to the database on
    : another
    : : : machine. Even JDBC thin drivers would be better than
    : nothing.
    : : : Where are they?
    : : : Thanks,
    : : : Greg Patrick
    : : : http://www.abe.com
    null

  • JDBC (ODBC) Driver for linux

    Hello
    I am currently using JdbcOdbcBridge on Windows NT/2000 for accessing MS SQLServer.
    But I want to transfer my application servers to Linux
    RedHat 7.1. My database should remain MS SQLServer.
    Can you suggest me a way to connect to MSSQL Server
    from Linux? An ODBC driver would also be
    enough for me, i.e. I can use a JdbcOdbcBridge regardless of performance problems.
    Where can I find MS SQL Server drivers for Linux?
    Thank you

    You might try the http://www.freetds.org/.
    Or RmiJdbc at http://www.objectweb.org/

  • Schedule of 8.1.6 for Linux

    I just noticed 8.1.6 for Solaris is available. How about for Linux? Will it
    still free to be download?

    did you have your oracle database running?
    01034, 00000, "ORACLE not available"
    // *Cause: Oracle was not started up. Possible causes include the following:
    // - The SGA requires more space than was allocated for it.
    // - The operating-system variable pointing to the instance is
    // improperly defined.
    // *Action: Refer to accompanying messages for possible causes and correct
    // the problem mentioned in the other messages.
    // If Oracle has been initialized, then on some operating systems,
    // verify that Oracle was linked correctly. See the platform
    // specific Oracle documentation.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chirag oza ([email protected]):
    HI All,
    While I m trying to connect the Oracle 8.1.6 server with the JDBC Thin driver I m getting Error
    ORA - 01034 Oracle not Available.
    I m using jdk 1.2.2 and in the Classpath I have given the path for classes12.zip.
    I have tried using classes111.zip file though I m getting same Error Message.
    Anybody can help me out.
    Thanx,
    Chirag oza
    <HR></BLOCKQUOTE>
    null

  • ODBC or JDBC on Linux/Oracle

    http://www.openlinksw.com/
    Is where you will find connectivity for LINUX and Oracle.
    I did some research on the connectivity of LINUX and Oracle
    after having switched from a Server Farm hosting IIS and then
    going to linux.
    The basic info I found was in about 20 links.
    Some areas of interest might be:
    http://www.linuxworld.com/ this is by INFOWORLD MAG but has the
    best source and links for commercial Linux.
    In addition:
    http://users.ids.net/~bjepson/freeODBC/
    The free ODBC might be a place to gain the functionality to get
    the job done if you have the ability to code at that layer.
    The reason WHY odbc is not the preferd method of accessing
    Oracle is that OLE DB is thunked through the JET DATABASE ENGINE
    or subsystem in WIN9.x and WINNT at the client side.
    http://support.microsoft.com/support/kb/articles/q139/7/25.asp
    This article goes into some detail how OLE DB, ODBC, ADO, RDO,
    and the rest of the MSFT data is handled and by what files.
    ORACLE uses "OLE OBJECTS" to get the data and passes the JET
    DBENGINE/Sub-system.
    So for a Server on Linux and a host on Wintel you might look at
    the JDBC or universal Model of data connectivity.
    Oddly this was just something I looked into prior to deciding to
    get into Oracle8i....
    If you get any additional info.. or other "workable" approaches..
    Please follow up I would be interested...
    null

    Have you ever heard of [url http://www.google.com]google?
    By searching for [url http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=linux+mysql+jdbc+driver]linux mysql jdbc driver, and following the first link, it took me about two minuts to find the [url http://www.mysql.com/downloads/api-jdbc-stable.html]MySql JDBC driver download page.

  • JDBC on LINUX

    When I use Employee.java from JDBC examples I get:
    SIGSEGV received at bffff470 in /home/ora/app/oracle/product/8.0.5/lib/liboci805jdbc.so. Processing terminated
    Writing stack trace to javacore11569.txt ... OK
    Aborted
    How solve this problem?
    null

    Thanks.
    Where I can get 8.1.6 client for Linux?
    Next question:
    I try run examples on Windows NT 4.0
    (Oracle 8.1.5, Sun J2SE)
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@", "SCOTT", "TIGER");
    In result error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:197)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:142)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:214)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193)
    at java.sql.DriverManager.getConnection(DriverManager.java:457)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at Employee.main(Employee.java:43)
    How solve this trouble?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC Development Team:
    The problem is that prior to 8.1.6 the OCI drivers are not supported using any VM other than Sun's. So, you have to do one of the following: upgrade to 8.1.6 client, switch to Sun's VM, or use the Thin driver.
    The reason that IBM and MS's VMs are not supported is that they do not support NMI and prior to 8.1.6 the OCI driver uses NMI to maintain JDK 1.0.3 compatibility. We dropped support for JDK 1.0.3 in 8.1.6 and switched to JNI. The 8.1.6 drivers are supported on IBM's and MS's VMs.<HR></BLOCKQUOTE>
    null

  • JDBC in Linux

    Since JDBC is a bridge to connect Java and Oracle via ODBC.
    However, in Linux, there is not ODBC. Can I still use JDBC in
    linux to access Oracle?
    null

    Stephen (guest) wrote:
    : Since JDBC is a bridge to connect Java and Oracle via ODBC.
    : However, in Linux, there is not ODBC. Can I still use JDBC in
    : linux to access Oracle?
    JDBC is NOT a bridge between JDBC and ODBC! Early versions of
    JDBC might have used this to get a version out there for people
    to use to code.
    Oracle JDBC connects either thin (100% java) or OCI (via the
    Oracle Client)
    null

  • Where can I download the working jdbc for JDev-10.1.2?

    Hi! I've read a lot on this forum about the bug in JDev-10.1.2 - there are errors ora-00604 and ora-12705 in establishing connection with Oracle DB by using own jdbc. The solution of this problem is substituting jdbc from previous release JDev, for example, JDev-9.0.4. Does anybody know where I can get ONLY correct jdbc-drivers from JDev-9.0.4 without downloading ALL release? This driver is not very big (I think about 4-5 MB) while the whole release is about 130 MB.

    Sanja: Hello!
    I've got a sad news - the latest jdbc (from Oracle DB 10.2.0.1.0) didn' fit, the error remained. Moreover, the earlier established connection (in 'Connection navigator') was broken - it failed 'Test' with the sooner errors. I have Oracle 9iR2 DB for Linux FC3, the kernel is 2.6.9, I don't use kde and don't remember the version of gnome, it's from the distributive. Having replaced JDev's jdbc driver by Oracle's one from DB I obtained the passing test connection between JDev and Oracle DB with success. But in ADF-applications there were the well-known errors - ora-00604 and ora-12705. My applications on OS Windows which are written with C# are working with Oracle 9iR2 on Linux without any problem. So the matter is in JDev.
    Thanks for your suggestion about user.language, country and variant. I'll try it this evening and I hope (but not very much) that it'll work.
    Any way I've got a decision - to download previous release JDev and take jdbc from there. :-/

Maybe you are looking for

  • Connect to Microsoft SQL server 2012

    HI, Currently My OSB connects to MS SQL server to get some data and then construct the request to submit to another web service. But recently the SQL server that I connect to has upgraded(previously was MS SQL 2005) to MS SQL to 2012. There are certa

  • CRM 4.0 alerts in CRM 2007

    We had configured a number of alerts in CRM 4.0.  We have recently upgrade our system to CRM 2007 and these alerts no longer work in the CRM 2007 web IC.  is there a conversion process or do these need to be recreated from scratch?  Any documentation

  • Oracle Translation builder 6i IN/OUT

    Please, let me know how extract 1 .Oracle Translation builder 6i text (text from OTB tables) to ASCII text file and 2. ASCII text file to Oracle Translation builder? Urgent? Yes. Answer appreciated? Yes. Darko Jelisavcic [email protected]

  • Subcontrating Purchase order with Validity Period.

    Hii, Our user here using validity period to restrict GR creation or invoice verification process against the order if posting date is not within validity period. There is certain case whereby GR have been received in full quantity examle; PO Item for

  • Working collection, not necessarilly pinned - New feature request

    Do you think this is a useful feature? Currently when you are working with objects the only way to keep "non-editing" windows is to pin them. Can this behaviour be extended as a new node that allows you keep a "working collection" of different object