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

Last updated on NOVEMBER 10, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.1.0.6
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

Cause

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 hundreds of Community platforms