miércoles, 3 de noviembre de 2021

oracle 11 no exporta tablas vacias

sql plus

usuario bd

contraseña bd

SQL> show parameter deferred_segment_creation;


SQL> alter system set deferred_segment_creation=false;


SQL> select 'alter table '||table_name||' allocate extent;' 
from user_tables where num_rows=0;


EJECUTAR CADA UNA DE LAS LINEAS QUE DA DE RESULTADO


SQL> alter table TABLA1 allocate extent;


DESPUES DE ESTO SE HACE LA EXP EN MSDOS Y YA EXPORTA LAS TABLAS VACIAS

exp usuario/clave@bd1 file=c:\nombre_archivo.dmp owner=usuario