Sql Plus 包信息
SQLPLUS 有没有办法在创建某个包时获取有关该包的信息等等。例如,如果有一个包名称 Pack_Employee..我如何获取创建日期、大小等
Is there a way in SQLPLUS to get information about certain package when it was created and all that. For example if there is a package name Pack_Employee.. how can I get date of creation, size etc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用描述当前用户可访问的所有对象的 ALL_OBJECTS 或 USER_OBJECTS 表。
Oracle 参考文档
ALL_OBJECTS
选择object_name、object_type、last_ddl_time、时间戳、状态、已创建
来自用户对象
其中 object_name IN ('Pack_Employee');
Use the ALL_OBJECTS or USER_OBJECTS table that describes all objects accessible to the current user.
Oracle Reference Documentation
ALL_OBJECTS
select object_name, object_type, last_ddl_time, timestamp, status, created
from user_objects
where object_name IN ('Pack_Employee');
正如@Joël 指出的,您可以从
ALL_OBJECTS
获取创建日期、最后一个DDL 日期和状态。然而,尺寸是一个更棘手的问题。我能想到的最佳大小近似值是获取每行源代码的长度,这将为您提供字符大小:As @Joël pointed out, you can get the creation date, last DDL date and status from
ALL_OBJECTS
. Size, however, is a much trickier question. The best approximation I can come up with for size is to get the length of each line of source, which will give you the size in characters: