久久久久久久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 檢索最后執行的 SQL 語句

        DB2 System Runtime Table to retrieve last executed SQL Statement(DB2 System Runtime Table 檢索最后執行的 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 檢索最后執行的 SQL 語句的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  大型機中是否有 DB2 系統表 - 批處理運行時日志?在 DB2 for i 系列中,有一個表函數 QSYS2.GET_JOB_INFO() 在運行時返回作業信息,包括狀態(活動/完成)和最重要的 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 批處理作業中檢索運行時最后執行的 SQL 語句.這樣做的主要目的是確定在作業運行時是否發出了 COMMIT 或 ROLLBACK.目的是創建一個小程序,我們稱之為控制器",在發出 Commit 或 Commit interval 甚至 Rollback 時監控 DB2.更具體地說,這個控制器"將充當迷你操作系統,并具有觸發主程序的能力.

                  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.

                  例如,如果主程序發出 ROLLBACK,則控制器程序"可以發出特定的業務邏輯并控制更新.可以在 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...

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

                  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.

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

                  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.

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

                  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.

                  當您完成輸入數據的處理后,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 中的行標記為在代碼中完成時執行了 ROLLBACK,但如果在異常結束情況下隱式完成,您可能會發現自己通過語言環境 CEEHDLR 可調用服務,以便您獲得控制權并可以指示發生了 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 檢索最后執行的 SQL 語句的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  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影院在线观看 | 欧美综合久久 | 国产伦精品一区二区三区照片91 | 日本一区二区三区视频在线 | 欧美高清免费 | 北条麻妃视频在线观看 | 亚洲视频在线观看一区二区三区 | 国产在线精品一区二区 | 激情视频一区 | 亚洲成av人片在线观看 | 黄色一级毛片 | 国产精品久久7777777 | 欧美国产91 | 在线色网 | 国产日韩精品在线 | 欧美黄色网络 | 久久www免费人成看片高清 | 毛片在线看片 | 欧美在线日韩 | 亚洲高清av | 黄色国产 | 亚洲欧美中文日韩在线v日本 | 亚洲一区二区在线 | 久久久久国产一区二区三区四区 | 亚洲精品一区二区三区在线观看 | 欧美视频成人 | 天堂亚洲网 | 日韩高清国产一区在线 | 精品成人佐山爱一区二区 | 成人三级影院 | 亚洲永久入口 | 99re在线视频观看 |