要查看表在哪个包里,您可以使用以下SQL语句查询DBA_OBJECTS视图:
SELECT OWNER, OBJECT_NAME, OBJECT_TYPE, STATUS FROM DBA_OBJECTS WHERE OBJECT_TYPE = 'PACKAGE' AND OBJECT_NAME IN ( SELECT OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_TYPE = 'TABLE' AND OBJECT_NAME = 'YOUR_TABLE_NAME' );
将"YOUR_TABLE_NAME"替换为您要查找的表名。此查询将返回包含该表的包的所有者、包名、对象类型和状态。