windows下oracle静默安装包,windows静默安装Oracle11G脚本

文章版权所有 Jusin Hao(luckyfriends) ,支持原创,转载请注明

@echo off

cd c:\

md Oracle

"C:\Program Files (x86)\WinRAR\winrar.exe" x C:\win64_11gR1_database.zip C:\Oracle

copy /y c:\refhost.xml c:\Oracle\database\stage\prereq\db

echo wait.........

echo %date% %time%

echo "start setup Oracle..."  >>LogInfo.txt

cd c:\Oracle\database

setup.exe -silent -force -waitforcompletion -responseFile c:\installOracle.rsp -nowait

if %ERRORLEVEL% == 0 echo "oracle setup COMPLETE"  >>LogInfo.txt

echo %date% %time%  >>LogInfo.txt

rem delay....

echo "oracle start linsenning.."  >>LogInfo.txt

@set OH=C:\app\Administrator\product\11.1.0\db_1

@set PATH=%OH%\BIN;%PATH%

REM echo %PATH%

call %OH%\BIN\netca /silent /responseFile c:\netca.rsp

if %ERRORLEVEL% == 0 echo "netcaSUCCESS!"  >>LogInfo.txt

if %ERRORLEVEL% == 1 echo "netcaFAIL!"  >>LogInfo.txt

echo %date% %time%  >>LogInfo.txt

echo "oracle start set ORCL..."  >>LogInfo.txt

call %OH%\BIN\dbca -silent -createDatabase -templateName c:\orcl.dbc -gdbname "orcl" -sid "orcl" -emConfiguration LOCAL -sysPassword "Huawei@123" -systemPassword "Huawei@123" -DBSNMPPASSWORD "Huawei@123" -SYSMANPASSWORD "Huawei@123"

if %ERRORLEVEL% == 0 echo "oracleORCL_SUCCESS!"  >>LogInfo.txt

if %ERRORLEVEL% == 1 echo "oracleORCL_FAIL!"  >>LogInfo.txt

echo %date% %time%  >>LogInfo.txt

exit 0

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14710393/viewspace-1518098/,如需转载,请注明出处,否则将追究法律责任。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值