Guest User

Untitled

a guest
Nov 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Steps to enable jdev debugging with emctl command -
  2. 1) emfind MdsCmds.pm
  3. 2) Modify subroutine (sub registerMetadata()) in MdsCmds.pm to add - "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001" and the final block will look like -
  4.  
  5. <code>
  6. my $cmd = "$JAVA_HOME/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001 -cp $CLASSPATH ".
  7. "-DORACLE_HOME=$ORACLE_HOME ".
  8. "-DMW_HOME=$mwHome ".
  9. "-DINSTANCE_HOME=$INSTANCE_HOME ".
  10. "oracle.sysman.emctl.extensibility.EmctlMetadataService $cmdArg @args";
  11. </code>
  12. 3) connect jdev in debug mode and provide the same port as updated in my $cmd.
Add Comment
Please, Sign In to add comment