When I wrap a package with Oracle's WRAP utility, the wrapped code usually has one blank line at the end (before the slash). Sometimes it has two.
When it has two blank lines, and I compile the wrapped code with a TOraQuery, I always get an 'PLS-00753: malformed or currupted wrapped unit' error. If there is only one blank line at the end of the wrapped code, there is no problem. Also, if I use SQL*Plus to compile the wrapped code with two blank lines at the end, it compiles without errors.
I think ODAC is trimming out one or both of the blank lines before sending the code to Oracle.
Here is a procedure source code that wraps with two blank lines at the end.
Code: Select all
CREATE OR REPLACE PROCEDURE do_nothing is
TYPE CURSOR_TYPE IS REF CURSOR;
a_username VARCHAR2(30);
p_cursor CURSOR_TYPE;
BEGIN
a_username := 'z';
null;
null;
null; null;
null; null; null; null;
null;
null;
END do_nothing;
/Code: Select all
CREATE OR REPLACE PROCEDURE do_nothing wrapped
a000000
b2
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
7
eb db
VvIVu2tyJMltn30t1dd1XSmCTUcwg3lZmMsVfC8Lueow1X7n32ZAUHZ5GsD00bLTXm8UcN4f
G7xBpS/maZYzkCyHcekbnu5XGj9TQZZzvd+OZ7+lRsXyuPFBgznneZqWjbZ7lWcVI4Ddhww9
EZNZnE5Y5t8QI0T3CA1RGLI9p6qDVDvMGZfGFsZhc4YIx2jkfC03UvRMsVTiPV3LeWh7tQ==
/Can you reproduce this and can it be fixed? If there is some code somewhere that is causing the blank lines to be trimmed, please let me know.
Thank you.
John Dorlon