记录一下,方便查阅:
@echo off
set to_user=user1
set to_password=cg111111
set to_tns=10.161.14.51:1521/crmdb
imp %to_user%/%to_password%@%to_tns% file=.\crmdb_%date:~0,4%%date:~5,2%%date:~8,2%.dmp FULL=Y
@echo off
set from_user=user2
set from_password=cg111111
set from_tns=192.168.1.73:1521/crmdb
exp %from_user%/%from_password%@%from_tns% file=.\crmdb_%date:~0,4%%date:~5,2%%date:~8,2%.dmp