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
@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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux下利用指令碼靜默安裝Oracle11GLinux指令碼Oracle
- oracle11g在linux7的靜默安裝指令碼OracleLinux指令碼
- RedHat上靜默安裝Oracle11gRedhatOracle
- CentOS 7.2靜默安裝Oracle11gCentOSOracle
- 靜默安裝Oracle11g資料庫Oracle資料庫
- oracle11g客戶端靜默安裝Oracle客戶端
- 靜默安裝19C RAC的指令碼指令碼
- RedHat 7 靜默安裝Oracle11g的補充RedhatOracle
- Windows 7平臺靜默安裝11.2.0.4軟體及靜默建庫Windows
- rac靜默安裝
- Oracle靜默安裝Oracle
- windows10系統禁止靜默安裝的方法Windows
- Centos7靜默安裝Oracle11g並設定開機自啟CentOSOracle
- Linux下靜默安裝OraceLinux
- 【靜默】在RHEL 6.5上靜默安裝Oracle 18cOracle
- 靜默安裝and手動建庫
- oracle 19C 靜默安裝Oracle
- 靜默安裝oracle時報錯Oracle
- AnolisOS 7.9 靜默安裝Oacle 11.2.0.4
- centos 7.4靜默安裝oracle 19.3CentOSOracle
- 靜默方式安裝11gR2
- Oracle Linux 7.1 靜默安裝Weblogic 12.2.1.3OracleLinuxWeb
- win10如何禁止靜默執行_win10禁止靜默安裝方法Win10
- redhat7.2靜默安裝Oracle11.2.0.4RedhatOracle
- CentOS 7.5靜默安裝Oracle 11gCentOSOracle
- 靜默方式安裝、升級oracle(一): 安裝oracle軟體Oracle
- 【11g 單庫解除安裝、靜默安裝】實驗
- 靜默方式安裝oracle 11g 完整攻略Oracle
- 靜默安裝Oracle資料庫11gOracle資料庫
- 應用黑名單以及靜默安裝的實現
- linux7 靜默安裝 11GR2 RACLinux
- Oracle Linux 7.1 靜默安裝Oracle 18c RACOracleLinux
- Oracle 19C的下載和安裝部署(圖形安裝和靜默安裝)Oracle
- 19c(19.3) 單機資料庫靜默安裝資料庫
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- GoldenGate 12.3 MA架構介紹系列(5) - 靜默安裝Go架構
- 【配置安裝】靜默安裝Oracle資料庫軟體12c&19cOracle資料庫
- easytier 在windows上快捷安裝“服務”bat指令碼WindowsBAT指令碼
- Windows環境下Oracle11g安裝的問題WindowsOracle