hi,
        i found my problem . i was using userid ebancuser
pwd megasoft but my sid was pointing to megasoft database instead of
apna . thanks a lot of clarifying my doubt.
Bye

-----Original Message-----
From: Jim Richards [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 29, 1999 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: SERVLET JDBC PROBLEM


At 10:04 AM 29/10/99 +0530, RAHIMUNISA_N wrote:
>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 .

I think you are getting your terminology miced up.

A database can have severla users. I the code snippet
below, you are connecting to the orcl database,
as user ebancuser password megasoft ...

I think what you want, is to connect to the apna
database, try


DriverManager.getConnection("jdbc:oracle:thin:@192.168.2.1:1521:orcl",
"ebancuser", "megasoft");

what do you use to connect to the database with for, say, sqlpus?
of Enterprise Manager? This would map to the jdbc connection string.

If you have any more problems, try the Oracle technet site
at

        http://technet.oracle.com/


>> 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");


--
Subvert the dominant paradigm
 http://www.cyber4.org/members/grumpy/index.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

___________________________________________________________________________
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