- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
4#
发表于 2012-5-10 20:37:07
FOR EXAMPLE:
SQL> select referenced_owner,referenced_name,referenced_type from dba_dependencies where name='DBMS_SWRF_REPORT_INTERNAL';
REFER REFERENCED_NAME REFERENCED_TYPE
----- ------------------------------ -----------------
SYS V$ACTIVE_SESSION_HISTORY VIEW
SYS V$INSTANCE VIEW
SYS V$DATABASE VIEW
SYS V$PARAMETER VIEW
SYS V$SGASTAT VIEW
SYS V$SGA VIEW
SYS DBMS_SWRF_REPORT_INTERNAL PACKAGE
SYS DBMS_ASH_INTERNAL PACKAGE
SYS DBA_HIST_CURRENT_BLOCK_SERVER VIEW
SYS DBA_HIST_CR_BLOCK_SERVER VIEW
SYS DBA_HIST_DLM_MISC VIEW
SYS DBA_HIST_SEG_STAT VIEW
SYS DBA_HIST_PARAMETER VIEW
SYS DBA_HIST_SYS_TIME_MODEL VIEW
SYS DBA_HIST_SYSSTAT VIEW
SYS DBA_HIST_THREAD VIEW
SYS DBA_HIST_PGA_TARGET_ADVICE VIEW
SYS DBA_HIST_SHARED_POOL_ADVICE VIEW
SYS DBA_HIST_SGASTAT VIEW
SYS DBA_HIST_SGA VIEW
SYS DBA_HIST_LIBRARYCACHE VIEW
SYS DBA_HIST_LATCH VIEW
SYS DBA_HIST_WAITSTAT VIEW
SYS DBA_HIST_SYSTEM_EVENT VIEW
SYS DBA_HIST_SQL_SUMMARY VIEW
SYS DBA_HIST_SQLTEXT VIEW
SYS DBA_HIST_SQLSTAT VIEW
SYS DBA_HIST_SNAPSHOT VIEW
SYS DBA_HIST_DATABASE_INSTANCE VIEW
SYS WRM$_WR_USAGE TABLE
SYS AWRRPT_ROW_TYPE TYPE
SYS AWRRPT_ROW_TYPE TYPE
SYS AWRRPT_CLB_ARY TYPE
SYS AWRRPT_VCH_ARY TYPE
SYS AWRRPT_NUM_ARY TYPE
SYS DBA_HIGH_WATER_MARK_STATISTICS VIEW
SYS DBA_FEATURE_USAGE_STATISTICS VIEW
SYS DBMS_XPLAN PACKAGE
SYS DBMS_XPLAN_TYPE_TABLE TYPE
SYS DBMS_SYSTEM PACKAGE
SYS DBMS_SQL PACKAGE
SYS DBMS_LOB PACKAGE
SYS PLITBLM PACKAGE
SYS DBMS_STANDARD PACKAGE
SYS STANDARD PACKAGE
SYS STANDARD PACKAGE
SYS DUAL TABLE
47 rows selected.
SQL> select object_name,status from dba_objects where owner='SYS' and status<>'VALID';
no rows selected
SQL> drop package sys.DBMS_ASH_INTERNAL;
Package dropped.
SQL> select object_name,status from dba_objects where owner='SYS' and status<>'VALID';
OBJECT_NAME STATUS
-------------------------------------------------------------------------------------------------------------------------------- -------
DBMS_SWRF_REPORT_INTERNAL INVALID |
|