View Single Post
  #3 (permalink)  
Old 04-22-2008, 09:54 AM
javarishi javarishi is offline
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
The database params can be given as a url. The format of url is

jdbcracle:<drivertype>:@<hostname>:<port>:<datab ase_sid>

In your case just replace the values as
Connection con=DriverManager.getConnection("jdbcracle:thin@ localhost:1521:XE","SYSTEM","tiger");

Try It Out.
Reply With Quote