| SYS_CONTEXT |
SYS_CONTEXT(namespace, attribute_name [,length]) |
Returns the value of an attribute in an application context namespace.
Parameters
namespace
Specifies the name of a namespace previously created using the CREATE CONTEXT statement. You may also specify the default namespace USERENV.
attribute
Specifies the name of an attribute within the namespace. That attribute's value is then returned by this function. Several predefined attributes are available for use with the default USERENV namespace. These attributes are listed in Table 5-6.
length
Specifies the length you want to allow for an attribute's return value. This optional parameter is only available beginning with Oracle 8.1.6, and only for the AUTHENTICATION_DATA attribute.
| Attribute Name | Description | Max Length | Release Introduced |
|---|---|---|---|
| AUTHENTICATION_DATA | The data used to authenticate a user. If authentication is via an X.503 certificate, the content of the certificate will be returned in hexadecimal format. This is the only option for which the SYS_CONTEXT function's LENGTH parameter may be used. The maximum length you can specify is 4000 bytes. | 2564000 | 8.1.6 |
| AUTHENTICATION_TYPE |
Indicates how the user was authenticated. One of the following values
will be returned:
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access