Tuesday 25 February 2014

ORACLE INSTALLATION ON SOLARIS 5.10


Putty not login through root user so first create user then login through user su - root
vi ---- i # insert
        o # new line
        X # remove by character
        d # line delete


---- Must First
groupadd oinstall
groupadd dba
groupadd oper

useradd -g oinstall -G dba -d /export/home/oracle oracle
mkdir /export/home/oracle
chown oracle:oinstall /export/home/oracle
passwd -r files oracle


mkdir -p app/oracle/product/10.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01




1. Unpack FilesUnzip the files.
unzip 10202_database_solx86.zip

2. Hosts File
The "/etc/hosts" file must contain a fully qualified name for the server.
<IP-address>  <fully-qualified-machine-name>  <machine-name>

3. Set Kernel ParametersIn previous versions of Solaris, kernel parameters were amended by adding entries to the "/etc/system" file, followed by a system reboot.
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=256
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100

--Execute on root
 projadd oracle

4. ---Append the following line to the "/etc/user_attr" file.
oracle::::project=oracle

5. ---Only Check
# prctl -n project.max-shm-memory -i project oracle
project: 100: oracle
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
project.max-shm-memory
        privileged       254MB      -   deny                                 -
        system          16.0EB    max   deny                                 -

6. Execute on root
projadd -U oracle -K "project.max-shm-memory=(priv,4g,deny)" oracle
projmod -sK "project.max-sem-nsems=(priv,256,deny)" oracle
projmod -sK "project.max-sem-ids=(priv,100,deny)" oracle
projmod -sK "project.max-shm-ids=(priv,100,deny)" oracle
echo "set maxuprc=16384" >> /etc/system
echo "set max_nprocs=30000" >> /etc/system
echo "set shmsys:shminfo_shmmax=4294967295" >> /etc/system


---Execute
# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
oracle:100::::project.max-shm-memory=(priv,4294967296,deny)


7. Setup Package

# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

Add the "SUNWi1cs" and "SUNWi15cs" packages using the "pkgadd" command.
# pkgadd -d /cdrom/sol_10_106_x86/Solaris_10/Product SUNWi1cs SUNWi15cs


8.----Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.

DISPLAY=192.168.56.2:0.0; export DISPLAY

9.  vi .profile
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
# Select the appropriate ORACLE_BASE
#ORACLE_BASE=/export/home/oracle; export ORACLE_BASE
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:/usr/ccs/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin; export PATH
LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
#mail=/USR/MAIL/${logname:?}



10. Run through oracle user ./runInstaller

11. In between oracle setup run showing error on 86% oracle 10gR2
PROBLEM:-

Solaris 10 Update 10 and above ( Solaris 10 8/11 )
The following error is seen during link phase:
excerpt from $ORACLE_HOME/install/make.log
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: /export/home/oracle/sw/11g/bin/genclntsh
INFO: ld: fatal: symbol 'ntcontab' in file
/export/home/oracle/sw/11g/lib/libn10.a(ntcontab.o): section [3].data: size
0x60: symbol (address 0, size 0x70) lies
outside of containing section
INFO: ld: fatal: file processing errors. No output written to
/export/home/oracle/sw/11g/lib/libclntsh.so.10.1
INFO: genclntsh: Failed to link libclntsh.so.10.1
INFO: make: Fatal error: Command failed for target `client_sharedlib
INFO: '
INFO: *** Error code 1
Cause
Unpublished bug:
Bug 6791866 - ASSEMBLER CODE GENERATED BY GENNTTAB CAUSES LD ERROR IN LATEST SOLARIS BUILDS
Which states:
Always in the latest Solaris builds
Solaris 11 [Nevada]
and
Solaris 10 Update 10 and above ( Solaris 10 8/11 )
due to stricter integrity checking in the linker (ld)
or
OS patch 144501-19 installed.



SOLUTION:-
For versions 10.1.x through 10.2.0.x use the following workaround
If this occurs during an installation of the base release or patchset, you will get a pop-up for the link error providing the following options, 'Retry or Continue'. Leave this popup and login to a new session as the owner of the ORACLE_HOME, and complete the following:


1. cd $ORACLE_HOME/bin

2. cp gennttab gennttab_orig

3. edit gennttab
change
ntcontab:
.type ntcontab,@object
.size ntcontab,112
.align 4
to
ntcontab:
.type ntcontab,@object
.size ntcontab,96
.align 4

4. cd $ORACLE_HOME/network/libexecute command
/usr/ccs/bin/make -f ins_net_client.mk ntcontab.o
execute command
$ORACLE_HOME/bin/genclntsh

5. If this error occurred during an installation of base release or patchset and you received the pop-up described above,
   click on 'Retry' and the link error should resolve itself.

ELSE

6. If this error occurred during a patching installation via opatch utility
   then complete the following after doing steps 1-4 above
   relink Oracle
   relink all > relink.txt 2 > &1


7. review the relink.txt file for errors



Check Some Commands
=========================================
prstat     (process)
vmstat 2 10    (CPU load)
echo "::memstat" |mdb -k (RAM Memory usage)
df -h    (Partition)

===========================================

================================================================
SOME ERRORS AND SOLUTIONS AT THE TIME OF INSTALLATIONS
================================================================
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2013-07-09_11-37-55AM.log' for details.
Exception Severity: 1
INFO: Exception handling set to prompt user with options to  Retry  Ignore
User Choice: Retry
INFO: The output of this make operation is also available at: '/u01/app/oracle/product/10.2.0/db_1/install/make.log'
INFO:
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: /u01/app/oracle/product/10.2.0/db_1/bin/genclntsh
INFO: ld:
INFO: fatal:
INFO: symbol '
INFO: ntcontab
INFO: ' in file
INFO: /u01/app/oracle/product/10.2.0/db_1/lib/libn10.a(ntcontab.o)
INFO: : section [
INFO: 3]
INFO: .data
INFO: : size
INFO: 0x60
INFO: : symbol (address
INFO: 0
INFO: , size
INFO: 0x70
INFO: ) lies outside of containing section
INFO:
INFO: ld:
INFO: fatal:
INFO: file processing errors. No output written to
INFO: /u01/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
INFO:
INFO: genclntsh: Failed to link libclntsh.so.10.1
INFO: *** Error code 1
INFO: make: Fatal error: Command failed for target `client_sharedlib'
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2013-07-09_11-37-55AM.log' for details.
Exception Severity: 1
INFO: Exception handling set to prompt user with options to  Retry  Ignore
User Choice: Retry
INFO: The output of this make operation is also available at: '/u01/app/oracle/product/10.2.0/db_1/install/make.log'
INFO:
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: /u01/app/oracle/product/10.2.0/db_1/bin/genclntsh
INFO: ld:
INFO: fatal:
INFO: symbol '
INFO: ntcontab
INFO: ' in file
INFO: /u01/app/oracle/product/10.2.0/db_1/lib/libn10.a(ntcontab.o)
INFO: : section [
INFO: 3]
INFO: .data
INFO: : size
INFO: 0x60
INFO: : symbol (address
INFO: 0
INFO: , size
INFO: 0x70
INFO: ) lies outside of containing section
INFO:
INFO: ld:
INFO: fatal:
INFO: file processing errors. No output written to
INFO: /u01/app/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
INFO:
INFO: genclntsh: Failed to link libclntsh.so.10.1
INFO: *** Error code 1
INFO: make: Fatal error: Command failed for target `client_sharedlib'
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2013-07-09_11-37-55AM.log' for details.
Exception Severity: 1

===========================================================================================
Solution:1
----------

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
Applies to:Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.5 - Release: 10.1 to 10.2
Oracle Server - Standard Edition - Version: 10.1.0.2 to 10.2.0.5 [Release: 10.1 to 10.2]
Oracle Solaris on x86 (32-bit)
Oracle Solaris on x86-64 (64-bit)
This issue is currently known to affect only the 32bit version of Oracle Software on the following platforms
Solaris x86
Solaris x86-64
Where OS patch 144501-19 has been installed
or in the latest Solaris builds
Solaris 11 [Nevada]
or
Solaris 10 Update 10 and above ( Solaris 10 8/11 )Symptoms
When doing a new install or applying a patch of 32bit Oracle software on a server that meets the following criteria
Solaris x86
Solaris x86-64
Where OS patch 144501-19 has been installed
or in the latest Solaris builds
Solaris 11 [Nevada]
or
Solaris 10 Update 10 and above ( Solaris 10 8/11 )
The following error is seen during link phase:
excerpt from $ORACLE_HOME/install/make.log
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: /export/home/oracle/sw/11g/bin/genclntsh
INFO: ld: fatal: symbol 'ntcontab' in file
/export/home/oracle/sw/11g/lib/libn10.a(ntcontab.o): section [3].data: size
0x60: symbol (address 0, size 0x70) lies
outside of containing section
INFO: ld: fatal: file processing errors. No output written to
/export/home/oracle/sw/11g/lib/libclntsh.so.10.1
INFO: genclntsh: Failed to link libclntsh.so.10.1
INFO: make: Fatal error: Command failed for target `client_sharedlib
INFO: '
INFO: *** Error code 1
----Cause Unpublished bug: Bug 6791866 - ASSEMBLER CODE GENERATED BY GENNTTAB CAUSES LD ERROR IN LATEST SOLARIS BUILDS  Which states: Always in the latest Solaris builds
Solaris 11 [Nevada] and Solaris 10 Update 10 and above ( Solaris 10 8/11 ) due to stricter integrity checking in the linker (ld)
or
OS patch 144501-19 installed.

----Solution For versions 10.1.x through 10.2.0.x use the following workaround
If this occurs during an installation of the base release or patchset, you will get a pop-up for the link error providing the following options, 'Retry or Continue'. Leave this popup and login to a new session as the owner of the ORACLE_HOME, and complete the following:

1. cd $ORACLE_HOME/bin

2. cp gennttab gennttab_orig

3. edit gennttab
change
ntcontab:
.type ntcontab,@object
.size ntcontab,112
.align 4
to
ntcontab:
.type ntcontab,@object
.size ntcontab,96
.align 4

4. cd $ORACLE_HOME/network/lib
execute command
/usr/ccs/bin/make -f ins_net_client.mk ntcontab.o
execute command
$ORACLE_HOME/bin/genclntsh

5. If this error occurred during an installation of base release or patchset and you received the pop-up described above, click on 'Retry' and the link error should resolve itself.

6. If this error occurred during a patching installation via opatch utility then complete the following after doing steps 1-4 above
relink Oracle
relink all > relink.txt 2>&1


7. review the relink.txt file for errors


Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Standard Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition

GENCLNTSH; INSTALL & CONFIGURE; INSTALL; NTCONTAB.O; RELINK ALL; SOLARIS



================================================

solution 2
-------------

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
export ORACLE_BASE=/orvappl/oracle
export ORACLE_HOME=/orvappl/oracle/OraHome
export PATH=/orvappl/oracle/OraHome/bin:/orvappl/raorv/jrockit-R27.5.0-jdk1.6.0_03/bin:/usr/bin:/bin:$PATH
#export CLASSPATH=/orvappl/raorv/jrockit-R27.5.0-jdk1.6.0_03/jre:$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib;
export CLASSPATH=/orvappl/raorv/jrockit-R27.5.0-jdk1.6.0_03/jre
#export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/network/lib:$ORACLE_HOME/network/lib32:/orvappl/raorv/jrockit-R27.5.0-jdk1.6.0_03/lib:/lib:/usr/lib64:/usr/lib;
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
JAVA_HOME=/orvappl/raorv/jrockit-R27.5.0-jdk1.6.0_03
export JAVA_HOME

-----
I guess you are missing /usr/ccs/bin this in your environment PATH variable in your oracle profile.
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:/usr/ccs/bin:$ORACLE_HOME/OPatch; export PATH
since make looks for this path /usr/ccs/bin which is missing in relink process and also recheck your oracle_home.




 

No comments: