Oracle导入导出常用命令


-- 全量导出
exp system/manager@TEST file=d:\daochu.dmp full=y

-- 将数据库中system用户与sys用户的表导出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)

-- 将数据库中的表table1中的字段filed1以"00"打头的数据导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"

-- 将数据库中的表table1/table2导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)


-- 将d:\daochu.dmp中的表table1/table2导入
-- 如果在Linux下导入导出,需要使用 tables="(table1,table2)",否则报错"syntax error near unexpected token("
imp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM