Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JDBC realm URL Tomcat4.0

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
can anyone pl.help me to configure JDBC Realm for oracle
i had tried it and i get this exception.
i know my URL is not correct can anyone tell the correctURL
syntax
connectionURL=
"jdbc racle:thin:@195.168.142.45:1521:RsiSuite","scott","tiger"
i get this exception
Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQL
Exception: invalid arguments in call
LifecycleException: Exception opening database connection: java.sql.SQLException: inval
id arguments in call
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
Class.forName("oracle.jdbc.driver.OracleDriver"));
Connection con = DriverManager.getConnection("jdbc racle:thin:@195.168.142.45:1521:RsiSuite", "scott", "tiger" );

 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The string needs to be one string for your database url
connectionURL=
"jdbc:oracle:thin:@195.168.142.45:1521:RsiSuite?user=scott;password=tiger"
Give this a try.

------------------
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
[This message has been edited by Carl Trusiak (edited December 03, 2001).]
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic