表2 DBA_OBJECTS





SQL> desc  DBA_OBJECTS;
 名前                       NULL?    タイプ
 -------------------------- -------- --------------------
 OWNER                               VARCHAR2(30)      ←オブジェクトの所有者名
 OBJECT_NAME                         VARCHAR2(128)     ←オブジェクト名
 SUBOBJECT_NAME                      VARCHAR2(30)     ←サブオブジェクト名
 OBJECT_ID                           NUMBER            ←オブジェクト番号
 DATA_OBJECT_ID                      NUMBER            ←オブジェクトを含むセグメントのオブジェクト番号
 OBJECT_TYPE                         VARCHAR2(15)      ←オブジェクト型
 CREATED                             DATE              ←オブジェクト作成時のタイムスタンプ
 LAST_DDL_TIME                       DATE              ←オブジェクト最終更新時のタイムスタンプ
 TIMESTAMP                           VARCHAR2(19)      ←オブジェクト指定時のタイムスタンプ
 STATUS                              VARCHAR2(7)       ←オブジェクトの状態
 TEMPORARY                           VARCHAR2(1)       ←現行セッションで認識できるデータが、
                            オブジェクト自体に配置されデータ型に限られるかどうか
 GENERATED                           VARCHAR2(1)       ←オブジェクトシステム名が生成されたかどうか

SQL> select OWNER,OBJECT_NAME,SUBOBJECT_NAME,OBJECT_TYPE,STATUS  from DBA_OBJECTS 
  2  where OBJECT_TYPE = 'PACKAGE' or OBJECT_TYPE = 'PACKAGE BODY';

OWNER          OBJECT_NAME                       OBJECT_TYPE     STATUS
-------------- --------------------------------- --------------- -------
SYS            DBMS_ALERT                        PACKAGE         VALID
SYS            DBMS_ALERT                        PACKAGE BODY    VALID
SYS            DBMS_APPLICATION_INFO             PACKAGE         VALID
SYS            DBMS_APPLICATION_INFO             PACKAGE BODY    VALID
SYS            DBMS_DDL                          PACKAGE         VALID
SYS            DBMS_DDL                          PACKAGE BODY    VALID
SYS            DBMS_DESCRIBE                     PACKAGE         VALID
SYS            DBMS_DESCRIBE                     PACKAGE BODY    VALID
SYS            DBMS_JOB                          PACKAGE         VALID
SYS            DBMS_JOB                          PACKAGE BODY    VALID
SYS            DBMS_LOB                          PACKAGE         VALID
SYS            DBMS_LOB                          PACKAGE BODY    VALID
SYS            DBMS_LOCK                         PACKAGE         VALID
SYS            DBMS_LOCK                         PACKAGE BODY    VALID
SYS            DBMS_OUTPUT                       PACKAGE         VALID
SYS            DBMS_OUTPUT                       PACKAGE BODY    VALID
SYS            DBMS_PICKLER                      PACKAGE         VALID
SYS            DBMS_PICKLER                      PACKAGE BODY    VALID
SYS            DBMS_REFRESH                      PACKAGE         VALID
SYS            DBMS_REFRESH                      PACKAGE BODY    VALID
SYS            DBMS_ROWID                        PACKAGE         VALID
SYS            DBMS_ROWID                        PACKAGE BODY    VALID
SYS            DBMS_SESSION                      PACKAGE         VALID
SYS            DBMS_SESSION                      PACKAGE BODY    VALID
SYS            DBMS_SNAPSHOT                     PACKAGE         VALID
SYS            DBMS_SNAPSHOT                     PACKAGE BODY    VALID
SYS            DBMS_SNAPSHOT_UTL                 PACKAGE         VALID
SYS            DBMS_SNAPSHOT_UTL                 PACKAGE BODY    VALID
SYS            DBMS_SNAP_INTERNAL                PACKAGE         VALID
SYS            DBMS_SNAP_INTERNAL                PACKAGE BODY    VALID
SYS            DBMS_SNAP_REPAPI                  PACKAGE         VALID
SYS            DBMS_SNAP_REPAPI                  PACKAGE BODY    VALID
SYS            DBMS_SPACE                        PACKAGE         VALID
SYS            DBMS_SPACE                        PACKAGE BODY    VALID
SYS            DBMS_SQL                          PACKAGE         VALID
SYS            DBMS_SQL                          PACKAGE BODY    VALID
SYS            DBMS_STANDARD                     PACKAGE         VALID
SYS            DBMS_SYSTEM                       PACKAGE         VALID
SYS            DBMS_SYSTEM                       PACKAGE BODY    VALID
SYS            DBMS_SYS_ERROR                    PACKAGE         VALID
SYS            DBMS_SYS_ERROR                    PACKAGE BODY    VALID
SYS            DBMS_SYS_SQL                      PACKAGE         VALID
SYS            DBMS_SYS_SQL                      PACKAGE BODY    VALID
SYS            DBMS_TRANSACTION                  PACKAGE         VALID
SYS            DBMS_TRANSACTION                  PACKAGE BODY    VALID
SYS            DBMS_UTILITY                      PACKAGE         VALID
SYS            DBMS_UTILITY                      PACKAGE BODY    VALID

SQL> select OWNER,OBJECT_NAME,SUBOBJECT_NAME,OBJECT_TYPE from DBA_OBJECTS where STATUS = 'INVALID';

OWNER          OBJECT_NAME                    SUBOBJECT_NAME        OBJECT_TYPE
-------------- ------------------------------ --------------------- ---------------
STOCK          SMCLIENT_FOLDER_MAP_V                                VIEW
           :                :
           :                :
STOCK          SMP_VAB_SAVED_JOB                                    VIEW
STOCK          SMP_VAR_LIST_DATABASES                               VIEW
STKINDEX       VIEW_ISSINDEXTBL                                     VIEW
STKINDEX       VIEW_STKINDEXTBL                                     VIEW
INVANALY       VIEW_MDTBL                                           VIEW
SELUSR         VIEW_TEST2                                           VIEW
TEST2          VIEW_TEST                                            VIEW
CBTUSER2       EMPLOYEE_DATA1                                       VIEW

47行が選択されました。

    

2001/05/18 Y.N

[戻る]