久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

Oracle Rac常用命令有哪些

176次閱讀
沒有評論

共計 2067 個字符,預(yù)計需要花費 6 分鐘才能閱讀完成。

這篇文章主要介紹“Oracle Rac 常用命令有哪些”,在日常操作中,相信很多人在 Oracle Rac 常用命令有哪些問題上存在疑惑,丸趣 TV 小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”O(jiān)racle Rac 常用命令有哪些”的疑惑有所幫助!接下來,請跟著丸趣 TV 小編一起來學(xué)習(xí)吧!

–(cd $ORACLE_HOME/bin/)

– 查詢

– 查詢節(jié)點

olsnodes -s

– 查看集群名稱

cemutlo -n

– 查詢?nèi)杭癄顟B(tài)

– 也可以加 -all 查詢所有節(jié)點

crsctl check cluster

– 檢查 crs 狀態(tài)

crsctl check crs

– 檢查集群中資源的狀態(tài)

–crs_* 命令 oracle 官方已經(jīng)不建議使用了

crsctl stat res -t

crs_stat -t

– 查詢節(jié)點應(yīng)用程序狀態(tài)

srvctl status nodeapps

– 節(jié)點應(yīng)用程序配置(VIP、GSD、ONS、監(jiān)聽器)

srvctl config nodeapps

–ASM 查詢

srvctl status asm

srvctl status asm -a

– 查看 asm 配置

srvctl config asm -a

– 監(jiān)聽查看

– 查看監(jiān)聽狀態(tài)

srvctl status listener

– 查看監(jiān)聽配置

srvctl config listener -a

– 查看 scan 監(jiān)聽器的狀態(tài)

srvctl status scan_listener

– 查看 scan 網(wǎng)絡(luò)配置

srvctl config scan

– 查看 vip 網(wǎng)絡(luò)

srvctl status vip -n hking1

srvctl config vip -n hking2

– 數(shù)據(jù)庫查看

– 數(shù)據(jù)庫名稱

srvctl config database

– 數(shù)據(jù)庫狀態(tài)

srvctl status database -d hking

srvctl status database -d hking -f -v

– 檢查指定實例的狀態(tài)

srvctl status instance -d hking -i hking1

– 查看數(shù)據(jù)庫配置

srvctl config database -d hking -a

– 管理命令

–RAC 群集管理命令

– 停止 啟動節(jié)點集群服務(wù),須要以 root 用戶

–crs_start 命令

– 啟動

crs_start -all

– 查看              

crs_start -t

– 關(guān)閉

crs_stop -all

–crsctl 命令

– 啟動

crsctl start crs -wait

– 查看              

crsctl stat res -t

– 關(guān)閉

crsctl stop crs -wait

– 停止所有節(jié)點集群服務(wù)

crsctl stop cluster -all

– 停止本節(jié)點集群服務(wù)

crsctl stop cluster

– 自啟動設(shè)置

– 查詢狀態(tài)

crsctl config crs

–(查詢結(jié)果)

CRS-4622: Oracle High Availability Services autostart is enabled.

– 如果上面檢查出來的狀態(tài)是 disable 可以通過以下命令進(jìn)行啟用

crsctl enable crs

– 關(guān)閉 database

srvctl stop database -d hking

srvctl status database -d hking

– 從 OCR 中刪除已有的數(shù)據(jù)庫

srvctl remove database -d hking

– 向 OCR 中添加一個數(shù)據(jù)庫的實例

srvctl add instance -d -i -n

– 通過 srvctl 命令管理一個節(jié)點的 rac

srvctl start|stop|status nodeapps -n node1

– 查看節(jié)點 1 狀態(tài)

srvctl status nodeapps -n hking1

–ORACLE 數(shù)據(jù)庫管理命令

– 通過 SRVCTL 命令來 start/stop/check 所有的實例

srvctl start|stop|status database -d db_name

srvctl status database -d hking

– 通過 SRVCTL 命令來 start/stop/check 管理指定實例

srvctl start|stop|status instance -d -i 

– 查詢實例 1 狀態(tài)

srvctl status instance -d hking -i hking1

–ASM 管理命令

– 啟動前確保 css、has 服務(wù)啟動

– 啟動 ASM 實例

sqlplus / as sysasm

startup

select instance_name,status from v$instance;

– 進(jìn)入 ASM

asmcmd -p 

– 重啟 RAC 數(shù)據(jù)庫

– 關(guān)閉順序:關(guān)閉 PDB– 關(guān)閉數(shù)據(jù)庫 – 關(guān)閉集群服務(wù) (先關(guān)閉 PDB 在關(guān)閉數(shù)據(jù)庫實例,否則 smon 將有一個自動恢復(fù)過程)

– 啟動順序:開機自啟動集群服務(wù)查看集群服務(wù)器是否正常 – 打開數(shù)據(jù)庫 – 啟動 PDB(默認(rèn)是在 mount 狀態(tài)下)

到此,關(guān)于“Oracle Rac 常用命令有哪些”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注丸趣 TV 網(wǎng)站,丸趣 TV 小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-26發(fā)表,共計2067字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 左贡县| 水城县| 博湖县| 唐海县| 双鸭山市| 延安市| 西青区| 扶沟县| 神农架林区| 容城县| 陕西省| 丰原市| 金沙县| 乌兰县| 黄平县| 黑龙江省| 宁化县| 启东市| 犍为县| 孟连| 英山县| 莲花县| 勐海县| 阿荣旗| 内黄县| 德格县| 即墨市| 葵青区| 泗阳县| 白城市| 永安市| 日照市| 汉寿县| 保靖县| 来宾市| 东阿县| 安平县| 台中市| 芦溪县| 平利县| 浦县|