473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Oracle and Java Connectivity!!!

How to connect Oracle with JAVA.will u Plz explain me.
Jul 4 '07 #1
2 1404
r035198x
13,262 8TB
How to connect Oracle with JAVA.will u Plz explain me.
Check the directory
oraclexe\app\oracle\product\10.2.0\server\jdbc\lib
or something like it and see if you have any of the following zip files
ojdbc14
or
ojdbc14_g
If you don't have them, then go the oracle site and download them (You just need one of them).
Once you have them, add their path to your classpath and then connect to the database using jdbc
Jul 4 '07 #2
praveen2gupta
201 100+
How to connect Oracle with JAVA.will u Plz explain me.
Hi

There are many ways to connect to database. For begainers you should use the Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); driver.

Now go to control panel open odbc, create a sytem DSN, new write a name Learning and select the oracle driver.

after that use the Connection class
String url = "jdbc:odbc:Learning";//Learning is DSN Name
java.sql.Connection c = DriverManager.getConnection(url,"Learning", "Learning");

For details read following article
http://www.javacoffeebreak.com/articles/jdbc/
Jul 4 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: AIK | last post by:
I'm looking for information on Oracle Java Certification. I couldn't find it on Oracle's website. Did they discontinue it? Also, can someone point me to a site where I can find official books for...
3
by: Jim Garrison | last post by:
I need to create a ResultSet in an Oracle Java Stored Procedure and return it to a PL/SQL caller. I've done quite a bit of research in Oracle's manuals and on the Web, and have found lots of...
2
by: mallz | last post by:
hi, i need to connect to oracle from my jsp page. could you please help me with this.. I am able to connect to MS Access using the following code ...
0
by: TechRecruit Consultants | last post by:
Hi Greets! This is sandy,Working in TechRecruit Consultants,Chennai as Head Operaitons - Recruitment. Currently we have openning in Unix/SQL/Oracle/JAVA for ISO 9001:2000/ CMM LEVEL 5 ...
0
by: TechRecruit Consultants | last post by:
Hi Greets! This is sandy,Working in TechRecruit Consultants,Chennai as Head Operaitons - Recruitment. Currently we have openning in Unix/SQL/Oracle/JAVA for ISO 9001:2000/ CMM LEVEL 5 ...
1
by: jsweety | last post by:
hello i am new to oracle as well as jsp ... and i want to know the connectivity between those two.... can anyone help me....
1
by: swethak | last post by:
hi, when i run a java program for to store data and retrive using mysql datatabse i got the following errors.I think in that one of error is due to set the class path.I placed my...
0
by: uddhav | last post by:
I have an application using Oracle 10gR2 on linux. The requirement involves - 1. Reading large data files(upto 1 GB) and loading them into Oracle tables 2. Extracting large data(possibly millions...
4
by: Noorain | last post by:
i installed xampp & oracle 9i. iu sed following connectivity between php & oracle. <? $username="scott"; $password="tiger"; $servicename="noor"; $conn = oci_connect('$username', '$password',...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.