CLSRSC-101: Could not copy OCR locations
Problem Summary
Encountered below error while running the root.sh. I was trying to add a node to RAC cluster.
econfigured the server and tried to add to CLUSTER01 cluster using addNode.sh script.
root.sh is now failing with the errros:
Using configuration parameter file: /grid_home/oracle/12.1.0.2/grid/crs/install/crsconfig_params
2020/11/21 10:15:30 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2020/11/21 10:15:30 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2020/11/21 10:15:36 CLSRSC-101: Could not copy OCR locations
2020/11/21 10:15:36 CLSRSC-293: Error: validation of OCR location 'NO_VAL' failed
Died at /grid_home/oracle/12.1.0.2/grid/crs/install/crsinstall.pm line 1696.
The command '/grid_home/oracle/12.1.0.2/grid/perl/bin/perl -I/grid_home/oracle/12.1.0.2/grid/perl/lib -I/grid_home/oracle/12.1.0.2/grid/crs/install /grid_home/oracle/12.1.0.2/grid/crs/install/rootcrs.pl ' execution failed
root.sh is now failing with the errros:
Using configuration parameter file: /grid_home/oracle/12.1.0.2/grid/crs/install/crsconfig_params
2020/11/21 10:15:30 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2020/11/21 10:15:30 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2020/11/21 10:15:36 CLSRSC-101: Could not copy OCR locations
2020/11/21 10:15:36 CLSRSC-293: Error: validation of OCR location 'NO_VAL' failed
Died at /grid_home/oracle/12.1.0.2/grid/crs/install/crsinstall.pm line 1696.
The command '/grid_home/oracle/12.1.0.2/grid/perl/bin/perl -I/grid_home/oracle/12.1.0.2/grid/perl/lib -I/grid_home/oracle/12.1.0.2/grid/crs/install /grid_home/oracle/12.1.0.2/grid/crs/install/rootcrs.pl ' execution failed
Further Investigation
Found below entry in rootcrs_node1_2020-11-21_10-15-28AM.log
2020-11-21 10:15:36: Removing file /tmp/VgqB388YeD
2020-11-21 10:15:36: Successfully removed file: /tmp/VgqB388YeD
2020-11-21 10:15:36: pipe exit code: 256
2020-11-21 10:15:36: /bin/su exited with rc=1
2020-11-21 10:15:36: /grid_home/oracle/12.1.0.2/grid/bin/cluutil -sourcefile /etc/oracle/ocr.loc -sourcenode node2 -destfile /grid_home/oracle/12.1.0.2/grid/srvm/admin/ocrloc.tmp -nodelist node2 ... failed
2020-11-21 10:15:36: capout=oracle.ops.mgmt.cluster.ClusterException: protocol error: filename does not match request :failed
2020-11-21 10:15:36: /grid_home/oracle/12.1.0.2/grid/bin/cluutil -sourcefile /etc/oracle/ocr.loc -sourcenode node2 -destfile /grid_home/oracle/12.1.0.2/grid/srvm/admin/ocrloc.tmp -nodelist node2 ... failed
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 101
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 101
2020-11-21 10:15:36: Command output:
> CLSRSC-101: Could not copy OCR locations
>End Command output
2020-11-21 10:15:36: CLSRSC-101: Could not copy OCR locations
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 293 "NO_VAL"
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 293 "NO_VAL"
2020-11-21 10:15:36: Command output:
> CLSRSC-293: Error: validation of OCR location 'NO_VAL' failed
>End Command output
2020-11-21 10:15:36: CLSRSC-293: Error: validation of OCR location 'NO_VAL' failed
2020-11-21 10:15:36: Successfully removed file: /tmp/VgqB388YeD
2020-11-21 10:15:36: pipe exit code: 256
2020-11-21 10:15:36: /bin/su exited with rc=1
2020-11-21 10:15:36: /grid_home/oracle/12.1.0.2/grid/bin/cluutil -sourcefile /etc/oracle/ocr.loc -sourcenode node2 -destfile /grid_home/oracle/12.1.0.2/grid/srvm/admin/ocrloc.tmp -nodelist node2 ... failed
2020-11-21 10:15:36: capout=oracle.ops.mgmt.cluster.ClusterException: protocol error: filename does not match request :failed
2020-11-21 10:15:36: /grid_home/oracle/12.1.0.2/grid/bin/cluutil -sourcefile /etc/oracle/ocr.loc -sourcenode node2 -destfile /grid_home/oracle/12.1.0.2/grid/srvm/admin/ocrloc.tmp -nodelist node2 ... failed
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 101
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 101
2020-11-21 10:15:36: Command output:
> CLSRSC-101: Could not copy OCR locations
>End Command output
2020-11-21 10:15:36: CLSRSC-101: Could not copy OCR locations
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 293 "NO_VAL"
2020-11-21 10:15:36: Executing cmd: /grid_home/oracle/12.1.0.2/grid/bin/clsecho -p has -f clsrsc -m 293 "NO_VAL"
2020-11-21 10:15:36: Command output:
> CLSRSC-293: Error: validation of OCR location 'NO_VAL' failed
>End Command output
2020-11-21 10:15:36: CLSRSC-293: Error: validation of OCR location 'NO_VAL' failed
Solution
After all I opened a SR with oracle support and got below solution which worked like champ for me.
# Rename the original scp.
mv /usr/bin/scp /usr/bin/scp.orig
mv /usr/bin/scp /usr/bin/scp.orig
# Create a new file </usr/bin/scp>.
vi /usr/bin/scp
vi /usr/bin/scp
# Add the below line to the new created file </usr/bin/scp>.
/usr/bin/scp.orig -T $*
/usr/bin/scp.orig -T $*
# Change the file permission.
chmod 555 /usr/bin/scp
chmod 555 /usr/bin/scp
Re-execute root.sh
Comments
Post a Comment