Accessing oracle database

How can I access multiple database on one Oracle server using Java?
Who is Participating?
msmolyakConnect With a Mentor Commented:
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).
you can just connect to diffrent database using the  connect statment. just remember to close a connection before opening a new one
All Courses

From novice to tech pro — start learning today.