Oracle 视图 ALL_IDENTIFIERS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_IDENTIFIERS视图显示了有关Python对象的标识符的摘要和信息。它允许您查询代码里使用的关键字、变量和标识符的详细信息,以及其它代码块中定义的对象。ALL_IDENTIFIERS视图用于帮助编程者正确使用变量、函数等,它包括以下列:
1. IDENTIFIER:指定标识符的名称
2. MAPPED_NAME:此标识符在模块里声明的名称
3. TYPE:指定标识符的种类,如变量、函数、函数参数或者类属性等
4. BLOCK_ID:指明标识符定义在哪种代码块中
5. LINE_NUM:该标识符的定义所在的行号
使用Oracle的ALL_IDENTIFIERS视图的过程如下:
1. 首先,应该使用Python函数inspect获取要查询的模块信息,包括函数声明、变量定义等。
2. 然后,可以使用Oracle视图ALL_IDENTIFIERS去查询定义在不同代码块里的标识符的详细信息,可以同时使用多个过滤条件。
3. 最后,根据需要获得的信息,可以使用SQL查询语句,根据查询的结果获取视图中相关的结果数据。
官方英文解释
ALL_IDENTIFIERS
displays information about the identifiers in the stored objects accessible to the current user.
Related Views
DBA_IDENTIFIERS
displays information about the identifiers in all stored objects in the database.USER_IDENTIFIERS
displays information about the identifiers in the stored objects owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
| Owner of the identifier |
|
| Name of the identifier | |
|
| Signature of the identifier | |
|
| Type of the identifier. For SQL identifiers, the types include:
For PL/SQL identifiers, the types include:
| |
|
|
| Name of the object where the identifier action occurred |
|
| Type of the object where the identifier action occurred | |
|
| Type of the identifier usage:
| |
|
| Unique key for the identifier usage within the object | |
|
| Line number of the identifier action | |
|
| Column number of the identifier action | |
|
| Context | |
|
| Contains the value of the character set clause when it is used in a variable identifier declaration. These are the possible values when the character set is derived from another variable identifier:
| |
|
| Column contains the attribute value when %attribute is used in a variable declaration. Possible values:
| |
|
| Contains the type of the length constraint when it is used in a string length constraint declaration. Possible values:
| |
|
| Contains the numeric length constraint value for a string length constraint declaration | |
|
| Contains the numeric precision when it is used in a variable declaration | |
|
| Contains the numeric second precision value (for instance, interval types) used in a variable declaration | |
|
| Contains the numeric scale value used in a variable declaration. | |
|
| Contains the numeric lower range value used by a variable declaration with a range constraint | |
|
| Contains the numeric upper range value used by a variable declaration with a range constraint | |
|
| This column is set when a NULL constraint is used by a variable declaration. Possible values:
| |
|
| Is set to | |
|
| Indicates whether the identifier is an implicit identifier that does not appear in the source (YES ) or not (NO ) | |
|
|
| Owner of the object in which this identifier was declared |
|
|
| Name of the object in which this identifier was declared |
|
| Type of the object in which this identifier was declared | |
|
| The ID of the container where the data originates. Possible values include:
|
See Also:
“DBA_IDENTIFIERS”
“USER_IDENTIFIERS”
编辑:一起学习网
标签:标识符,视图,函数,变量,定义