Query dba_ddl_locks table before and after recompile a procedure : dba_ddl_locks « System Tables Views « Oracle PL / SQL

Oracle PL / SQL
1. Aggregate Functions
2. Analytical Functions
3. Char Functions
4. Constraints
5. Conversion Functions
6. Cursor
7. Data Type
8. Date Timezone
9. Hierarchical Query
10. Index
11. Insert Delete Update
12. Large Objects
13. Numeric Math Functions
14. Object Oriented Database
15. PL SQL
16. Regular Expressions
17. Report Column Page
18. Result Set
19. Select Query
20. Sequence
21. SQL Plus
22. Stored Procedure Function
23. Subquery
24. System Packages
25. System Tables Views
26. Table
27. Table Joins
28. Trigger
29. User Previliege
30. View
31. XML
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 Tutorial
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 » System Tables Views » dba_ddl_locks 
Query dba_ddl_locks table before and after recompile a procedure
 
SQL>
SQL> create or replace procedure p as begin nullend;
  2  /

Procedure created.

SQL>
SQL> exec p;

PL/SQL procedure successfully completed.

SQL>
SQL> select from dba_ddl_locks;
SESSION_ID OWNER                          NAME                 TYPE                                  MODE_HELD MODE_REQU
---------- ------------------------------ -------------------- ---------------------------------------- --------- ---------
        40 SYS                            AQ$_ALERT_QT_E       10                                       Null      None
        40 SYS                            DBMS_HA_ALERTS_PRVT  Body                                     Null      None
        40 SYS                            DBMS_RCVMAN          Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_PRVT_TRACE      Table/Procedure/Type                     Null      None
        40 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        40 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_HA_ALERTS_PRVT  Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_PRVT_TRACE      Body                                     Null      None
        40 SYS                            DBMS_APPLICATION_INF Table/Procedure/Type                     Null      None
                                          O

        40 SYS                            STANDARD             Body                                     Null      None
        40 SYS                            ALERT_QUE            10                                       Null      None
        40 SYS                            DBMS_APPLICATION_INF Body                                     Null      None
                                          O

        40 SYS                            DBMS_BACKUP_RESTORE  Body                                     Null      None
        40 SYS                            ALERT_QUE_R          23                                       Null      None
        40 SYS                            DBMS_BACKUP_RESTORE  Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_RCVMAN          Body                                     Null      None
        29 SYS                            DICTIONARY_OBJ_OWNER Table/Procedure/Type                     Null      None
        29 SYS                            DBMS_SYS_SQL         Body                                     Null      None
        29 XDB                            DBMS_XDBZ0           Body                                     Null      None
        29 SYS                            DBMS_SYS_SQL         Table/Procedure/Type                     Null      None
        29 SYS                            DBMS_OUTPUT          Body                                     Null      None
        29 JAVA2S                         ADDRESS              Table/Procedure/Type                     Null      None
        29 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        29 SYS                            DATABASE             18                                       Null      None
        29 SYS                            DBMS_SQL             Body                                     Null      None
        29 SYS                            DBMS_APPLICATION_INF Table/Procedure/Type                     Null      None
                                          O

        29 JAVA2S                         GETEMPBLDGNAME       Table/Procedure/Type                     Null      None
        29 SYS                            STANDARD             Body                                     Null      None
        29 SYS                            AW_DROP_PROC         Table/Procedure/Type                     Null      None
        29 SYS                            IDGEN1$              Table/Procedure/Type                     Null      None
        29 JAVA2S                         JAVA2S               18                                       Null      None
        29 JAVA2S                         ASSIGNEMPTOBLDG      Table/Procedure/Type                     Null      None
        29 SYS                            DBMS_SQL             Table/Procedure/Type                     Null      None
        29 XDB                            DBMS_XDBZ0           Table/Procedure/Type                     Null      None
        29 JAVA2S                         ADDRESS              Body                                     Null      None
        29 SYS                            DBMS_APPLICATION_INF Body                                     Null      None
                                          O

        29 SYS                            DICTIONARY_OBJ_NAME  Table/Procedure/Type                     Null      None
        23 JAVA2S                         PRINT_TABLE          Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_RANDOM          Table/Procedure/Type                     Null      None
        23 SYS                            DICTIONARY_OBJ_OWNER Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_STANDARD        Table/Procedure/Type                     Null      None
        23 XDB                            DBMS_XDBZ0           Body                                     Null      None
        23 JAVA2S                         DEPT_SEQ             Table/Procedure/Type                     Null      None
        23 JAVA2S                         P                    Table/Procedure/Type                     Null      None
        23 SYS                            XML_SCHEMA_NAME_PRES Table/Procedure/Type                     Null      None
                                          ENT

        23 SYS                            DBMS_SYS_SQL         Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_OUTPUT          Body                                     Null      None
        23 XDB                            XDuubYCRNYQDOCOoaecR 25                                       Share     None
                                          Uoig==

        23 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        23 SYS                            XML_SCHEMA_NAME_PRES Body                                     Null      None
                                          ENT

        23 SYS                            ORA_PLAN_ID_SEQ$     Table/Procedure/Type                     Null      None
        23 SYS                            UTL_RAW              Body                                     Null      None
        23 SYS                            UTL_RAW              Table/Procedure/Type                     Null      None
        23                                V1                   43                                       Null      None
        23 SYS                            DICTIONARY_OBJ_TYPE  Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_ASSERT          Body                                     Null      None
        23 SYS                            DBMS_SYS_ERROR       Table/Procedure/Type                     Null      None
        23 JAVA2S                         VIRTUAL_TABLE        Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_UTILITY         Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_UTIL   Table/Procedure/Type                     Null      None
        23 JAVA2S                         PIVOT                Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_FLASHBACK       Body                                     Null      None

SESSION_ID OWNER                          NAME                 TYPE                                  MODE_HELD MODE_REQU
---------- ------------------------------ -------------------- ---------------------------------------- --------- ---------
        23 SYS                            DATABASE             18                                       Null      None
        23 SYS                            DBMS_SQL             Body                                     Null      None
        23 XDB                            XD8Vf3vgTDR1aSQOGkEt 25                                       Share     None
                                          R2uQ==

        23 SYS                            DBMS_OUTPUT          Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_INT    Body                                     Null      None
        23 SYS                            DBMS_APPLICATION_INF Table/Procedure/Type                     Null      None
                                          O

        23 SYS                            STANDARD             Body                                     Null      None
        23 XDB                            XDh1jUheYAR5PgNAgAIL 25                                       Share     None
                                          JCxg==

        23 SYS                            AW_DROP_PROC         Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_LOB             Table/Procedure/Type                     Null      None
        23 SYS                            IDGEN1$              Table/Procedure/Type                     Null      None
        23 XDB                            XDbD/PLZ01TcHgNAgAII 25                                       Share     None
                                          egtw==

        23 JAVA2S                         JAVA2S               18                                       Null      None
        23 XDB                            XDB$EXTNAME2INTNAME  Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA        Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_SYS_ERROR       Body                                     Null      None
        23 SYS                            DBMS_SQL             Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_UTIL   Body                                     Null      None
        23 SYS                            DBMS_XPLAN           Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA        Body                                     Null      None
        23 SYS                            DBMS_FLASHBACK       Table/Procedure/Type                     Null      None
        23 JAVA2S                         COMPANY_LISTING      Table/Procedure/Type                     Null      None
        23 XDB                            DBMS_XDBZ0           Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_XPLAN           Body                                     Null      None
        23 SYS                            DBMS_UTILITY         Body                                     Null      None
        23 SYS                            XMLTYPE              Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_APPLICATION_INF Body                                     Null      None
                                          O

        23 JAVA2S                         EMP_SEQ              Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_INT    Table/Procedure/Type                     Null      None
        23 SYS                            OBJECT_GRANT         Table/Procedure/Type                     Null      None
        23 SYS                            DICTIONARY_OBJ_NAME  Table/Procedure/Type                     Null      None
        23 SYS                            XMLTYPE              Body                                     Null      None
        23 JAVA2S                         REMOVE_CONSTANTS     Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_LOB             Body                                     Null      None
        23 SYS                            DBMS_ASSERT          Table/Procedure/Type                     Null      None

97 rows selected.

SQL>
SQL> alter procedure p compile;

Procedure altered.

SQL>
SQL> select from dba_ddl_locks;
SESSION_ID OWNER                          NAME                 TYPE                                  MODE_HELD MODE_REQU
---------- ------------------------------ -------------------- ---------------------------------------- --------- ---------
        40 SYS                            AQ$_ALERT_QT_E       10                                       Null      None
        40 SYS                            DBMS_HA_ALERTS_PRVT  Body                                     Null      None
        40 SYS                            DBMS_RCVMAN          Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_PRVT_TRACE      Table/Procedure/Type                     Null      None
        40 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        40 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_HA_ALERTS_PRVT  Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_PRVT_TRACE      Body                                     Null      None
        40 SYS                            DBMS_APPLICATION_INF Table/Procedure/Type                     Null      None
                                          O

        40 SYS                            STANDARD             Body                                     Null      None
        40 SYS                            ALERT_QUE            10                                       Null      None
        40 SYS                            DBMS_APPLICATION_INF Body                                     Null      None
                                          O

        40 SYS                            DBMS_BACKUP_RESTORE  Body                                     Null      None
        40 SYS                            ALERT_QUE_R          23                                       Null      None
        40 SYS                            DBMS_BACKUP_RESTORE  Table/Procedure/Type                     Null      None
        40 SYS                            DBMS_RCVMAN          Body                                     Null      None
        29 SYS                            DICTIONARY_OBJ_OWNER Table/Procedure/Type                     Null      None
        29 SYS                            DBMS_SYS_SQL         Body                                     Null      None
        29 XDB                            DBMS_XDBZ0           Body                                     Null      None
        29 SYS                            DBMS_SYS_SQL         Table/Procedure/Type                     Null      None
        29 SYS                            DBMS_OUTPUT          Body                                     Null      None
        29 JAVA2S                         ADDRESS              Table/Procedure/Type                     Null      None
        29 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        29 SYS                            DATABASE             18                                       Null      None
        29 SYS                            DBMS_SQL             Body                                     Null      None
        29 SYS                            DBMS_APPLICATION_INF Table/Procedure/Type                     Null      None
                                          O

        29 JAVA2S                         GETEMPBLDGNAME       Table/Procedure/Type                     Null      None
        29 SYS                            STANDARD             Body                                     Null      None
        29 SYS                            AW_DROP_PROC         Table/Procedure/Type                     Null      None
        29 SYS                            IDGEN1$              Table/Procedure/Type                     Null      None
        29 JAVA2S                         JAVA2S               18                                       Null      None
        29 JAVA2S                         ASSIGNEMPTOBLDG      Table/Procedure/Type                     Null      None
        29 SYS                            DBMS_SQL             Table/Procedure/Type                     Null      None
        29 XDB                            DBMS_XDBZ0           Table/Procedure/Type                     Null      None
        29 JAVA2S                         ADDRESS              Body                                     Null      None
        29 SYS                            DBMS_APPLICATION_INF Body                                     Null      None
                                          O


SESSION_ID OWNER                          NAME                 TYPE                                  MODE_HELD MODE_REQU
---------- ------------------------------ -------------------- ---------------------------------------- --------- ---------
        29 SYS                            DICTIONARY_OBJ_NAME  Table/Procedure/Type                     Null      None
        23 JAVA2S                         PRINT_TABLE          Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_RANDOM          Table/Procedure/Type                     Null      None
        23 SYS                            DICTIONARY_OBJ_OWNER Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_SYS_SQL         Body                                     Null      None
        23 XDB                            DBMS_XDBZ0           Body                                     Null      None
        23 SYS                            XML_SCHEMA_NAME_PRES Table/Procedure/Type                     Null      None
                                          ENT

        23 SYS                            DBMS_SYS_SQL         Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_OUTPUT          Body                                     Null      None
        23 XDB                            XDuubYCRNYQDOCOoaecR 25                                       Share     None
                                          Uoig==

        23 SYS                            PLITBLM              Table/Procedure/Type                     Null      None
        23 SYS                            XML_SCHEMA_NAME_PRES Body                                     Null      None
                                          ENT

        23 SYS                            ORA_PLAN_ID_SEQ$     Table/Procedure/Type                     Null      None
        23 SYS                            UTL_RAW              Body                                     Null      None
        23 SYS                            UTL_RAW              Table/Procedure/Type                     Null      None
        23                                V1                   43                                       Null      None
        23 SYS                            DICTIONARY_OBJ_TYPE  Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_ASSERT          Body                                     Null      None
        23 SYS                            DBMS_SYS_ERROR       Table/Procedure/Type                     Null      None
        23 JAVA2S                         VIRTUAL_TABLE        Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_UTILITY         Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_UTIL   Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_RANDOM          Body                                     Null      None
        23 JAVA2S                         PIVOT                Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_FLASHBACK       Body                                     Null      None
        23 SYS                            DATABASE             18                                       Null      None
        23 SYS                            DBMS_SQL             Body                                     Null      None
        23 XDB                            XD8Vf3vgTDR1aSQOGkEt 25                                       Share     None
                                          R2uQ==

        23 SYS                            DBMS_OUTPUT          Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_INT    Body                                     Null      None
        23 SYS                            DBMS_APPLICATION_INF Table/Procedure/Type                     Null      None
                                          O

        23 SYS                            STANDARD             Body                                     Null      None
        23 XDB                            XDh1jUheYAR5PgNAgAIL 25                                       Share     None
                                          JCxg==

        23 SYS                            AW_DROP_PROC         Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_LOB             Table/Procedure/Type                     Null      None
        23 SYS                            IDGEN1$              Table/Procedure/Type                     Null      None
        23 XDB                            XDbD/PLZ01TcHgNAgAII 25                                       Share     None
                                          egtw==

        23 JAVA2S                         JAVA2S               18                                       Null      None
        23 XDB                            XDB$EXTNAME2INTNAME  Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA        Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_SYS_ERROR       Body                                     Null      None
        23 SYS                            DBMS_SQL             Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_UTIL   Body                                     Null      None
        23 SYS                            DBMS_XPLAN           Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA        Body                                     Null      None
        23 SYS                            DBMS_FLASHBACK       Table/Procedure/Type                     Null      None
        23 JAVA2S                         COMPANY_LISTING      Table/Procedure/Type                     Null      None
        23 XDB                            DBMS_XDBZ0           Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_XPLAN           Body                                     Null      None
        23 SYS                            DBMS_UTILITY         Body                                     Null      None
        23 SYS                            XMLTYPE              Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_APPLICATION_INF Body                                     Null      None
                                          O

        23 JAVA2S                         EMP_SEQ              Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_METADATA_INT    Table/Procedure/Type                     Null      None
        23 SYS                            OBJECT_GRANT         Table/Procedure/Type                     Null      None
        23 SYS                            DICTIONARY_OBJ_NAME  Table/Procedure/Type                     Null      None
        23 SYS                            XMLTYPE              Body                                     Null      None
        23 JAVA2S                         REMOVE_CONSTANTS     Table/Procedure/Type                     Null      None
        23 SYS                            DBMS_LOB             Body                                     Null      None
        23 SYS                            DBMS_ASSERT          Table/Procedure/Type                     Null      None

96 rows selected.

SQL>
SQL> --

 
Related examples in the same category
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.