Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Newbie: Problems to connect using port 1521
You need to understand Oracle Net, formerly called Net8. This is like
another layer above ( or under ) the TCP/IP stack. It use 1521 by default.
You should not be trying to use Java to connect directly to this port.
APP --->Net8 ----> tcpIP -----network-----> tcpIP---->NET8(1521)----->Oracle Instance
"rigel" <f71_at_hotmail.com> wrote in message
news:amobna$1na6t$1_at_salico.udc.es...
> I have installed OracleI 9.0.1 over Red Hat Linux 7.2.
>
> I want to connect to the default database using scott/tiger user with
Java.
> I tried to connect using port 1521 but the connection fails. I used the
> command "netstat -atup" and I saw that the process "ora_d000_test" uses
one
> random number, for example 32777. Then I have tried to connect using this
> port and the connection was succesfull. My problem is that this port
changes
> when the database starts, and I want to connect using 1521 always.
>
> Thanks in advance.
>
> Francisco J. Nóvoa
>
>
Received on Mon Sep 23 2002 - 13:18:55 CDT