Grid Installation Errors
Grid Installation Errors
2.
As the root user, determine the partitions available. the following command shows all the partitions known to the OS.
cat /proc/partitions
3.
Determine which devices will be partitioned. Use the fdisk <device_name> command for each disk /dev/sdc,
/dev/sdd, /dev/sde, /dev/sdf and specify the values as shown in the screenshots
Check that the expected partitions exist. Partitions named /dev/sdc1, /dev/sdd1, /dev/sde1, and /dev/sdf1should exist. Check by using
cat /proc/partitions
1.
As the root user, configure oracleasm by using the command
lrmj050:~ # oracleasm configure -i
If 'oracleasm' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf oracleasm
Install oracleasm rpm files by downloading the rpm packages for sles 12 os
(oracleasm-support-2.1.8-1.SLE12.x86_64.rpm, oracleasmlib-2.0.12-1.sle12.x86_64.rpm)
lrmj050:/tmp # rpm -ivh oracleasm-support-2.1.8-1.SLE12.x86_64.rpm
Preparing...
################################# [100%]
Updating / installing...
1:oracleasm-support-2.1.8-1.SLE12 ################################# [100%]
lrmj050:/tmp # rpm -ivh oracleasmlib-2.0.12-1.sle12.x86_64.rpm
Preparing...
################################# [100%]
Updating / installing...
1:oracleasmlib-2.0.12-1.SLE12
################################# [100%]*
oracleasm configure -i
and answer the prompts as shown in the screenshot.
lrmj050:/tmp # oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine
whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets
('[]'). Hitting <ENTER> without typing an answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
2.
Initialize the asmlib with the oracleasm init command. This command loads the oracleasm module and mounts
the oracleasm filesystem.
lrmj050:/tmp # oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
3.
Use the oracleasm createdisk <diskname> <device_name> command to create the ASM disk label for
each disk.
In this tutorial name the disks DATA1, DATA2, DATA3, and DATA4 as shown in the screenshot.
lrmj050:/tmp # oracleasm createdisk ASMDATA1 /dev/sdb1
Writing disk header: done
4.
Check that the disk are visible using the oracleasm listdisks command.
lrmj050:/tmp # oracleasm listdisks
ASMDATA1
ASMDATA2
ASMDATA3
ASMDATA4
5.
Check the the disks are mounted in the oracleasm filesystem with the command
ls -l /dev/oracleasm/disks
lrmj050:/tmp # ls -l /dev/oracleasm/disks
total 0
brw-rw---- 1 oracle dba 8, 17 May 25 22:37 ASMDATA1
brw-rw---- 1 oracle dba 8, 33 May 25 22:37 ASMDATA2
Click yes
Log shows
INFO: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
/home/oracle/product/12cR1/grid/lib//libnls12.a(lxhlang.o): undefined reference to
symbol '__tls_get_addr@@GLIBC_2.3'
/lib64/ld-linux-x86-64.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
INFO: /home/oracle/product/12cR1/grid/rdbms/lib/ins_rdbms.mk:826: recipe for
target '/home/oracle/product/12cR1/grid/rdbms/lib/dbv' failed
INFO: make: *** [/home/oracle/product/12cR1/grid/rdbms/lib/dbv] Error 1
INFO: End output from spawned process.
INFO: ---------------------------------INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile
'/home/oracle/product/12cR1/grid/rdbms/lib/ins_rdbms.mk'. See
'/home/oracle/oraInventory/logs/installActions2016-05-25_11-32-16PM.log' for
details.
Exception Severity: 1
Solution
For the same you need do following
Create a backup copy of /home/oracle/product/12cR1/grid/lib/stubs
cp -rip /home/oracle/product/12cR1/grid/lib/stubs/
/home/oracle/product/12cR1/grid/lib/stubs.orig
Delete folder
rm -rf /home/oracle/product/12cR1/grid/lib/stubs
Create a backup copy of /home/oracle/product/12cR1/grid /rdbms/lib/env_rdbms.mk
cp -rip /home/oracle/product/12cR1/grid/rdbms/lib/env_rdbms.mk
/home/oracle/product/12cR1/grid/rdbms/lib/env_rdbms.mk.orig
Open home/oracle/product/12cR1/grid/rdbms/lib/env_rdbms.mk file in vi. Search for
RMAN_LINKLINE. You will see following lines.
$(PLSHPROF_LINKLINE) lons
Click on retry to go further
Solution
For above error we need to do changes in
/home/oracle/product/12cR1/grid/rdbms/lib/ins_rdbms.mk. Search for TG4PWD and
you will see following lines in the file.
$(TG4PWD) : $(ALWAYS) $(TG4PWD_DEPS)
$(SILENT)$(ECHO)
$(SILENT)$(ECHO) " - Linking $(TG4DG4)pwd utility"
$(RMF) $@
$(TG4PWD_LINKLINE)
Change it to as follows
$(TG4PWD) : $(ALWAYS) $(TG4PWD_DEPS)
$(SILENT)$(ECHO)
$(SILENT)$(ECHO) " - Linking $(TG4DG4)pwd utility"
$(RMF) $@
$(TG4PWD_LINKLINE) -lnnz12
-L/home/oracle/product/12cR1/grid/lib/ -L/home/oracle/product/12cR1/grid/lib/stubs/
--Wl,--no-as-needed /home/oracle/product/12cR1/grid/rdbms/lib/hormc.o
/home/oracle/product/12cR1/grid/rdbms/lib/homts.o
-lagtsh -lpthread
-lclntsh -lclntshcore `cat /home/oracle/product/12cR1/grid/lib/sysliblist` -Wl,rpath,/home/oracl
INFO: e/product/12cR1/grid/lib -lm `cat
/home/oracle/product/12cR1/grid/lib/sysliblist` -ldl -lm
-L/home/oracle/product/12cR1/grid/lib -lnsgr12
INFO: gcc: error: unrecognized command line option --Wl,--no-as-needed
INFO: /home/oracle/product/12cR1/grid/rdbms/lib/ins_rdbms.mk:911: recipe for
target '/home/oracle/product/12cR1/grid/rdbms/lib/extproc' failed
INFO: make: *** [/home/oracle/product/12cR1/grid/rdbms/lib/extproc] Error 1
INFO: End output from spawned process.
INFO: ---------------------------------INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'utilities' of makefile
'/home/oracle/product/12cR1/grid/rdbms/lib/ins_rdbms.mk'. See
'/home/oracle/oraInventory/logs/installActions2016-05-25_12-21-44AM.log' for
details.
Exception Severity: 1
Solution
For above error we need to do changes in
/home/oracle/product/12cR1/grid/rdbms/lib /ins_rdbms.mk. Search for Linking
external procedure agent and you will see following lines in the file.
$(EXTPROC): $(ALWAYS) $(EXTPROC_DEPS)
$(SILENT)$(ECHO)
$(SILENT)$(ECHO) "Linking external procedure agent ($@)"
$(RMF) $@
$(EXTPROC_LINKLINE)
Change it to as follows
$(EXTPROC): $(ALWAYS) $(EXTPROC_DEPS)
$(SILENT)$(ECHO)
$(SILENT)$(ECHO) "Linking external procedure agent ($@)"
$(RMF) $@
$(EXTPROC_LINKLINE) -lagtsh
external procedure agent and you will see following lines in the file.
$(EXTPROC): $(ALWAYS) $(EXTPROC_DEPS)
$(SILENT)$(ECHO)
$(SILENT)$(ECHO) "Linking external procedure agent ($@)"
$(RMF) $@
$(EXTPROC_LINKLINE)
Change it to as follows
$(EXTPROC): $(ALWAYS) $(EXTPROC_DEPS)
$(SILENT)$(ECHO)
$(SILENT)$(ECHO) "Linking external procedure agent ($@)"
$(RMF) $@
$(EXTPROC_LINKLINE) -lagtsh
https://community.oracle.com/thread/2352285?start=0&tstart=0
lrmj050:/home/oracle/product/12cR1/grid # ./root.sh
Performing root user operation for Oracle 12c
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2016-05-26 01:09:07.113:
[client(19645)]CRS-1001:The OCR was formatted using version 4.
2016-05-26 01:19:13.438:
[ohasd(19710)]CRS-0715:Oracle High Availability Service has timed out waiting for
init.ohasd to be started.
2016-05-26 01:19:13.440:
[ohasd(19710)]CRS-0714:Oracle Clusterware Release 12.1.0.1.0 - Production
Copyright 1996, 2010 Oracle. All rights reserved.
2016-05-26 01:19:13.454:
[ohasd(19710)]CRS-2112:The OLR service started on node lrmj050.
2016-05-26 01:19:13.486:
[ohasd(19710)]CRS-1301:Oracle High Availability Service started on node lrmj050.
2016-05-26 01:19:32.652:
[ohasd(19203)]CRS-0714:Oracle Clusterware Release 12.1.0.1.0 - Production
Copyright 1996, 2010 Oracle. All rights reserved.
2016-05-26 01:19:32.723:
[ohasd(19203)]CRS-0704:Oracle High Availability Service aborted due to Oracle
Local Registry error [PROCL-24: Error in the messaging layer Messaging error
[gipcretAddressInUse] [20]]. Details at (:OHAS00106:) in
/home/oracle/product/12cR1/grid/log/lrmj050/ohasd/ohasd.log.