Background Image

FORUM

?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.
OS
Linux 64bit
CUBRID Ver.
CUBRID 10.2 (10.2.2.8874-f681dd9) (64bit release build for Linux) (Sep  1 2020 09:41:17)
CUBRID TOOL Ver.
[도움말]-[버전정보] 확인
응용 환경(API)
odbc

* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.
에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------

아래와 같이 샘플 코드를 작성하여 타이머에 의해서 1초 간격으로 테이블을 읽어오도록 하였습니다.

테스트 도중에 메인 서버(nodeA라 설정 됨)에서 cubrid service stop 명령을 수행하였을 경우 스탠바이 서버(nodeB라 설정 됨)로 서비스는 정상적으로 절체가 됩니다.

그런데 응용프로그램에서는 아래 주석과 같은 익셉션 오류가 발생되는데 해결 방법을 알고 싶습니다.


public partial class MainWindow : Window

{

private CUBRIDConnection conn = null;


public MainWindow()

{

conn = new CUBRIDConnection() { ConnectionString = "ado:CUBRID:192.168.0.144:10302:rms:dba::?althosts=192.168.0.144:10303" };

conn.Open();

}


public void OnTimer1(object sender, EventArgs args)

{

try

{

using (CUBRIDCommand cmd = new CUBRIDCommand("select * from test order by id desc", conn))

{

// 절체테스트를 위해 master db 서비스를 stop 했을 경우 다음과 같은 exception 발생 됨!!

/*

예외 발생: 'System.InvalidOperationException'(CUBRID.Data.dll)

System.InvalidOperationException: Cannot communicate with server[CAS INFO-192.168.0.144:10302,1,8653].

   위치: CUBRID.Data.CUBRIDClient.CUBRIDCommand.Prepare()

   위치: CUBRID.Data.CUBRIDClient.CUBRIDCommand.BindParameters()

   위치: CUBRID.Data.CUBRIDClient.CUBRIDCommand.ExecuteDbDataReader(CommandBehavior behavior)

   위치: CubridTest.MainWindow.OnTimer1(Object sender, EventArgs args) 파일 c:\CubridTest\CubridTest\MainWindow.xaml.cs:줄 000

*/

CUBRIDDataReader r = (CUBRIDDataReader)cmd.ExecuteReader();


while (r.Read())

{

int c=0;

ID = r.GetInt(c++);

DT = r.GetDateTime(c++);

Locate = r.GetString(c++);

}

}

}

catch(Exception ex)

{

Console.WriteLine(ex.ToString());

}

}

}


  • ?
    정훈 2020.12.08 10:57

    절체가 정상적으로 되었는지 확인해보시기 바랍니다.
    nodeA>cubrid hb status (stand-by)
    nodeB>cubrid hb status (active)
    nodeB>cubrid changemode db_name@localhost


  1. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4442
    read more
  2. 큐브리드 통계정보 관련 문의드립니다.

    Date2023.02.26 By초코초코초 Views118
    Read More
  3. cubrid 매니저 패스워드 공용으로 사용하는건가요??

    Date2023.02.24 By학아 Views175
    Read More
  4. list 합수의 결과를 varchar 컬럼에 insert 시 오류 문의

    Date2023.02.24 By플레이어블 Views126
    Read More
  5. LOG 설정 관련 질문입니다.

    Date2023.02.23 Byjemin Views90
    Read More
  6. 큐브리드 unload 문의드립니다.

    Date2023.02.22 By초코초코초 Views222
    Read More
  7. Mac OS 에서 Cubrid Manager 실행이 안됩니다.

    Date2023.02.20 By엘L Views326
    Read More
  8. 쿼리 플랜 cardinality, cost 이상

    Date2023.02.16 Byparknnna Views184
    Read More
  9. 조건절 in 에 들어가는 순서대로 뽑고 싶습니다.

    Date2023.02.15 By구르마도리 Views92
    Read More
  10. Cubrid 11.2 접속 문제.

    Date2023.02.15 By엘L Views137
    Read More
  11. cubrid 매니저 백업 자동화 추가 비활성

    Date2023.02.15 By제리리 Views125
    Read More
  12. Mac OS 큐브리드 매니저 설치 문제

    Date2023.02.13 ByDJ Views319
    Read More
  13. (함수)펑션 오류 확인부탁드립니다.

    Date2023.02.10 By초코초코초 Views102
    Read More
  14. 필드 추가시 빨랐던 select문 느려지는 이유

    Date2023.02.10 By나라디 Views127
    Read More
  15. 테이블/컬럼명 자동완성 설정문의

    Date2023.02.10 Bydfdfdd Views199
    Read More
  16. 드라이버버전 변경방법문의드립니다.

    Date2023.02.10 Bydfdfdd Views124
    Read More
  17. 큐브리드 설치 문의

    Date2023.02.09 By팡이 Views115
    Read More
  18. attempt to divide by zero .. 조회문제 도와주세요

    Date2023.02.07 By아프월 Views269
    Read More
  19. 큐브리드 컬럼 디폴트값

    Date2023.02.06 By백수인 Views202
    Read More
  20. ddl_audit_log=yes 가 없을때 디폴트 값

    Date2023.02.01 By바람발마발 Views86
    Read More
  21. numeric type 의 입력 가능한 최대 값

    Date2023.01.31 By정우아빠 Views114
    Read More
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 ... 200 Next
/ 200

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales