codetoad.com
Home||ASP|ASP.Net|C++/C#|DHTML|HTML|Java|Javascript|Perl|VB|XML||CodeToadPlus!||Forums||RAM
Search Site:
Search Forums:
How to connect to oracle using java vsphanindra at 19:08 on Tuesday, May 10, 2005

Hi frns,

I am stuck with a problem.I could'nt connect to oracle.
I am using oracle8i fully installed.

I have included classes12.rar file to classpath.

do I need to install any drivers. or need to set any other path
plz let me know

feel free to contact me at vsphanindra@yahoo.com

"the error I am getting is "


package oracle.jdbc does not exist
Class.forName(new oracle.jdbc.OracleDriver());


and the code I used to connect to database is


// import Oracle.*;
import java.sql.*;
//import package oracle.jdbc ;

public class Data {
public static void main(String[] args) {
Class.forName(new oracle.jdbc.OracleDriver());
//Connection con =
//DriverManager.getConnection"jdbc:oracle:thin:@hostname:1526:orcl","scott","ti ger");


}
}




thnx in advance
phanindra.



Re: How to connect to oracle using java InteractiveMind at 11:40 on Tuesday, May 24, 2005

Hello,

check out the stuff here; http://www.javaalmanac.com/cgi-bin/search/find.pl?words=oracle

Good luck.
Rob.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
matrix addition
Re: Storing data from HTML to Excel or TXT
Re: function within loop problem
Re: Ô‡´ò¥¯¥é¥Ö¤Ï ¥Æ©`¥é©`¥á¥¤¥É£ò£±£±¥¢¥¤¥¢¥ó ¤Î£··¬ ¤Ç¤¹
Re: Replace
Re: タイトリスト AP2アイアン 712�情�
Re: SMS from Perl using HTTP request
Re: Charl Schwartzel
Re: Adhyayan - Annual Student Conference and Online Coding Festival


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


Copyright codetoad.com 2001-2013