Check package reference : user_dependencies « System Tables Data Dictionary « Oracle PL/SQL Tutorial

Oracle PL/SQL Tutorial
1. Introduction
2. Query Select
3. Set
4. Insert Update Delete
5. Sequences
6. Table
7. Table Joins
8. View
9. Index
10. SQL Data Types
11. Character String Functions
12. Aggregate Functions
13. Date Timestamp Functions
14. Numerical Math Functions
15. Conversion Functions
16. Analytical Functions
17. Miscellaneous Functions
18. Regular Expressions Functions
19. Statistical Functions
20. Linear Regression Functions
21. PL SQL Data Types
22. PL SQL Statements
23. PL SQL Operators
24. PL SQL Programming
25. Cursor
26. Collections
27. Function Procedure Packages
28. Trigger
29. SQL PLUS Session Environment
30. System Tables Data Dictionary
31. System Packages
32. Object Oriented
33. XML
34. Large Objects
35. Transaction
36. User Privilege
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL/SQL Tutorial » System Tables Data Dictionary » user_dependencies 
30. 79. 5. Check package reference
SQL>
SQL> create table t int );

Table created.

SQL>
SQL> create or replace view v as select from t;

View created.

SQL>
SQL> create or replace procedure p
  2  as
  3  begin
  4          for x in select from )
  5          loop
  6                  null;
  7          end loop;
  8  end;
  9  /


SQL>
SQL> create or replace function return number
  2  as
  3          countValue number;
  4  begin
  5          select count(*into countValue from t;
  6          return countValue;
  7  end;
  8  /

Function created.

SQL>
SQL>
SQL> create or replace procedure p2
  2  as
  3  begin
  4          p;
  5  end;
  6  /

Warning: Procedure created with compilation errors.

SQL>
SQL> create or replace package p1
  2  as
  3          procedure p;
  4  end;
  5  /



SQL>
SQL> create or replace package body p1
  2  as
  3  procedure p
  4  as
  5  begin
  6          for x in select from )
  7          loop
  8                  null;
  9          end loop;
 10  end;
 11  end p1;
 12  /

Warning: Package Body created with compilation errors.

SQL>
SQL> create or replace package p2
  2  as
  3          procedure p;
  4  end;
  5  /



SQL>
SQL> create or replace package body p2
  2  as
  3  procedure p
  4  as
  5  begin
  6          p1.p;
  7  end;
  8  end p2;
  9  /

Warning: Package Body created with compilation errors.

SQL>
SQL> select name, type, referenced_name, referenced_type
  2    from user_dependencies
  3   where referenced_owner = user  and rownum < 20
  4   order by name
  5  /

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
COMPILEERROR                   PROCEDURE
DUAL
NON-EXISTENT

COMPILE_ERROR                  PROCEDURE
DUAL
NON-EXISTENT

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------

DEFINER_RIGHTS                 PACKAGE BODY
DUAL
NON-EXISTENT

LOOPING_EXAMPLE                PROCEDURE
DBMS_OUTPUT

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
NON-EXISTENT

MONTH_GENERATOR                FUNCTION
SQLMONTH_TABLETYPE
TYPE

MONTH_GENERATOR_PIPED          FUNCTION

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
SQLMONTH_TABLETYPE
TYPE

ORD_GENERATOR                  FUNCTION
ORD_TYPE
TYPE


NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
ORD_GENERATOR                  FUNCTION
ORD_TABLE
TYPE

ORD_GENERATOR_PIPED            FUNCTION
ORD_TABLE
TYPE

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------

ORD_GENERATOR_PIPED            FUNCTION
ORD_TYPE
TYPE

ORD_TABLE                      TYPE
ORD_TYPE

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
TYPE

PRODUCT_PACKAGE                PACKAGE BODY
PRODUCT_PACKAGE
PACKAGE

P_ADD_ORDERS                   PROCEDURE

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
DUAL
NON-EXISTENT

P_ADD_ORDERS                   PROCEDURE
ORDER_SEQ
NON-EXISTENT


NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
P_ADD_ORDERS                   PROCEDURE
P_ADD_ITEMS
PROCEDURE

P_ADD_PROD                     PROCEDURE
PRODUCT_SEQ
NON-EXISTENT

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------

READCLOB                       PROCEDURE
DBMS_OUTPUT
NON-EXISTENT

TEMPERATURE_CONVERSION         PROCEDURE
DBMS_OUTPUT

NAME                           TYPE
------------------------------ -----------------
REFERENCED_NAME
----------------------------------------------------------------
REFERENCED_TYPE
-----------------
NON-EXISTENT

USE_G2                         FUNCTION
DUAL
NON-EXISTENT


19 rows selected.
30. 79. user_dependencies
30. 79. 1. Query user_dependencies
30. 79. 2. Query user_dependencies for reference name
30. 79. 3. Query user_dependencies for a function
30. 79. 4. Check dependencies for procedure
30. 79. 5. Check package reference
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.