hi everyone.
i am an amateur programmer in java.
can anyone please tell me how do i go about connecting my java application to oracle 9i database?
please be specific about what is the URL that i should use and how should i install the oracle JDBC driver.where should i install it.
if it is already available with either JDK 1.5(which i am using) or oracle 9i. where can i locate it and how should i install it. please let me know all the details. thank you.
indianscorpion2 -1 Junior Poster in Training
Recommended Answers
Jump to PostHere are the drivers of Oracle for java.
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.htmlInstall the jar into the "\jre\lib\ext\" directory of wherever your jsdk is installed at.
This code would print out the database names on the server:
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url = …
Jump to PostWell you'll need to make changes to the code for it to work for you. Such as the username and password and the server address. You may even have to change the driver name.
I believe Server Crash was referring to the java api documentation.
All 6 Replies
server_crash 64 Postaholic
Phaelax 52 Practically a Posting Shark
indianscorpion2 -1 Junior Poster in Training
indianscorpion2 -1 Junior Poster in Training
Phaelax 52 Practically a Posting Shark
jwenting 1,905 duckman Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.