Quantcast
Channel: Oracle
Viewing all articles
Browse latest Browse all 1814

Blog Post: How to fix "cant open scr home dir scls_scr_getval" error

$
0
0
This error could appear frequently in your environments if you are one of those guys that like to create different virtual machines for testing, and to do that you use cloning. Usually we don't like to re-install everything since the beginning and that's why we better clone a virtual machine from another that we already have well set with all the parameters, directories, and so on that we will use. For this article, we are using Grid Infrastructure for Standalone 12c. However, when you think everything is fine, you start your oracle services and you find the following error: [root@db12102s ~]# crsctl start has CLSU-00100: operating system function: opendir failed with error data : 2 CLSU-00101: operating system error message: No such file or directory CLSU-00103: error location: scrsearch1 CLSU-00104: additional error information: cant open scr home dir scls_scr_getval CRS-4000: Command Start failed, or completed with errors. [root@db12102s ~]# The reason why you are receiving that error is what we will discuss in this article. The reason is very simple. Not a big deal. What happened is that you changed the hostname of the machine after clone it, perhaps to make it easy to identify. Since you changed the hostname and the machine has Oracle GI installed, you have to re-configure it. The process is simple as well. You should have this machine running in few minutes. Let's fix it!. Firstable, move to $CRS_HOME/crs/install: [root@db12102s install]# pwd /u01/app/grid/product/12.1.0/grid/crs/install Deconfigure GI: [root@db12102s install]# perl roothas.sh -deconfig -force Using configuration parameter file: /u01/app/grid/product/12.1.0/grid/crs/install/crsconfig_params CRS-4639: Could not contact Oracle High Availability Services CRS-4000: Command Stop failed, or completed with errors. CRS-4639: Could not contact Oracle High Availability Services CRS-4000: Command Delete failed, or completed with errors. CLSU-00100: operating system function: opendir failed with error data: 2 CLSU-00101: operating system error message: No such file or directory CLSU-00103: error location: scrsearch1 CLSU-00104: additional error information: cant open scr home dir scls_scr_getval CRS-4639: Could not contact Oracle High Availability Services CRS-4000: Command Stop failed, or completed with errors. 2015/12/25 19:53:20 CLSRSC-337: Successfully deconfigured Oracle Restart stack Move to $CRS_HOME: [root@db12102s install]# cd .. [root@db12102s crs]# cd .. [root@db12102s grid]# pwd /u01/app/grid/product/12.1.0/grid Execute the script root.sh with a privileged user: [root@db12102s grid]# ./root.sh Performing root user operation. The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/grid/product/12.1.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite. The contents of "oraenv" have not changed. No need to overwrite. The contents of "coraenv" have not changed. No need to overwrite. 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 script. Now product-specific root actions will be performed. Using configuration parameter file: /u01/app/grid/product/12.1.0/grid/crs/install/crsconfig_params LOCAL ADD MODE Creating OCR keys for user 'grid', privgrp 'oinstall'.. Operation successful. LOCAL ONLY MODE Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. CRS-4664: Node db12102s successfully pinned. 2015/12/25 19:55:17 CLSRSC-330: Adding Clusterware entries to file '/etc/inittab' db12102s 2015/12/25 19:55:33 /u01/app/grid/product/12.1.0/grid/cdata/db12102s/backup_20151225_195533.olr 0 CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'db12102s' CRS-2673: Attempting to stop 'ora.evmd' on 'db12102s' CRS-2677: Stop of 'ora.evmd' on 'db12102s' succeeded CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'db12102s' has completed CRS-4133: Oracle High Availability Services has been stopped. CRS-4123: Oracle High Availability Services has been started. 2015/12/25 19:55:56 CLSRSC-327: Successfully configured Oracle Restart for a standalone server Checking if HAS is up: [root@db12102s grid]# crsctl check has CRS-4638: Oracle High Availability Services is online If you try to start ASM at this time, you could receive an error like the following: [grid@db12102s ~]$ sqlplus / as sysasm SQL*Plus: Release 12.1.0.2.0 Production on Fri Dec 25 19:57:59 2015 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to an idle instance. SQL> startup; ORA-01078: failure in processing system parameters ORA-29701: unable to connect to Cluster Synchronization Service SQL> exit In 11g you could start ora.cssd using the following, however in 12c that doesn't work: [root@db12102s grid]# crsctl start resource ora.cssd CRS-4995: The command 'Start resource' is invalid in crsctl. Use srvctl for this command. To make it work you have to use the option "-unsupported": [root@db12102s grid]# crsctl start resource ora.cssd -unsupported CRS-2672: Attempting to start 'ora.cssd' on 'db12102s' CRS-2672: Attempting to start 'ora.diskmon' on 'db12102s' CRS-2676: Start of 'ora.diskmon' on 'db12102s' succeeded CRS-2676: Start of 'ora.cssd' on 'db12102s' succeeded [root@db12102s grid]# And finally add a listener and start asm up: [grid@db12102s ~]$ srvctl add listener -listener LISTENER -oraclehome $ORACLE_HOME [grid@db12102s ~]$ srvctl add asm -listener LISTENER -spfile +DATA -diskstring '/dev/oracleasm/disks/ASM*' [grid@db12102s ~]$ srvctl start asm [grid@db12102s ~]$ That's all. Now your GI for standalone should be working normally.

Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>