ORA-1031 When Setting Attribute via DBMS_SESSION SET_CONTEXT
(Doc ID 100130.1)
Last updated on AUGUST 17, 2022
Applies to:
Oracle Database Backup Service - Version N/A and laterOracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
While setting a context attribute via the DBMS_SESSION.SET_CONTEXT procedure an ORA-1031 error is encountered:
Changes
When you use a secure application context, it can only be changed with dbms_session if it is called from a package or procedure that is designated for this context when it was created. This is part of the security surrounding this feature. An arbitrary user or package may not change the context values, as these are often used to decide on VPD predicates from a policy function or other security features and procedures.
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! |