Oracle 11g 啟動服務批處理

來源:互聯網
上載者:User

REM 適用Oracle版本:11g
REM 如需調整版本及資料庫SID,請右擊該指令檔並單擊編輯,修改下方的orahome和orasid兩個變數的值即可。
REM
REM ————-華麗麗的分割線—————–
@echo off
set orahome="OraDb11g_home1″
set orasid="orcl"

:choice
CHOICE /C ABCD /M "將Oracle服務設為手動請輸入A,啟動請輸入B,關閉請輸入C,退出D"
if errorlevel 4 exit
if errorlevel 3 goto shutdown
if errorlevel 2 goto startup
if errorlevel 1 goto manual

:manual
sc config OracleVssWriter%orasid% start= demand
sc config Oracle%orahome%TNSListener start= demand
sc config OracleService%orasid% start= demand
sc config OracleDBConsole%orasid% start= demand
goto choice

:startup
net start OracleVssWriter%orasid%
net start OracleOraDb11g_home1TNSListener
net start OracleService%orasid%
net start OracleDBConsole%orasid%
goto choice

:shutdown
net stop OracleVssWriter%orasid%
net stop OracleOraDb11g_home1TNSListener
net stop OracleService%orasid%
net stop OracleDBConsole%orasid%
goto choice

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.