Oracle 视图 ALL_SOURCE 官方解释,作用,如何使用详细说明
本站中文解释
View
Oracle 视图ALL_SOURCE用于在当前数据库中内观察创建的源码对象,可以查看包、存储过程、函数和触发器等对象的源代码。
使用方法:
1、查看存储过程的源代码:
SELECT text FROM all_source WHERE owner = ‘schema_name’ AND name = ‘package_name’ AND type = ‘PACKAGE BODY’;
2、查看函数的源代码:
SELECT text FROM all_source WHERE owner = ‘schema_name’ AND name = ‘procedure_name’ AND type = ‘FUNCTION’;
3、查看触发器的源代码:
SELECT text FROM all_source WHERE owner = ‘schema_name’ AND name = ‘trigger_name’ AND type = ‘TRIGGER’;
官方英文解释
ALL_SOURCE
describes the text source of the stored objects accessible to the current user.
Related Views
-
DBA_SOURCE
describes the text source of all stored objects in the database. -
USER_SOURCE
describes the text source of the stored 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 |
|
|
Type of object: |
|
|
|
|
Line number of this line of source |
|
|
Text source of the stored object |
|
|
|
The ID of the container where the data originates. Possible values include:
|
See Also:
-
“DBA_SOURCE”
-
“USER_SOURCE”