Re: Oracle JDBC problem

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 23 Jan 2003 14:12:54 -0800
Message-ID: <92eeeff0.0301231412.74575d82_at_posting.google.com>


qwert12345_at_boxfrog.com (Doug Baroter) wrote in message news:<fc254714.0301230717.436c6fa8_at_posting.google.com>...
> Rauf,
>
> Thanks. I created the java class in DOS Edit, then Set classpath
> accordingly,
> but I don't know why I got compilation error as follows:
> jdbc\lib\Test.java:15: unclosed string literal (
> ResultSet rset = stmt.executeQuery ("select banner from
> v$version");
> ^
> another ^ under the double quote before select.
>
> jdbc\lib\Test.java:18: ')' expected
> System.out.println(rset.getString(1)); ^ under semicolon
>
> Could it relate to OCI driver setup/configuration etc.? since
> database connection fails when I tried JDBC url config using
> "jdbc:oracle:oci:_at_db"
> while JDBC url config using "jdbc:oracle:jdbc:_at_serverName..." verfies
> that the connection is established but actually not via the third
> party. Again thanks.
>

Email me and I'll send you compiled class file with directions on how to use it.

Regards
/Rauf Sarwar Received on Thu Jan 23 2003 - 23:12:54 CET

Original text of this message