例如我有一个pl/sql文件:test.sql
现在OS的终端下执行:wrap iname=test.sql
[oracle@hostname]:/users/oracle>$ wrap iname=test.sql
PL/SQL Wrapper: Release 10.2.0.4.0- Production on 星期一 3月 28 10:08:04 2011
Copyright (c) 1993, 2004, Oracle. All rights reserved.
Processing test.sql to test.plb
生成文件test.plb
然后执行sqlplus iscs/naritech@hostname/dbname @test.plb
就可以在数据库中生成如下文本了:
CREATE OR REPLACE FUNCTION TEST2 wrapped
a000000
352
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
8
1428 426
nZPk0By0zlfBtmMBthKRex141JUwg81UuiCDfI4Z9vjV/xO2PsMu1Gqe/IRaWfRv04t1XHrp
kwh38o4vsphaOggDtsElIWOgibIy6eXsdk/ZwXIiLIDSxkHppJodGB0nFneKvlfSR6jLnew2
zk8qfPRrNySeKZFGmW0jWXyktmR8qYh2HTYPaHwOopZHGD8noD1IvpEhVjGTSKbGjJTqFkzw
6zOwdw1Phu3dIaAuJ+hr0IZhz7960hziTXqcaPuW7DdyNxpK0/IoD1cctaqOcB+6jhjxFa9k
OdL0JDYFLREW9nuHmgfZ+xsE8jC4yyrY6BfqzMAHq8n7hlrgYh691TOKuVJKUGUddOKq9PRm
KAwu/tvzMKlIi79+lO8O5GIqLJSAPa1bRhodaEeGRA4UvihlocisRd5xQ8rpyuTjyfaf6uIz
EOE8dTZuLGkU3j3N7YkbT7R1ZyDxScd+XCv1EKoULNUfyNbZT7eipnsmDo/4s57blXOGqBNI
jTmBISdYZgEk2V60FP4joSOyY8w13rhZMUmhexy8ejXwS8dkxc+TxrRF3DTnsMxHiTQcqp1F
SiuXQEWr5rb53rIHYgVAr90Rv0DcSecvCQxafcxJuTypzoaCdULxjUDkzXNDxkipu2wb6LaP
UHbwccZlAuYCdS9PFmJzilkdoEEDDwyflAM+uPyMfPntkaN2EBMtuBxVwtxe2d7qbTGSn4dX
IaTZIdcUKwPZ6r7xVOeZnae+6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