원인
Listener 포트에 대한 방화벽이 구동되어 있는경우 발생합니다.
해결방안
방법 1. Listener 포트에 대한 방화벽을 제거합니다.
$ gsqlnet TEST test Copyright © 2010 SUNJESOFT Inc. All rights reserved. Release Venus.3.1.1 revision(23756) ERR-08001(19044): Client unable to establish connection ERR-HY000(11067): failed to connect to an host with a socket : connect() : stnConnect() returned errno(113)
$ glsnr --status Copyright © 2010 SUNJESOFT Inc. All rights reserved. Release Venus.3.1.1 revision(23756) Listener process ID : 31000 Listener configuration file : Unix Domain Path : /tmp/unix-glsnr.22581 TCP Listen Host : 0.0.0.0, Port : 22581 default C/S mode : Dedicated Connection Timeout(second) : 100 Listener is running.
# iptables -I INPUT 1 -p tcp --dport 22581 -j ACCEPT # iptables -I OUTPUT 1 -p tcp --dport 22581 -j ACCEPT
$ gsqlnet TEST test Copyright © 2010 SUNJESOFT Inc. All rights reserved. Release Venus.3.1.1 revision(23756) Connected to GOLDILOCKS Database. gSQL>