Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Accessing oracle database

Posted on 1998-05-18
2
Medium Priority
?
231 Views
Last Modified: 2010-04-16
How can I access multiple database on one Oracle server using Java?
0
Comment
Question by:oddz
2 Comments
 
LVL 5

Accepted Solution

by:
msmolyak earned 40 total points
ID: 1221157
When you use JDBC to connect to a database, you should provide a URL of a data source you are trying to connect to. The URL should contain the database name. The connection URL syntax should be dependent on the particular JDBC driver you are using (that is the documentation for the driver should tell you what URL to use).
0
 

Expert Comment

by:sdaxm11
ID: 1221158
you can just connect to diffrent database using the  connect statment. just remember to close a connection before opening a new one
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

879 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