My Oracle Support Banner

SYS_CONTEXT('USERENV','AUTHENTICATION_METHOD') Retuns NULL (Doc ID 432684.1)

Last updated on FEBRUARY 19, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.1.0.6 [Release 10.2 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

The following query returns NULL instead of the server authentication method.

SELECT sys_context('USERENV','AUTHENTICATION_METHOD') FROM dual

When Kerberos is used we have the following behaviour:

sqlplus /@kerb

SQL*Plus: Release 10.2.0.2.0 - Production on Wed Apr 18 15:54:45 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> show user
USER is TEST@US.ORACLE.COM

SQL> select sys_context('USERENV','AUTHENTICATION_METHOD') from dual;

SYS_CONTEXT('USERENV','AUTHENTICATION_METHOD')
------------------------------------------------------------------------------
<nothing is returned (i.e. NULL)>


SQL> select sys_context('USERENV','authenticated_identity') from dual;
SYS_CONTEXT('USERENV','AUTHENTICATED_IDENTITY')
------------------------------------------------------------------------------ 
TEST@US.ORACLE.COM

Changes

 

Cause

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

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


In this Document
Symptoms
Changes
Cause
Solution
References


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