Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: newbie to java oracle
bigbinc_at_hotmail.com (bigbinc) wrote in message news:<d1b33313.0311030830.5392a61f_at_posting.google.com>...
> I need to make a jdbc connection to oracle, I was wondering what are
> the initial steps. I have the oracle 9 client installed, I have yet
> to set any classpaths. Should I have to install the jdbc drivers?
> Also will I have to do any thing different to connect to oracle
> through a servlet.
>
> I assume, all I have to do is set the classpath to the jdbc drivers
>
> I read the docs, they are not leading me any where.
Oracle's JDBC Developer's Guide and Reference and Java Developer's Guide should have plenty of information to get going on. At $ORACLE_HOME/jdbc/demo is a demo.tar. Expand this and check out JdbcCheckup.java under the generic folder. If you look at the included Makefile, it will show you how to set up the classpath. Basically, javac -classpath $ORACLE_HOME/jdbc/lib/classes12.jar:. JdbcCheckup.java and then java -classpath $ORACLE_HOME/jdbc/lib/classes12.jar:. JdbcCheckupup (for Java 1.2). Received on Tue Nov 04 2003 - 19:21:04 CST