Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Error in installing RAC in Oracle 11gR2-clock out of sync

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Error in installing RAC in Oracle 11gR2-clock out of sync

System environment:

Operating system: RedHat EL5

Cluster: Oracle GI (Grid Infrastructure)

Oracle: Oracle 11.2.0.1.0

As shown in the figure: RAC system architecture

For Oracle 11G to build RAC, we first need to build the architecture of GI (Grid Infrastructure).

Error phenomenon:

Execute root.sh script in node2 Times error:

[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/gridEnter the full pathname of the local bin directory: [/ usr/local/bin]: The file "dbhome" already exists in / usr/local/bin. Overwrite it? [n]: y Copying dbhome to / usr/local/bin... The file "oraenv" already exists in / usr/local/bin. Overwrite it? [n]: y Copying oraenv to / usr/local/bin... The file "coraenv" already exists in / usr/local/bin. Overwrite it? [n]: y Copying coraenv to / usr/local/bin... Entries will be added to the / etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2014-07-05 02:00:09: Parsing the host name2014-07-05 02:00:09: Checking for super user privileges2014-07-05 02:00:09: User has super user privilegesUsing configuration parameter file: / u01 debase 11.2 .0 / grid/crs/install/crsconfig_paramsLOCAL ADD MODE Creating OCR keys for user 'root' Privgrp 'root'..Operation successful.Adding daemon to inittabCRS-4123: Oracle High Availability Services has been started.ohasd is startingCRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node xun1, number 1, and is terminatingAn active cluster was found during exclusive startup Restarting to join the clusterCRS-2672: Attempting to start 'ora.mdnsd' on' xun2'CRS-2676: Start of 'ora.mdnsd' on' xun2' succeededCRS-2672: Attempting to start 'ora.gipcd' on' xun2'CRS-2676: Start of 'ora.gipcd' on' xun2' succeededCRS-2672: Attempting to start 'ora.gpnpd' on' xun2'CRS-2676: Start of 'ora.gpnpd' on' xun2' succeededCRS-2672: Attempting to start 'ora.cssdmonitor' on' xun2'CRS-2676: Start of' Ora.cssdmonitor' on' xun2' succeededCRS-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' succeededCRS-2676: Start of' ora.cssd' on' xun2' succeededCRS-2672: Attempting to start 'ora.ctssd' on' xun2'CRS-2674: Start of' ora.ctssd' on' xun2' failedCRS-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=TRUEStart of resource "ora.ctssd-init-env USR_ORA_ENV=CTSS_REBOOT=TRUE" failedFailed to start CTSSFailed to start Oracle Clusterware stack

View the log:

[root@xun2 ctssd] # more octssd.log

Oracle Database 11g Clusterware Release 11.2.0.1.0-Production Copyright 1996, 2009 Oracle. All rights reserved.2014-07-05 01 Production Copyright 3615 39.677: [CTSS] [3046594240] Oracle Database CTSS Release 11.2.0.1.0 Production Copyright 2006, 2007 Oracle. All rights reserved.2014-07-05 01 ctss_scls_init: SCLs Context is 0x88205f02014-07-05 01 CTSS: [3046594240] ctss_css_init: CSS Context is 0x88206982014-07-05 01 ctss: [CTSS] [3046594240] ctss_clsc_init: CLSC Context is 0x8820fd82014-07-05 01Rank 3639.686: [CTSS] [3046594240] _ init: CTSS production mode2014-07-05 01 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 sclsctss_gvss8: Return [0] and NTP status [1]. 2014-07-05 01 sclsctss_gvss2: [CTSS] [3046594240] ctss_check_vendor_sw: Vendor time sync software is not detected. Status [1]. 2014-07-05 01 ctsscomm_init: [CTSS] [3046594240] ctsscomm_init: The Socket name is [(ADDRESS= (PROTOCOL=tcp) (HOST=xun2))] 2014-07-05 01 36 V 39.772: [CTSS] [3046594240] ctsscomm_init: Successful completion.2014-07-05 01 36 V 39.772: [CTSS] [3046594240] ctsscomm_init: PORT = 311652014-07-05 01 Switzerland 3639.772: [ CTSS] [3020295056] CTSS connection handler started [CTSS] [3009805200] clsctsselect_mm: Master Monitor thread started [CTSS] [2999315344] ctsselect_msm: Slave Monitor thread started2014-07-05 01 ctsselect_mmg: [CTSS] [2988825488] ctsselect_mmg: The local nodenum is 22014-07-05 0136 CTSS: [2988825488] ctsselect_mmg2_5: Pub data for member [1]. {Version [1] Node [1] Priv node name [xun1] Port num [53367] SW version [186646784] Mode [0x40]} 2014-07-05 01 ctsselect_mmg4: [CTSS] [2988825488] ctsselect_mmg4: Successfully registered with [CTSSMASTER] 2014-07-05 01 ctsselect_mmg6: Receive reconfig event. Inc num [2] New master [2] members count [1] 2014-07-05 01 ctsselect_sm2 3639. 780: [CTSS] [2988825488] ctsselect_mmg8: Host [xun1] Node num [1] is the master2014-07-05 01 ctsselect_sm2: [CTSS] [2988825488] ctsselect_sm2: Node [1] is the CTSS master2014-07-05 01 ctsselect_sm2: [2014] [2014] ctssslave_meh2: Master private node name [xun1] 2014-2014 07-05 01 PROTOCOL=ipc 36V 39.782: [CTSS] [2988825488] ctssslave_msh: Connect String is (ADDRESS= (PROTOCOL=tcp) (HOST=xun1) (PORT=53367)) [clsdmt] [2978335632] Listening to (ADDRESS= (PROTOCOL=ipc) (KEY=xun2DBG_CTSSD)) 2014-07-05 0136V 39.783: [clsdmt] [2978335632] PID for the Process [24020] Connkey 11 2014-07-05 01 ctssslave_msh: Forming connection with CTSS master node [1] 2014-07-05 01 ctssslave_msh: [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 Writing PID 39.786: [clsdmt] [2978335632] 24020] to the file [/ u01/11.2.0/grid/ctss/init/xun2.pid] 2014-07-05 01 is larger than 3615 39.786: [CTSS] [2988825488] ctssslave_msh: Successfully connected to master [1] 2014-07-05 01 Freight 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 limit.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 corrected2014-07-05 01VV 36RV 40.582: [CTSS] [2978335632] ctss_checkcb: clsdm requested check alive. Returns [40000050] 2014-07-05 01 ctsselect_mmg: [CTSS] [2988825488] ctsselect_mmg: CTSS daemon exiting [12]. 2014-07-05 01 Swiss 36 Swiss 40.582: [CTSS] [2988825488] CTSS daemon aborting

View the clocks of both nodes:

[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

The time difference between the two nodes is very different, resulting in CRS time synchronization failure!

Time to adjust node2:

[root@xun2 ctssd] # man date

DATE (1) User Commands DATE (1)

NAME

Date-print or set the system date and time

SYNOPSIS

Date [OPTION]... [+ FORMAT]

Date [- u |-- utc |-- universal] [MMDDhhmm [[CC] YY] [.ss]]

[root@xun2 ctssd] # date 0707173614

[grid@xun1 ~] $date

Mon Jul 7 17:36:04 CST 2014

Delete the node CRS configuration information and re-execute root.sh:

[root@xun2 install] # perl rootcrs.pl-deconfig-force

2014-07-07 17:36:14: Parsing the host name2014-07-07 17:36:14: Checking for super user privileges2014-07-07 17:36:14: User has super user privilegesUsing configuration parameter file:. / crsconfig_paramsPRCR-1035: Failed to look up CRS resource ora.cluster_vip.type for 1PRCR-1068: Failed to query resourcesCannot communicate with crsdPRCR-1070: Failed to check if resource ora.gsd is registeredCannot communicate with crsdPRCR-1070: Failed to check if resource ora.ons is registeredCannot communicate with crsdPRCR-1070: Failed to Check if resource ora.eons is registeredCannot communicate with crsdACFS-9200: SupportedCRS-4535: Cannot communicate with Cluster Ready ServicesCRS-4000: Command Stop failed Or completed with errors.CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'xun2'CRS-2673: Attempting to stop' ora.gpnpd' on 'xun2'CRS-2673: Attempting to stop' ora.cssdmonitor' on 'xun2'CRS-2673: Attempting to stop' ora.mdnsd' on 'xun2'CRS-2677: Stop of' ora.cssdmonitor' on 'xun2' succeededCRS-2673: Attempting to stop' ora.cssd' on 'xun2'CRS-2677: Stop of' ora.cssd' on 'xun2' succeededCRS-2673 : Attempting to stop 'ora.diskmon' on' xun2'CRS-2677: Stop of' ora.gpnpd' on' xun2' succeededCRS-2673: Attempting to stop 'ora.gipcd' on' xun2'CRS-2677: Stop of' ora.mdnsd' on' xun2' succeededCRS-2677: Stop of 'ora.gipcd' on' xun2' succeededCRS-2677: Stop of' ora.diskmon' on' xun2' succeededCRS-2793: Shutdown of Oracle High Availability Services-managed resources on' xun2' has completedCRS-4133: Oracle High Availability Services has been stopped.error : package cvuqdisk is not installedSuccessfully deconfigured Oracle clusterware stack on this node

[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/gridEnter the full pathname of the local bin directory: [/ usr/local/bin]: The file "dbhome" already exists in / usr/local/bin. Overwrite it? [n]: y Copying dbhome to / usr/local/bin... The file "oraenv" already exists in / usr/local/bin. Overwrite it? [n]: y Copying oraenv to / usr/local/bin... The file "coraenv" already exists in / usr/local/bin. Overwrite it? [n]: y Copying coraenv to / usr/local/bin... Entries will be added to the / etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2014-07-07 17:37:31: Parsing the host name2014-07-07 17:37:31: Checking for super user privileges2014-07-07 17:37:31: User has super user privilegesUsing configuration parameter file: / u01 shock 11.2 .0 / grid/crs/install/crsconfig_paramsLOCAL ADD MODE Creating OCR keys for user 'root' Privgrp 'root'..Operation successful.Adding daemon to inittabCRS-4123: Oracle High Availability Services has been started.ohasd is startingCRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node xun1, number 1, and is terminatingAn active cluster was found during exclusive startup Restarting to join the clusterCRS-2672: Attempting to start 'ora.mdnsd' on' xun2'CRS-2676: Start of 'ora.mdnsd' on' xun2' succeededCRS-2672: Attempting to start 'ora.gipcd' on' xun2'CRS-2676: Start of 'ora.gipcd' on' xun2' succeededCRS-2672: Attempting to start 'ora.gpnpd' on' xun2'CRS-2676: Start of 'ora.gpnpd' on' xun2' succeededCRS-2672: Attempting to start 'ora.cssdmonitor' on' xun2'CRS-2676: Start of' Ora.cssdmonitor' on' xun2' succeededCRS-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' succeededCRS-2676: Start of' ora.cssd' on' xun2' succeededCRS-2672: Attempting to start 'ora.ctssd' on' xun2'CRS-2676: Start of' ora.ctssd' on' xun2' succeededCRS-2672: Attempting to start 'ora.drivers.acfs' on' xun2'CRS -2676: Start of 'ora.drivers.acfs' on' xun2' succeededCRS-2672: Attempting to start 'ora.asm' on' xun2'CRS-2676: Start of 'ora.asm' on' xun2' succeededCRS-2672: Attempting to start 'ora.crsd' on' xun2'CRS-2676: Start of 'ora.crsd' on' xun2' succeededCRS-2672: Attempting to start 'ora.evmd' on' xun2'CRS-2676: Start of 'ora.evmd' on' xun2' succeededxun2 17:40 on 2014-07-07 : 58 / u01/11.2.0/grid/cdata/xun2/backup_20140707_174058.olrPreparing packages for installation...cvuqdisk-1.0.7-1Configure Oracle Grid Infrastructure for a Cluster. SucceededUpdating inventory properties for clusterwareStarting Oracle Universal Installer...Checking swap space: must be greater than 500 MB. Actual 3104 MB PassedThe inventory pointer is located at / etc/oraInst.locThe inventory is located at / u01 was successful.

The script was executed successfully!

View log information:

[root@xun2 ctssd] # more octssd.log

2014-07-07 17 Production Copyright 39 Production Copyright 33.284: [CTSS] [3046536896] Oracle Database CTSS Release 11.2.0.1.0 Production Copyright 2006, 2007 Oracle. All rights reserved.2014-07-07 17 ctss_scls_init: [CTSS] [3046536896] ctss_scls_init: SCLs Context is 0x93936182014-07-07 173933. 291: [CTSS] [3046536896] ctss_css_init: CSS Context is 0x93936c02014-07-07 17 Switzerland 33.292: [CTSS] [3046536896] ctss_clsc_init: CLSC Context is 0x93940002014-07-07 1739 SCLs Context is 0x93936182014 33.292: [CTSS] [3046536896] ctss _ init: CTSS production mode2014-07-07 1739 ctss_init 33.292: [CTSS] [3046536896] ctss_init: CTSS_REBOOT=TRUE. Overriding 'reboot' argument as if' octssd reboot' is executed. Turn on start up step sync.2014-07-07 17 sclsctss_gvss2: [CTSS] [3046536896] sclsctss_gvss2: NTP default pid file not found2014-07-07 173933. 292: [CTSS] [3046536896] sclsctss_gvss8: Return [0] and NTP status [1]. 2014-07-07 1739 sclsctss_gvss2: [CTSS] [3046536896] ctss_check_vendor_sw: Vendor time sync software is not detected Status [1]. 2014-07-07 17 ctsscomm_init 3933. 292: [CTSS] [3046536896] ctsscomm_init: The Socket name is [(ADDRESS= (PROTOCOL=tcp) (HOST=xun2))] 2014-07-07 17 ctsscomm_init 39 33. 327: [CTSS] [3046536896] ctsscomm_init: Successful completion.2014-07-07 1739 The Socket name is 33. 327: [CTSS] [3046536896] ctsscomm_init: PORT = 100002014-07-07 1739 Switzerland 33.327: [ CTSS] [3020237712] CTSS connection handler started [CTSS] [3009747856] clsctsselect_mm: Master Monitor thread started [CTSS] [2 × × × 58000] ctsselect_msm: Slave Monitor thread started2014-07-07 17V 3933.327: [CTSS] [2988768144] ctsselect_mmg: The local nodenum is 22014-07-07 17V 39V 33.330: [CTSS] [2988768144] ctsselect_mmg2_5: Pub data for member [1]. {Version [1] Node [1] Priv node name [xun1] Port num [53367] SW version [186646784] Mode [0x40]} 2014-07-07 17 Port num 33. 333: [CTSS] [2988768144] ctsselect_mmg4: Successfully registered with [CTSSMASTER] 2014-07 1739 ctsselect_mmg4: [CTSS] [2988768144] ctsselect_mmg6: Receive reconfig event. Inc num [12] New master [2] members count [1] 2014-07-07 1740 members count 33.334: [CTSS] [2988768144] ctsselect_mmg8: Host [xun1] Node num [1] is the master2014-07-07 171740 members count 14.349: [CTSS] [2 × × × 58000] ctssslave_swm19: The offset is [160usec] and sync interval set to [1] 2014-07-07 1717 144.349: [CTSS] [2 × × 58000] ctssslave_sync_with _ master: Received from master (mode [0x4c] nodenum [1] hostname [xun1]) 2014-07-07 17 mode 4014. 349: [CTSS] [2 × × × 58000] ctsselect_msm: Sync interval returned in [1] 2014-07-07 17 mode 4022. 351: [CTSS] [2 × × × 58000] ctsselect_msm: CTSS mode is [44] 2014-07-07 17 40 CTSS: [CTSS] [2 × × 58000] ctssslave_swm: Clock delay too small [31] usec to sync.

Verify:

[root@xun2 bin] #. / crsctl check crs

CRS-4638: Oracle High Availability Services is onlineCRS-4537: Cluster Ready Services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533: Event Manager is online

[root@xun2 bin] #. / crs_stat-t

Name Type Target State Host-ora....N1.lsnr ora....er.type ONLINE ONLINE xun1 ora....VOTE.dg ora....up .type ONLINE ONLINE xun1 ora.asm ora.asm.type ONLINE ONLINE xun1 ora.eons ora.eons.type ONLINE ONLINE xun1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....network ora....rk.type ONLINE ONLINE xun1 ora.oc4j ora.oc4j.type OFFLINE OFFLINE ora.ons Ora.ons.type ONLINE ONLINE xun1 ora....ry.acfs ora....fs.type ONLINE ONLINE xun1 ora.scan1.vip ora....ip.type ONLINE ONLINE xun1 ora....SM1.asm application ONLINE ONLINE xun1 ora.xun1.gsd application OFFLINE OFFLINE ora.xun1.ons application ONLINE ONLINE xun1 ora.xun1.vip ora.. .. t1.type ONLINE ONLINE xun1 ora....SM2.asm application ONLINE ONLINE xun2 ora.xun2.gsd application OFFLINE OFFLINE ora.xun2.ons application ONLINE ONLINE xun2 ora.xun2.vip ora....t1.type ONLINE ONLINE xun2

@ at this point, the problem is solved

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report