Oracle数据库备份与还原命令


--步骤一:导出分数表的数据

exp newdream/dream1234@tm file=c:\t56\score.dmp tables=(score);

 

 

--步骤二:删除表

drop table score;

select * from score;

 

--步骤三:将步骤一导出的表还原

imp newdream/dream1234@tm file=c:\t56\score.dmp tables=(score);

 

 

--步骤四:只删除数据,再次导入。如果表已经存在不允许导入

delete from score;

imp newdream/dream1234@tm file=c:\t56\score.dmp tables=(score);

imp newdream/dream1234@tm file=c:\t56\score.dmp tables=(score) ignore=y

 


免责声明!

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



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