搜尋
首頁資料庫mysql教程Oracle 11gR2 安装RAC错误之--时钟不同步

系统环境: 操作系统:RedHat EL5 Cluster: Oracle GI(Grid Infrastructure) Oracle: Oracle 11.2.0.1.0 如图所示:RAC 系统架

系统环境:

操作系统:RedHat EL5

Cluster: Oracle GI(Grid Infrastructure)

Oracle:  Oracle 11.2.0.1.0

如图所示:RAC 系统架构

Oracle 11gR2 安装RAC错误之--时钟不同步

对于Oracle 11G构建RAC首先需要构建GI(Grid Infrastructure)的架构

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

 

Linux-6-64下安装Oracle 12C笔记

 

在CentOS 6.4下安装Oracle 11gR2(x64)

 

Oracle 11gR2 在VMWare虚拟机中安装步骤

 

Debian 下 安装 Oracle 11g XE R2

 

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

错误现象:

在node2执行root.sh脚本时报错:

 

[root@xun2 install]# /u01/11.2.0/grid/root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /u01/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

  Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

  Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

  Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

2014-07-05 02:00:09: Parsing the host name

2014-07-05 02:00:09: Checking for super user privileges

2014-07-05 02:00:09: User has super user privileges

Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params

LOCAL ADD MODE

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Adding daemon to inittab

CRS-4123: Oracle High Availability Services has been started.

ohasd is starting

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node xun1, number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

CRS-2672: Attempting to start 'ora.mdnsd' on 'xun2'

CRS-2676: Start of 'ora.mdnsd' on 'xun2' succeeded

CRS-2672: Attempting to start 'ora.gipcd' on 'xun2'

CRS-2676: Start of 'ora.gipcd' on 'xun2' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'xun2'

CRS-2676: Start of 'ora.gpnpd' on 'xun2' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'xun2'

CRS-2676: Start of 'ora.cssdmonitor' on 'xun2' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'xun2'

CRS-2672: Attempting to start 'ora.diskmon' on 'xun2'

CRS-2676: Start of 'ora.diskmon' on 'xun2' succeeded

CRS-2676: Start of 'ora.cssd' on 'xun2' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'xun2'

CRS-2674: Start of 'ora.ctssd' on 'xun2' failed

CRS-4000: Command Start failed, or completed with errors.

Command return code of 1 (256) from command: /u01/11.2.0/grid/bin/crsctl start resource ora.ctssd -init -env USR_ORA_ENV=CTSS_REBOOT=TRUE

Start of resource "ora.ctssd -init -env USR_ORA_ENV=CTSS_REBOOT=TRUE" failed

Failed to start CTSS

Failed to start Oracle Clusterware stack

查看日志:

[root@xun2 ctssd]# more  octssd.log

Oracle Database 11g Clusterware Release 11.2.0.1.0 - Production Copyright 1996, 2009 Oracle. A

ll rights reserved.

2014-07-05 01:36:39.677: [    CTSS][3046594240]Oracle Database CTSS Release 11.2.0.1.0 Product

ion Copyright 2006, 2007 Oracle.  All rights reserved.

2014-07-05 01:36:39.677: [    CTSS][3046594240]ctss_scls_init: SCLs Context is 0x88205f0

2014-07-05 01:36:39.685: [    CTSS][3046594240]ctss_css_init: CSS Context is 0x8820698

2014-07-05 01:36:39.686: [    CTSS][3046594240]ctss_clsc_init: CLSC Context is 0x8820fd8

2014-07-05 01:36:39.686: [    CTSS][3046594240]ctss_init: CTSS production mode

2014-07-05 01:36:39.686: [    CTSS][3046594240]ctss_init: CTSS_REBOOT=TRUE. Overriding 'reboot

' argument as if 'octssd reboot' is executed. Turn on start up step sync.

2014-07-05 01:36:39.695: [    CTSS][3046594240]sclsctss_gvss2: NTP default pid file not found

2014-07-05 01:36:39.695: [    CTSS][3046594240]sclsctss_gvss8: Return [0] and NTP status [1].

2014-07-05 01:36:39.695: [    CTSS][3046594240]ctss_check_vendor_sw: Vendor time sync software

 is not detected. status [1].

2014-07-05 01:36:39.695: [    CTSS][3046594240]ctsscomm_init: The Socket name is [(ADDRESS=(PR

OTOCOL=tcp)(HOST=xun2))]

2014-07-05 01:36:39.772: [    CTSS][3046594240]ctsscomm_init: Successful completion.

2014-07-05 01:36:39.772: [    CTSS][3046594240]ctsscomm_init: PORT = 31165

2014-07-05 01:36:39.772: [    CTSS][3020295056]CTSS connection handler started

[    CTSS][3009805200]clsctsselect_mm: Master Monitor thread started

[    CTSS][2999315344]ctsselect_msm: Slave Monitor thread started

2014-07-05 01:36:39.772: [    CTSS][2988825488]ctsselect_mmg: The local nodenum is 2

2014-07-05 01:36:39.776: [    CTSS][2988825488]ctsselect_mmg2_5: Pub data for member [1]. {Ver

sion [1] Node [1] Priv node name [xun1] Port num [53367] SW version [186646784] Mode [0x40]}

2014-07-05 01:36:39.779: [    CTSS][2988825488]ctsselect_mmg4: Successfully registered with [C

TSSMASTER]

2014-07-05 01:36:39.779: [    CTSS][2988825488]ctsselect_mmg6: Receive reconfig event. Inc num

[2] New master [2] members count[1]

2014-07-05 01:36:39.780: [    CTSS][2988825488]ctsselect_mmg8: Host [xun1] Node num [1] is the

 master

2014-07-05 01:36:39.781: [    CTSS][2988825488]ctsselect_sm2: Node [1] is the CTSS master

2014-07-05 01:36:39.782: [    CTSS][2988825488]ctssslave_meh1: Master private node name [xun1]

2014-07-05 01:36:39.782: [    CTSS][2988825488]ctssslave_msh: Connect String is (ADDRESS=(PROT

OCOL=tcp)(HOST=xun1)(PORT=53367))

[  clsdmt][2978335632]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=xun2DBG_CTSSD))

2014-07-05 01:36:39.783: [  clsdmt][2978335632]PID for the Process [24020], connkey 11

2014-07-05 01:36:39.783: [    CTSS][2988825488]ctssslave_msh: Forming connection with CTSS mas

ter node [1]

2014-07-05 01:36:39.784: [  clsdmt][2978335632]Creating PID [24020] file for home /u01/11.2.0/

grid host xun2 bin ctss to /u01/11.2.0/grid/ctss/init/

2014-07-05 01:36:39.786: [  clsdmt][2978335632]Writing PID [24020] to the file [/u01/11.2.0/gr

id/ctss/init/xun2.pid]

2014-07-05 01:36:39.786: [    CTSS][2988825488]ctssslave_msh: Successfully connected to master

 [1]

2014-07-05 01:36:39.827: [    CTSS][2988825488]ctssslave_swm: The magnitude [228530967053 usec

] of the offset [-228530967053 usec] is larger than [86400000000 usec] sec which is the CTSS l

imit.

2014-07-05 01:36:39.827: [    CTSS][2988825488]ctsselect_mmg9_3: Failed in clsctsselect_select

_mode [12]: Time offset is too much to be corrected

2014-07-05 01:36:40.582: [    CTSS][2978335632]ctss_checkcb: clsdm requested check alive. Retu

rns [40000050]

2014-07-05 01:36:40.582: [    CTSS][2988825488]ctsselect_mmg: CTSS daemon exiting [12].

2014-07-05 01:36:40.582: [    CTSS][2988825488]CTSS daemon aborting

查看两个节点的时钟:

[root@xun2 ctssd]# date

Sat Jul  5 02:06:09 CST 2014

[root@xun2 ctssd]# date 0707173614

Mon Jul  7 17:36:00 CST 2014

两个节点时间相差很远,,导致CRS时间同步失败!

更多详情见请继续阅读下一页的精彩内容:

linux

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
您什麼時候應該使用複合索引與多個單列索引?您什麼時候應該使用複合索引與多個單列索引?Apr 11, 2025 am 12:06 AM

在數據庫優化中,應根據查詢需求選擇索引策略:1.當查詢涉及多個列且條件順序固定時,使用複合索引;2.當查詢涉及多個列但條件順序不固定時,使用多個單列索引。複合索引適用於優化多列查詢,單列索引則適合單列查詢。

如何識別和優化MySQL中的慢速查詢? (慢查詢日誌,performance_schema)如何識別和優化MySQL中的慢速查詢? (慢查詢日誌,performance_schema)Apr 10, 2025 am 09:36 AM

要優化MySQL慢查詢,需使用slowquerylog和performance_schema:1.啟用slowquerylog並設置閾值,記錄慢查詢;2.利用performance_schema分析查詢執行細節,找出性能瓶頸並優化。

MySQL和SQL:開發人員的基本技能MySQL和SQL:開發人員的基本技能Apr 10, 2025 am 09:30 AM

MySQL和SQL是開發者必備技能。 1.MySQL是開源的關係型數據庫管理系統,SQL是用於管理和操作數據庫的標準語言。 2.MySQL通過高效的數據存儲和檢索功能支持多種存儲引擎,SQL通過簡單語句完成複雜數據操作。 3.使用示例包括基本查詢和高級查詢,如按條件過濾和排序。 4.常見錯誤包括語法錯誤和性能問題,可通過檢查SQL語句和使用EXPLAIN命令優化。 5.性能優化技巧包括使用索引、避免全表掃描、優化JOIN操作和提升代碼可讀性。

描述MySQL異步主奴隸複製過程。描述MySQL異步主奴隸複製過程。Apr 10, 2025 am 09:30 AM

MySQL異步主從復制通過binlog實現數據同步,提升讀性能和高可用性。 1)主服務器記錄變更到binlog;2)從服務器通過I/O線程讀取binlog;3)從服務器的SQL線程應用binlog同步數據。

mysql:簡單的概念,用於輕鬆學習mysql:簡單的概念,用於輕鬆學習Apr 10, 2025 am 09:29 AM

MySQL是一個開源的關係型數據庫管理系統。 1)創建數據庫和表:使用CREATEDATABASE和CREATETABLE命令。 2)基本操作:INSERT、UPDATE、DELETE和SELECT。 3)高級操作:JOIN、子查詢和事務處理。 4)調試技巧:檢查語法、數據類型和權限。 5)優化建議:使用索引、避免SELECT*和使用事務。

MySQL:數據庫的用戶友好介紹MySQL:數據庫的用戶友好介紹Apr 10, 2025 am 09:27 AM

MySQL的安裝和基本操作包括:1.下載並安裝MySQL,設置根用戶密碼;2.使用SQL命令創建數據庫和表,如CREATEDATABASE和CREATETABLE;3.執行CRUD操作,使用INSERT,SELECT,UPDATE,DELETE命令;4.創建索引和存儲過程以優化性能和實現複雜邏輯。通過這些步驟,你可以從零開始構建和管理MySQL數據庫。

InnoDB緩衝池如何工作,為什麼對性能至關重要?InnoDB緩衝池如何工作,為什麼對性能至關重要?Apr 09, 2025 am 12:12 AM

InnoDBBufferPool通過將數據和索引頁加載到內存中來提升MySQL數據庫的性能。 1)數據頁加載到BufferPool中,減少磁盤I/O。 2)臟頁被標記並定期刷新到磁盤。 3)LRU算法管理數據頁淘汰。 4)預讀機制提前加載可能需要的數據頁。

MySQL:初學者的數據管理易用性MySQL:初學者的數據管理易用性Apr 09, 2025 am 12:07 AM

MySQL適合初學者使用,因為它安裝簡單、功能強大且易於管理數據。 1.安裝和配置簡單,適用於多種操作系統。 2.支持基本操作如創建數據庫和表、插入、查詢、更新和刪除數據。 3.提供高級功能如JOIN操作和子查詢。 4.可以通過索引、查詢優化和分錶分區來提升性能。 5.支持備份、恢復和安全措施,確保數據的安全和一致性。

See all articles

熱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.能量晶體解釋及其做什麼(黃色晶體)
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳圖形設置
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您聽不到任何人,如何修復音頻
3 週前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解鎖Myrise中的所有內容
3 週前By尊渡假赌尊渡假赌尊渡假赌

熱工具

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Atom編輯器mac版下載

Atom編輯器mac版下載

最受歡迎的的開源編輯器

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

強大的PHP整合開發環境

EditPlus 中文破解版

EditPlus 中文破解版

體積小,語法高亮,不支援程式碼提示功能