一、
概要
首先看看help
SQL> oradebug help
HELP
[command]
Describe one
or all commands
SETMYPID
Debug
current process
SETOSPID
<ospid>
Set OS pid
of process to debug
SETORAPID
<orapid>
['force']
Set Oracle
pid of process to debug
SHORT_STACK
Dump
abridged OS stack
DUMP
<dump_name>
<lvl>
[addr] Invoke named dump
DUMPSGA
[bytes]
Dump fixed
SGA
DUMPLIST
Print a list
of available dumps
EVENT
<text>
Set trace
event in process
SESSION_EVENT <text>
Set trace
event in session
DUMPVAR
<p|s|uga>
<name>
[level] Print/dump a fixed
PGA/SGA/UGA variable
DUMPTYPE
<address>
<type>
<count> Print/dump
an address with type info
SETVAR
<p|s|uga>
<name>
<value> Modify
a fixed PGA/SGA/UGA variable
PEEK
<addr>
<len> [level]
Print/Dump
memory
POKE
<addr>
<len>
<value>
Modify
memory
WAKEUP
<orapid>
Wake up
Oracle process
SUSPEND