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

Reply via email to