Background Image

FORUM

조회 수 203 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

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


* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.

OS
Window7 32bit , Window10 64bit
CUBRID Ver.
[cubrid_rel] 수행 결과
CUBRID TOOL Ver.
[도움말]-[버전정보] 확인
응용 환경(API)
c#


* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.

 

에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------
쿼리를 실행하는 도중 에러가 발생하여 응용프로그램이 팅겼습니다.

 

이 현상은 지속적으로 일어나는것이 아니라 계속 켜놓고있다보면 한번씩 나타나는 증상입니다.

 

20초에 한번씩 쿼리를 지속적으로 돌립니다.

 

로그는 윈도우 이벤트 로그입니다.

 

응용 프로그램: OrderNotice.exe
Framework 버전: v4.0.30319
설명: 처리되지 않은 예외로 인해 프로세스가 종료되었습니다.
예외 정보:System.AccessViolationException
스택:
   위치: System.Data.OleDb.SessionWrapper.CreateCommand(System.Object ByRef)
   위치: System.Data.OleDb.OleDbConnectionInternal.ICommandText()
   위치: System.Data.OleDb.OleDbConnection.ICommandText()
   위치: System.Data.OleDb.OleDbCommand.PropertiesOnCommand(Boolean)
   위치: System.Data.OleDb.OleDbCommand.InitializeCommand(System.Data.CommandBehavior, Boolean)
   위치: System.Data.OleDb.OleDbCommand.ExecuteCommand(System.Data.CommandBehavior, System.Object ByRef)
   위치: System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(System.Data.CommandBehavior, System.String)
   위치: System.Data.OleDb.OleDbCommand.ExecuteReader(System.Data.CommandBehavior)
   위치: System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(System.Data.CommandBehavior)
   위치: System.Data.Common.DbDataAdapter.FillInternal(System.Data.DataSet, System.Data.DataTable[], Int32, Int32, System.String, System.Data.IDbCommand, System.Data.CommandBehavior)
   위치: System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet, Int32, Int32, System.String, System.Data.IDbCommand, System.Data.CommandBehavior)
   위치: System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet)
   위치: OrderTracker.Shared.DBPoll.GetNewOrdersYN(System.String)
   위치: OrderTracker.Pages.FrmHome.timer1_Tick(System.Object, System.EventArgs)
   위치: System.Windows.Forms.Timer.OnTick(System.EventArgs)
   위치: System.Windows.Forms.Timer+TimerNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   위치: System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
   위치: System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
   위치: System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   위치: System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   위치: System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   위치: System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
   위치: OrderNotice.Program.Main(System.String[])

 

----------------------------------------------------함수내용-----------------------------------------------------------

 

public string[] GetNewOrdersYN(string esntl_cust_id)
        {
            string[] result = new string[] { "","", "" };

            try
            {
                string SQL = "SELECT MAX(new_order) AS new_order, DECODE(MAX(ISNULL(ORDER_DATE_LAST_TIM)), 0, 'Y', 'N') AS new_job                     \n";
                       SQL += ", TO_CHAR(MAX(ORDER_DATE_LAST_TIM), 'YYYY-MM-DD HH24:MI:SS') AS ORDER_DATE_LAST_TIM                                    \n";              
                       SQL += "FROM (SELECT DECODE(COUNT(*), 0, 'N', 'Y') AS new_order, '' AS ORDER_DATE_LAST_TIM                                               \n";
                       SQL += "FROM artsend                                                                                                                                                 \n";
                       SQL += "WHERE esntl_cust_id = '"+ esntl_cust_id + "'                                                                                                          \n";
                       SQL += "and ORDER_DT BETWEEN(NOW()-(1000 * 60 * 60 * 24)) AND NOW()                                                                          \n";
                       SQL += "and order_sta = 'O'                                                                                                                                          \n";
                       SQL += "UNION all                                                                                                                                                      \n";
                       SQL += "SELECT '', to_char(MAX(chg_date),  'yyyy-mm-dd hh24:mi:ss') AS ORDER_DATE_LAST_TIM                                                \n";
                       SQL += "FROM artsend                                                                                                                                                \n";
                       SQL += "WHERE esntl_cust_id = '" + esntl_cust_id + "'                                                                                                        \n";
                       SQL += "and to_char(chg_date, 'yyyy-mm-dd hh24:mi:ss') > '" + Global.last_tm + "')                                                                  \n";

 

                OleDbDataAdapter ad = new OleDbDataAdapter(SQL, DBConn.conn);

                Console.WriteLine(SQL);

                DataSet ds = new DataSet();
                ad.Fill(ds);
                DataTable dt = ds.Tables[0];

                if (ds.Tables.Count > 0)
                {
                    foreach(DataRow r in dt.Rows)
                    {
                        result[0] = r["new_order"].ToString();
                        result[1] = r["new_job"].ToString();
                        result[2] = r["ORDER_DATE_LAST_TIM"].ToString();
                        
                        Console.WriteLine("new_order : " + result[0]);
                        Console.WriteLine("new_job : " + result[1]);
                        Console.WriteLine("last_tm : " + result[2]);
                    }
                    return result;
                }
                else
                {
                    return null;
                }
            }
            catch (Exception ex)
            {
                return null;
            }
        }

 


 

 

  • ?
    airnet 2021.06.08 09:33
    안녕하세요
    큐브리드를 이용해 주셔서 감사합니다.

    보내주신 로그에는 cubrid oledb driver의 함수 호출 내역이 없어 정확한 분석이 어려워
    주기적으로(20초 간격) query를 수행 하는 테스트 코드를 작성 하여, 15시간 정도 테스트를 진행 했습니다만 제현이 되지 않았습니다.
    혹시 db의 실 데이터를 주시기 어렵다면 cubrid 에서 제공되는 demodb를 이용 하여 제현되는 코드를 전달해 주시면 검토해 보겠습니다.
    그리고, 사용하신 버전을 기제해 주시면 디버깅에 많은 도움이 됩니다.

    감사합니다.

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

    Date2020.04.09 Byadmin Views4251
    read more
  2. 특정 값 우선 정렬

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

    Date2023.09.26 Bykikiki767 Views91
    Read More
  4. jdbc 오류

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

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

    Date2023.09.17 Bydfahwh Views61
    Read More
  7. killtran 관련하여 문의 드립니다.

    Date2023.09.06 By후루숑 Views120
    Read More
  8. Cubrid 물리명 길이 제한 값이 어떻게되나요?

    Date2023.09.05 By엘L Views97
    Read More
  9. 쿼리속도문제

    Date2023.09.01 ByGgyak Views138
    Read More
  10. dbtimezone

    Date2023.08.30 Bysj.han Views76
    Read More
  11. 데이터베이스 삭제시 incorrect or missing password

    Date2023.08.26 Bydfahwh Views102
    Read More
  12. 재귀절을 이용한 뷰 생성

    Date2023.08.24 Bysj.han Views88
    Read More
  13. 데이터타입 조회 문의

    Date2023.08.23 By박혀누 Views74
    Read More
  14. cannot communicate with the broker or received invalid packet

    Date2023.08.23 Byfree Views117
    Read More
  15. Docker

    Date2023.08.23 Bysj.han Views235
    Read More
  16. 비밀번호 변경 오류

    Date2023.08.18 Bydfahwh Views100
    Read More
  17. 큐브리드 DB 복원 관련 문의

    Date2023.08.14 Byfewkgpokp Views71
    Read More
  18. 큐브리드 매니저 테이블 목록 표시 관련해서 질문이 있습니다

    Date2023.08.09 By리에레이 Views78
    Read More
  19. cubrid에 세션확인 방법

    Date2023.08.04 Byredrum Views121
    Read More
  20. 테이블 코멘트 컬럼 코멘트 질문

    Date2023.08.03 By대청댐 Views69
    Read More
  21. 다중 IN(튜플 IN)이 1건인 경우 오류 발생됩니다 큐브리드 자체문제이지 않나 싶어 문의드립니다

    Date2023.08.01 By일개미81호 Views78
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 199 Next
/ 199

Contact Cubrid

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