dbms_utility

liangxichen發表於2011-12-26
CREATE OR REPLACE PROCEDURE lc_test IS
v NUMBER;
BEGIN
SELECT cnt
INTO v
FROM (SELECT 1 cnt
FROM dual
UNION ALL
SELECT 2 cnt
FROM dual);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(dbms_utility.format_error_stack);
dbms_output.put_line(dbms_utility.format_call_stack);
dbms_output.put_line(dbms_utility.format_error_backtrace());
END;[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/59792/viewspace-1056959/,如需轉載,請註明出處,否則將追究法律責任。