首頁 資料庫 mysql教程 Oracle RAC常用管理命令

Oracle RAC常用管理命令

Jun 07, 2016 pm 03:01 PM
oracle rac 命令 常用 管理 進入

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 1. 可以配置一些Oracle用到的变量 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 export ORACLE_SID=NEWRAC2 ORACLE_HOSTNAME="newrac01.hq.lumigen

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入

  1. 可以配置一些Oracle用到的变量

  export ORACLE_BASE=/u01/app/oracle

  export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1

  export ORACLE_SID=NEWRAC2

  ORACLE_HOSTNAME="newrac01.hq.lumigent.int"

  export PATH=/u01/app/oracle/product/11.1.0/db_1/bin:$PATH

  export ORA_CRS_HOME=/u01/app/crs/product/11.1.0/crs

  export PATH=/u01/app/crs/product/11.1.0/crs/bin:$PATH

  export ORACLE_USER=orarac

  2.   crsctl     ,检查crs

  crsctl check crs    检查crs状态

  crsctl start crs     启动crs

  crsctl stop crs

  crsctl check crsd

  crs_stat -t

  等等,其 /etc/init.d/init.crs stop   /etc/init.d/init.crsd stop    等开机启动service 脚本如果

  如果你发现crs不能正常工作可以检查调试一下这些脚本,检查一下进程是不是这个脚本可以正常工作。

  crs的启动log 在 $ORA_CRS_HOME/log    $ORA_CRS_HOME/log/client 下面可以找到。出现错误可以检查一下对应的log

  3. srvctl 启动数据库与实例

  srvctl start database -d NEWRAC 启动名字为NEWRAC的数据库

  查看当前数据库的状态

  [root@newrac02 ~]# srvctl status database -d NEWRAC

  Instance NEWRAC1 is running on node newrac01

  Instance NEWRAC2 is running on node newrac02

  srvctl start instance -d NEWRAC   -i newrac1 启动某一个实例

  4、检查rac的配置文件 ,可以在里面找到数据库的名字等

  /u01/oradata/NEWRAC/spfileNEWRAC.ora

  /u01/app/oracle/admin/NEWRAC/pfile/init.ora.5302010204445

  另附网络上找到的几篇文章:

  Day-to-day management of Oraclehttp://www.6api.com/day-to-day-management-of-oracle-10g-rac/

  ==================================================

  Day-to-day management of Oracle 10G RAC

  CRS management

  rnCRSCTL command control of the CRS Services local node (Oracle clusterware processes)

  rn stop CRS:

  rn $ crsctl stop crs or

  rn $ / etc / init.crs stop or

  rn $ crs_stop-all

  rn start CRS:

  rn $ crsctl start crs or

  rn $ / etc / init.crs start

  rn prohibited Clusterware restart automatically at system startup methods:

  rn $ / etc / init.crs disable

  rn start Clusterware restart automatically at system startup methods:

  rn $ / etc / init.crs enable

  rn view the status CRS Services

  rn $ crsctl check crs

  rnOCR resource management

  rnOCR resources, when the RAC cluster up and running successfully, you can use the instrument crs_stat see the following:

  rn $ ORA_CRS_HOME / bin / crs_stat

  rn general, the status of all resources should be online. In addition, OCR will be four hours each to back up first. Have some cases you can restore the OCR configuration file to restore problems OCR.

  rn such as the use of the following situations occur:

  rn $ crs_stat-t

  rnCRS-0184: Cannot communicate with the CRS daemon.

  rn $ crsctl check boot

  rnFailure 4 at procr_open_key with status 4.

  rnPROC-4: The cluster registry key to be operated on does not exist.

  rn $ crsctl check crs

  rnFailure 1 contacting CSS daemon

  rnCannot communicate with CRS

  rnCannot communicate with EVM

  rn caused this error may be due to a lost OCR configuration. We can use this backup to restore the previous configuration.

[1] [2] [3] [4] [5] 

Oracle RAC常用管理命令

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
2 週前 By 尊渡假赌尊渡假赌尊渡假赌
倉庫:如何復興隊友
4 週前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

oracle中計算兩個日期之間天數的函數 oracle中計算兩個日期之間天數的函數 May 08, 2024 pm 07:45 PM

oracle中計算兩個日期之間天數的函數

oracle資料庫日誌會保存多久 oracle資料庫日誌會保存多久 May 10, 2024 am 03:27 AM

oracle資料庫日誌會保存多久

oracle資料庫啟動步驟順序為 oracle資料庫啟動步驟順序為 May 10, 2024 am 01:48 AM

oracle資料庫啟動步驟順序為

oracle中interval的用法 oracle中interval的用法 May 08, 2024 pm 07:54 PM

oracle中interval的用法

oracle中某個字元出現的次數怎麼看出來 oracle中某個字元出現的次數怎麼看出來 May 09, 2024 pm 09:33 PM

oracle中某個字元出現的次數怎麼看出來

oracle資料庫伺服器硬體配置需求 oracle資料庫伺服器硬體配置需求 May 10, 2024 am 04:00 AM

oracle資料庫伺服器硬體配置需求

oracle需要多少內存 oracle需要多少內存 May 10, 2024 am 04:12 AM

oracle需要多少內存

oracle中替換字串的方法 oracle中替換字串的方法 May 08, 2024 pm 07:24 PM

oracle中替換字串的方法

See all articles