Oracle 视图 ALL_OBJECTS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_OBJECTS可以用来查询关于当前用户拥有权限的所有数据库对象(表、索引、视图、序列、存储过程、触发器)。可以使用它来查询以下内容:
1. 数据库对象的名称;
2. 数据库对象所属的架构名称;
3. 数据库对象的类型;
4. 最后一次对对象进行DML操作的时间戳;
5. 数据库对象的状态;
6. 数据库对象的状态信息;
7. 数据库对象的Comments;
8. 数据库对象的Storage 表。
如果要使用ALL_OBJECTS,可以使用如下SQL语句:
SELECT *
FROM all_objects
WHERE owner = ‘USER’
AND object_type = ‘TABLE’
AND object_name = ‘TABLE_NAME’;
官方英文解释
ALL_OBJECTS
describes all objects accessible to the current user.
Related Views
-
DBA_OBJECTS
describes all objects in the database. -
USER_OBJECTS
describes all objects owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the object |
|
|
|
Name of the object |
|
|
Name of the subobject (for example, partition) |
|
|
|
|
Dictionary object number of the object |
|
|
Dictionary object number of the segment that contains the object. Note: |
|
|
|
Type of the object (such as |
|
|
|
|
Timestamp for the creation of the object |
|
|
|
Timestamp for the last modification of the object and dependent objects resulting from a DDL statement (including grants and revokes) |
|
|
Timestamp for the specification of the object (character data) |
|
|
|
Status of the object:
|
|
|
|
Indicates whether the object is temporary (the current session can see only data that it placed in this object itself) ( |
|
|
|
Indicates whether the name of this object was system-generated ( |
|
|
|
Indicates whether this is a secondary object created by the |
|
|
|
|
Namespace for the object |
|
|
Name of the edition in which the object is actual |
|
|
|
Values:
|
|
|
|
Values:
|
|
|
|
Denotes whether the object was created, and is maintained, by Oracle-supplied scripts (such as catalog.sql or catproc.sql). An object for which this column has the value |
|
|
|
Indicates whether the object is an Application common object ( |
|
|
|
Default collation for the object |
|
|
|
Indicates whether this object is duplicated on this shard ( |
|
|
|
Indicates whether this object is sharded ( |
|
|
|
Indicates whether this object is imported ( |
|
|
|
ID of the Application that created the object |
|
|
|
ID of the Application Version that created the object |
|
|
|
ID of the Application that last modified the object |
|
|
|
ID of the Application Version that last modified the object |
See Also:
-
“DBA_OBJECTS”
-
“USER_OBJECTS”