時間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評論(0)
針對不同版本的數(shù)據(jù)庫需注釋相關(guān)命令行。
啟動數(shù)據(jù)庫腳本:dbstart.cmd
@echo off
REM? ------ Common Commands -------
set ORAHOME="ORACLE_HOME_NAME"
set ORASID="ORACLE_SID"
net start Oracle%ORAHOME%TNSListener
net start OracleService%ORASID%
REM? ------ Commands For Oracle 8.x - 9.2 --------
REM net start Oracle%ORAHOME%HTTPServer
REM net start Oracle%ORAHOME%ClientCache
REM net start Oracle%ORAHOME%Agent
REM net start Oracle%ORAHOME%SNMPPeerEncapsulator
REM net start Oracle%ORAHOME%SNMPPeerMasterAgent
REM net start Oracle%ORAHOME%PagingServer
REM net start OracleMTSRecoverService
REM? ------ Commands For Oracle 10.x --------
REM net start OracleDBConsole%ORASID%
REM net start OracleJobScheduler%ORASID%
REM net start Oracle%ORAHOME%iSQL*Plus
REM? ------ Commands For Oracle 11.x --------
REM net start OracleDBConsole%ORASID%
REM net start OracleJobScheduler%ORASID%
關(guān)閉數(shù)據(jù)庫腳本: dbshut.cmd@echo off
REM? ------ Common Commands -------
set ORAHOME="ORACLE_HOME_NAME"
set ORASID="ORACLE_SID"
net stop Oracle%ORAHOME%TNSListener
net stop OracleService%ORASID%
REM? ------ Commands For Oracle 8.x - 9.2 --------
REM net stop Oracle%ORAHOME%HTTPServer
REM net stop Oracle%ORAHOME%ClientCache
REM net stop Oracle%ORAHOME%Agent
REM net stop Oracle%ORAHOME%SNMPPeerEncapsulator
REM net stop Oracle%ORAHOME%SNMPPeerMasterAgent
REM net stop Oracle%ORAHOME%PagingServer
REM net stop OracleMTSRecoverService
REM? ------ Commands For Oracle 10.x --------
REM net stop OracleDBConsole%ORASID%
REM net stop OracleJobScheduler%ORASID%
REM net stop Oracle%ORAHOME%iSQL*Plus
REM? ------ Commands For Oracle 11.x --------
REM net stop OracleDBConsole%ORASID%
REM net stop OracleJobScheduler%ORASID%注:
ORACLE_HOME_NAME:
系統(tǒng)注冊表HKLM\SOFTWARE\ORACLE\…下ORACLE_HOME_NAME鍵值。(9i為\HOME0, 10g為\KEY_OraDb10g_home1,11g為\KEY_OraDb11g_home1)
ORALCLE_SID:
為Oracle系統(tǒng)標識符。
關(guān)鍵詞標簽:Windows,Oracle
相關(guān)閱讀
熱門文章 Oracle中使用alter table來增加,刪除,修改列的語法 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 誤刪Oracle數(shù)據(jù)庫實例的控制文件 為UNIX服務(wù)器設(shè)置Oracle全文檢索
人氣排行 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 Oracle中使用alter table來增加,刪除,修改列的語法 ORACLE SQL 判斷字符串是否為數(shù)字的語句 ORACLE和SQL語法區(qū)別歸納(1) oracle grant 授權(quán)語句 ORACLE修改IP地址后如何能夠使用 如何加速Oracle大批量數(shù)據(jù)處理 Oracle刪除表的幾種方法