Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC realm URL Tomcat4.0

 
srinivas raju
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
 
Jim Bertorelli
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" );

 
Carl Trusiak
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=
"jdbcracle: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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic