O'reilly oracle - sql programming

2,933 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,933
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
134
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

O'reilly oracle - sql programming

  1. 1. [Appendix A] Whats on the Companion Disk?
  2. 2. [Appendix A] Whats on the Companion Disk? Table of Contents A. Whats on the Companion Disk?..................................................................................................................2 A.1 Installing the Guide...........................................................................................................................2...............................................................................................................................................................................3 A.2 Using the Guide................................................................................................................................3...............................................................................................................................................................................5 B. Calling Stored Procedures from PL/SQL Version 1.1................................................................................6 B.1 Using Stubs to Talk to Server−Side PL/SQL ....................................................................................7...............................................................................................................................................................................9 B.2 Restrictions on Calling Stored Procedures........................................................................................9 B.2.1 No Server−Side PL/SQL Datatypes..................................................................................9 B.2.2 No Direct Stored Package Variable References ..............................................................10 B.2.3 No Direct Remote Procedure Calls.................................................................................12 B.2.4 No Default Parameter Values ..........................................................................................12.............................................................................................................................................................................14 C. Built−In Packages........................................................................................................................................15 C.1 Using the Built−in Packages...........................................................................................................16.............................................................................................................................................................................18 C.2 DBMS_ALERT ...............................................................................................................................18 C.2.1 The REGISTER procedure.............................................................................................18 C.2.2 The REMOVE procedure ................................................................................................18 C.2.3 The REMOVEALL procedure........................................................................................18 C.2.4 The SET_DEFAULTS procedure...................................................................................18 C.2.5 The SIGNAL procedure..................................................................................................18 C.2.6 The WAITANY procedure.............................................................................................19 C.2.7 The WAITONE procedure..............................................................................................19.............................................................................................................................................................................20 C.3 Oracle AQ, the Advanced Queueing Facility ..................................................................................20 C.3.1 DBMS_AQ (PL/SQL 8 Only) .........................................................................................20 C.3.2 DBMS_AQADM (PL/SQL 8 Only)...............................................................................21.............................................................................................................................................................................24 C.4 DBMS_DDL...................................................................................................................................24 C.4.1 The ALTER_COMPILE procedure................................................................................24 C.4.2 The ANALYZE_OBJECT procedure.............................................................................24.............................................................................................................................................................................25 C.5 DBMS_ JOB...................................................................................................................................25 C.5.1 The BROKEN procedure................................................................................................25 C.5.2 The CHANGE procedure................................................................................................25 C.5.3 The INTERVAL procedure .............................................................................................25 C.5.4 The ISUBMIT procedure................................................................................................25 C.5.5 The NEXT_DATE procedure.........................................................................................26 C.5.6 The REMOVE procedure ................................................................................................26 C.5.7 The RUN procedure........................................................................................................26 C.5.8 The SUBMIT procedure.................................................................................................26 C.5.9 The USER_EXPORT procedure.....................................................................................26 C.5.10 The WHAT procedure ...................................................................................................26.............................................................................................................................................................................28 C.6 DBMS_LOB (PL/SQL8 Only).......................................................................................................28 C.6.1 The APPEND procedure.................................................................................................28 C.6.2 The COMPARE function................................................................................................28 C.6.3 The COPY procedure......................................................................................................29 i
  3. 3. [Appendix A] Whats on the Companion Disk? Table of Contents C.6.4 The ERASE procedure....................................................................................................29 C.6.5 The FILECLOSE procedure...........................................................................................29 C.6.6 The FILECLOSEALL procedure ....................................................................................29 C.6.7 The FILEEXISTS function.............................................................................................29 C.6.8 The FILEGETNAME procedure .....................................................................................29 C.6.9 The FILEISOPEN function.............................................................................................30 C.6.10 The FILEOPEN procedure ............................................................................................30 C.6.11 The GETLENGTH function.........................................................................................30 C.6.12 The INSTR function ......................................................................................................30 C.6.13 The READ procedure ....................................................................................................30 C.6.14 The SUBSTR function..................................................................................................31 C.6.15 The TRIM procedure .....................................................................................................31 C.6.16 The WRITE procedure..................................................................................................31.............................................................................................................................................................................33 C.7 DBMS_LOCK .................................................................................................................................33 C.7.1 The ALLOCATE_UNIQUE procedure..........................................................................33 C.7.2 The CONVERT function................................................................................................33 C.7.3 The RELEASE function ..................................................................................................34 C.7.4 The REQUEST function.................................................................................................34 C.7.5 The SLEEP procedure.....................................................................................................34.............................................................................................................................................................................36 C.8 DBMS_MAIL.................................................................................................................................36 C.8.1 The SEND procedure......................................................................................................36.............................................................................................................................................................................37 C.9 DBMS_OUTPUT............................................................................................................................37 C.9.1 The DISABLE procedure ................................................................................................37 C.9.2 The ENABLE procedure.................................................................................................37 C.9.3 The GET_LINE procedure ..............................................................................................37 C.9.4 The GET_LINES procedure...........................................................................................37 C.9.5 The NEW_LINE procedure............................................................................................37 C.9.6 The PUT procedure.........................................................................................................38 C.9.7 The PUT_LINE procedure..............................................................................................38.............................................................................................................................................................................39 C.10 DBMS_PIPE.................................................................................................................................39 C.10.1 The CREATE_PIPE function.......................................................................................39 C.10.2 The NEXT_ITEM_TYPE function...............................................................................39 C.10.3 The PACK_MESSAGE procedure...............................................................................40 C.10.4 The PURGE procedure.................................................................................................40 C.10.5 The RECEIVE_MESSAGE function ............................................................................40 C.10.6 The REMOVE_PIPE function......................................................................................40 C.10.7 The RESET_BUFFER procedure.................................................................................40 C.10.8 The SEND_MESSAGE function..................................................................................41 C.10.9 The UNIQUE_SESSION_NAME function..................................................................41 C.10.10 The UNPACK_MESSAGE procedure.......................................................................41.............................................................................................................................................................................42 C.11 DBMS_ROWID (PL/SQL8 Only)................................................................................................42 C.11.1 The ROWID_CREATE function..................................................................................42 C.11.2 The ROWID_INFO procedure ......................................................................................42 C.11.3 The ROWID_TYPE function ........................................................................................42 C.11.4 The ROWID_OBJECT function...................................................................................42 C.11.5 The ROWID_RELATIVE_FNO function....................................................................43 C.11.6 The ROWID_BLOCK_NUMBER function.................................................................43 ii
  4. 4. [Appendix A] Whats on the Companion Disk? Table of Contents C.11.7 The ROWID_ROW_NUMBER function.....................................................................43 C.11.8 The ROWID_TO_ABSOLUTE_FNO function...........................................................43 C.11.9 The ROWID_TO_EXTENDED function.....................................................................43 C.11.10 The ROWID_TO_RESTRICTED function................................................................43 C.11.11 The ROWID_VERIFY function..............................................................