Translate

Search This Blog

Showing posts with label Oracle installation. Show all posts
Showing posts with label Oracle installation. Show all posts

error in invoking target 'irman ioracle' of makefile ins_rdbms.mk

Encountered below error in linking part in installation of 11gR2:
error in invoking target 'irman ioracle' of makefile ins_rdbms.mk

This error comes when required library is missing, disk temp space is low or swap space is low

 I had ensured all oracle rpms were installed prior to starting installation and oracle installer did not give any warning in prerequisites check so I was expecting something unusual. Swap space was filled 95% and it had only 5MB free space. So I increased swap space and selected retried option and it worked.

[oracle@node1 db_1]$ free -m
Swap:          511        458         53
 [root@node1 ~]# dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
524288+0 records in
524288+0 records out
536870912 bytes (537 MB) copied, 2.304 s, 233 MB/s

[root@node1 ~]# mkswap /swapfile1
Setting up swapspace version 1, size = 524284 KiB
no label, UUID=5a8d2159-82d7-4a71-b13e-06dda43e128c
[root@node1 ~]# swapon /swapfile1
[root@node1 ~]# free -m
Swap:         1023        458        565
optionally if added swap space has to be made permanent then entry for /swapfile can be made in /etc/fstab

[root@node1 ~]# vi /etc/fstab
[root@node1 ~]# cat /etc/fstab
 .
.
/swapfile1 swap swap defaults 0 0
.
.
 

INS 35354 the system on which you are attempting to install oracle rac is not part of a valid cluster

Error: the system on which you are attempting to install oracle rac is not part of a valid cluster

[root@node1 ~]# cat /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
[root@node1 ~]# cd /u01/app/oraInventory/
[root@node1 oraInventory]# find . -name 'inventory.xml'
./ContentsXML/inventory.xml
[root@node1 oraInventory]# cd ./ContentsXML/
[root@node1 ContentsXML]# cat inventory.xml|grep CRS
[grid@node1 ~]$ cd $ORACLE_HOME
[grid@node1 grid]$ pwd
/u01/11.2.0/grid
[grid@node1 grid]$ cd /u01/app/oraInventory/ContentsXML/
[grid@node1 ContentsXML]$
[grid@node1 ContentsXML]$ cat inventory.xml

You will find entry crs=true is not there in this file

[grid@node1 ContentsXML]$ $ORACLE_HOME/oui/bin/runInstaller -updateNodeList ORACLE_HOME="/u01/11.2.0/grid" CRS=true
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.   Actual 511 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
[grid@node1 ContentsXML]$ cat inventory.xml

CRS="true"

This entry now exists  
    
Repeat activity on all nodes in cluster
  




installation errors in RAC root.sh CRS-1013:The OCR location in an ASM disk group is inaccessible, clscfg.bin: error while loading shared libraries: libcap.so.1


Error 1:

 clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

Failed to create keys in the OLR, rc = 127, 32512

Remedy
 root@node1 ~]# cd /rhel6.4_media/Packages/
[root@node1 Packages]# ls -ltrh compat-libcap1-1.10-1.x86_64.rpm
-r--r--r--. 1 root root 18K Aug  9 14:19 compat-libcap1-1.10-1.x86_64.rpm
1.  install the required package
[root@node1 Packages]# rpm -ivh compat-libcap1-1.10-1.x86_64.rpm
warning: compat-libcap1-1.10-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:compat-libcap1         ########################################### [100%]
2. clean the run of root.sh
$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force

if it is the last node run following
$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode

Error 2:

 [client(13005)]CRS-2317:Fatal error: cannot get local GPnP security keys (wallet).
2013-08-10 13:43:10.896
[client(13005)]CRS-2316:Fatal error: cannot initialize GPnP, CLSGPNP_ERR (Generic GPnP error).
2013-08-10 13:43:10.907
[client(13005)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /u01/11.2.0/grid/log/node1/client/clscfg.log.

[root@node2 grid]# cat /u01/11.2.0/grid/log/node2/client/clscfg.log
Oracle Database 11g Clusterware Release 11.2.0.2.0 - Production Copyright 1996, 2010 Oracle. All rights reserved.
2013-08-10 14:08:17.318: [  CLSCFG][326362880]clscfg_main: Configuration type [4]

remedy - that is probably due bug, it was fixed by installing the upgraded version of cluster after cleaning from above script roocrs.pl and removing grid installation files

 

Oracle 12c installation on Linux (RHEL 6.4)

I first installed Oracle 11gR2 on RHEL 6 on Oracle virtual box then I Installed oracle 12c (12.0.1) successfully on its clone.  Requirement of RPMSs was same as for Oracle 11gR2.

to simplyfy rpm installations if you want to use YUM then see post
http://orababy.blogspot.in/2013/08/create-yum-local-repository-in-rhel-64.html

Oracle 12c  does not come for 32 bit OS any more and Oracle installation on 64 bit requires that certain 32bit packages also needs to be installed on system. So first of all you should be able to distinguish between a 32-bit or 64-bit package. Following rpm command can be used for this purpose.

#rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep
For example, rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel
See the oracle installation documentation that comes with oracle 12c installation disks.
Negative side of 12c is it does not come with Oracle enterprize manager/DB Control. But another good option came that you can specify the 12C grid control OMS server at the time of creating DB from dbca.

While installing only error  I got came at the start of installer it was "Could not retrieve local nodename" fix was to add host name in /etc/host this is expected error in 10g also.

12c installer is more intelligent in terms of space calculation for DB creation but it is not correct for RDBMS software calculation . Installer said enterprize edition would need more than 6GB disk space but it took only 4.9GB space to install.

Another point, I did not create DB at the time of installation at the DBCA options it said it would create listener but the option did not let you specify the listener port number etc.

I was lacking in disk space but I reduced  the size of fast recovery area and I could create custome template based container database as well as one pluggable database in  4G.  xdb port was disabled at end so in order to use apex set EXEC DBMS_XDB.SETHTTPPORT(8080);

DB express port can be found from lsnrctl status command.

Note: there is no Oracle edition of 12c available for 32bit except its OMS agent.


 

RPMS for Oracle 10g2 on 64 bit Linux

Oracle installation on 64 bit requires that certain 32bit packages also needs to be installed on system. So first of all you should be able to distinguish between a 32-bit or 64-bit package. Following rpm command can be used for this purpose.

#rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep

For example,  rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel
See the oracle installation documentation that comes with oracle installation disks.

For e.g. for installing Oracle 10gR2 on 64 bit RHEL 5:

Check system RPMs while installing 10gR2 on 64 bit and install RPMS using yum

rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep compat
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep binutils
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep compat-db
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep compat-libstdc++
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep control-center
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep gcc
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep gcc-c++
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-common
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-headers
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep gnome-libs
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libgcc
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libaio
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libgcc
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libstdc++
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libstdc++
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libgomp
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libXp
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep make
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep pdksh
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep sysstat
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep binutils
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep compat-libstdc++
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep gcc
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-32bit
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libaio
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libelf
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libgcc
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libstdc++
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libstdc++-devel
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep make
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep sysstat

avahi-compat-libdns_sd-0.6.16-6.el5 (x86_64)
binutils-2.17.50.0.6-12.el5 (x86_64)
control-center-2.16.0-16.el5 (i386)
control-center-2.16.0-16.el5 (x86_64)
libgcc-4.1.2-46.el5 (x86_64)
libgcc-4.1.2-46.el5 (i386)
glibc-2.5-42 (i686)
glibc-2.5-42 (x86_64)
glibc-common-2.5-42 (x86_64)
glibc-common-2.5-42 (x86_64)
libgcc-4.1.2-46.el5 (x86_64)
libgcc-4.1.2-46.el5 (i386)
libaio-0.3.106-3.2 (i386)
libaio-0.3.106-3.2 (x86_64)
libgcc-4.1.2-46.el5 (x86_64)
libgcc-4.1.2-46.el5 (i386)
libstdc++-4.1.2-46.el5 (x86_64)
libstdc++-4.1.2-46.el5 (i386)
libstdc++-4.1.2-46.el5 (x86_64)
libstdc++-4.1.2-46.el5 (i386)
libXpm-3.5.5-3 (x86_64)
make-3.81-3.el5 (x86_64)
binutils-2.17.50.0.6-12.el5 (x86_64)
libgcc-4.1.2-46.el5 (x86_64)
libgcc-4.1.2-46.el5 (i386)
glibc-2.5-42 (i686)
glibc-2.5-42 (x86_64)
glibc-common-2.5-42 (x86_64)
libaio-0.3.106-3.2 (i386)
libaio-0.3.106-3.2 (x86_64)
elfutils-libelf-0.137-3.el5 (x86_64)
libgcc-4.1.2-46.el5 (x86_64)
libgcc-4.1.2-46.el5 (i386)
libstdc++-4.1.2-46.el5 (x86_64)
libstdc++-4.1.2-46.el5 (i386)
make-3.81-3.el5 (x86_64)

 groupadd oinstall
 usermod -g oinstall oracle
 yum groupinstall "X Window System" "GNOME Desktop Environment"

 yum install compat-db.i386
 yum install compat-db.x86_64
 yum install compat-libstdc++-33.i386
 yum install compat-libstdc++-33.x86_64
 yum install control-center.i386
 yum install control-center.x86_64
 yum install control-center-devel.i386
 yum install control-center-devel.x86_64
 yum install gcc-c++.x86_64
 yum install gcc-c++.x86_64
 yum install gcc-c++.x86_64
 yum install glibc-devel.i386
 yum install glibc-devel.x86_64
 yum install glibc-devel.x86_64
 yum install glibc-devel.i386
 yum install compat-glibc-headers.x86_64
 yum install glibc-headers.x86_64
 yum install imake.x86_64
 yum install libaio.i386
 yum install libaio.x86_64
 yum install libaio-devel.i386
 yum install libaio-devel.x86_64
 yum install libgomp.x86_64
 yum install libstdc++
 yum install libstdc++.i386
 yum install libstdc++.x86_64
 yum install libstdc++-devel.i386
 yum install libstdc++-devel.x86_64
 yum install libstdc++-devel.x86_64
 yum install sysstat.x86_64
 yum install libXp.i386
 yum install libXp.x86_64
 yum install libXpm.i386
 yum install libXpm.x86_64
 yum install libXpm-devel.i386
 yum install libXpm-devel.x86_64
 yum install libXp-devel.i386
 yum install libXp-devel.x86_64
 yum install mutt

 yum install unixODBC-devel.x86_64

 yum install mysql-connector-odbc-3.51.26r1127-1.el5.x86_64
 yum install mysql.x86_64
 yum install mysql-server.x86_64
 make install
 yum install mysql-devel.x86_64
yum install php-mysql.x86_64
 yum provides *myodbc-installer*


See above for how to tackle the missing library error.

Now find the name of missing required rpm by command

yum provides libXt.so.6

This will give you the name of missing package. Install its 32bit or its 64 bit version of package, or both, depending on the case and go ahed! Here in this case i386 implies 32 bit version of missing package is required.  


Installing 9i/10g on RHEL 3

Prerequisite: RHEL 3 has been installed with all required packages(see bottom of this post)
Also check, if you need OS Patch. For install of 9i u need 3006854 patch.Not needed for oracle 10g

Install the 3006854 patch:
unzip p3006854_9204_LINUX.zip
cd 3006854
sh rhel3_pre_install.sh

1. system configuration change
Login from root user and add following entries to /etc/sysctl.conf file:

kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000

In addition the following lines can be added to the /etc/security/limits.conf file:
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384

2. install groups/user creation
Create the new groups and users:

groupadd oinstall
groupadd dba

useradd -g oinstall -G dba oracle

change password for oracle user
passwd oracle

3. install directory creation /setup

Create the directories in which the Oracle software will be installed and give ownership to install user

mkdir /u01
chown oracle.dba /u01
chmod 777 /u01

4. install user configuration
Login as the install user ,here oracle user and add the following lines at the end of the .bash_profile file:

# Oracle 9i /10g
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0.1.0
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=orcl
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib;
export LD_ASSUME_KERNEL=2.4.1

5. run OUI
For 9i /mnt/cdrom/runInstallerv

10g does not support installation by cd so
For 10g ,copy the 10g software install cd to disk and begin installation .

Now follow the steps suggested by OUI , for troubleshooting , see the install log etc.

required package selection list

1. X Window System.
2. GNOME Desktop Environment.
3. Graphical Internet.
4. Text-based Internet.
5. Server Configuration Tools.
6. FTP Server.
7. Legacy Network Server.
8 Development Tools.
9. Legacy Software Development.
10. Administration Tools.
11. System Tools.

be careful with 7,8,9
click on details and try to select all inside components of the packages.

I hope it helps you.