[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Connectivity to Oracle

Posted on 2004-09-06
3
Medium Priority
?
200 Views
Last Modified: 2010-04-01
Hi all, i have expereicen in conecting to IBM Db2, but not oracle,

Can anyone share me the way to connect to oraacle databse.

TQ.

try {

Class.forName("what is the name").newInstance();
Connection conn = DriverManager.getConnection("what is the path");

}

thank you
0
Comment
Question by:spiderman19
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 11987958
0
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 11987975
Here is another example

>>Class.forName("what is the name").newInstance();
oracle.jdbc.driver.OracleDriver
>>Connection conn = DriverManager.getConnection("what is the path");
jdbc:oracle:thin:@(description=(address=(host=database_ip)(protocol=tcp)(port=1521))(connect_data=(sid=database_instance_name)))

But make sure you have OracleDriver include to classpath.
0
 
LVL 92

Expert Comment

by:objects
ID: 11992783
thanks mate :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Currently, there is an issue with being able to copy values from an external application to a dropdown list in Project Web Access (PWA).  The standard copy and paste methods don't seem to work properly. Here is a way to accomplish this task to s…
Most folks would know the basics of how Dropbox works, so that’s not the purpose of this article. Security is what it’s all about, so here I’ll share how I choose to secure my Dropbox Account and the Data it contains.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question