如何在 sqlplus 中将Package body 内容提取出来

在没有 toad 等工具的情况下, 如果我们想提取出 package body 中的内容, 我们使用一下办法

首先, spool abc.sql  --- 准备将内容导出到这个文件

select text from user_source where type = 'PACKAGE BODY';

spool off -- 关闭导出文件

这时候到外部的当前目录下就找到了 abc.sql, 这样简单整理一下abc.sql, 就是我们想要的文件了.

posted @ 2014-06-26 14:08  神之一招  阅读(1095)  评论(0)    收藏  举报