원인
리스너가 구동되어 있지 않을때 발생합니다.
해결방안
방법 1. 리스너를 구동합니다.
$ glsnr --status Copyright © 2010 SUNJESOFT Inc. All rights reserved. Release Venus.3.1.1 revision(23756) Listener is not running.
$ 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(111)
$ glsnr --start Copyright © 2010 SUNJESOFT Inc. All rights reserved. Release Venus.3.1.1 revision(23756) Listener is started successfully.
$ gsqlnet TEST test Copyright © 2010 SUNJESOFT Inc. All rights reserved. Release Venus.3.1.1 revision(23756) Connected to GOLDILOCKS Database.