Reconfigure has and CSS for nonrac ASM on 11.2

Source: Internet
Author: User

 

This document provides a procedure to configure/reconfigure the (High Availability Service) has and CSS resource on Oracle grid infrastructure for nonrac setup

 

Solution

1) When you install grid infrastructure for single instance, At the end we run root. Sh, that directs you to run the following script from root login:

<Gridhome>/perl/bin/perl-I <gridhome>/perl/lib-I <gridhome>/CRS/install/roothas. pl

 

This script configures the ohasd daemon (inittab and RC. d entries) and start the followings:

# Ps-Ef | grep ohas
Root 17162 1 0? 00:00:00/bin/sh/etc/init. d/init. ohasd run
Grid 17186 1 0 :05? 00:00:00/Oracle/GRID/bin/ohasd. Bin reboot

 

If there is a need to reconfigure has then, we can run the following scripts from root login:

<Gridhome>/perl/bin/perl-I <gridhome>/perl/lib-I <gridhome>/CRS/install/roothas. pl-delete
<Gridhome>/perl/bin/perl-I <gridhome>/perl/lib-I <gridhome>/CRS/install/roothas. pl

 

Note that the "roothas. pl-Delete" will stop the cssd and diskmon resources (and their dependent resources like ASM, diskgroup, RDBMS) and then will deconfigure has.

19: 03: 33: checking for Super User privileges
2009-09-15 19: 03: 33: user has super user privileges
2009-09-15 19: 03: 33: parsing the Host Name
Using configuration parameter file:/Oracle/GRID/CRS/install/crsconfig_params
CRS-2673: attempting to stop 'ora.css d' on 'db112'
CRS-2677: Stop of 'ora.css d' on 'db112' succeeded
CRS-2791: Starting shutdown of Oracle High Availability services-managed resources on 'db112'
CRS-2673: attempting to stop 'ora. diskmon 'on 'db112'
CRS-2677: Stop of 'ora. diskmon' on 'db112' succeeded
CRS-2793: shutdown of Oracle High Availability services-managed resources on 'db112' has completed
CRS-4133: Oracle High Availability services has been stopped.
ACFS-9200: supported
Successfully deconfigured Oracle restart Stack

 

If there is a malformed CRS installation and CRS is not runing, one need to run rootcrs. pl and roothas. pl-deconfig with force options as follows:

<Gridhome>/perl/bin/perl-I <gridhome>/perl/lib-I <gridhome>/CRS/install/roothas. pl-deconfig-Force

<Gridhome>/perl/bin/perl-I <gridhome>/perl/lib-I <gridhome>/CRS/install/roothas. pl-delete-Force

<Gridhome>/perl/bin/perl-I <gridhome>/perl/lib-I <gridhome>/CRS/install/roothas. pl

 

We can also stop/start, disable_auto_start/enable the has we use the following commands:

# Cd <grid Home>/bin
#./Crsctl stop has
#./Crsctl start has
#./Crsctl disable has
#./Crsctl enable has

 

Here also the ora.css D and ora. diskmon dependency on has is maintained. you can also use-D option with the Perl script run, in case you wish to debug the script (Perl expertise is needed ).

 

 

2) Unlike 10.2/11.1, CSS and diskmon processes are resources in the OCR now.

$ Crsctl status resource-T
--------------------------------------------------------------
Name target State server state_details
--------------------------------------------------------------
Cluster resources
------------------
Ora.css D 1 online db112
Ora. diskmon 1 online db112

 

 

Daemons no more run from ../init. d scripts:

Grid 26182 1 0 20:11? 00:00:00/Oracle/GRID/bin/diskmon. Bin-D-F
Grid 26091 1 0 20:09? 00:00:00/Oracle/GRID/bin/cssdagent
Grid 26126 1 0 20:09? 00:00:00/Oracle/GRID/bin/ocssd. Bin

 

The following commands shocould not be used to remove/Add the CSS resource from OCR

#./Crsctl Delete resource ora.css d
#./Crsctl Add Resource ora.css D-type

 

Instead use the delete and add commands of has to delete/Add CSS/diskmon.

 

 

 

 

 

From Oracle

Bytes -------------------------------------------------------------------------------------------------------

Blog: http://blog.csdn.net/tianlesoftware

Email: dvd.dba@gmail.com

Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)

Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823

Chat group: 40132017 chat 2 group: 69087192

-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.