日期:2014-05-16  浏览次数:20591 次

从Oracle 10g Client中提取精简客户端

@ECHO 从Oracle 10g Client中提取精简客户端
@ECHO 开始拷贝文件
@ECHO ————————————————————————————————————

@REM 定义变量
set ORACLE_CLIENT_HOME=D:\oracle\product\10.2.0\client_1
set DEST_ORA_CLIENT_DIR=D:\ora10g_client

@REM 创建目录
d:
md ora10g_client
cd ora10g_client
md oracore
cd oracore
md zoneinfo
md mesg
cd ..
md NETWORK
cd NETWORK
md ADMIN
md mesg
cd ..
md BIN
md nls
cd nls
md data
md mesg

@REM 拷贝oracore目录
copy %ORACLE_CLIENT_HOME%\oracore\zoneinfo\*.* %DEST_ORA_CLIENT_DIR%\oracore\zoneinfo
copy %ORACLE_CLIENT_HOME%\oracore\mesg\*.* %DEST_ORA_CLIENT_DIR%\oracore\mesg

@REM 拷贝Network目录
copy %ORACLE_CLIENT_HOME%\Network\Admin\sqlnet.ora %DEST_ORA_CLIENT_DIR%\Network\Admin\
copy %ORACLE_CLIENT_HOME%\Network\Admin\tnsnames.ora %DEST_ORA_CLIENT_DIR%\Network\Admin\
copy %ORACLE_CLIENT_HOME%\Network\mesg\*.* %DEST_ORA_CLIENT_DIR%\Network\mesg\

@REM 拷贝Bin目录
copy %ORACLE_CLIENT_HOME%\bin\oci.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oracle.key %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oraclient10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oracommon10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORACORE10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\orageneric10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\orahasgen10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oraldapclnt10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oran10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORANCDS10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\orancrypt10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oranhost10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oranl10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oranldap10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORANLS10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\orannzsbb10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oranro10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\orantcp10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\orantns10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oraocr10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oraocrb10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORAPLP10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORAPLS10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORASLAX10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORASNLS10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORASQL10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORAUNLS10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\orauts.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oravsn10.dll %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\ORAXML10.DLL %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\sqlplus.exe? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\sqlplusw.exe? %DEST_ORA_CLIENT_DIR%\Bin

@REM 针对oracle oledb
copy %ORACLE_CLIENT_HOME%\bin\oip10.dll? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oip10.tlb? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\oradc.ocx? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\OraOLEDB10.dll? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\OraOLEDB10.tlb? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\OraOLEDB10us.dll? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\OraOLEDB10zhs.dll? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\OraOLEDBgmr10.dll? %DEST_ORA_CLIENT_DIR%\Bin
copy %ORACLE_CLIENT_HOME%\bin\OraOLEDBpus10.dll? %D