Name | Code | Description |
---|---|---|
t_cache | type t_cache is table of all_source.text%type; |
Name | Code | Description |
---|---|---|
end | end if; |
|
end | end if; |
|
return | return l_line; |
|
g_cached_object := null; |
||
l_result | l_result varchar2(128) := lower(a_dba_view_name); |
|
pragma | pragma exception_init(l_invalid_object_name,-44002); |
|
begin | begin |
|
return | return l_result; |
|
c_current_schema | c_current_schema constant all_tables.owner%type := sys_context('USERENV','CURRENT_SCHEMA'); |
|
return | return l_cnt > 0; |
Name | Code | Description |
---|---|---|
end | end if; |
|
end | end if; |
|
return | return l_line; |
|
g_cached_object := null; |
||
l_result | l_result varchar2(128) := lower(a_dba_view_name); |
|
pragma | pragma exception_init(l_invalid_object_name,-44002); |
|
begin | begin |
|
return | return l_result; |
|
c_current_schema | c_current_schema constant all_tables.owner%type := sys_context('USERENV','CURRENT_SCHEMA'); |
|
return | return l_cnt > 0; |
Forms correct object/subprogram name to call as owner.object[.subprogram]
function form_name(a_owner_name varchar2, a_object varchar2, a_subprogram varchar2 default null) return varchar2
Check if package exists and is in a VALID state
function package_valid(a_owner_name varchar2, a_package_name in varchar2) return boolean
Check if package exists and is VALID and contains the given procedure.
function procedure_exists(a_owner_name varchar2, a_package_name in varchar2, a_procedure_name in varchar2)
return boolean
Resolves [owner.]object using dbms_utility.name_resolve and returns resolved parts
procedure do_resolve(a_owner in out nocopy varchar2, a_object in out nocopy varchar2)
Resolves [owner.]object[.procedure] using dbms_utility.name_resolve and returns resolved parts
procedure do_resolve(a_owner in out nocopy varchar2, a_object in out nocopy varchar2, a_procedure_name in out nocopy varchar2)
Return the text of the source line for a given object (body). It excludes package spec and type spec
function get_source_definition_line(a_owner varchar2, a_object_name varchar2, a_line_no integer) return varchar2
Invalidates package-level cache for source.
Caching is used to improve performance of function get_source_definition_line
procedure reset_source_definition_cache
Returns dba_... view name if it is accessible, otherwise it returns all_xxx view
function get_dba_view(a_dba_view_name varchar2) return varchar2
Name | Description |
---|---|
a_dba_view_name |
the name of dba view requested |
Returns true if given object is a package and it exists in current schema
function package_exists_in_cur_schema(a_object_name varchar2) return boolean
Name | Description |
---|---|
a_object_name |
the name of the object to be checked |