My Oracle Support Banner

How Sessions get Their AUDSID Identifier (Doc ID 122230.1)

Last updated on MARCH 03, 2024

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Purpose

Sessions connecting to an Oracle database have a number of identifiers assigned to them which can be found in the V$SESSION dynamic view.

One of these identifiers is V$SESSION.AUDSID. 

This identifier is particularly useful because it can also be obtained by a session using the SQL function USERENV('SESSIONID'). 
In this way, a session can find its own session-related information.

This Bulletin explains how the value of the identifier V$SESSION.AUDSID is determined for a session. 

Scope

This document may be useful to Database Administrators and Application Developers. 

Details

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.