Tracking SQL execution time in the ADF implementation code _oracle
Source: Internet
Author: User
The ADF is a set of enterprise development solutions provided by Oracle.
Recent performance tests need to get the number of SQL queries on the current page and how much time it takes. The first thought is that the commonly used LOG4JDBC results ADF does not support encapsulated drivers. After attempting to intercept at the Orace DB level, it is more complex to set the Sesson properties of the database connection, and to modify the code later.
The viewobjectimp of the ADF provides a way to make a copy of the SQL call, but you need to modify the existing code, and finally modify the ADF source to get the SQL execution time without modifying the existing code.
First, use the modified Adfm.jar to overwrite the existing, configure the virtual machine startup parameters-dsqltruckertofile=d:\log.txt-denablesqltracker=true
Restart to see the SQL execution time
195:<sql:>select geos.created_by, Geos.created_ts, Geos.fax_number, geos.from_email_address, Geos.ID, Geos.modified_by, Geos.modified_ts, Geos.name, Geos.phone_number, geos.reply_to_email_address, Geos.IS_DEFAULT from GEOS GEOS ORDER BY Geos.is_default,geos.name
195:<elapsedtime (ms): >729
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.