ORACLE导入导出(11G、12C)

数据库命令导出:

将数据库ORCL完全导出,用户名system 密码manager 导出到D:\daochu.dmp中

exp system/system@ORCL file=d:\backup.dmp full=y log=d:\backup.log

将数据库中sltc用户与sxks用户的表导出

exp system/system@ORCL file=d:\backup.dmp owner=(sltc,sxks) log=d:\backup.log

将数据库中的表table1 、table2导出

exp system/system@ORCL file=d:\backup.dmp tables=(table1,table2) log=d:\backup.log

将数据库中的表table中的字段filed以"133"打头的数据导出

exp system/system@ORCL file=d:\backup.dmp tables=(table) query=\" where filed1 like  '133%'\"  log=d:\backup.log 

数据库备份文件是否压缩compress属性,默认备份文件压缩compress=y

数据库命令导入:

将D:\backup.dmp 中的数据导入 TEST数据库中,ignore=y已有表不报错.

imp system/system@ORCL  file=d:\backup.dmp ignore=y


将d:\backup.dmp中的表table1 导入

imp system/system@ORCL  file=d:\backup.dmp  tables=(table1) 

不同名之间的数据导入:

imp system/system@ORCL fromuser=sxks touser=sltc file=d:\backup.dmp log=d:\backup.log

不是本机的数据导入:

imp user/aa123@//10.100.20.19:1521/ORCL file=d:\data-20110610-011001.dmp full=y buffer=10240000 ignore=y statistics=none

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章