最初由 wysfenghuo007 发布
[B]有那位高手介绍一下,常用的数据字典表字段的具体含义?及表之间的关联关系
譬如:v$latch,v$session_wait,v$process等等。谢谢 [/B]
as belows
V$LATCH shows aggregate latch statistics for both parent and child latches, grouped by latch name. Individual parent and child latch statistics are broken down in the views V$LATCH_PARENT and V$LATCH_CHILDREN.
Column Datatype Description
ADDR
RAW(4 | 8)
Address of the latch object
LATCH#
NUMBER
Latch number
LEVEL#
NUMBER
Latch level
NAME
VARCHAR2(64)
Latch name
GETS
NUMBER
Number of times the latch was requested in willing-to-wait mode
MISSES
NUMBER
Number of times the latch was requested in willing-to-wait mode and the requestor had to wait
SLEEPS
NUMBER
Number of times a willing-to-wait latch request resulted in a session sleeping while waiting for the latch
IMMEDIATE_GETS
NUMBER
Number of times a latch was requested in no-wait mode
IMMEDIATE_MISSES
NUMBER
Number of times a no-wait latch request did not succeed (that is, missed)
WAITERS_WOKEN
NUMBER
For some latches, the session releasing the latch posts a session waiting for the latch. This counts the number of times a waiting session was awakened.
WAITS_HOLDING_LATCH
NUMBER
Number of waits for the latch while the waiter was holding a different latch
SPIN_GETS
NUMBER
Willing-to-wait latch requests which missed the first try but succeeded while spinning
SLEEP[1 | 2 | 3]
NUMBER
Waits that slept 1 time through 3 times, respectively
SLEEP4
NUMBER
Waits that slept 4 or more times
SLEEP[5 | 6 | 7 | 8 | 9 | 10 | 11]
NUMBER
These columns are present for compatibility with previous releases of Oracle. No data is accumulated for these columns.
WAIT_TIME
NUMBER
Elapsed time spent waiting for the latch (in microseconds)
V$SESSION_WAIT
This view lists the resources or events for which active sessions are waiting.
The following are tuning considerations:
P1RAW, P2RAW, and P3RAW display the same values as the P1, P2, and P3 columns, except that the numbers are displayed in hexadecimal.
The WAIT_TIME column contains a value of -2 on platforms that do not support a fast timing mechanism. If you are running on one of these platforms and you want this column to reflect true wait times, you must set the TIMED_STATISTICS parameter to TRUE. Remember that doing this has a small negative effect on system performance.
In previous releases the WAIT_TIME column contained an arbitrarily large value instead of a negative value to indicate the platform did not have a fast timing mechanism.
The STATE column interprets the value of WAIT_TIME and describes the state of the current or most recent wait.
See Also:
"TIMED_STATISTICS" and Appendix A, "Oracle Wait Events"
Column Datatype Description
SID
NUMBER
Session identifier
SEQ#
NUMBER
Sequence number that uniquely identifies this wait. Incremented for each wait.
EVENT
VARCHAR2(64)
Resource or event for which the session is waiting
See Also: Appendix A, "Oracle Wait Events"
P1TEXT
VARCHAR2(64)
Description of first additional parameter
P1
NUMBER
First additional parameter
P1RAW
RAW(4)
First additional parameter
P2TEXT
VARCHAR2(64)
Description of second parameter
P2
NUMBER
Second additional parameter
P2RAW
RAW(4)
Second additional parameter
P3TEXT
VARCHAR2(64)
Description of third parameter
P3
NUMBER
Third additional parameter
P3RAW
RAW(4)
Third additional parameter
WAIT_TIME
NUMBER
A nonzero value is the session's last wait time. A zero value means the session is currently waiting.
SECONDS_IN_WAIT
NUMBER
If WAIT_TIME = 0, then SECONDS_IN_WAIT is the seconds spent in the current wait condition. If WAIT_TIME > 0, then SECONDS_IN_WAIT is the seconds since the start of the last wait, and SECONDS_IN_WAIT - WAIT_TIME / 100 is the active seconds since the last wait ended.
STATE
VARCHAR2(19)
Wait state:
0 - WAITING (the session is currently waiting)
-2 - WAITED UNKNOWN TIME (duration of last wait is unknown)
-1 - WAITED SHORT TIME (last wait <1/100th of a second)
>0 - WAITED KNOWN TIME (WAIT_TIME = duration of last wait)
V$PROCESS
This view contains information about the currently active processes. While the LATCHWAIT column indicates what latch a process is waiting for, the LATCHSPIN column indicates what latch a process is spinning on. On multi-processor machines, Oracle processes will spin on a latch before waiting on it.
Column Datatype Description
ADDR
RAW(4 | 8)
Address of process state object
PID
NUMBER
Oracle process identifier
SPID
VARCHAR2(12)
Operating system process identifier
USERNAME
VARCHAR2(15)
Operating system process username. Any two-task user coming across the network has "-T" appended to the username.
SERIAL#
NUMBER
Process serial number
TERMINAL
VARCHAR2(30)
Operating system terminal identifier
PROGRAM
VARCHAR2(48)
Program in progress
TRACEID
VARCHAR2(255)
Trace file identifier
BACKGROUND
VARCHAR2(1)
1 for a background process; NULL for a normal process
LATCHWAIT
VARCHAR2(8)
Address of latch the process is waiting for; NULL if none
LATCHSPIN
VARCHAR2(8)
Address of the latch the process is spinning on; NULL if none
PGA_USED_MEM
NUMBER
PGA memory currently used by the process
PGA_ALLOC_MEM
NUMBER
PGA memory currently allocated by the process (including free PGA memory not yet released to the operating system by the server process)
PGA_FREEABLE_MEM
NUMBER
Allocated PGA memory which can be freed
PGA_MAX_MEM
NUMBER
Maximum PGA memory ever allocated by the process
the information mentioned above on reference of oracle DOC ,you can refer to that learn more