Oracle中,函数,过程,触发器如果误删除了,是无法用flashback直接恢复。但有个叫dba_source的视图,包含了Oracle中存储着的各个对象的创建语句。
SYS@PROD>desc dba_sourceName Null? Type
-------- -------- ----------------------------
OWNER VARCHAR2(30)
NAME VARCHAR2(30)
TYPE VARCHAR2(12)
LINE NUMBER
TEXT ARCHAR2(4000)
type:包含了 FUNCTION, JAVA SOURCE, PACKAGE, PACKAGE BODY, PROCEDURE, TRIGGER, TYPE, TYPE BODY。
line:Line number of thi