Oracle DBMS_FINE_GRAIN_DEP
Version 12.1.0.2

General Information
Library Note Morgan's Library Page Footer
The Library is currently in the process of being upgraded from Oracle Database Version 12.1.0.1 to 12.1.0.2. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.

Interested in Oracle GoldenGate? Check out the IGGOUG,
Purpose This package provides a table function FG_ELEMENTS that translates the fine-grain dependency information stored in dependency$ into a user readable format.
AUTHID CURRENT_USER
Data Types TYPE fg_rec IS RECORD(element_num IN NUMBER, element_desc IN VARCHAR2(30));

TYPE fg_tab IS TABLE OF fg_rec;
Dependencies
DBA_FINE_GRAIN_DEPENDENCIES PUBLIC_FINE_GRAIN_DEPENDENCY UTL_RAW
DEPENDENCY$ PUBLIC_SYN_BASE  
Documented No
First Available 11.2.0.2
Security Model Owned by SYS with no privileges granted
Source $ORACLE_HOME/rdbms/admin/dbmsfgd.sql
This package is not part of the default installation. To create the object package and associated views the script must be run manually.
 
FG_ELEMENTS
Translates, into human readable form,  fine grain dependency information fg_elements(bitvec IN RAW) RETURN fg_tab PIPELINED;
conn sys@pdbdev as sysdba

desc dependency$

desc dba_fine_grain_dependencies

SELECT COUNT(*)
FROM dba_fine_grain_dependencies;

SELECT element_desc, COUNT(*)
FROM dba_fine_grain_dependencies
GROUP BY element_desc;

col owner format a20
col type format a15
col referenced_name format a20

SELECT owner, name, type, referenced_name, element_desc
FROM dba_fine_grain_dependencies;
DDL for DBA_FINE_GRAIN_DEPENDENCIES (edited for brevity and clarity) CREATE OR REPLACE FORCE VIEW sys.fine_grain_dependencies AS
SELECT u.name, o.name,
  DECODE(o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER',
          4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 7, 'PROCEDURE',
          8, 'FUNCTION', 9, 'PACKAGE', 10, 'NON-EXISTENT',
         11, 'PACKAGE BODY', 12, 'TRIGGER',
         13, 'TYPE', 14, 'TYPE BODY', 22, 'LIBRARY',
         28, 'JAVA SOURCE', 29, 'JAVA CLASS',
         32, 'INDEXTYPE', 33, 'OPERATOR',
         42, 'MATERIALIZED VIEW', 43, 'DIMENSION',
         46, 'RULE SET', 55, 'XML SCHEMA', 56, 'JAVA DATA',
         59, 'RULE', 62, 'EVALUATION CONTXT', 87, 'ASSEMBLY',
         92, 'CUBE DIMENSION', 93, 'CUBE',
         94, 'MEASURE FOLDER', 95, 'CUBE BUILD PROCESS', 'UNDEFINED'),
  DECODE(po.linkname, null, pu.name, po.remoteowner), po.name,
  DECODE(po.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER',
          4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 7, 'PROCEDURE',
          8, 'FUNCTION', 9, 'PACKAGE', 10, 'NON-EXISTENT',
         11, 'PACKAGE BODY', 12, 'TRIGGER',
         13, 'TYPE', 14, 'TYPE BODY', 22, 'LIBRARY',
         28, 'JAVA SOURCE', 29, 'JAVA CLASS',
         32, 'INDEXTYPE', 33, 'OPERATOR',
         42, 'MATERIALIZED VIEW', 43, 'DIMENSION',
         46, 'RULE SET', 55, 'XML SCHEMA', 56, 'JAVA DATA',
         59, 'RULE', 62, 'EVALUATION CONTXT', 87, 'ASSEMBLY',
         92, 'CUBE DIMENSION', 93, 'CUBE',
         94, 'MEASURE FOLDER', 95, 'CUBE BUILD PROCESS', 'UNDEFINED'),
  po.linkname,
  DECODE(BITAND(d.property, 3), 2, 'REF', 'HARD'),
  e.element_num, e.element_desc
FROM sys."_CURRENT_EDITION_OBJ" o, sys.disk_and_fixed_objects po,
     sys.dependency$ d, sys.user$ u, sys.user$ pu,
     TABLE(dbms_fine_grain_dep.fg_elements(d.d_attrs)) e
WHERE o.obj# = d.d_obj#
AND o.owner# = u.user#
AND po.obj# = d.p_obj#
AND po.owner# = pu.user#;

Related Topics
Functions
Packages
Procedures
Operators
Triggers

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2014 Daniel A. Morgan All Rights Reserved