Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the name of the schema that is calling a procedure hosted in another schema.

PeruFlashbackJan 5 2021

Hello,
Somebody know if it's possible to get the name of the schema that is calling a procedure hosted in another schema ?
I'm using SYS_CONTEXT('USERENV','CURRENT_SCHEMA') in a procedure to get the name of the "Calling" schema, but it always return the name of the schema that host the procedure, not the name of the schema that is calling it.
Is there a way to get the name of the "Calling" schema ?

This post has been answered by JohnWatson2 on Jan 5 2021
Jump to Answer
Comments
Post Details
Added on Jan 5 2021
3 comments
506 views