相关的数据字典
USER_SOURCE 用户的存储过程、函数的源代码字典 DBA_SOURCE 整个系统所有用户的存储过程、函数的源代码字典 ALL_SOURCE 当前用户能使用的存储过程(包括其她用户授权)、函数的源代码字典 USER_ERRORS 用户的存储过程、函数的源代码存在错误的信息字典 SQL> select * from user_source where type='PROCEDURE';
NAME TYPE LINE TEXT ------------------------------ ------------ ---------- -------------------------------------------------------------------------------- INSERTDEPT PROCEDURE 1 procedure insertDept as INSERTDEPT PROCEDURE 2 begin INSERTDEPT PROCEDURE 3 insert into dept(deptno,dname,loc,datetime) values('10','ACCOUNTING','NEW YORK', INSERTDEPT PROCEDURE 4 insert into dept(deptno,dname,loc,datetime) values('20','RESEARCH','DALLAS',to_d INSERTDEPT PROCEDURE 5 insert into dept(deptno,dname,loc,datetime) values('30','SALES','CHICAGO',to_dat INSERTDEPT PROCEDURE 6 insert into dept(deptno,dname,loc,datetime) values('40','OPERATIONS','BOSTON',to INSERTDEPT PROCEDURE 7 commit; INSERTDEPT PROCEDURE 8 end; SQL> select * from user_objects where object_type='PROCEDURE';
OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY -------------------------------------------------------------------------------- ------------------------------ ---------- -------------- ------------------- ----------- ------------- ------------------- ------- --------- --------- --------- INSERTDEPT 52576 PROCEDURE 2011-4-27 1 2011-4-27 11: 2011-04-27:11:45:14 INVALID N N N INSERTEMP 。 SQL> desc user_source; Name Type Nullable Default Comments ---- -------------- -------- ------- ------------------------------------------------------------------------------------------------------------- NAME VARCHAR2(30) Y Name of the object TYPE VARCHAR2(12) Y Type of the object: "TYPE", "TYPE BODY", "PROCEDURE", "FUNCTION", "PACKAGE", "PACKAGE BODY" or "JAVA SOURCE" LINE NUMBER Y Line number of this line of source TEXT VARCHAR2(4000) Y Source text ==============end============= |