SQL Profiling on developer toolkit is a very handy tool during development and performance tuning of the application, recently I came across this link on developerworks and had to include few minor hacks to make it work on my V7 toolkit. here are few key steps which will supplement this article on developerworks
Reference link: http://www.ibm.com/developerworks/websphere/library/techarticles/0905_roberts/0905_roberts.html
1. Copy the downloaded jar jdbcProfiler.jar to
http://www.ibm.com/developerworks/apps/download/index.jsp?contentid=391299&filename=sql_profiler.zip&method=http&locale=worldwide
2. I tried these changes for embedded Apache Derby database, this invloves editing following entry.
in WCDE_ENT70\workspace\WC\META-INF\ibmconfig\cells\defaultCell\applications\defaultApp\deployments\defaultApp\resources.xml
I replaced the driver impl class name as below (highlighted in RED)
<resources.jdbc:JDBCProvider description="Cloudscape JDBC Driver"
implementationClassName="com.ibm.issw.jdbc.wrappers.WrappedDerbyDataSource"
For Oracle DB change the corresponding entry for Oracle with following impl class.
com.ibm.issw.jdbc.wrappers.WrappedOracleDataSource
3. Download the RAD plugin by pointing to site.xml from downloaded file. This will download the required RAD plugin.
NOTE: Follow the steps in http://www.ibm.com/developerworks/websphere/library/techarticles/0905_roberts/0905_roberts.html
to install the plugin, first download sql_profiler.zip from http://www.ibm.com/developerworks/websphere/library/techarticles/0905_roberts/0905_roberts.html#download,extract updatesite.zip from it and then follow instructions in section "Installing the client plug-in in Eclipse" to install the plugin
4. You need to change the listener port for the SQL profiler from the default 26000, this involves following changes
a. Set a JVM custom property "
b. Change the listening port number from RAD.
5. Do a Clean/Publish from your RAD, during startup you should be able to see a similar message as below, this indicates the SQL profiler has started successfully.
00000014 JdbcProfilerD I Jdbc Profiler listening to socket 2075
6. During server startup notice that you have selected SQL Profiler Prospective, you should be able to see sql tracing during server startup as shown below.
Reference link: http://www.ibm.com/developerworks/websphere/library/techarticles/0905_roberts/0905_roberts.html
1. Copy the downloaded jar jdbcProfiler.jar to
SDP\runtimes\base_v7\lib\ext\
http://www.ibm.com/developerworks/apps/download/index.jsp?contentid=391299&filename=sql_profiler.zip&method=http&locale=worldwide
2. I tried these changes for embedded Apache Derby database, this invloves editing following entry.
in WCDE_ENT70\workspace\WC\META-INF\ibmconfig\cells\defaultCell\applications\defaultApp\deployments\defaultApp\resources.xml
I replaced the driver impl class name as below (highlighted in RED)
<resources.jdbc:JDBCProvider description="Cloudscape JDBC Driver"
implementationClassName="com.ibm.issw.jdbc.wrappers.WrappedDerbyDataSource"
For Oracle DB change the corresponding entry for Oracle with following impl class.
com.ibm.issw.jdbc.wrappers.WrappedOracleDataSource
3. Download the RAD plugin by pointing to site.xml from downloaded file. This will download the required RAD plugin.
NOTE: Follow the steps in http://www.ibm.com/developerworks/websphere/library/techarticles/0905_roberts/0905_roberts.html
to install the plugin, first download sql_profiler.zip from http://www.ibm.com/developerworks/websphere/library/techarticles/0905_roberts/0905_roberts.html#download,extract updatesite.zip from it and then follow instructions in section "Installing the client plug-in in Eclipse" to install the plugin
4. You need to change the listener port for the SQL profiler from the default 26000, this involves following changes
a. Set a JVM custom property "
com.ibm.issw.jdbc.profiler.port"
as followsb. Change the listening port number from RAD.
5. Do a Clean/Publish from your RAD, during startup you should be able to see a similar message as below, this indicates the SQL profiler has started successfully.
00000014 JdbcProfilerD I Jdbc Profiler listening to socket 2075
6. During server startup notice that you have selected SQL Profiler Prospective, you should be able to see sql tracing during server startup as shown below.
Nice to see you blog, Hari-
ReplyDeleteIrfan
this is very helpful post. - Amol
ReplyDeleteI am still having problem to use the SQL Profile in my localhost. I set now the port 2075, but now retrieves out of memory. Any ideas ? - Karen
ReplyDeleteIt is working now. - Karen
DeleteHey Hari,
ReplyDeleteI do not understand what you mean by the following line:
Download the RAD plugin by pointing to site.xml from downloaded file. This will download the required RAD plugin.
Can you please provide some further details
As I noted this is supplement to article at http://www.ibm.com/developerworks/websphere/library/techarticles/0905_roberts/0905_roberts.html, if you refer this link they have details on how downloading a zip file Step 1 and 2, so you need to download sql_profiler.zip and then extract updatesite.zip from it to some directory on your system, next you go through the section "Installing the client plug-in in Eclipse", this will walk you through how to install plugin from updatesite.zip
DeleteThanks for your feedback, I should have clarified this in the blog.
This comment has been removed by the author.
ReplyDeleteHello Hari,
ReplyDeleteAfter following all the steps you mentioned, I get an error stating wrong port number.
Can you please confirm that the port number should be 2075? If yes, then can you please suggest on how to resolve this issue.
Looking forward to your response.
Do you see following message in server start up log
Delete"Jdbc Profiler listening to socket 2075"
If you don't see one try to do a clean publish of EAR on toolkit, port number is configurable so you can define any value just ensure that you set the JVM property value for port number accordingly.
Wats the datasource I use for BD2I tried below.It didnt work.
ReplyDeleteIBM DB2 Type 2 CLI com.ibm.issw.jdbc.wrappers.WrappedDB2DataSource
IBM DB2 Type 4 JCC com.ibm.issw.jdbc.wrappers.WrappedDB2JCCDataSource
Did you try SQLProfile with V8? its giving following error while installing the plug-in.
ReplyDeleteAn error occurred while installing the items
session context was:(profile=IBM Software Delivery Platform com.ibm.sdp.eclipse.ide, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.ibm.issw.sqlprofiler 1.0.27, action=).
Failed to prepare partial IU: [R]com.ibm.issw.sqlprofiler 1.0.27.
Found the solution. Need to install "Eclipse Tests, Examples, and Extras" first before trying SQLProfile.
DeleteCan you provide steps for installing Eclipse Tests, Examples, and Extras"
DeleteKuchi Jewels is a project of Gem & Gems which is a leading exporter since 2005 to onwards in all over the world. Our company has experienced, educated and motivated staff. Our main goal is to meet the international standard B2C and B2B export target with competitive prices and high quality products. best silicone rings chile , best silicone rings germany
ReplyDeleteMost sites add the images to make sharing the content more social media friendly but any of the o제주도ther platforms should be good for writing.
ReplyDeleteI enjoyed learning about this topic. It's amazing how much work goes into projects like this. The level of detail is really impressive. It's always wonderful to see such passion and creativity. Great job on pulling everything together for this article. tarpaulin
ReplyDeleteReally thought-provoking article. You really analyzed this issue from different perspectives which was fascinating to read.
ReplyDeletetarpaulin