Karl about the Oracle Database

Some experiences out of my daily oracle practice

Archive for the 'Linux' Category

SuSE Linux 10.1 and Oracle 10.2 64bit installation

Posted by carl.reitschuster on 18th April 2007

Hi reader,

some aspects i need to remember in future installation i want to record here. SuSE Linux 10.1 is different from the SLES/OpenSuSE  Installations. Libraries,  Development Tools, … are missing.

In order to run Oracle 10G installation on SuSE 10.1 you must

  • use DVD Media - only on DVD the 64Bit packages are available. Otherwise you could do a network install.
  • create Oracle user with dba as primary group
  • Install the C/C++ Compiler packages - without them you cannot relink the oracle binaries during installation

    gcc-c++ - The GNU C++ Compiler

  • Install 32bit shared and development libraries

    glibc-32bit - Standard Shared Libraries (from the GNU C Library)
    glibc-devel-32bit - Include Files and Libraries Mandatory for Development

  • Install the orarun package
  • Support for Asyncronus I/O

    libaio - Linux-Native Asynchronous I/O Access Library

  • Do not set LD_LIBRARY_PATH - sounds interesting ;-)

    unset LD_LIBRARY_PATH

  • starting installer with disabling the check of the Operatingsystem.

runInstaller -ignoreSysPrereqs

With these settings i could install Oracle 10.2 on SuSE Linux 10.1 on AMD 64bit.

Some additional configuration is needed if you want to setup a database

  • ulimit - added by orarun tool in  /etc/security/limits.conf

## added by orarun ##
oracle  soft    nproc   2047
oracle  hard    nproc   16384
oracle  soft    nofile  1024
oracle  hard    nofile  65536
# End of file

  • shared memory parameters - once you installed the orarun package :

/usr/sbin/rcoracle start  # sets SHM paramter
/sbin/chkconfig oracle on # sets SHM parameter during startup

  • Uncomment 127.0.0.2 ip address for Hostname and enter the real address for proper access via dbconsole

#127.0.0.2       sv019291.dev.global.taxi.com sv019291
150.179.37.146  sv019291.dev.global.taxi.com sv019291

  • ORA-27102: out of memory/Linux-x86_64 Error: 28: No space left on device
    you have to size shared memory properly. Shared memory must be large enough for all started instances.
    But not all physical memory must be allocated; The Value should by <= 75% of total physical memory.

(TotalAllocatedSGA(all instances) < (shmall * PageSize) )
&&
( (shmall * PageSize) <= (TotalPhysicalMemory / 100 ) * 75
)

retrieving Memory pagesize :  getconf PAGE_SIZE

retrieving shmall setting : cat /proc/sys/kernel/shmall

  • The network card settings should be checked. Sometimes due to a mismatch of duplex settings for example network speed could drop down < 10%
    ;

    view the settings of your servers network card interface eth0 :
    ethtool eth0

    set network card properties (interface eth0 *only* for example!) : 
    ethtool -s eth0 speed 100 duplex full autoneg off

Will complete the list in future

Karl Reitschuster

Links …

The Installation Guide for SLES 10 : Oracle 10g R2 (10.2.0.1) on SUSE Linux Enterprise Server 10

The Installation Guide for OpenSuSE : Oracle Database10g R2 (10.2.0.1) on openSUSE 10.2

Setting Shared Memory (Puschitz) : Tuning and Optimizing Red Hat Enterprise Linux for Oracle 9i and 10g Databases

Blog of proper setting of SHMALL : It’s an SGA Explosion

Posted in 10.2, Linux | 2 Comments »

Some issues with my Oracle 10.2 Installation on SuSE 10.1 64Bit

Posted by carl.reitschuster on 16th November 2006

Hi Reader,

had some problems with the installation i want to mention for myself to remember next time;

Strange security settings of Oracle Software Directories

Problems started as i wanted to config another user on the database server for SQL*PLUS Access. Even my setting of LD_LIBRARY_PATH/PATH/ORACLE_HOME was correct i got following message starting SQL*PLUS :

sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

The reason was the setting of the priviliges of these very important oracle runtime directories

drwxr-x-.-.-  3 oracle dba  7184 2006-11-03 15:16 lib
drwxr-x-.-.-  3 oracle dba  5144 2006-11-03 15:16 lib32

to access these directories you must at least in the dba unix group. I wondered about it. Probably an initial umask setting of the oracle user?

[ svx66287 /opt/oracle/102 ]
 ISISP [102] oracle > umask
0022

As workaround i put the user into the dba group which is not very secure. if you have any idea please let me know. As is said all works fine with the oracle user.

Karl

 

Posted in 10.2, Linux | No Comments »