Debugging stored procedures

#myBatis of xml or xml PLSQL write directly call a stored procedure eg: {call procedureName (?,? )};
About debugging:

Method 1: Oracle SQL Developer, the debug stored procedures;

Method two: Run PLSQL view the log analysis DBMS_OUTPUT.PUT_LINE debugging.

Test Procedure or Replace Create (
the param1 VARCHAR2 default in 'A',
param2 VARCHAR2 default in 'B',
Param3 OUT Number)
AS
the begin
SELECT INTO Param3 from 1 Dual;
DBMS_OUTPUT.PUT_LINE ( 'returns the value of more than 1 line' || param1 || '-' || || param2 '=' || Param3);
End Test;
/ * procedure stored debug * /
DECLARE
P1 VARCHAR (40);
P2 VARCHAR (40);
O1 Number;
the begin
P1: = 'ABC';
P2: = 'CDE';
--test (A1, A2, O1);
Test (the param1 => A1, param2 => A2, Param3 => O1);
End;

Guess you like

Origin www.cnblogs.com/wangxinbo/p/11184423.html