yes sid id is correct. it connects to default database which is
megasoft. if i give userid and pwd of apna datavbase it says invalid
userid .
-----Original Message-----
From: prasad charasala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 28, 1999 8:26 PM
To: [EMAIL PROTECTED]
Subject: Re: SERVLET JDBC PROBLEM
Hi
Are you giving corresponding sid in the url instead
of orcl? check your userid and passwd for that
database.
--- RAHIMUNISA_N <[EMAIL PROTECTED]> wrote:
> HI,
> public void initDB()
> {
> try
> {
> //Find the driver class
>
> Class.forName("oracle.jdbc.driver.OracleDriver");
> //DriverManager.registerDriver(new
> oracle.jdbc.driver.OracleDriver());
> //Connect to ebanc user id using oracle thin
> driver
> conn =
>
DriverManager.getConnection("jdbc:oracle:thin:@192.168.2.1:1521:orcl",
> "ebancuser", "megasoft");
> }
> catch(SQLException se)
> { System.out.println("SQLException"+se);
> }
> catch(Exception ex)
> { System.out.println("General Error"+ex);
> }
>
> } // End of method initDB
> ---------------
> i used the above method to connect to oracle
> database . but its
> connecting only to default db which is megasoft. if
> i use diff database
> it says invalid user . pls help me in fixing this
> problem .
> bye
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
=====
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
________________________________________________________________________
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html