Oracle8i Reference
Release 2 (8.1.6)

Part Number A76961-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

Dynamic Performance (V$) Views, 136 of 179


V$SESSION

This view lists session information for each current session.

Column  Datatype  Description 

SADDR 

RAW(4) 

Session address 

SID 

NUMBER 

Session identifier 

SERIAL#  

NUMBER 

Session serial number. Used to identify uniquely a session's objects. Guarantees that session-level commands are applied to the correct session objects if the session ends and another session begins with the same session ID 

AUDSID 

NUMBER 

Auditing session ID 

PADDR 

RAW(4) 

Address of the process that owns this session 

USER# 

NUMBER 

Oracle user identifier 

USERNAME 

VARCHAR2(30) 

Oracle username 

COMMAND  

NUMBER 

Command in progress (last statement parsed); for a list of values, see Table 3-3. These values also appear in the data dictionary view AUDIT_ACTIONS.  

OWNERID  

NUMBER 

The column contents are invalid if the value is 2147483644. Otherwise, this column contains the identifier of the user who owns the migratable session

For operations using Parallel Slaves, interpret this value as a 4Byte value. The low-order 2Bytes of which represent the session number, and the high-order bytes the instance ID of the query coordinator 

TADDR 

VARCHAR2(8) 

Address of transaction state object 

LOCKWAIT 

VARCHAR2(8) 

Address of lock waiting for; NULL if none 

STATUS  

VARCHAR2(8) 

Status of the session: ACTIVE (currently executing SQL), INACTIVE, KILLED (marked to be killed), CACHED (temporarily cached for use by Oracle*XA), SNIPED (session inactive, waiting on the client) 

SERVER  

VARCHAR2(9) 

Server type: DEDICATED, SHARED, PSEUDO, NONE 

SCHEMA# 

NUMBER 

Schema user identifier 

SCHEMANAME 

VARCHAR2(30) 

Schema user name 

OSUSER 

VARCHAR2(15) 

Operating system client user name 

PROCESS 

VARCHAR2(9) 

Operating system client process ID 

MACHINE 

VARCHAR2(64) 

Operating system machine name 

TERMINAL 

VARCHAR2(10) 

Operating system terminal name 

PROGRAM 

VARCHAR2(48) 

Operating system program name 

TYPE 

VARCHAR2(10) 

Session type 

PREV_SQL_ADDR 

RAW(4) 

Used with PREV_HASH_VALUE to identify the last SQL statement executed 

PREV_HASH_VALUE 

NUMBER 

Used with SQL_HASH_VALUE to identify the last SQL statement executed. 

SQL_ADDRESS  

RAW(4) 

Used with SQL_HASH_VALUE to identify the SQL statement that is currently being executed 

SQL_HASH_VALUE  

NUMBER 

Used with SQL_ADDRESS to identify the SQL statement that is currently being executed 

MODULE 

VARCHAR2(48) 

Contains the name of the currently executing module as set by calling the DBMS_APPLICATION_INFO.SET_MODULE procedure 

MODULE_HASH 

NUMBER 

The hash value of the above MODULE 

ACTION 

VARCHAR2(32) 

Contains the name of the currently executing action as set by calling the DBMS_APPLICATION_INFO.SET_ACTION procedure 

ACTION_HASH 

NUMBER 

The hash value of the above action name  

CLIENT_INFO 

VARCHAR2(64) 

Information set by the DBMS_APPLICATION_INFO.SET_CLIENT_INFO procedure 

FIXED_TABLE_SEQUENCE 

NUMBER 

This contains a number that increases every time the session completes a call to the database and there has been an intervening select from a dynamic performance table. This column can be used by performance monitors to monitor statistics in the database. Each time the performance monitor looks at the database, it only needs to look at sessions that are currently active or have a higher value in this column than the highest value that the performance monitor saw the last time. All the other sessions have been idle since the last time the performance monitor looked at the database 

ROW_WAIT_OBJ# 

NUMBER 

Object ID for the table containing the ROWID specified in ROW_WAIT_ROW# 

ROW_WAIT_FILE# 

NUMBER 

Identifier for the datafile containing the ROWID specified in ROW_WAIT_ROW#. This column is valid only if the session is currently waiting for another transaction to commit and the value of ROW_WAIT_OBJ# is not -1 

ROW_WAIT_BLOCK# 

NUMBER 

Identifier for the block containing the ROWID specified in ROW_WAIT_ROW#. This column is valid only if the session is currently waiting for another transaction to commit and the value of ROW_WAIT_OBJ# is not -1 

ROW_WAIT_ROW# 

NUMBER 

The current ROWID being locked. This column is valid only if the session is currently waiting for another transaction to commit and the value of ROW_WAIT_OBJ# is not -1 

LOGON_TIME 

DATE 

Time of logon 

LAST_CALL_ET 

NUMBER 

The last call 

PDML_ENABLED 

VARCHAR2(3) 

This column has been replaced by PDML_STATUS. See below. 

FAILOVER_TYPE 

VARCHAR2(13) 

Indicates whether and to what extent transparent application failover (TAF) is enabled for the session:

  • NONE: failover is disabled for this session

  • SESSION: the client is able to fail over its session following a disconnect

  • SELECT: the client is able to fail over queries in progress as well

See Also:

 

FAILOVER_METHOD 

VARCHAR2(10) 

Indicates the transparent application failover method for the session:

  • NONE: failover is disabled for this session

  • BASIC: the client itself reconnects following a disconnect

  • PRECONNECT: the backup instance can support all connections from every instance for which it is backup

 

FAILED_OVER 

VARCHAR2(3) 

Indicates (YES or NO) whether the session is running in failover mode and failover has occurred 

RESOURCE_CONSUMER_GROUP 

VARCHAR2(32) 

Name of the session's current resource consumer group 

PDML_STATUS 

VARCHAR2(8) 

If ENABLED, the session is in a PARALLEL DML enabled mode. If DISABLED, PARALLEL DML enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL DML. 

PDDL_STATUS 

VARCHAR2(8) 

If ENABLED, the session is in a PARALLEL DDL enabled mode. If DISABLED, PARALLEL DDL enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL DDL. 

PQ_STATUS 

VARCHAR(8) 

If ENABLED, the session is in a PARALLEL QUERY enabled mode. If DISABLED, PARALLEL QUERY enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL QUERY. 

Table 3-3 Numbers Displayed in COMMAND Column of V$SESSION and Corresponding Commands

1: CREATE TABLE

2: INSERT

3: SELECT

4: CREATE CLUSTER

5: ALTER CLUSTER

6: UPDATE

7: DELETE

8: DROP CLUSTER

9: CREATE INDEX

10: DROP INDEX

11: ALTER INDEX

12: DROP TABLE

13: CREATE SEQUENCE

14: ALTER SEQUENCE

15: ALTER TABLE

16: DROP SEQUENCE

17: GRANT

18: REVOKE

19: CREATE SYNONYM

20: DROP SYNONYM

21: CREATE VIEW

22: DROP VIEW

23: VALIDATE INDEX

24: CREATE PROCEDURE

25: ALTER PROCEDURE

26: LOCK TABLE

27: NO OPERATION

28: RENAME

29: COMMENT

30: AUDIT 

31: NOAUDIT

32: CREATE DATABASE LINK

33: DROP DATABASE LINK

34: CREATE DATABASE

35: ALTER DATABASE

36: CREATE ROLLBACK SEGMENT

37: ALTER ROLLBACK SEGMENT

38: DROP ROLLBACK SEGMENT

39: CREATE TABLESPACE

40: ALTER TABLESPACE

41: DROP TABLESPACE

42: ALTER SESSION

43: ALTER USE

44: COMMIT

45: ROLLBACK

46: SAVEPOINT

47: PL/SQL EXECUTE

48: SET TRANSACTION

49: ALTER SYSTEM SWITCH LOG

50: EXPLAIN

51: CREATE USER

25: CREATE ROLE

53: DROP USER

54: DROP ROLE

55: SET ROLE

56: CREATE SCHEMA

57: CREATE CONTROL FILE

58: ALTER TRACING

59: CREATE TRIGGER

60: ALTER TRIGGER 

61: DROP TRIGGER

62: ANALYZE TABLE

63: ANALYZE INDEX

64: ANALYZE CLUSTER

65: CREATE PROFILE

66: DROP PROFILE

67: ALTER PROFILE

68: DROP PROCEDURE

69: DROP PROCEDURE

70: ALTER RESOURCE COST

71: CREATE SNAPSHOT LOG

72: ALTER SNAPSHOT LOG

73: DROP SNAPSHOT LOG

74: CREATE SNAPSHOT

75: ALTER SNAPSHOT

76: DROP SNAPSHOT

79: ALTER ROLE

85: TRUNCATE TABLE

86: TRUNCATE COUSTER

88: ALTER VIEW

91: CREATE FUNCTION

92: ALTER FUNCTION

93: DROP FUNCTION

94: CREATE PACKAGE

95: ALTER PACKAGE

96: DROP PACKAGE

97: CREATE PACKAGE BODY

98: ALTER PACKAGE BODY

99: DROP PACKAGE BODY 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index