Escolar Documentos
Profissional Documentos
Cultura Documentos
(//docs.oracle.com/en/)
(#)
Home(/)/Database(/en/database/database.html)/OracleDatabaseOnlineDocumentation,10gRelease2(10.2)
(../../index.htm)/GridComputing(../../nav/portal_7.htm)
DatabaseReference
V$SESSION
Thisviewlistssessioninformationforeachcurrentsession.
Column
Datatype
Description
SADDR
RAW(4|8)
Sessionaddress
SID
NUMBER
Sessionidentifier
SERIAL#
NUMBER
Sessionserialnumber.Used
touniquelyidentifyasession's
objects.Guaranteesthat
sessionlevelcommandsare
appliedtothecorrectsession
objectsifthesessionends
andanothersessionbegins
withthesamesessionID.
AUDSID
NUMBER
AuditingsessionID
PADDR
RAW(4|8)
Addressoftheprocessthat
ownsthesession
USER#
NUMBER
Oracleuseridentifier
USERNAME
VARCHAR2(30)
Oracleusername
COMMAND
NUMBER
Commandinprogress(last
statementparsed)foralistof
values,seeTable75
(#g1432037).Thesevaluesalso
appearintheAUDIT_ACTIONS
table.
OWNERID
NUMBER
Thecolumncontentsare
invalidifthevalueis
2147483644.Otherwise,this
columncontainstheidentifier
oftheuserwhoownsthe
migratablesession.
ForoperationsusingParallel
Slaves,interpretthisvalueas
a4bytevalue.Theloworder
2bytesofwhichrepresentthe
sessionnumber,andthehigh
orderbytestheinstanceIDof
thequerycoordinator.
TADDR
VARCHAR2(8)
Addressoftransactionstate
object
LOCKWAIT
VARCHAR2(8)
Addressoflockwaitingfor
nullifnone
STATUS
VARCHAR2(8)
Statusofthesession:
ACTIVESessioncurrently
executingSQL
INACTIVE
KILLEDSessionmarkedto
bekilled
CACHEDSession
temporarilycachedforuse
byOracle*XA
SNIPEDSessioninactive,
waitingontheclient
SERVER
VARCHAR2(9)
Servertype(DEDICATED|
SHARED|PSEUDO|NONE)
SCHEMA#
NUMBER
Schemauseridentifier
SCHEMANAME
VARCHAR2(30)
Schemausername
OSUSER
VARCHAR2(30)
Operatingsystemclientuser
name
PROCESS
VARCHAR2(12)
Operatingsystemclient
processID
MACHINE
VARCHAR2(64)
Operatingsystemmachine
name
TERMINAL
VARCHAR2(30)
Operatingsystemterminal
name
PROGRAM
VARCHAR2(48)
Operatingsystemprogram
name
TYPE
VARCHAR2(10)
Sessiontype
SQL_ADDRESS
RAW(4|8)
UsedwithSQL_HASH_VALUEto
identifytheSQLstatement
thatiscurrentlybeing
executed
SQL_HASH_VALUE
NUMBER
UsedwithSQL_ADDRESSto
identifytheSQLstatement
thatiscurrentlybeing
executed
SQL_ID
VARCHAR2(13)
SQLidentifieroftheSQL
statementthatiscurrently
beingexecuted
SQL_CHILD_NUMBER
NUMBER
ChildnumberoftheSQL
statementthatiscurrently
beingexecuted
PREV_SQL_ADDR
RAW(4|8)
UsedwithPREV_HASH_VALUE
toidentifythelastSQL
statementexecuted
PREV_HASH_VALUE
NUMBER
UsedwithSQL_HASH_VALUEto
identifythelastSQLstatement
executed
PREV_SQL_ID
VARCHAR2(13)
SQLidentifierofthelastSQL
statementexecuted
PREV_CHILD_NUMBER
NUMBER
ChildnumberofthelastSQL
statementexecuted
MODULE
VARCHAR2(48)
Nameofthecurrently
executingmoduleassetby
callingthe
DBMS_APPLICATION_INFO.SE
T_MODULEprocedure
MODULE_HASH
NUMBER
Hashvalueoftheabove
MODULE
ACTION
VARCHAR2(32)
Nameofthecurrently
executingactionassetby
callingthe
DBMS_APPLICATION_INFO.SE
T_ACTIONprocedure
ACTION_HASH
NUMBER
Hashvalueoftheabove
actionname
CLIENT_INFO
VARCHAR2(64)
Informationsetbythe
DBMS_APPLICATION_INFO.SE
T_CLIENT_INFOprocedure
FIXED_TABLE_SEQUENCE
NUMBER
Thiscontainsanumberthat
increaseseverytimethe
sessioncompletesacalltothe
databaseandtherehasbeen
aninterveningselectfroma
dynamicperformancetable.
Thiscolumncanbeusedby
performancemonitorsto
monitorstatisticsinthe
database.Eachtimethe
performancemonitorlooksat
thedatabase,itonlyneedsto
lookatsessionsthatare
currentlyactiveorhavea
highervalueinthiscolumn
thanthehighestvaluethatthe
performancemonitorsawthe
lasttime.Alltheother
sessionshavebeenidlesince
thelasttimetheperformance
monitorlookedatthe
database.
ROW_WAIT_OBJ#
NUMBER
ObjectIDforthetable
containingtherowspecifiedin
ROW_WAIT_ROW#
ROW_WAIT_FILE#
NUMBER
Identifierforthedatafile
containingtherowspecifiedin
ROW_WAIT_ROW#.Thiscolumn
isvalidonlyifthesessionis
currentlywaitingforanother
transactiontocommitandthe
valueofROW_WAIT_OBJ#is
not1.
ROW_WAIT_BLOCK#
NUMBER
Identifierfortheblock
containingtherowspecifiedin
ROW_WAIT_ROW#.Thiscolumn
isvalidonlyifthesessionis
currentlywaitingforanother
transactiontocommitandthe
valueofROW_WAIT_OBJ#is
not1.
ROW_WAIT_ROW#
NUMBER
Currentrowbeinglocked.This
columnisvalidonlyifthe
sessioniscurrentlywaitingfor
anothertransactiontocommit
andthevalueof
ROW_WAIT_OBJ#isnot1.
LOGON_TIME
DATE
Timeoflogon
LAST_CALL_ET
NUMBER
IfthesessionSTATUSis
currentlyACTIVE,thenthe
valuerepresentstheelapsed
timeinsecondssincethe
sessionhasbecomeactive.
IfthesessionSTATUSis
currentlyINACTIVE,thenthe
valuerepresentstheelapsed
timeinsecondssincethe
sessionhasbecomeinactive.
PDML_ENABLED
VARCHAR2(3)
Thiscolumnhasbeen
replacedbycolumn
PDML_STATUS
FAILOVER_TYPE
VARCHAR2(13)
Indicateswhetherandtowhat
extenttransparentapplication
failover(TAF)isenabledfor
thesession:
NONEFailoverisdisabled
forthissession
SESSIONClientisableto
failoveritssessionfollowing
adisconnect
SELECTClientisableto
failoverqueriesinprogress
aswell
SeeAlso:
OracleDatabaseConcepts
(../../server.102/b14220/toc.htm)for
moreinformationonTAF
OracleDatabaseNet
ServicesAdministrator's
Guide
(../../network.102/b14212/toc.htm)
forinformationon
configuringTAF
FAILOVER_METHOD
VARCHAR2(10)
Indicatesthetransparent
applicationfailovermethodfor
thesession:
NONEFailoverisdisabled
forthissession
BASICClientitself
reconnectsfollowinga
disconnect
PRECONNECTBackup
instancecansupportall
connectionsfromevery
instanceforwhichitis
backedup
FAILED_OVER
VARCHAR2(3)
Indicateswhetherthesession
isrunninginfailovermode
andfailoverhasoccurred
(YES)ornot(NO)
RESOURCE_CONSUMER_GROUP
VARCHAR2(32)
Nameofthesession'scurrent
resourceconsumergroup
PDML_STATUS
VARCHAR2(8)
IfENABLED,thesessionisina
PARALLELDMLenabled
mode.IfDISABLED,
PARALLELDMLenabled
modeisnotsupportedforthe
session.IfFORCED,the
sessionhasbeenalteredto
forcePARALLELDML.
PDDL_STATUS
VARCHAR2(8)
IfENABLED,thesessionisina
PARALLELDDLenabled
mode.IfDISABLED,
PARALLELDDLenabled
modeisnotsupportedforthe
session.IfFORCED,the
sessionhasbeenalteredto
forcePARALLELDDL.
PQ_STATUS
VARCHAR2(8)
IfENABLED,thesessionisina
PARALLELQUERYenabled
mode.IfDISABLED,
PARALLELQUERYenabled
modeisnotsupportedforthe
session.IfFORCED,the
sessionhasbeenalteredto
forcePARALLELQUERY.
CURRENT_QUEUE_DURATION
NUMBER
Ifqueued(1),thecurrent
amountoftimethesession
hasbeenqueued.Ifnot
currentlyqueued,thevalueis
0.
CLIENT_IDENTIFIER
VARCHAR2(64)
Clientidentifierofthesession
BLOCKING_SESSION_STATUS
VARCHAR2(11)
Blockingsessionstatus:
VALID
NOHOLDER
GLOBAL
NOTINWAIT
UNKNOWN
BLOCKING_INSTANCE
NUMBER
Instanceidentifierofblocking
session
BLOCKING_SESSION
NUMBER
Sessionidentifierofblocking
session
SEQ#
NUMBER
Sequencenumberthat
uniquelyidentifiesthewait.
Incrementedforeachwait.
EVENT#
NUMBER
Eventnumber
EVENT
VARCHAR2(64)
Resourceoreventforwhich
thesessioniswaiting
SeeAlso:AppendixC,
"OracleWaitEvents"
(waitevents.htm#g992176)
P1TEXT
VARCHAR2(64)
Descriptionofthefirst
additionalparameter
P1
NUMBER
Firstadditionalparameter
P1RAW
RAW(4)
Firstadditionalparameter
P2TEXT
VARCHAR2(64)
Descriptionofthesecond
additionalparameter
P2
NUMBER
Secondadditionalparameter
P2RAW
RAW(4)
Secondadditionalparameter
P3TEXT
VARCHAR2(64)
Descriptionofthethird
additionalparameter
P3
NUMBER
Thirdadditionalparameter
P3RAW
RAW(4)
Thirdadditionalparameter
WAIT_CLASS_ID
NUMBER
Identifierofthewaitclass
WAIT_CLASS#
NUMBER
Numberofthewaitclass
WAIT_CLASS
VARCHAR2(64)
Nameofthewaitclass
WAIT_TIME
NUMBER
Anonzerovalueisthe
session'slastwaittime.Azero
valuemeansthesessionis
currentlywaiting.
SECONDS_IN_WAIT
NUMBER
IfWAIT_TIME=0,then
SECONDS_IN_WAITisthe
secondsspentinthecurrent
waitcondition.IfWAIT_TIME>
0,thenSECONDS_IN_WAITis
thesecondssincethestartof
thelastwait,and
SECONDS_IN_WAIT
WAIT_TIME/100istheactive
secondssincethelastwait
ended.
STATE
VARCHAR2(19)
Waitstate:
0WAITING(thesession
iscurrentlywaiting)
2WAITEDUNKNOWN
TIME(durationoflastwaitis
unknown)
1WAITEDSHORTTIME
(lastwait<1/100thofa
second)
>0WAITEDKNOWNTIME
(WAIT_TIME=durationof
lastwait)
SERVICE_NAME
VARCHAR2(64)
Servicenameofthesession
SQL_TRACE
IndicateswhetherSQLtracing
isenabled(ENABLED)or
VARCHAR2(8)
disabled(DISABLED)
SQL_TRACE_WAITS
Indicateswhetherwaittracing
isenabled(TRUE)ornot
VARCHAR2(5)
(FALSE)
SQL_TRACE_BINDS
Indicateswhetherbindtracing
isenabled(TRUE)ornot
VARCHAR2(5)
(FALSE)
Table75COMMANDColumnofV$SESSIONandCorrespondingCommands
Number
Command
Number
Command
CREATETABLE
INSERT
SELECT
CREATECLUSTER
ALTERCLUSTER
UPDATE
DELETE
DROPCLUSTER
CREATEINDEX
10
DROPINDEX
11
ALTERINDEX
12
DROPTABLE
13
CREATESEQUENCE
14
ALTERSEQUENCE
15
ALTERTABLE
16
DROPSEQUENCE
17
GRANTOBJECT
18
REVOKEOBJECT
19
CREATESYNONYM
20
DROPSYNONYM
21
CREATEVIEW
22
DROPVIEW
23
VALIDATEINDEX
24
CREATEPROCEDURE
25
ALTERPROCEDURE
26
LOCK
27
NOOP
28
RENAME
29
COMMENT
30
AUDITOBJECT
31
NOAUDITOBJECT
32
CREATEDATABASE
LINK
33
DROPDATABASE
34
CREATEDATABASE
36
CREATEROLLBACK
LINK
35
ALTERDATABASE
SEG
37
ALTERROLLBACK
38
DROPROLLBACKSEG
SEG
39
CREATETABLESPACE
40
ALTERTABLESPACE
41
DROPTABLESPACE
42
ALTERSESSION
43
ALTERUSER
44
COMMIT
45
ROLLBACK
46
SAVEPOINT
47
PL/SQLEXECUTE
48
SETTRANSACTION
49
ALTERSYSTEM
50
EXPLAIN
51
CREATEUSER
52
CREATEROLE
53
DROPUSER
54
DROPROLE
55
SETROLE
56
CREATESCHEMA
57
CREATECONTROL
59
CREATETRIGGER
FILE
60
ALTERTRIGGER
61
DROPTRIGGER
62
ANALYZETABLE
63
ANALYZEINDEX
64
ANALYZECLUSTER
65
CREATEPROFILE
66
DROPPROFILE
67
ALTERPROFILE
68
DROPPROCEDURE
70
ALTERRESOURCE
COST
71
73
CREATE
72
MATERIALIZEDVIEW
MATERIALIZEDVIEW
LOG
LOG
DROPMATERIALIZED
74
VIEWLOG
75
ALTER
ALTER
CREATE
MATERIALIZEDVIEW
76
MATERIALIZEDVIEW
DROPMATERIALIZED
VIEW
77
CREATETYPE
78
DROPTYPE
79
ALTERROLE
80
ALTERTYPE
81
CREATETYPEBODY
82
ALTERTYPEBODY
83
DROPTYPEBODY
84
DROPLIBRARY
85
TRUNCATETABLE
86
TRUNCATECLUSTER
91
CREATEFUNCTION
92
ALTERFUNCTION
93
DROPFUNCTION
94
CREATEPACKAGE
95
ALTERPACKAGE
96
DROPPACKAGE
97
CREATEPACKAGE
98
ALTERPACKAGE
BODY
BODY
99
DROPPACKAGEBODY
100
LOGON
101
LOGOFF
102
LOGOFFBYCLEANUP
103
SESSIONREC
104
SYSTEMAUDIT
105
SYSTEMNOAUDIT
106
AUDITDEFAULT
107
NOAUDITDEFAULT
108
SYSTEMGRANT
109
SYSTEMREVOKE
110
CREATEPUBLIC
SYNONYM
111
DROPPUBLIC
112
SYNONYM
113
DROPPUBLIC
CREATEPUBLIC
DATABASELINK
114
GRANTROLE
DATABASELINK
115
REVOKEROLE
116
EXECUTEPROCEDURE
117
USERCOMMENT
118
ENABLETRIGGER
119
DISABLETRIGGER
120
ENABLEALL
TRIGGERS
121
DISABLEALL
122
NETWORKERROR
TRIGGERS
123
EXECUTETYPE
157
CREATEDIRECTORY
158
DROPDIRECTORY
159
CREATELIBRARY
160
CREATEJAVA
161
ALTERJAVA
162
DROPJAVA
163
CREATEOPERATOR
164
CREATEINDEXTYPE
165
DROPINDEXTYPE
167
DROPOPERATOR
168
ASSOCIATE
STATISTICS
169
DISASSOCIATE
170
CALLMETHOD
STATISTICS
171
CREATESUMMARY
172
ALTERSUMMARY
173
DROPSUMMARY
174
CREATEDIMENSION
175
ALTERDIMENSION
176
DROPDIMENSION
177
CREATECONTEXT
178
DROPCONTEXT
179
ALTEROUTLINE
180
CREATEOUTLINE
181
DROPOUTLINE
182
UPDATEINDEXES
183
ALTEROPERATOR
Page1513of1627
(https://docs.oracle.com/cd/B19306_01/server.102/b14237/dynviews_2089.htm)
(https://docs.oracle.com/cd/B19306_01/server.102/b14237/dynviews_2087.htm)
(http://www.oracle.com/us/legal/index.html)
ContactUs (http://www.oracle.com/us/corporate/contact/index.html)
TermsofUse(http://www.oracle.com/us/legal/terms/index.html)
(http://www.oracle.com/us/legal/privacy/index.html)
Copyright2016,Oracleand/oritsaffiliates.Allrightsreserved.
LegalNotices
YourPrivacyRights
AboutOracle(http://www.oracle.com/corporate/index.html)
(#)