Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to check owner of package
If you are putting the SQL statement in the package then how about using
this to retrieve the information into your variable:
select owner
from all_objects
where object_name=<package name>
and object_type='PACKAGE'
Cezariusz Marek <Cezariusz.Marek_at_comarch.pl> wrote in article
> How to check in package (at the runtime) who is the owner of it. The
> line:
>
> select user
> into v_usr
> from dual;
>
> gives me the user who executed package, not in who's schema it was
> created.
Received on Wed Aug 20 1997 - 00:00:00 CDT
![]() |
![]() |