July 08 2014

Undefined subroutine &main::read_file called at crspatch.pm line 86. while running ./rootcrs.pl

Tagged Under : , , ,

I got below error when I ran β€œ./rootcrs.pl –patch” as a last command

[root@Server1 ~]# cd /usr/grid_app/oracle/product/11.2/grid/crs/install
[root@Server1 install]# ./rootcrs.pl -patch
Using configuration parameter file: ./crsconfig_params
Undefined subroutine &main::read_file called at crspatch.pm line 86.

Followed roothas.pl -patch or rootcrs.pl -patch Fails with ‘Undefined subroutine’ (Doc ID 1268390.1)

2] Take a backup of the file /crs/install/crsconfig_lib.pm

# cd /crs/install
# cp crsconfig_lib.pm crsconfig_lib.pm.bak

Make the following change in that file crsconfig_lib.pm

From
my @exp_func = qw(check_CRSConfig validate_olrconfig validateOCR
To
my @exp_func = qw(check_CRSConfig validate_olrconfig validateOCR read_file

Now try with
roothas.pl -patch
or
rootcrs.pl -patch

July 08 2014

HAIP is up on some nodes but not on all RAC nodes

Tagged Under : , ,

[racserver1:oracle] /usr/oracle $ crsctl stat res -t -init
——————————————————————————–
NAME TARGET STATE SERVER STATE_DETAILS
——————————————————————————–
Cluster Resources
——————————————————————————–
ora.asm
1 ONLINE ONLINE racserver1 Started
ora.cluster_interconnect.haip
1 ONLINE OFFLINE
ora.crf
1 ONLINE ONLINE racserver1
ora.crsd
1 ONLINE ONLINE racserver1
ora.cssd
1 ONLINE ONLINE racserver1
ora.cssdmonitor
1 ONLINE ONLINE racserver1
ora.ctssd
1 ONLINE ONLINE racserver1 OBSERVER
ora.diskmon
1 ONLINE ONLINE racserver1
ora.drivers.acfs
1 ONLINE ONLINE racserver1
ora.evmd
1 ONLINE ONLINE racserver1
ora.gipcd
1 ONLINE ONLINE racserver1
ora.gpnpd
1 ONLINE ONLINE racserver1
ora.mdnsd
1 ONLINE ONLINE racserver1

September 23 2013

su: cannot set user id: Resource temporarily unavailable

Hi there,
I’m getting following error when I use root to “su – oracle” in Linux. Finally, I found the solution as shown below πŸ™‚

# uname -srm
Linux 2.6.18-308.11.1.el5 x86_64

# su – oracle
su: cannot set user id: Resource temporarily unavailable

# ps -eLF | grep “^oracle” | wc -l
2068

Increase value “nproc soft limit” for oracle:
#– /etc/security/limits.conf –#

#oracle soft nproc 2047
oracle soft nproc 4095

# su – oracle
$ whoami
oracle