oracle备份还原数据库

首先到对应bin目录下打开cmd(windows),linux用相应终端链接;eg:D:\app\sun\product\11.2.0\dbhome_1\BIN

用户备份:exp tdms/tdms@tdms_121 owner=tdms rows=y indexes=n compress=n buffer=65536 file=D:/tdms_121.dmp log=D:/tdms_121.log;

表备份: exp tdms/tdms@tdms_121 rows=y indexes=n compress=n buffer=65536 file=tdms_121_principal.dmp log=tdms_121_principal.log tables=tdms.principal;

完全备份:exp tdms/tdms@tdms_121 rows=y indexes=n compress=n buffer=65536 full=y file=121.dmp log=121.log;


表模式恢复:imp tdms/tdms@localhost fromuser=tdms touser=hfsys rows=y indexes=n commit=y buffer=65536 file=tdms_121.dmp log=tdms_121.log;
用户模式恢复: imp tdms/tdms@localhost fromuser=tdms touser=hfsys rows=y indexes=n commit=y buffer=65536 file=tdms_121_principal.dmp log=tdms_121_principal.log;
全库模式恢复: imp tdms/tdms@localhost rows=y indexes=n commit=y full=y ignore=y buffer=65536 file=121.dmp log=121.log;

命令相关说明详见:

http://www.cnblogs.com/mfryf/archive/2013/06/16/3138466.html

你可能感兴趣的:(oracle备份还原数据库)