exp++.bat1聽set聽sid=portal
2聽set聽username=portal
3聽set聽password=portal
4聽set聽connect=%username%/%password%@%sid%
5聽set聽back_path=D:\oracle
6聽set聽date_string=%date:~0,4%_%date:~5,2%_%date:~8,2%
7聽set聽time_string=%time:~0,2%_%time:~3,2%_%time:~6,2%
8聽set聽file_string=%back_path%\portal_%date_string%_%time_string%
9聽exp聽%connect%聽buffer=20000000聽file=%file_string%.dmp聽log=exp_%file_string%.log聽owner=portal
imp++.bat
聽1聽set聽dmp_source=%1
聽2聽set聽sid=his
聽3聽set聽username=his_dba
聽4聽set聽password=his_dba
聽5聽set聽connect=%username%/%password%@%sid%
聽6聽set聽back_path=D:\oracle
聽7聽set聽date_string=%date:~0,4%_%date:~5,2%_%date:~8,2%
聽8聽set聽time_string=%time:~0,2%_%time:~3,2%_%time:~6,2%
聽9聽set聽output_string=%back_path%\portal_%date_string%_%time_string%
10聽set聽source_string=%back_path%\%dmp_source%
11聽imp聽%connect%聽file=imp_%source_string%聽log=%output_string%.log聽FROMUSER=portal
Change CHARACTER SET
1聽ALTER聽DATABASE聽CHARACTER聽SET聽UTF8
2聽NLS_CHARACTERSET
3聽ZHS16CGB231280
4聽ZHS16GBK
5聽AL32UTF8
6聽UTF8

]]>