Logging sql queries without any changes in existing apps

Hi!
Is it possible to log all SQL queries send from application to database via JDBC without any (or really small) changes in code of existing applications?
I'm new to JDBC so any suggestions/ideas/best practices are welcome ;)
Best regards.
Edited by: matthew_ on Mar 16, 2008 5:35 PM

Is it possible to log all SQL queries send from application to database via JDBCFirst is an assumption that the driver does in fact sends SQL. It might send some other form.
But excluding that and excluding that the driver explicitly sends it then you can create a proxy driver. You implement the driver to pass everything to the real driver. Along the way it collects the information.
You will find that that is quite bit of work. However it impacts the actual code very little and requires nothing more than loading the driver and changing the connection string in the code where it is used.

Similar Messages

  • Has anyone a solution to two update having the following popup-"We could not complete your request.  There was an error in the App store.  Please try again later.?"  I've tried over 4 days without any change.

    Has anyone a solution to two update having the following popup-"We could not complete your request".  There was an error in the App store.  Please try again later.  I've tried over 4 days without any change.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to change the profile value in the pl/sql code without making change in the database

    How to change the profile value in the pl/sql code without making change in the database.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • I am used to that when I open an image in Bridge it will be opened in PS, with all preferenses I have done to the image. Now it opens in PS but without any changes i have don e in Bridge. Also when I open a new image I want it to be opened in Camera Raw a

    I am used to that when I open an image in Bridge it will be opened in PS, with all preferenses I have done to the image. Now it opens in PS but without any changes i have don e in Bridge. Also when I open a new image I want it to be opened in Camera Raw automatically, both if a Jpeg or Raw picture.
    Using PS CC
    Regards BOJ

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • When oracle invalidates result_cache results without any changes in objects

    Hi all!
    On our production servers we have simple function with result_cache, like this:
    create or replace function f_rc(p_id number) return number result_cache
    is
      ret number;
    begin
      select t.val into ret from rc_table t where t.id=p_id;
      return ret;
    exception
      when no_data_found then
         return null;
    end;
    /And its results frequently invalidates without any changes in table or
    function. I found only 2 cases when oracle invalidates result_cache
    results without any changes in table:
    1. "select for update" from this table with commit;
    2. deletion of unrelated rows from parent table if there is unindexed
    foreign key with "on delete cascade".
    I test it on 11.2.0.1, 11.2.0.3, on solaris x64 and windows. Test
    cases: http://www.xt-r.com/2012/07/when-oracle-invalidates-resultcache.html
    But none of them can be the cause of our situation: we have no
    unindexed fk, and even if i lock all rows with "select for update", it
    still does not stop invalidating.
    In what other cases this happens? Am I right that the oracle does not
    track any changes, but the captures of the locks and "commits"?
    Best regards,
    Sayan Malakshinov
    http://xt-r.com

    Hmm.. Do you about our situation or about test cases with "select for update" and "fk" too?
    I'm not sure that it is a bug, maybe it's an architectural approach to simplify and reduce the cpu load?
    Best regards,
    Sayan Malakshinov
    http://xt-r.com

  • HT1692 I am not able to scroll my contacts. If i add or mahe any change in existing contacts, it appaers at the top of the contacts and freezes rest above the first letter of newly added or changed one. Anyone can help?

    I am not able to scroll my contacts. If i add or mahe any change in existing contacts, it appaers at the top of the contacts and freezes rest above the first letter of newly added or changed one. Anyone can help?

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. WHat do you suggest.

    Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. What do you suggest.
    I am using Mozilla Beta 4. I volunteered to try it out. It's lightning fast. I really love using it. I see there is a new version of Firefox should I download it??

    I HAVE NOW SOLVED THE PROBLEM BY RUNNING WINDOWS REGISTRY REPAIR TOOL WHICH HAS OBVIOUSLY REPAIRED CORRUPT REGISTRY FILES.

  • I am suddenly using my data download without any changes to my normal usage why?, I am suddenly using my data download without any changes to my normal usage why?

    Why am I suddenly using most of my data allowance without any changes to my normal pattern of usage. Never had this problem before and have been using iPhones for a number of years now!

    go to settings>cellular>toggle off the apps you dont want your phone to use data

  • Only query on existing form without any changes on the existing records?

    Dear all,
    I am working a brand new form. The form is able to query all the records from the table. However, when I leave the form, it will ask me "Do you want to save the changes you have made?" everytime. I didn't make any changes on the existing records.
    My form only has 2 fields (one with LOV and one without).
    Does anyone know what went wrong?
    Thanks.

    How do you populate your datablock? Do you query one of your values in a Post-Query trigger?
    However you are populating your datablock, Forms is detecting that the status of the Form, Block or Record is changing.
    Also, please let us know your Forms version.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Named SQL queries without a descriptor in the workbench

    Hi,
    I want to call some named query SQLs from my DAO by using
    result = (ResultSet)Session. executeQuery(String queryName, Vector paramList);
    The way I have done it now in the mapping workbench I have defined all named queries and SQL with a class descriptor, even though that class doean't have any mappings. I couldn't find any other way of defining named query SQLs in mapping workbench, other than attaching to a class descriptor. But I think because I'm using this API of calling executeQuery instead of getting the domain class too..I'm running into the following exception -
    Exception [TOPLINK-6026] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.QueryException
    Exception Description: Query named [FIND_MUTUAL_FUND_SINGLE_SYMBOL] is not defined. Domain class: []
         at oracle.toplink.exceptions.QueryException.queryNotDefined(QueryException.java:587)
         at oracle.toplink.exceptions.QueryException.queryNotDefined(QueryException.java:580)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1020)
    What is the proper way of defining a named query with our a descriptor in the workbench, so that I can use above mentioned API from my DAO? Any where in the doc? Is it Session events?
    Any sort of sample example would be deeply appreciated.

    To execute a named query for a paticular class/descriptor you need to call the Session.executeQuery(String queryName, Class descriptorClass, ...) API. The API that does not take a class is only for session-level named queries.
    i.e.
    List employees = (List) session.executeQuery("findAll", Employee.class);
    Currently the Mapping Workbench does not support defining session-level queries, so if you wish to define queries not related to any descriptor, you need to define these through code (if you are using a sessions.xml to define your session, you can add the queries through a SessionCustomizer (10.1.3), or use a SessionEventListener and the preLogin event (9.0.4)).
    You can execute named queries on any Session class (ClientSession, UnitOfWork, DatabaseSession, SessionBroker). But you need to define the queries in the ServerSession or DatabaseSession before login.
    i.e.
    ReadAllQuery query = new ReadAllQuery(Employee.class);
    serverSession.addQuery("findAllEmployees", query);
    List employees = (List) clientSession.executeQuery("findAllEmployees");

  • Double POR in SUS without any change

    Hi everyone,
    We have an issue with the POR in SUS. The steps to replicate the error are the following:
    1. We create a PO. This is sent to SUS.
    2. In SUS the vendor creates a POR for that PO. In this POR there is not any change. The vendor confirms the same quantity, the same dates, the same price.
    3. The POR is sent to SRM.
    4. In SRM, the POR is approved.
    5. THIS IS THE ISSUE. A change in the PO is registed in SRM and it is sent a XML message from SRM to SUS. This new message makes that the vendor will has to create a second POR. This is incorrect because the original POR does not have changes.
    Do you know how to solve this issue??
    We are working in SRM 5.5.
    Thank,
    Ivá

    Hi Khan,
    We reactivated the WF and tested again. We have the following behaviors (in all the cases we started with a SC and with direct materials):
    1st: One POR without changes (correct):
    1. The PO is created in SRM and is sent to SUS
    2. In SUS, the POR is created without changes and is sent to SRM
    3. The PO in SRM is not modified and is not sent a new message from SRM to SUS after the WF WS14500001
    2nd: One POR with changes and one POR without changes (correct):
    1. The PO is created in SRM and is sent to SUS
    2. In SUS, the POR is created with changes and is sent to SRM
    3. The PO in SRM is modified and is sent a new message from SRM to SUS
    4. In SUS, the POR is created without changes and is sent to SRM
    5. The PO in SRM is not modified and is not sent a new message from SRM to SUS after the WF WS14500001
    3rd: More than one POR with changes and one POR without changes (issue):
    1. The PO is created in SRM and is sent to SUS
    2. In SUS, the POR is created with changes and is sent to SRM
    3. The PO in SRM is modified and is sent a new message from SRM to SUS
    4. In SUS, the POR is created with changes and is sent to SRM
    5. The PO in SRM is modified and is sent a new message from SRM to SUS
    6. In SUS, the POR is created without changes and is sent to SRM
    7. The PO in SRM is not modified and is sent a new message from SRM to SUS after the WF WS14500001
    The 3rd case, the steps 6 and 7 are an infinitive loop.
    Do you think that is correct to deactivate the WF WS15400001??
    RG,
    Ivá

  • I am trying to download the update to Photo Effects (Lite) v 3.0.0, for several weeks now without success. I press the update button and it goes away, then comes back again without any change. Can someone help please?

    The update to Photo Effects (Lite) v 3.0.0 won't work. I've tried for several weeks without any result. I press the download button and it disappears, then reappears again. Can any one help, please?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
              /var/log ▹ appstore.log
    from the hierarchical list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    Each message in the log begins with the date and time when it was entered. Select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, click the Clear Display button in the toolbar of the Console window and then try the installation again.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    ☞ The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Syncs changes to my Touch even without any changes in iTunes

    Recently, everytime I connect my 32G Touch to my Macbook, it updates around 350 songs even if I have not made any changes to my iTunes library or Touch. I can even let it finish updating the 350 songs and disconnect then reconnect and it doest it again. Any idea what might be causing this?

    Mine has also been doing this for several weeks. Might have happened with an iTunes software update? Every time I sync, the same 99 songs out of my library re-sync to my iPod Touch even though nothing about them has changed. Nothing. it's freaking annoying.

  • RE-Acknowledgement without any changes in the log???

    Hello Guyz,
    I am working on an issue where we have been receiving an excessive number of re-acknowledgments that are not as a result of a sales order change registering in the change log.
    This problem is creating a significant amount of additional work for us internally and it is impacting our ability to provide timely information to our customer regarding their order.
    Could you please advice what changes to the sales order will prompt a re-acknowledgement. I have checked everything there is no change in the programme or the SAP Scripts, there is no background job and there are no changes in the sales order,
    I would really appreciate if you could please help me out in resolving this issue, Appreciate your help and waiting for some urgent replies.---Thanks.
    MD

    If you want to see the fields that will trigger the log.
    go to AUT01.
    Select Change Document Object,
      Enter "VERKBELEG"  -( This is the change document object for sales documents )
    Press the display button. you can see all the tables that were enabled for logging changes.
    By clicking on each table, you can identify the fields that were enabled to trigger the change log.
    This is the answer to your question " where we can configure to trigger the log changes for sales order ".. I don't think it will solve ur main issue.
      You need to look into your business process and ur System architecture to resolve the main issue.
    Regards,
    Ajai.
    Don't forget to reward points if useful.

  • TS3276 suddenly without any changes i am receiving email but I cannot send it

    I have made no changes to my computer but now for almost a week I can only recieve email and not send it 

    Reboot your iPad:  Press and hold BOTH the power and home buttons at the SAME time until the Apple Logo appears, then let go of both buttons and your iPad will restart.  You won't lose any settings or data.

Maybe you are looking for

  • How to change an existing site to a new local location

    Hi! Can somebody advise me ... I currently have ONE page defined with 2 spry JS functions ... I want to change wherever those files are currently being saved (since I am not sure where they are) - including the JS files) to a new local location on a

  • Business Rules and Planning Login Error

    Hi Experts, Today with the help of our DBA we migrated all the Production Planning Oracle database to Planning development database. But after all, we restarted all the services and after that when we are connecting to the Console and Planning applic

  • ISE 1.2 and MDM integration.

        What kind of device information I can collect by MDM integartion with ISE.              

  • Print out my calendar

    Anybody know how to print out the calendar in iCloud?  I need to have it for tax purposes as all my business appts and travel are on it. Thanks!

  • HT202778 my disply is not working how i can i connect to my laptop

    hi im facing a problem while im using hike messanger the guided access was enabled i knew my passcode but the keypad is not showing all the digits (3,6,9,#) are not displying what do i do?? im unable to access anything