zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

Oracle 视图 ALL_SOURCE 官方解释,作用,如何使用详细说明

Oracle官方 使用 如何 详细 作用 说明 解释
2023-06-13 09:11:10 时间

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


USER_SOURCE describes the text source of the stored objects owned by the current user. This view does not display the OWNER column.


Type of object: FUNCTION, JAVA SOURCE, PACKAGE, PACKAGE BODY, PROCEDURE, TRIGGER, TYPE, TYPE BODY


n: This value is used for rows containing data that originate in the container with container ID n (n = 1 if the row originates in root)


我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题

本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 Oracle 视图 ALL_SOURCE 官方解释,作用,如何使用详细说明