If you have downloaded ORACLE documentation, you will find a README.txt file
in '$ORACLE_HOME/jdbc' directory. You should be able to download the documentation
from-    http://technet.oracle.com
    Meanwhile here are some of the hints from README.txt :-

 1. Import the necessary JDBC classes in your programs that use JDBC.
    For example:

      import java.sql.*;
      import java.math.*;

 2. Register the Oracle driver before before calling other JDBC APIs.
    (This is not needed if you are using the JDBC Server-side Internal
    Driver because registration is done automatically in the server.)
    To register the Oracle driver, make sure the following statement
    is executed at least once in your Java session:

      DriverManager.registerDriver(
        new oracle.jdbc.driver.OracleDriver());

 3. Open a connection to the database with the getConnection call.
    Different connection URLs should be used for different JDBC
    drivers.  The following examples demonstrate the different URLs.

    For the JDBC OCI8 Driver:

      Connection conn = DriverManager.getConnection(
                          "jdbc:oracle:oci8:@<database>",
                          "scott", "tiger");

      where <database> is either an entry in tnsnames.ora or a SQL*net
      name-value pair.

    -Hope this helps!
----------------------------------------------------


Siddharth Damodar Rane wrote:

> hi,
>
>   Can any body tell me more about net8 configuration . I have installed
> oracle8i (net8) on  windows95. I am using Jdbc oci drivers. If i want to
> make a query to databse then what will be  the connection statement i have
> to pass.and how tsnnames will work in this context.
>
>   WHEN I USE JDBC THIN DRIVER QUERY WORKS.I think i am making mistakle in
> specifying TSNAMES.ORA
>   in the connect string.
>
>   Thanx in advance.
>   siddharth
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to