Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
DBMS_DEBUG, 19 of 27
This function sets a value in the currently-running program. There are two overloaded SET_VALUE
functions.
DBMS_DEBUG.SET_VALUE ( frame# IN binary_integer, assignment_statement IN varchar2) RETURN BINARY_INTEGER;
This form of SET_VALUE
sets the value of a package variable.
DBMS_DEBUG.SET_VALUE ( handle IN program_info, assignment_statement IN VARCHAR2) RETURN BINARY_INTEGER;
Return | Description |
---|---|
error_no_such_object |
- Package is not instantiated. - User does not have privileges to debug the package. - Object does not exist in the package. |
In some cases, the PL/SQL compiler uses temporaries to access package variables, and Probe does not guarantee to update such temporaries. It is possible, although unlikely, that modification to a package variable using SET_VALUE
might not take effect for a line or two.
To set the value of SCOTT
.PACK
.var
to 6:
DECLARE handle dbms_debug.program_info; retval BINARY_INTEGER; BEGIN handle.Owner := 'SCOTT'; handle.Name := 'PACK'; handle.namespace := dbms_debug.namespace_pkgspec_or_toplevel; retval := dbms_debug.set_value(handle, 'var := 6;'); END;
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|