Solved

Accessing oracle database

Posted on 1998-05-18
2
208 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 20 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
ejb example issues 3 28
difference between sorce folder and folder in eclipise 3 29
How to configure empty element in XML Document parser? 15 36
hashmap order 17 37
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

820 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