Not used this on windowsBut the -prelim worked fine on UNIX platforms in RAC enviroments as in the script below.
#!/sbin/sh -x ## Script to generate trace file when an instance is hung and not accepting connections # Based on article in http://www.databasejournal.com/features/oracle/article.php/3619681/DBA-from-Crisis-to-Confidence.htm
# # sqlplus -prelim / as sysdba <<EOF oradebug setmypid oradebug unlimit oradebug -g all hanganalyze 3 --wait a minute or two here... !sleep 120 oradebug -g all hanganalyze 3 exit EOF Quoting Taral Desai <taral.desai@xxxxxxxxx>: -- //www.freelists.org/webpage/oracle-l