executeimmediate'alter database drop logfile group '||v_log_info.group#;
end loop;
-- 4 关闭游标
close cur_redo;
end;
/
select'alter tablespace '||t.name||' drop tempfile '''||c.name||''';'
from v$tempfile c, v$tablespace t where c.ts#=t.ts# and c.name notlike'%t11_%';
select'rm -f '||substr(name,1,instr(name,'/',-1))||'Archi*/*.dbf' c from v$dbfile whererownum<2;
select'create pfile='''||substr(name,1,instr(name,'/',-1))||'init'||(select instance_name from v$instance)||'.ora'' from spfile;' c from v$dbfile whererownum<2;