table model(按表处理的模式)
backupone user's table(备份一个用户下的表)
exp test/test
rows=y indexes=n compress=n buffer=65536 feedback=100000 volsize=0
file=exp_table_yyyymmdd.dmp log=exp_table_yyyymmdd.log
tables=test_table1,test_table2
recoverall table(导入全部备份的表)
imp test2/test2
fromuser=test touser=test2 rows=y indexes=n commit=y buffer=65536
feedback=100000 ignore=y volsize=0 file=exp_table_yyyymmdd.dmp
log=imp_table_yyyymmdd.log
recoversome table of all table(导入备份的部分表)
imp test2/test2
fromuser=test touser=test2 rows=y indexes=n commit=y buffer=65536
feedback=100000 ignore=y volsize=0 file=exp_table_yyyymmdd.dmp
log=imp_table_yyyymmdd.log tables=test_table1
user model(用户模式)
backupall someone's object(备份一个用户的所有的数据对象)
exp test/test
rows=y indexes=n compress=n buffer=65536 feedback=100000 volsize=0 owner=test file=exp_user_yyyymmdd.dmp
log=exp_user_yyyymmdd.log
recoverall someone's object
imp test2/test2
fromuser=test touser=test2 rows=y indexes=n commit=y buffer=65536
feedback=100000 ignore=y volsize=0 file=exp_user_yyyymmdd.dmp
log=imp_user_yyyymmdd.log
recoversome table of all someone's object
imp test2/test2
fromuser=test touser=test2 rows=y indexes=n commit=y buffer=65536
feedback=100000 ignore=y volsize=0 file=exp_user_yyyymmdd.dmp log=imp_user_yyyymmdd.log
tables=test_table1,test_table2,test_table3
full model
backupthe full db for all
exp system/manager
rows=y indexes=n compress=n buffer=65536 feedback=100000 volsize=0 full=y
inctype=complete file=exp_fulldb_yyyymmdd.dmp log=exp_fulldb_yyyymmdd.log
backupthe full db for increment
exp system/manager
rows=y indexes=n compress=n buffer=65536 feedback=100000 volsize=0 full=y
inctype=incremental file=exp_fulldb_zl_yyyymmdd.dmp
log=exp_fulldb_zl_yyyymmdd.log
注意:inctype是8i的9i已经不用了
recoverall date for full backup
imp system/manager
rows=y indexes=n commit=y buffer=65536 feedback=100000 ignore=y volsize=0
full=y file=exp_fulldb_yyyymmdd.dmp log=imp_fulldb_yyyymmdd.log
recoverall date for increment backup
imp system/managerrows=y indexes=n commit=y buffer=65536 feedback=100000 ignore=y vol
size=0
full=y inctype=restore file=exp_fulldb_zl_yyyymmdd.dmplog=imp_fulldb_zl_yyyymmdd.log
使用数据泵备份echo 正在备份 中通钢构Oracle-CRM数据库,请稍等......
expdp 用户名/密码 exclude=statistics parallel=6 dumpfile=文件名.dmp logfile=文件名.txt
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)