is select sys_context( 'userenv', 'current_schema' ) from dual; the correct way to go?
On Wed, May 13, 2009 at 3:40 PM, Joel <johow...@gmail.com> wrote: > > (oracle 10.2.0.4) is it possible for a stored procedure to dynamically > determine what schema it lives in for use with qualifying objects in > the current schema? > > e.g. if the stored procedure SUPER_STORED_PROC lives in the DEV_DATA > schema, it would read DEV_DATA into the variable CURRENT_SCHEMA ... if > SUPER_STORED_PROC lives in PROD_DATA then it would read PROD_DATA into > the variable CURRENT_SCHEMA ... > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to Oracle-PLSQL@googlegroups.com To unsubscribe from this group, send email to oracle-plsql-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en -~----------~----~----~----~------~----~------~--~---