- 論壇徽章:
- 0
|
##編譯某一個(gè)用戶下的對(duì)象,除了('TYPE BODY','PACKAGE BODY')
select 'alter '||object_type||' '||object_name||' compile;'
from user_objects
where status <>; 'VALID'
and object_type not in ('TYPE BODY','PACKAGE BODY')
order by object_name;
####編譯type body 不能使用傳統(tǒng)的方式,應(yīng)該注意其語(yǔ)法
select 'alter type '||object_name||' compile body;'
from user_objects
where status <>; 'VALID'
and object_type='TYPE BODY'
order by object_name;
####編譯package body 不能使用傳統(tǒng)的方式,應(yīng)該注意其語(yǔ)法
select 'alter package '||object_name||' compile body;'
from user_objects
where status <>; 'VALID'
and object_type='PACKAGE BODY'
order by object_name; |
|