Oracle常用啟停命令

2022-09-14 00:48:13 字數 825 閱讀 2162

一、監聽啟停

oracle監聽的啟動、停止和狀態檢視

oracle監聽啟動:

lsnrctl start

oracle監聽停止:

lsnrctl stop

oracle監聽狀態

lsnrctl status

oracle監聽的過載:

lsnrctl reload

注:如果對監聽配置檔案做了修改,又不想停止監聽,可以考慮lsnrctl reload命令!不會對已連線會話造成影響

二、em啟停

em啟動

emctl start dbconsole

em停止

emctl stop dbconsole

em狀態查詢

emctl status dbconsole

三、資料庫啟停

首先介紹資料庫的四種狀態

shutdown狀態: oracle資料庫沒有啟動;

nomount狀態: sga和後台程序已經啟動;

mount狀態: 通過引數讀取了控制檔案,擁有sysdba許可權的可以進行一些資料的備份和恢復操作,其他使用者還不能訪問;

open狀態; 其他使用者正常訪問。

正常情況啟動資料庫的命令

startup;

startup nonount;

alter database mount;

alter database open;

資料庫關閉的命令

正常關閉資料庫

shutdown immediate;

強行關閉資料庫(資料庫不能正常關閉的時候)

shutdown abort;

windows 啟停Oracle服務

c net start oracleservicemyoracle oracleservicemyoracle 服務正在啟動 oracleservicemyoracle 服務已經啟動成功。在正常情況下,資料庫即可隨之啟動,如果資料庫不能啟動,則可以通過sysdba身份連線進入資料庫,手工mount並...

linux下oracle的啟停

color red 整理下供備用!color 安裝完畢oracle以後,需要建立oracle系統使用者,並在 home oracle下面的.bash profile新增幾個環境變數 oracle sid,oracle base,oracle home。比如 export oracle sid tes...

SVN啟停指令碼

說明 特別注意紅色部分,外部 1傳入msg函式時失效,故特此讀取一遍再傳入!執行時要給指令碼加執行許可權!chmod 755 scripts svn root kazihuo scripts cat svn 1 bin bash 2 by luomurui 2018 05 07 34 f etc i...