1748074 Members
5276 Online
108758 Solutions
New Discussion юеВ

Re: check open port

 
Mohd Azahari
Advisor

check open port

Hi,

I'm trying to change my current listener port no to something else but when I started the listener, there is no service registered after 1 minute.

I need to find out how to determine if this port is blocked.

trying telnet host_ip portno gets connection refused.

thanx for helping
7 REPLIES 7
Steven Schweda
Honored Contributor

Re: check open port

Should I know what "the listener" is? Or how
you started it?

> [...] there is no service registered after
> 1 minute.

And you determined this how, exactly?

> I need to find out how to determine if this
> port is blocked.

Who would be blocking it? How much network
lies between you and "host_ip"?

> [...] connection refused.

That normally means that no one is listening
at that port.
Kapil Jha
Honored Contributor

Re: check open port

is there nay firewall in between ?
have u added the port in /etc/services

Port would only listen when service is running, are you sure ur application is accepting new port.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Fandi Kurnia
Frequent Advisor

Re: check open port

check all port use this :

#vi /etc/services


for flush your firewall :

#ipf -Fa

or you can check using :

#netstat -an | grep [port number]
Horia Chirculescu
Honored Contributor

Re: check open port

Hello,

>I'm trying to change my current listener port no to something else but when I started the listener, there is no service registered after 1 minute.

You should investigate what is the reason why your daemon dies. Check your daemon's log (if any) and check the syslog file.

Some daemons exit when have nothing to do and must be re-started when needed.

Horia.
Best regards from Romania,
Horia.
WayneHP
Frequent Advisor

Re: check open port

Can you send the output of, /etc/hosts file , ,netstat -in command , hostname command, lsnrctl start (as oracle admin)command, and your listener.ora file.

Wilfred Chau_1
Respected Contributor

Re: check open port

Which port number did you try to change to?

You cannot change to a port no < 1024 as a non root user, i.e. oracle.

Abbott Vascular
Occasional Advisor

Re: check open port

you might also want to use a tool call 'lsof' - this might be you're best bet, but answer the guys questions above and we can get more detailed.

-RCP