1. Use the Export User Objects tool to export the packages to source files (1 file per object).
2. Generate a script that performs the wrapping. For example:
Code:
set feedback off
set heading off
spool w:\exports\wrapall.cmd
select 'wrap iname=' || o.object_name || '.bdy'
from user_objects o
where o.object_type = 'PACKAGE BODY'
order by o.object_name;
spool off
set feedback on
set heading on
You can run this script from the Command Window.
3. Run the generated wrapall.cmd script from the Windows command line.