libgcc_s.so.1, ins_ctx.mk – Error while installing 11gR2 on OEL 5.3

While installing 11gR2 on Oracle Enterprize Linux 5 update 3, I faced below error during relink process

/lib/libgcc_s.so.1: undefined reference to `__stack_chk_fail@GLIBC_2.4′
collect2: ld returned 1 exit status
make: *** [ctxhx] Error 1

and

del.icio.us Tags:

Exception String: Error in invoking target ‘install’ of makefile ‘/u10/app/SBLOSL/orsblosl/oracle/product/11.2.0/ctx/lib/ins_ctx.mk’

Upon investigating, I observed gcc version is 3.4.6, Where as oracle 11gR2 installer requires gcc version 4.1.x.

 

[orsblosl@rstnxovm9019 bin]$ ls -lart *gcc* *g++*

-rwxr-xr-x 2 root root  89760 Jun  5  2007 i386-redhat-linux-gcc34

-rwxr-xr-x 3 root root  93120 Jun  5  2007 i386-redhat-linux-g++34

-rwxr-xr-x 2 root root  89760 Jun  5  2007 gcc34

-rwxr-xr-x 3 root root  93120 Jun  5  2007 g++34

-rwxr-xr-x 1 root root    914 May 22  2008 gcc

-rwxr-xr-x 1 root root    914 May 22  2008 g++

-rwxr-xr-x 4 root root 198868 Nov  5  2008 i386-redhat-linux-g++

-rwxr-xr-x 4 root root 198868 Nov  5  2008 g++.orig

-rwxr-xr-x 2 root root 196692 Nov  5  2008 i386-redhat-linux-gcc

-rwxr-xr-x 2 root root 196692 Nov  5  2008 gcc.orig

 

[orsblosl@rstnxovm9019 bin]$ /usr/bin/gcc.orig –version

gcc.orig (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

[orsblosl@rstnxovm9019 bin]$ /usr/bin/gcc –version

gcc34 (GCC) 3.4.6 20060404 (Red Hat 3.4.6-4)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hence I moved gcc and g++  in /usr/bin to backup directory and restored gcc.orig and g++.orig to gcc & g++ respectively.

Retry the relink lead to successful completion of the 11gR2 install.

 

Refrence docs:

Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 5 on 32-bit x86 (Doc ID 880936.1)
GCC/G++ version incompatiblity with compat-oracle-rhel4-1.0-5 rpm package installed [ID 389811.1]
Multiple gcc / g++ Versions in Linux [ID 444084.1]

Extracting Local database in siebel

1. Siebel Remote – Component Group needs to be enabled on the server.
This can be done by connecitng to server manager (srvrmgr) and executing

srvrmgr>list compgrp

If Siebel Remote is not enabled, need to execute the command

srvrmgr> enable component group Remote for server <servername>

Resatart Siebel server & verify Siebel Remote compgrp available on list compgrps command

2. Database Extract component (DbXtract) needs to be enabled on server

srvrmgr> list comp DbXtract

3. Generate New Database – Job needs to be executed

    Administration – Server Management > Jobs > New job
        > For Component/Job field select  Generate New Database
        > For Requested Server field give <siebsrvr_hostname>
    In Job parameters applet Create New Value
        > Name column as SQL Any where database and value as  sse_utf8.dbf
    Submit the job and ensure it was successful

4. Registering an employee as Siebel mobile webclient user

    Administration – Siebel Remote > Mobile Clients
    In Mobile Clients Applet
        > Mobile Client column  <username needs DbXtract>
        > App Server Name as <server_name>
        > UserID as user_available_as_employee

5. Executing DbXtract for the mobile user
    Administration – Server Management > Jobs > New job
        > For Component/Job field select Database Extract
        > For Requested Server field give <siebsrvr_hostname>
    In Job parameters applet Create New Value
        > Name column as Client Name and value as <username needs DbXtract>
        > Name column as Move Siebel Remote Cliet  and value as True (For first time extract)
        > In Routing Model  select value MOBILE CLIENT – EXTRACT ONLY
    Submit the job and ensure it was successful

Errors

Issue 1:  After submitting Database Extract,  the job was in Queued state for long time

issue can be identified as Siebel Remote compgrp / DbXtract comp was not enabled.

Issue 2:  SBL-DBX-00038: No local database template found.

issue can be identified as not generated Database template

Issue 3: SBL-SMI-00077: Component error, see the trace file for more information 

and in DbXtract_xxxxx.log contains
GenericLog GenericError 1 000000084b553068:0 2010-01-20 10:00:37 (smisched.cpp (894) err=1376333 sys=0) SBL-SMI-00077: Component error, see the trace file for more information

issue identified as not availability of Siebel mobile client users.

This can be confirmed by executing the command

select * from SIEBEL.S_NODE where NODE_TYPE_CD = ‘REMOTE’ and NAME=’SADMIN’ and EFF_END_DT is NULL;

which returns no rows (or) username for whom extract needs to be executed will not be in output

Using ‘at’ to schedule a job in Unix

Unix command ‘at’ can be used to schedule a task at specific time.To get into ‘at>’ command prompt use command ‘batch’.

[leenus@oracle ~]$ batch

at> at 5pm today

at> nohup tar -xzvf oracle.tgz > ~/nohup.out

at> mail -s “Scheduled task Completed” me@myhost.com << ~/nohup.out

ctrl+d to save the job.

To see the scheduled jobs we can give atq

To remove the scheduled job execute atrm -<job_number>

Creating partitions in linux

I followed below procedure for creating various partitions in linux

[root@ovmapp1 ~]# fdisk /dev/sdc

Command (m for help): d  
Selected partition 1

Command (m for help): p  ===> print partition table

Disk /dev/sdc: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot      Start         End      Blocks   Id  System

Command (m for help): n  ===> New partition
Command action
 e   extended
 p   primary partition (1-4)
p
Partition number (1-4):
Value out of range.
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-652, default 652):
Using default value 652

Command (m for help): p

Disk /dev/sdc: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         652     5237158+  83  Linux

Command (m for help):
Command (m for help): w  ===> write to partition tabel, If write is not given partion table will not be modified
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@ovmapp1 ~]#

[root@ovmapp1 ~]# mkfs -t ext3 /dev/sdc1  ===> Creating ext3 format file system
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
655360 inodes, 1309289 blocks
65464 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1342177280
40 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
 32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@ovmapp1 ~]# e2label /dev/sdc1 /arch   ===> e2label command will assign label to the partition,
[root@ovmapp1 ~]#
Before mounting the new partition, below is the output of df -h
[root@ovmapp1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             9.0G  6.5G  2.1G  77% /
none                  295M     0  295M   0% /dev/shm
/dev/sda2             9.7G  6.2G  3.0G  68% /oracle
/dev/sdb1             9.9G   55M  9.3G   1% /oradata
[root@ovmapp1 ~]#
[root@ovmapp1 ~]# mkdir /arch
[root@ovmapp1 ~]#
[root@ovmapp1 ~]# mount -t ext3 /dev/sdc1 /arch  ===> Mounting ext3 file system to a directory
[root@ovmapp1 ~]#
[root@ovmapp1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             9.0G  6.5G  2.1G  77% /
none                  295M     0  295M   0% /dev/shm
/dev/sda2             9.7G  6.2G  3.0G  68% /oracle
/dev/sdb1             9.9G   55M  9.3G   1% /oradata
/dev/sdc1             5.0G   43M  4.7G   1% /arch
[root@ovmapp1 ~]# 
Add the entries to /etc/fstab file to automount the new partition after evry reboot
[root@ovmapp1 ~]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/oracle           /oracle                 ext3    defaults        1 2
LABEL=/oradata          /oradata                ext3    defaults        0 0
LABEL=/arch             /arch                   ext3    defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0
/dev/hdc                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

Script for sourcing environment for multiple SID’s sharing same HOME

Below is simple script i created to set environment in RAC nodes & instances sharing same oracle_home.

export ORACLE_HOME=/oracle
export PATH=$ORACLE_HOME/bin:$PATH
echo ” ”
echo ” ”
echo “Please Enter SID : +ASM1 / RAC1 ”
read SID
export ORACLE_SID=$SID
echo ” ”
echo ” Environment set for $SID ”
echo ” ”
echo ” `env|grep ORACLE_SID` ”
echo ” “

#scripts

Change Weblogic Listen Port: In Weblogic

Change Weblogic Listen Port:
In Weblogic server default Listen port is 7001. say, In DMZ servers open ports are between 10000-10999 in order to change Listen port (from back-end) we need to use WLST (weblogic scripting tool) utility if we need to change from back-end.

WLST tool can be invoken by wlst.sh from location $WEB_LOGIC_HOME /wlserver_10.3/common/bin

Idnetify the configured domain location , ( $WEB_LOGIC_HOME/domains/ )

wls:/offline> readDomain(‘/u10/app/HLDRET/orhldret/oracle/1013WCHome/WebLogic/wlserver_10.3/samples/domains/wl_server’);
wls:/offline/wl_server> cd(‘Server’)
wls:/offline/wl_server/Server> ls()
drw- examplesServer — This is my AdminServer
wls:/offline/wl_server/Server> cd(‘examplesServer’)
wls:/offline/wl_server/Server/examplesServer> ls()

  • – – –
  • – – –
  • – – –

-rw- ListenAddress All Local Addresses
-rw- ListenDelaySecs 0
-rw- ListenPort 7001 — This Is default listen port

  • – – –
  • – – –
  • – – –

wls:/offline/wl_server/Server/examplesServer> set(‘ListenPort’,10890);
wls:/offline/wl_server/Server/examplesServer> updateDomain();
wls:/offline/wl_server/Server/examplesServer> exit();

Restart WebLogic server & access the URL http://:/console
Default login username/password : weblogic/weblogic

Diff between 10.1.2.0.0 & 10.1.2.0.2 For

Diff between 10.1.2.0.0 & 10.1.2.0.2
For installation Oracle Retail workspace 13.1, which needs to be deployed in Oracle Webcenter 10.1.3.4 ( install 10.1.3.2 webcenter & apply patch 7272722 ) , OID is mandatory product for managing users & roles.
While going through 10gAS-R2 , got a confusion on what version of Application Server needs to be installed.
The link gave me clarification http://ow.ly/11kTx