Monitor SQL statements in DB2Size of db2 databaseSQL Error: -443, SQLState: 38111 when accessing table...

Quoting Keynes in a lecture

Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?

Isometric embedding of a genus g surface

Telemetry for feature health

Did I make a mistake by ccing email to boss to others?

Possible Eco thriller, man invents a device to remove rain from glass

Why does the Persian emissary display a string of crowned skulls?

How to make a list of partial sums using forEach

Why is the principal energy of an electron lower for excited electrons in a higher energy state?

Difference between shutdown options

What is the meaning of "You've never met a graph you didn't like?"

Unable to disable Microsoft Store in domain environment

What is the smallest number n> 5 so that 5 ^ n ends with "3125"?

Do I have to take mana from my deck or hand when tapping a dual land?

Grepping string, but include all non-blank lines following each grep match

Sigmoid with a slope but no asymptotes?

How much do grades matter for a future academia position?

What happens if I try to grapple mirror image?

How to make money from a browser who sees 5 seconds into the future of any web page?

How to preserve electronics (computers, iPads and phones) for hundreds of years

Animation: customize bounce interpolation

Review your own paper in Mathematics

Sound waves in different octaves

Can I run 125kHz RF circuit on a breadboard?



Monitor SQL statements in DB2


Size of db2 databaseSQL Error: -443, SQLState: 38111 when accessing table metadata on DB2 zOScannot drop existing db2 databaseDB2 V9.7 upgrade failureiSeries DB2 - SQL GUI ToolDB2 Express-C 9.5.2 error SQL0980CLAMP using ODBC to DB2IBM DB2 9.7 end of service?Problems configuring DB2 CLI/ODBC System DSN ODBC Data Source AdministratorDB2 Scale out for vendor solution













0















I need to monitor SQL statements issued to DB2 database. I found the following article http://www.dba-db2.com/2010/01/trace-sql-statements-in-db2-database.html and I can to indeed capture SQL statements.



The problem is that prepared SQL statements still hold question marks. It there a way to get the final version of SQL statements?



DB2 version: 10.1.3



Thanks










share|improve this question














bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I need to monitor SQL statements issued to DB2 database. I found the following article http://www.dba-db2.com/2010/01/trace-sql-statements-in-db2-database.html and I can to indeed capture SQL statements.



    The problem is that prepared SQL statements still hold question marks. It there a way to get the final version of SQL statements?



    DB2 version: 10.1.3



    Thanks










    share|improve this question














    bumped to the homepage by Community 9 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I need to monitor SQL statements issued to DB2 database. I found the following article http://www.dba-db2.com/2010/01/trace-sql-statements-in-db2-database.html and I can to indeed capture SQL statements.



      The problem is that prepared SQL statements still hold question marks. It there a way to get the final version of SQL statements?



      DB2 version: 10.1.3



      Thanks










      share|improve this question














      I need to monitor SQL statements issued to DB2 database. I found the following article http://www.dba-db2.com/2010/01/trace-sql-statements-in-db2-database.html and I can to indeed capture SQL statements.



      The problem is that prepared SQL statements still hold question marks. It there a way to get the final version of SQL statements?



      DB2 version: 10.1.3



      Thanks







      db2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 27 '17 at 15:46









      PredkambrijPredkambrij

      3015




      3015





      bumped to the homepage by Community 9 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 9 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I think, that I found the solution http://db2commerce.com/2013/12/03/using-an-event-monitor-to-capture-statements-with-values-for-parameter-markers/



          In my case, I had to change the user of the query, table names (so that they match my event monitor name) and remove the condition "where as.UOW_ID=27"






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f835186%2fmonitor-sql-statements-in-db2%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I think, that I found the solution http://db2commerce.com/2013/12/03/using-an-event-monitor-to-capture-statements-with-values-for-parameter-markers/



            In my case, I had to change the user of the query, table names (so that they match my event monitor name) and remove the condition "where as.UOW_ID=27"






            share|improve this answer




























              0














              I think, that I found the solution http://db2commerce.com/2013/12/03/using-an-event-monitor-to-capture-statements-with-values-for-parameter-markers/



              In my case, I had to change the user of the query, table names (so that they match my event monitor name) and remove the condition "where as.UOW_ID=27"






              share|improve this answer


























                0












                0








                0







                I think, that I found the solution http://db2commerce.com/2013/12/03/using-an-event-monitor-to-capture-statements-with-values-for-parameter-markers/



                In my case, I had to change the user of the query, table names (so that they match my event monitor name) and remove the condition "where as.UOW_ID=27"






                share|improve this answer













                I think, that I found the solution http://db2commerce.com/2013/12/03/using-an-event-monitor-to-capture-statements-with-values-for-parameter-markers/



                In my case, I had to change the user of the query, table names (so that they match my event monitor name) and remove the condition "where as.UOW_ID=27"







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 28 '17 at 11:33









                PredkambrijPredkambrij

                3015




                3015






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f835186%2fmonitor-sql-statements-in-db2%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown