This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Is this possible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Is this possible" Watch "Is this possible" New topic
Author

Is this possible

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

What will happen if I use like this :

Connection con1 =DriverManager.getConnection(jdbcracle:thin:user/pass@databasestuff);

Connection con2 = DriverManager.getConnection(“dfferent database “)



Save India From Corruption - Anna Hazare.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
What happened when you tried it?
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

It will work if you have added the jar files for both of these databases.

Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this possible
 
It's not a secret anymore!