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. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views21
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4452
    read more
  3. 3909번 답변 좀 부탁드립니다.

    Date2023.11.06 Byf0081 Views91
    Read More
  4. [CUBRID Admin] 테이블 컬럼 순서 변경 불가

    Date2023.11.05 Bytree1891 Views178
    Read More
  5. 시스템 카탈로그 조회 외

    Date2023.11.01 Byf0081 Views121
    Read More
  6. 시리얼 생성 시 class_name, attr_name, started 컬럼 값을 변경하고 싶습니다.

    Date2023.11.01 Bygetpost Views111
    Read More
  7. cubrid 9.3.1 설치해서 원격으로 접속하고자 설치했는데 에러가 뜹니다

    Date2023.10.27 ByXstar Views97
    Read More
  8. loaddb 실행 중 발생하는 오류에 대해서 문의 드립니다.

    Date2023.10.19 By뚜벅뚜벅 Views102
    Read More
  9. 큐브리드 매니서 실행 문의

    Date2023.10.19 By마리오 Views96
    Read More
  10. 큐브리드 DB가 실행되지 않는 것 같습니다.

    Date2023.10.18 By뚜벅뚜벅 Views123
    Read More
  11. ===<ResultofSELECTCommandinLine1>=== 등의 출력 없이 결과값만 반환받고 싶습니다.

    Date2023.10.18 Byf0081 Views93
    Read More
  12. 가로 데이터 세로로 조회

    Date2023.10.18 ByGgyak Views120
    Read More
  13. 테이블별 row 개수를 조회하는 쿼리

    Date2023.10.18 Bycncn Views111
    Read More
  14. [ADO.NET] Syntax error: unexpected

    Date2023.10.17 Bytree1891 Views152
    Read More
  15. 큐브리드매니저 패스워드 변경 문의건

    Date2023.10.16 Byyurrrr Views102
    Read More
  16. Db프로시져 스케쥴 실행 성공 리포트나 로그 결과른 보고싶습니다

    Date2023.10.16 ByRoy Views105
    Read More
  17. db 데이터용량을 조회하는 쿼리

    Date2023.10.11 Bycncn Views116
    Read More
  18. 특정 값 우선 정렬

    Date2023.10.11 Bydrunkenascii Views66
    Read More
  19. 이기종간 DB Link 문의 드립니다.

    Date2023.09.26 Bykikiki767 Views104
    Read More
  20. jdbc 오류

    Date2023.09.22 By대청댐 Views106
    Read More
  21. javasp start fail이 발생합니다.

    Date2023.09.22 By유수부쟁선 Views62
    Read More
  22. 자연조인문제

    Date2023.09.17 Bydfahwh Views71
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 200 Next
/ 200

Contact Cubrid

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