Suppression des objets pour un schéma

beginfor f in (select table_name from user_tables) loopexecute immediate ‘drop table « ‘||f.table_name||’ » cascade constraints’;end loop;for f in (select object_type, object_name from user_objects where object_type in (‘SEQUENCE’,’VIEW’,’FUNCTION’,’PROCEDURE’,’PACKAGE’,’SYNONYM’,’DATABASE LINK’)) loopexecute immediate ‘drop. read more…

Agrandir datafile avant import

define TBS=’SIM_SIM_LOB01′define DFSZ=’10000M’ select ‘Alter database datafile  »’||FILE_NAME|| »’ resize ‘||’&DFSZ’||’;’ from dba_data_files where TABLESPACE_NAME like ‘&TBS’ order by FILE_NAME;

Author avatar

Translate »