SYS_CONTEXT('USRENV', 'DB_NAME') Not Return Correct Name For PDB

(Doc ID 2358245.1)

Last updated on FEBRUARY 08, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]
Information in this document applies to any platform.

Symptoms

In PDB, the sys_context('USERENV','DB_NAME') did not return PDB's name, but return db_name

 

Changes

 NO

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