You can specify the port in the connect string, but I think it�s not 5555 on
oracle... but normally, it�s only necessary when using a thin driver.

> -----Urspr�ngliche Nachricht-----
> Von:  Eytan Seidman [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Mittwoch, 2. Juni 1999 00:50
> An:   [EMAIL PROTECTED]
> Betreff:      Re: JDBC via Servlet!
>
> Yes, usually jdbc runs on  a port, i belive most people use 5555.  Someone
> correct me if I am wrong.
>
> Eytan
>   -----Original Message-----
>   From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Gaurav
> Kishore
>   Sent: Tuesday, June 01, 1999 6:18 PM
>   To: [EMAIL PROTECTED]
>   Subject: JDBC via Servlet!
>
>
>   Hi!,
>   I am trying to run a servlet on Apache JServ on Unix. The servlet tries
> to
> connect to Oracle 7.x  (which is on a different server) using JDBC
> drivers.
>
>   I have the following code in the servlet :
>
>   con =
> DriverManager.getConnection("jdbc:oracle:xxx.yyy.com:dbname","username","p
> wd
> ");
>
>   Do I need to mention the port no. of the database server also, because
> though the code is compiling without an error but while running the
> servlet
> I am getting "Internal Server Error".
>
>   Any help is appreciated.
>
>   Thanks in advance
>   Gaurav
>
>  << Datei: ATT00002.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