Oracle Built−in Packages- P163

Oracle Built−in Packages- P163: Ah, for the good old days of Version of PL /SQL! Life was so simple then. No stored procedures or functions and certainly no packages. You had your set of built−in functions, like SUBSTR and TO_DATE. You had the IF statement and various kinds of loops. With these tools at hand, you built your batch−processing scripts for execution in SQL*Plus, and you coded your triggers in SQL*Forms , and you went home at night content with a good day's work done. | Appendix A What s on the Companion Disk Exceptions The GET_ARG_TYPE function may raise the following exception Name Number Description NO_DATA_FOUND -100 Specified argument does not exist for specified RPC call Example This example shows how you use the GET_ARG_TYPE function to determine the datatypes of a queued call 1 DECLARE 2 vDataType NUMBER 3 BEGIN 4 vDataType 5 callno 9929966326029 6 deferred_tran_db 7 arg_no 3 8 deferred_tran_id 9 Datatype for arg 1 is vDataType 10 END SYSTEM@D7CA SQL Datatype for arg 3 is 1 PL SQL procedure successfully completed. Here we see that the third argument passed to is of type VARCHAR2. Now you can use the GET_VARCHAR2_ARG function described in the next section to determine the value passed. 1 DECLARE 2 vArgValue VARCHAR2 80 3 BEGIN 4 vArgValue 5 callno 9929966326029 6 deferred_tran_db 7 arg_no 3 8 deferred_tran_id 9 Argument 3 is vArgValue 10 END SYSTEM@D7CA SQL Argument 3 is Mens 18 Speed Racer PL SQL procedure successfully completed. Here we see that the actual value passed was Mens 18 Speed Racer. The procedure The GET_CALL_ARGS procedure allows you to obtain the datatypes and values for all arguments passed to a procedure in a single call. This is the easiest way to obtain information about the datatypes and values of all passed parameters. Here is the specification PROCEDURE callno IN NUMBER startarg IN NUMBER 1 argent IN NUMBER argsize IN NUMBER tran_db IN VARCHAR2 tran_id IN VARCHAR2 date_fmt IN VARCHAR2 types OUT TYPE_ARY vals OUT VAL_ARY Getting Started with DBMS_DEFER_QUERY 801 Appendix A What s on the Companion Disk Parameters are summarized in the following table. Name Description callno The CALLNO of the RPC as stored in the DEFCALL data

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.