windows静默安装Oracle11G脚本

发布时间:2020-08-09 21:06:23 作者:笑笑的小楠楠
来源:ITPUB博客 阅读:212
文章版权所有 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
推荐阅读:
  1. oracle11g安装脚本
  2. Linux静默安装oracle11g

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

oracle11g windows 安装

上一篇:终端常用命令

下一篇:索引系列十--索引特性之有序优化order by

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》