In 2003 I published a paper entitled Debugging PL/SQL and Java Stored Procedures with JPDA. Its aim was to describe how to debug PL/SQL and Java code deployed into the database with JDeveloper 9i. Two weeks ago a reader of my blog, Pradip Kumar Pathy, contacted me because he tried, without success, to do something similar with JDeveloper 11g, WebLogic 11g and Oracle Database 11g. Unfortunately I was not able to help him. The reason is quite simple, since 2004 I’m an Eclipse user…
Few days later Pradip contacted me again to let me know that, at last, he succeeded. Here you find his notes…
GRANT DEBUG CONNECT SESSION to &&schema_name;
GRANT DEBUG ANY PROCEDURE TO &&schema_name;
private static void remotePLSQLDebug(Connection con) throws SQLException
{
SystemProperties systemProperties = null;
systemProperties = SystemProperties.getInstance();
CallableStatement callState = null;
String port = systemProperties.get("plsqldebug.port").trim();
String storedCall = "call dbms_debug_jdwp.connect_tcp('localhost'," + port + ")";
callState = con.prepareCall("{" + storedCall + "}");
callState.execute();
callState.close();
}plsqldebug.port parameter in the application propertiesThank you Pradip to share your findings!
Recent comments
5 days 21 hours ago
1 week 15 hours ago
1 week 18 hours ago
1 week 20 hours ago
6 weeks 1 day ago
6 weeks 1 day ago
7 weeks 2 days ago
11 weeks 2 days ago
17 weeks 12 hours ago
19 weeks 5 days ago