Oracle11g 数据库的导入导出
导出:
全部:
exp imagesys/imagesys@orcl file=/icms/20170116.dmp full=y
用户:
exp imagesys/imagesys @orcl file=/icms/20170116.dmp owner=imagesys
exp system file=/icms/lims2017116.dmp log=/icms/icms.log owner=imagesys
表:
exp imagesys/imagesys@orcl file=/icms/lims2017116.dmp tables=(table1,table2)
导出空表sql语句
select 'alter table '||table_name||' allocate extent;' from user_tables where segment_created='NO'
导入:
全部:
imp imagesys/imagesys@orcl buffer=64000 file=/icms/lims2017116.dmp FULL=Y
用户:
imp imagesys/imagesys@orcl file=/icms/lims2017116.dmp fromuser=imagesys touser=imagesys
posted @
2017-02-10 16:27 长东 阅读(
...) 评论(
...) 编辑 收藏