My Oracle Support Banner

sys_context('USERENV','CURRENT_SQL') Returns No Value When Used In A Trigger (Doc ID 2397694.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 18.1.0.0 [Release 11.2 to 18.1]
Information in this document applies to any platform.

Symptoms

Using sys_context('USERENV','CURRENT_SQL') in a trigger will not generate a value.

sys_context('USERENV','CURRENT_SQL') will return no value when not used in the function used as handler module for the FGA policy. (i.e. trigger, procedure, function, package)

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!


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