database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
ㆍSybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Sybase Q&A 3916 게시물 읽기
No. 3916
isql 실행시 ct-library에러
작성자
전형진(jini34)
작성일
2009-09-29 15:25
조회수
11,718

보통 서버가 올라가 있지 않은 상태에서 isql -Usa -P -S서버네임 하면

CT-LIBRARY error:

    ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed

에러가 납니다. 그런데 어떤때는 한참동안 멈춰 있다가

CT-LIBRARY error:

    ct_connect(): user api layer: internal Client Library error: Read from the server has timed out.

에러가 뜹니다.

왜 그런걸까요? 리눅스 환경에 sybase 15.0.2/EBF 15967 입니다.

이 글에 대한 댓글이 총 2건 있습니다.

Open Client Error Messages Guide에 다음과 같은 내용이 있습니다.

If the server machine is up and running, but the server is not, you get a
different error. If no server is listening on the specified port, the server
machine signals the client, via a network error, that the connection cannot
be formed. The connection fails regardless of the CS_LOGIN_TIMEOUT
value. See the section “Call to connect two endpoints failed” for information
about this error.

서버 머신은 동작중이고, 서버만 안떠있을경우 클라이언트 접속 요청이 있으면 서버 머신이 시그널을 보내서 network에러를 내보낸다고 하는데
서버 머신은 뭐고, 서버는 뭔지 모르겠네요. 일단 sybase관련 프로세스는 다 죽이고 하는데...

전형진(jini34)님이 2009-09-29 15:57에 작성한 댓글입니다.

* 자문자답

CT-LIBRARY error:

 

    ct_connect(): user api layer: internal Client Library error: Read from the server has timed out.


에러는 sybase가 설치된 머신 자체가 네트워크 설정에 오류가 있어서 발생한 것이었습니다.

user api layer에서 접속을 시도하는데 서버머신 자체의 네트워크 오류로 아예 접속을 시도조차 할 수 없어서 지정된 시간(default 60초)동안 시도를 하다가 timeout이 발생한 것입니다.


ping 호스트네임 하니까 ping이 안 가더군요. 그래서 /etc/hosts파일을 보니까

동일한 호스트네임에 두개의 ip가 중복 설정되어 있었습니다.

그래서 잘못된것을 삭제하니까 ping이 잘 동작했습니다.

그리고 다음과 같은 에러 메세지로 바뀌었습니다.

CT-LIBRARY error:

 

    ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed


이것은 서버머신과의 네트워크가 정상인 것을 화인하고 network packet layer에서 서버가 running이 아닌것을 알고 time out없이 바로 signal을 보내서 에러메세지를 뿌려주는 것이구요


대충이정도로 이해했는데 정확하게 맞는지는 모르겠네요~

전형진(jini34)님이 2009-10-13 13:53에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
3919Query 질문입니다. [2]
문용기
2009-10-05
6326
3918Data 파싱 질문입니다. [1]
프레야
2009-10-05
6609
3917쿼리문 변경이 가능할까요? [1]
티아라
2009-10-01
6069
3916isql 실행시 ct-library에러 [2]
전형진
2009-09-29
11718
3909Row Length를 구하려면 어떻게하나요? [4]
프레야
2009-09-22
7454
3896insert 시 에러입니다. 도와주세요..<1> [3]
김기택
2009-09-19
7878
3895insert 시 에러입니다. 도와주세요.. [1]
김기택
2009-09-17
7406
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.034초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다