linux - How do I open a specific port on RHEL 6.4? -


i'm setting remote connection oracle database , requires connection should established through port 1521 default. however, i'm getting error repeatly:

[oracle jdbc driver]error establishing socket host , port: :1521. reason: connection refused

checking deeper, realize port 1521 cannot connected on local machine:

telnet localhost 1521 trying ::1... telnet: connect address ::1: connection refused trying 127.0.0.1... telnet: connect address 127.0.0.1: connection refused

the connection through port not established anyway. moreover, iptables disable on local , remote machines well. ping localhost working fine.

i notice port 1521 refusing connection. when tried telnet port 80, working fine.

do need have port 1521 on netstat output establish connection through it? if yes how can do.

thank in advances.

regards,

anh

i hope trying connect remote oracle database server local machine. if yes have use following command

telnet 1521

are sure using port other default oracle database port. believe default oracle database port 1158.

also please check service , running following command @ remote database server.

netstat -plnt | grep 1158 ( or port number have assigned )

or can access oracle database in remote machine browser accessing following url https://localhost:1158/em


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -