sql - Object available when described but not available in all_objects -
sql - Object available when described but not available in all_objects -
maybe have been assuming wrong, but:
recently moved new project, , here have encountered weird scenario - there package, can describe , view bundle body , description, when query all_objects
view, donot see package.
a simple
select * all_objects object_name '%package_name%';
yields no results.
note - bundle belongs different schema. have access 'read only' schema can describe package.
how possible? isn't objects visible schema supposed available in all_objects
view ?
my first thought not how views supposed behave. possibility think of has, in spirit of either mischief or experimentation, created all_objects
table or view in schema. it's interesting have one's assumptions challenged, looked bit more. logged in db sys, , had @ source code all_objects , all_source views. relevant snippets here - don't think i'm breaking ip laws in reproducing them here, delete if necessary:
all_objects
select obj# sys.objauth$ grantee# in (select kzsrorol x$kzsro) , privilege# in (3 /* delete */, 6 /* insert */, 7 /* lock */, 9 /* select */, 10 /* update */, 12 /* execute */, 11 /* usage */, 16 /* create */, 17 /* read */, 18 /* write */ )
all_source
o.type# = 11 , ( privilege# = -141 /* create procedure */ or privilege# = -241 /* debug procedure */ )
and also:
(o.type# in (11 /* bundle body */, 14 /* type body */)) , exists ( select null sys."_actual_edition_obj" specobj, sys.dependency$ dep, sys.objauth$ oa specobj.owner# = o.owner# , specobj.name = o.name , specobj.type# = decode(o.type#, 11 /* pkg body */, 9 /* pkg */, 14 /* type body */, 13 /* type */, null) , dep.d_obj# = o.obj# , dep.p_obj# = specobj.obj# , oa.obj# = specobj.obj# , oa.grantee# in (select kzsrorol x$kzsro) , oa.privilege# = 26 /* debug */)
i'm no dba, , i'm little out of depth interpreting this, i'm guessing schema has create procedure
, no privileges specific package? if that's case, might explain why can see source in all_source
, bundle not appear in all_objects
.
sql oracle
Comments
Post a Comment