久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <legend id='qwfR3'><style id='qwfR3'><dir id='qwfR3'><q id='qwfR3'></q></dir></style></legend>
    <tfoot id='qwfR3'></tfoot>

        <small id='qwfR3'></small><noframes id='qwfR3'>

          <bdo id='qwfR3'></bdo><ul id='qwfR3'></ul>
        <i id='qwfR3'><tr id='qwfR3'><dt id='qwfR3'><q id='qwfR3'><span id='qwfR3'><b id='qwfR3'><form id='qwfR3'><ins id='qwfR3'></ins><ul id='qwfR3'></ul><sub id='qwfR3'></sub></form><legend id='qwfR3'></legend><bdo id='qwfR3'><pre id='qwfR3'><center id='qwfR3'></center></pre></bdo></b><th id='qwfR3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qwfR3'><tfoot id='qwfR3'></tfoot><dl id='qwfR3'><fieldset id='qwfR3'></fieldset></dl></div>

      1. DB2 System Runtime Table 檢索最后執(zhí)行的 SQL 語句

        DB2 System Runtime Table to retrieve last executed SQL Statement(DB2 System Runtime Table 檢索最后執(zhí)行的 SQL 語句)
      2. <legend id='L9F1c'><style id='L9F1c'><dir id='L9F1c'><q id='L9F1c'></q></dir></style></legend>

        <small id='L9F1c'></small><noframes id='L9F1c'>

            <tbody id='L9F1c'></tbody>

            <tfoot id='L9F1c'></tfoot>
              <i id='L9F1c'><tr id='L9F1c'><dt id='L9F1c'><q id='L9F1c'><span id='L9F1c'><b id='L9F1c'><form id='L9F1c'><ins id='L9F1c'></ins><ul id='L9F1c'></ul><sub id='L9F1c'></sub></form><legend id='L9F1c'></legend><bdo id='L9F1c'><pre id='L9F1c'><center id='L9F1c'></center></pre></bdo></b><th id='L9F1c'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='L9F1c'><tfoot id='L9F1c'></tfoot><dl id='L9F1c'><fieldset id='L9F1c'></fieldset></dl></div>

              • <bdo id='L9F1c'></bdo><ul id='L9F1c'></ul>

                  本文介紹了DB2 System Runtime Table 檢索最后執(zhí)行的 SQL 語句的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  大型機中是否有 DB2 系統(tǒng)表 - 批處理運行時日志?在 DB2 for i 系列中,有一個表函數(shù) QSYS2.GET_JOB_INFO() 在運行時返回作業(yè)信息,包括狀態(tài)(活動/完成)和最重要的 V_SQL_STATEMENT_TEXT - 語句上次 SQL 運行的時間.

                  Is there a DB2 System Table - Batch Runtime log in Mainframe? In DB2 for i Series, there is a table function QSYS2.GET_JOB_INFO() that returns Job Information during runtime including the Status (Active /Complete) and most importantly V_SQL_STATEMENT_TEXT - Statement of the last SQL run.

                  場景:我想在 Cobol 批處理作業(yè)中檢索運行時最后執(zhí)行的 SQL 語句.這樣做的主要目的是確定在作業(yè)運行時是否發(fā)出了 COMMIT 或 ROLLBACK.目的是創(chuàng)建一個小程序,我們稱之為控制器",在發(fā)出 Commit 或 Commit interval 甚至 Rollback 時監(jiān)控 DB2.更具體地說,這個控制器"將充當迷你操作系統(tǒng),并具有觸發(fā)主程序的能力.

                  Scenario: I want to retrieve the last executed SQL Statement during runtime in Cobol Batch Job. The main purpose of this is to determine if a COMMIT or ROLLBACK has been issued, while the job is running. The aim is to create small program, let's call it "controller", to monitor DB2 when Commit or Commit interval is issued, or even Rollback. To be more specific - this "controller" will act as mini OS and will have the capacity to trigger the Main Programs.

                  例如,如果主程序發(fā)出 ROLLBACK,則控制器程序"可以發(fā)出特定的業(yè)務邏輯并控制更新.可以在 T1 和 T2 類型的 DB2 連接中進行更新.通過這種方式,更新是在批處理客戶端或在 EXCI 中運行的 Java 端完成的(EXCI 使用 RRS 恢復).

                  For instance, if the Main program issues a ROLLBACK the "controller program" can issue specific business logic and can control the updates. Updates can be done in both T1 and T2 Type of DB2 Connection. By that means, updates are done in batch client side or Java side running in EXCI (EXCI using RRS recovery).

                  推薦答案

                  快速瀏覽 IBM DB2 文檔 似乎表明否".

                  A quick look in the IBM Documentation for DB2 seems to indicate "no."

                  但是,雖然與您的情況不完全匹配,但我們過去常常這樣做...

                  However, while not an exact match for your situation, here's what we used to do...

                  創(chuàng)建一個表,將其稱為 APP_RESTART_DATA 列,以唯一標識您的流程的執(zhí)行.我們使用 PROC_NAMESTEP_NAME,因為我們僅限于批處理作業(yè).還有一個 KEY 列和任何其他您可能會發(fā)現(xiàn)在重新啟動情況下有用的元數(shù)據(jù).有些人存儲的是記錄號而不是實際的鍵值.

                  Create a table, call it APP_RESTART_DATA with columns to uniquely identify an execution of your process. We used PROC_NAME and STEP_NAME as we were confined to batch jobs. Also have a KEY column and any other metadata you might find helpful in a restart situation. Some people stored the record number instead of the actual key value.

                  在您的控制器程序中,首先使用您的唯一標識符執(zhí)行 SELECT 以確定您是否處于重新啟動模式.如果您的 SQLCODE 為 0,則您處于重新啟動模式,并且將檢索到最后一個成功執(zhí)行 COMMIT 的 KEY.在這些情況下,您必須在輸入數(shù)據(jù)中找到該鍵,然后立即開始對數(shù)據(jù)進行正常處理.如果您的 SQLCODE 為 100,則說明您未處于重新啟動模式;在這些情況下,您可以在輸入數(shù)據(jù)的開頭開始正常處理.

                  In your controller program, begin by doing a SELECT with your unique identifier(s) to determine if you're in restart mode. If you get an SQLCODE of 0 then you are in restart mode and will have retrieved the last KEY for which a COMMIT was successfully executed. Under these circumstances you must locate that key in your input data and then begin normal processing with the data immediately subsequent. If you got an SQLCODE of 100 then you are not in restart mode; under these circumstances you can just begin normal processing at the start of your input data.

                  當您處理輸入數(shù)據(jù)并到達 COMMIT 點時,還可以使用新 KEY 對您的 APP_RESTART_DATA 表進行 UPDATE.然后COMMIT.我們的 COMMIT 點也由一個參數(shù)決定,該參數(shù)指示在 COMMITs 之間要處理多少邏輯工作單元.如果有必要在主要班次期間運行通常在班外運行的批處理過程,我們可以減小此參數(shù).

                  As you process the input data and reach a COMMIT point, also UPDATE your APP_RESTART_DATA table with the new KEY. Then COMMIT. Our COMMIT points were also dictated by a parameter indicating how many logical units of work to process between COMMITs. We could decrease this parameter if it became necessary to run batch processes during prime shift that were normally run off-shift.

                  當您完成輸入數(shù)據(jù)的處理后,DELETEAPP_RESTART_DATA 表中您的進程的行.

                  When you complete processing of your input data, DELETE the row for your process in the APP_RESTART_DATA table.

                  捕捉 ROLLBACK 可能很棘手.您可以將 APP_RESTART_DATA 中的行標記為在代碼中完成時執(zhí)行了 ROLLBACK,但如果在異常結束情況下隱式完成,您可能會發(fā)現(xiàn)自己通過語言環(huán)境 CEEHDLR 可調用服務,以便您獲得控制權并可以指示發(fā)生了 ROLLBACK.

                  Catching ROLLBACK might be tricky. You could flag your row in APP_RESTART_DATA as having performed a ROLLBACK when done in the code, but if done implicitly in an abend situation you may find yourself registering a condition handler via the Language Environment CEEHDLR callable service so you get control and can indicate a ROLLBACK occurred.

                  這篇關于DB2 System Runtime Table 檢索最后執(zhí)行的 SQL 語句的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創(chuàng)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                    <tbody id='5rNsK'></tbody>

                  • <legend id='5rNsK'><style id='5rNsK'><dir id='5rNsK'><q id='5rNsK'></q></dir></style></legend>

                    <i id='5rNsK'><tr id='5rNsK'><dt id='5rNsK'><q id='5rNsK'><span id='5rNsK'><b id='5rNsK'><form id='5rNsK'><ins id='5rNsK'></ins><ul id='5rNsK'></ul><sub id='5rNsK'></sub></form><legend id='5rNsK'></legend><bdo id='5rNsK'><pre id='5rNsK'><center id='5rNsK'></center></pre></bdo></b><th id='5rNsK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5rNsK'><tfoot id='5rNsK'></tfoot><dl id='5rNsK'><fieldset id='5rNsK'></fieldset></dl></div>
                    <tfoot id='5rNsK'></tfoot>

                      <small id='5rNsK'></small><noframes id='5rNsK'>

                          • <bdo id='5rNsK'></bdo><ul id='5rNsK'></ul>

                            主站蜘蛛池模板: 亚洲精品黄 | 亚洲黄色网址视频 | 国产免费观看一级国产 | 国产精品三级 | 日本污视频| 在线成人免费观看 | 五月激情婷婷六月 | 91社区在线高清 | 网站一区二区三区 | 午夜精品影院 | 欧美精品在线一区二区三区 | 久久久久se | 国产日韩欧美一区二区 | 精品久久久999| 日韩综合网 | 91国自视频 | 亚洲欧美综合精品久久成人 | 亚洲日本国产 | 在线精品国产 | 亚洲成人av一区二区 | 日韩电影在线 | 91精品国产综合久久久久久丝袜 | 色婷婷综合网站 | 最近中文字幕第一页 | 日韩av高清在线 | 久久电影一区 | www.黄色在线观看 | 一本大道久久a久久精二百 欧洲一区二区三区 | 波多野结衣先锋影音 | 久久久久久国产免费视网址 | www.久久99| 久久精品亚洲国产奇米99 | 久久久久久久国产 | 亚洲 欧美 日韩 在线 | 911网站大全在线观看 | 伊人久麻豆社区 | 亚洲综合日韩精品欧美综合区 | 亚洲国产成人精品女人久久久野战 | 久久久www成人免费精品 | 免费精品久久久久久中文字幕 | 亚洲欧洲精品在线 |