關閉開啟oracle服務,cmd命令

2021-06-27 20:38:22 字數 3178 閱讀 3411

設定set oracle_sid=orcl

orcl--例項名稱

--停止oracle例項服務

c:\users\administrator>net stop 

oracleserviceorcl

oracleserviceorcl服務正在停止.........

oracleserviceorcl服務已成功停止。

--啟動oracle例項服務

c:\users\administrator>net start 

oracleserviceorcl

oracleserviceorcl 服務正在啟動 ........

oracleserviceorcl 服務已經啟動成功。

--啟動oracle監聽服務

c:\users\administrator>lsnrctl start

lsnrctl for 32-bit windows: version 10.2.0.1.0 - production on06-5月 -2011 11:2

0:27

啟動tnslsnr: 請稍候...

tnslsnr for 32-bit windows: version 10.2.0.1.0 -production

系統引數檔案為h:\oracle\product\10.2.0\db_1\network\admin\listener.ora

寫入h:\oracle\product\10.2.0\db_1\network\log\listener.log的日誌資訊

監聽:(description=(address=(protocol=ipc)(pipename=\\.\pipe\extproc1ipc)))

監聽:(description=(address=(protocol=tcp)(host=oudh8n52jsgddzg)(port=1521)))

正在連線到(description=(address=(protocol=ipc)(key=extproc1)))

listener 的 status

------------------------

別名  

listener

版本  

tnslsnr for 32-bit windows:version 10.2.0.1.0 - produ

ction

啟動日期  

06-5月 -201111:20:34

正常執行時間  

0 天 0 小時 0 分 6 秒

跟蹤級別  

off

安全性  

on: local os authentication

snmp  

off

監聽程式引數檔案  

h:\oracle\product\10.2.0\db_1\network\admin\listener.o

ra監聽程式日誌檔案  

h:\oracle\product\10.2.0\db_1\network\log\listener.log

監聽端點概要...

(description=(address=(protocol=ipc)(pipename=\\.\pipe\extproc1ipc)))

(description=(address=(protocol=tcp)(host=oudh8n52jsgddzg)(port=1521)))

服務摘要..

服務 "pl***tproc" 包含 1 個例程。

例程 "pl***tproc", 狀態 unknown,包含此服務的 1 個處理程式...

命令執行成功

--停止oracle監聽服務

c:\users\administrator>lsnrctl stop

lsnrctl for 32-bit windows: version 10.2.0.1.0 - production on06-5月 -2011 11:1

4:30

正在連線到(description=(address=(protocol=ipc)(key=extproc1)))

命令執行成功

--啟動oracle控制台服務

c:\users\administrator>emctl start dbconsole

oracle enterprise manager 10g database control release10.2.0.1.0

starting oracle enterprise manager 10g database control...oracledbconsoleorcl

服務正在啟動 ................

oracledbconsoleorcl 服務已經啟動成功。

--停止oracle控制台服務

c:\users\administrator>emctl stop dbconsole

oracle enterprise manager 10g database control release10.2.0.1.0

oracledbconsoleorcl 服務正在停止....

oracledbconsoleorcl 服務已成功停止。

設定set oracle_sid=orcl

orcl--例項名稱

--停止oracle例項服務

c:\users\administrator>net stop oracleserviceorcl

oracleserviceorcl 服務正在停止.........

oracleserviceorcl 服務已成功停止。

listener

版本  

tnslsnr for 32-bit windows:version 10.2.0.1.0 - produ

ction

啟動日期  

06-5月 -201111:20:34

正常執行時間  

0 天 0 小時 0 分 6 秒

跟蹤級別  

off安全性  

on: local os authentication

snmp  

off監聽程式引數檔案  

h:\oracle\product\10.2.0\db_1\network\admin\listener.o

ra監聽程式日誌檔案  

cop

***

關閉開啟oracle服務

大家都知道oracle是很占用記憶體的,電腦稍微差點開機關機都卡半天.所以可以寫乙個自動檢測關閉開啟oracle服務的vbs指令碼 如下 set ws createobject wscript.shell set src getobject winmgmts root cimv2 execquery...

cmd指令碼之啟動 關閉Oracle服務

背景 最近電腦上在跑虛擬機器,16g記憶體已經不夠用了,時常發生軟體因記憶體不夠崩潰的情況,開啟任務管理器一看oracle服務佔了2g多記憶體,平時也不怎麼用,關掉吧,就寫了這個指令碼 啟動oracle服務指令碼 echo off net.exe session 1 nul 2 nul net st...

開啟和關閉Oracle服務的BAT

1 開啟oracle服務 net start oracleoradb10g home1tnslistener net start oracleserviceorcl net start oracleoradb10g home1isql plus pause 2 關閉oracle服務 net stop...