通过JavaEye新闻月刊了解到jdbcdslog工具,尝试在weblogic下进行配置。如下:
1.修改domain/config.xml文件中的连接池配置部分
<JDBCConnectionPool DriverName="org.jdbcdslog.DriverLoggingProxy"
Name="MyJDBC Connection Pool"
Password="{3DES}hQcdh4GrFTYBm7+Fl6t3Mw=="
Properties="user=netforce" Targets="myserver"
TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:jdbcdslog:oracle:thin:@10.70.85.91:1521:wfdb;targetDriver=oracle.jdbc.OracleDriver"/>
2.在WEB-INF/classes目录中增加文件jdbcdslog.properties并配置参数
jdbcdslog.slowQueryThreshold=1000
重启weblogic即可。
效果挺好,能查看所有jdbc调用的日志,方便跟踪。不过速度稍微有点影响,不可配置到正式环境上。
分享到:
相关推荐
Oracle Solaris 11.3 Configuring and Managing Printing in Oracle Solaris 11.3-54
Oracle Solaris 11.2 Configuring and Managing Printing in Oracle Solaris 11.2-50
Oracle Solaris 11.1 Configuring and Managing Printing in Oracle Solaris11.1-50
Configuring Oracle Applications 11i With Oracle Portal (Doc ID 146469.1)
Oracle Solaris 11.1 Configuring and Administering Oracle Solaris11.1Networks-152
configuring and tuning oracle storage with veritas database edition
很详细的ERP Sales and Distribution,收入确认等
Oracle WebLogic Server 10g R3: Troubleshooting Methodologies Duration: 3 Days What you will learn This course teaches the steps to identify the symptoms and causes of the issues, the method of ...
英文书籍,排版及页面清晰度不错,对SAP SD的相关知识还是比较全面的,个人建议有一定英语基础的人并且具备SAP基础知识的人去学习。
Oracle Solaris 11.3 Configuring and Managing Network Components in Oracle Solaris 11.3-168
Oracle Solaris 11.2 Configuring and Administering Network Components in Oracle Solaris 11.2-156
configuring and managing cifs on emc celerra
Installing and Configuring Openfiler with DRBD and Heartbeat
Oracle RMAN 11g Backup And Recovery (中文名:Oracle RMAN 11g 备份和恢复) 英文原版图书,Oracle官方出版,学习Oracle Rman备份和恢复的最佳学习资料,与大家一起分享 Master Oracle Recovery MasterProtect your...
CIFS is a file access protocol designed for the Internet and is based on the Server Message Block (SMB) protocol that the Microsoft Windows operating system uses for distributed file sharing....
Configuring Arrays on HP Smart Array Controllers.pdf
Oracle Solaris 11.2 Installing and Configuring OpenStack in Oracle Solaris 11.2-124
Prepare for Microsoft Exam 70-410 – and help demonstrate your real-world mastery of implementing and configuring core services in Windows Server 2012 R2. Designed for experienced IT professionals ...
Oracle Solaris 11.3 Configuring an Oracle Solaris 11.3 System as a Router or a Load Balancer-96