Download  Print this page

Red Hat ENTERPRISE LINUX 5.1 - LINUX ORACLE Tuning Manual

Oracle 9i and 10g tuning guide
Hide thumbs

Advertisement

Quick Links

Red Hat Enterprise
Linux 5.1
Red Hat Enterprise Linux
Oracle Tuning Guide
Tuning and optimizing performance tips and guidelines for Oracle®
9i and 10g databases on Red Hat Enterprise Linux 5, 4, 3 and 2.1

Advertisement

loading

  Summary of Contents for Red Hat ENTERPRISE LINUX 5.1 - LINUX ORACLE

  • Page 1 Red Hat Enterprise Linux 5.1 Red Hat Enterprise Linux Oracle Tuning Guide Tuning and optimizing performance tips and guidelines for Oracle® 9i and 10g databases on Red Hat Enterprise Linux 5, 4, 3 and 2.1...
  • Page 2 All other trademarks referenced herein are the property of their respective owners. The GPG fingerprint of the security@redhat.com key is: CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E This guide provides step by step instructions for tuning and optimizing Red Hat Enterprise Linux on x86 and x86-64 platforms running Oracle®9i (32 bit or 64 bit) and Oracle®10g (32 bit or 64 bit)
  • Page 3: Table Of Contents

    I. Tuning and Optimizing Red Hat Enterprise Linux for Oracle Database 9i and 10g 1. Introduction 2. Hardware Architectures and Linux Kernels 2.1. General ....................... 5 2.2. 32 bit Architecture and the hugemem Kernel ............5 2.3. The 64 bit Architecture ..................6 3.
  • Page 4 Red Hat Enterprise Linux Oracle Tuning Guide 13.3. Using Raw Devices for Oracle Databases ............39 13.4. Using Block Devices for Oracle 10g Release 2 in Red Hat Enterprise Linux 4 and 5 ........................40 14. Large Memory Optimization, Big Pages, and Huge Pages 14.1.
  • Page 5 20.7. Oracle 10g R1 on Red Hat Enterprise Linux 2.1 (x86) ......... 80 20.8. Verifying and Updating the redhat-release File ............ 80 21. Sizing Disk Space for Oracle 10g 22. Setting Shell Limits for Your Oracle User 23. Creating Oracle User Accounts 24.
  • Page 6 Red Hat Enterprise Linux Oracle Tuning Guide 36.2. Patching Oracle9i R2 to 9.2.0.6.0 on Red Hat Enterprise Linux 4 ....... 138 37. Starting and Shutting down the Oracle9i Database 38. Oracle Installation Errors 39. Reference List A. Revision History...
  • Page 7: Tuning And Optimizing Red Hat Enterprise Linux For Oracle Database 9I And 10G

    Part I. Tuning and Optimizing Red Hat Enterprise Linux for Oracle Database 9i and 10g...
  • Page 9: Introduction

    Red Hat Enterprise Linux releases, see http://www.redhat.com/rhel/details/limits/. For instructions on installing Oracle 10g and 9i databases on Red Hat Enterprise Linux, see Appendix A and Appendix B...
  • Page 11: Hardware Architectures And Linux Kernels

    Chapter 2. Hardware Architectures and Linux Kernels 2.1. General When it comes to large databases the hybrid x86-64 architecture platform is strongly recommended over the 32 bit x86 platform. 64 bit platforms can access more than 4GB of memory without workarounds.
  • Page 12: The 64 Bit Architecture

    Chapter 2. Hardware Architectures and Linux Kernels If you install the Red Hat Enterprise Linux 3, 4 or 5 hugemem kernel ensure that any proprietary drivers you are using (e.g. proprietary multipath drivers) are certified with the hugemem kernel. In Red Hat Enterprise Linux 2.1, the smp kernel is capable of handling up to 4GB of RAM. The kernel-enterprise kernel should be used for systems with more than 4GB of RAM up to 16GB.
  • Page 13: Kernel Upgrades

    Chapter 3. Kernel Upgrades Make sure to install the latest kernel where all proprietary drivers, if applicable, are certified and supported. Note that proprietary drivers are often installed under /lib/modules/<kernel- version>/kernel/drivers/addon. For example, the EMC PowerPath drivers can be found in the following directory when running the 2.4.21-32.0.1.ELhugemem kernel: $ ls -al /lib/modules/2.4.21-32.0.1.ELhugemem/kernel/drivers/addon/emcpower total 732...
  • Page 14 Chapter 3. Kernel Upgrades initrd /initrd-2.4.21-32.0.1.ELsmp.img In this example, the "default" attribute is set to "0" which means that the 2.4.21-32.0.1.ELhugemem kernel will be booted. If the "default" attribute would be set to "1", then 2.4.21-32.0.1.ELsmp would be booted. After you installed the newer kernel reboot the system.
  • Page 15: Kernel Boot Parameters

    2.4.21-32.0.1.ELhugemem: title Red Hat Enterprise Linux Server (2.6.18-8.el5) root (hd0,0) kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/sda2 elevator=deadline initrd /initrd-2.6.18-8.el5.img This entry tells the 2.6.18-8.el5 kernel to use the Deadline scheduler. Make sure to reboot the system to activate the new scheduler. http://www.redhat.com/magazine/008jun05/features/schedulers/...
  • Page 17: Memory Usage And Page Cache

    5.1. Checking the Memory Usage To determine the size and usage of memory, you can enter the following command: grep MemTotal /proc/meminfo http://www.redhat.com/advice/ You can find a detailed description of the entries in /proc/meminfo at tips/meminfo.html. Alternatively, you can use the free(1) command to check the memory:...
  • Page 18 Chapter 5. Memory Usage and Page Cache Alternatively, you can use sysctl(8) to change it: # sysctl -w vm.pagecache="1 15 30" To make the change permanent, add the following line to the file /etc/sysctl.conf. This file is used during the boot process. # echo "vm.pagecache=1 15 30"...
  • Page 19: Swap Space

    Chapter 6. Swap Space 6.1. General In some cases it is good for the swap partition to be used. For example, long running processes often access only a subset of the page frames they obtained. This means that the swap partition can safely be used even if memory is available because system memory could be better served for disk cache to improve overall system performance.
  • Page 20: Checking Swap Space Size And Usage

    Chapter 6. Swap Space 6.2. Checking Swap Space Size and Usage You can check the size and current usage of swap space by running the command: grep SwapTotal /proc/meminfo Swap usage may slowly increase as shown above but should stop at some point. If swap usage continues to grow steadily or is already large, then one of the following choices may need to be considered: •...
  • Page 21: Setting Shared Memory

    Chapter 7. Setting Shared Memory Shared memory allows processes to access common structures and data by placing them in shared memory segments. It is the fastest form of inter-process communication available since no kernel involvement occurs when data is passed between the processes. In fact, data does not need to be copied between the processes.
  • Page 22: Setting Shmmni Parameter

    Chapter 7. Setting Shared Memory # cat /proc/sys/kernel/shmmax 2147483648 The default shared memory limit for SHMMAX can be changed in the proc file system without reboot: # echo 2147483648 > /proc/sys/kernel/shmmax Alternatively, you can use sysctl(8) to change it: # sysctl -w kernel.shmmax=2147483648 To make a change permanent, add the following line to the file /etc/sysctl.conf (your setting may vary).
  • Page 23: Removing Shared Memory

    Removing Shared Memory system is 2097152*4096 bytes (shmall*PAGE_SIZE) which is 8 GB. PAGE_SIZE is usually 4096 Chapter 14, Large Memory Optimization, Big Pages, and Huge Pages bytes unless you use which supports the configuration of larger memory pages. If you are not sure what the default PAGE_SIZE is on your Linux system, you can run the following command: $ getconf PAGE_SIZE 4096...
  • Page 24 Chapter 7. Setting Shared Memory bytes=2736783360 lpid=3688 cpid=3652 nattch=0 att_time=Sat Oct 29 13:36:52 2005 det_time=Sat Oct 29 13:36:52 2005 change_time=Sat Oct 29 11:21:06 2005 To remove the shared memory segment, you could copy and paste shmid and execute: $ ipcrm shm 32768 Another approach to remove shared memory is to use Oracle's sysresv utility.
  • Page 25: Setting Semaphores

    Chapter 8. Setting Semaphores Semaphores can best be described as counters which are used to provide synchronization between processes or between threads within a process for shared resources like shared memories. System V semaphores support semaphore sets where each one is a counting semaphore. So when an application requests semaphores, the kernel releases them in sets.
  • Page 26: The Semopm Parameter

    Chapter 8. Setting Semaphores Oracle recommends SEMMSL to be at least 32000 for 9i R2 and 10g R1/R2 databases except for 9i R2 on x86 platforms where the minimum value is lower. Setting SEMMNS to 32000 ensures that SEMMSL * SEMMNI (250*128=32000) semaphores can be be used. Therefore it is recommended to set SEMMNS to at least 32000 for 9i and 10g databases on x86 and x86-64 platforms.
  • Page 27 An Example of Semaphore Settings Section 8.3, “The SEMMNS Parameter” As shown at the maximum number of semaphores that can be allocated on a Linux system will be the lesser of: SEMMNS or (SEMMSL * SEMMNI). Since SEMMNI can stay at 128, we need to increase SEMMNS to 641280 (5010*128). Section 8.4, “The SEMOPM Parameter”...
  • Page 29: Setting File Handles

    Chapter 9. Setting File Handles The maximum number of file handles denotes the maximum number of open files on a Linux system. Oracle recommends that the file handles for the entire system is set to at least 65536 for 9i R2 and 10g R1 and R2 for x86 and x86-64 platforms.
  • Page 31: Adjusting Network Settings

    Chapter 10. Adjusting Network Settings 10.1. Changing Network Adapter Settings To check the speed and settings of network adapters, use the ethtool command which works now for most network interface cards. To check the adapter settings of eth0 run: # ethtool eth0 To force a speed change to 1000Mbps, full duplex mode, run: # ethtool -s eth0 speed 1000 duplex full autoneg off To make a speed change permanent for eth0, set or add the ETHTOOL_OPT environment variable in...
  • Page 32: Flow Control For E1000 Network Interface Cards

    Chapter 10. Adjusting Network Settings # sysctl -w net.core.wmem_max=262144 To make the change permanent, add the following lines to the /etc/sysctl.conf file, which is used during the boot process: net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=262144 net.core.wmem_max=262144 To improve fail over performance in a RAC cluster, consider changing the following IP kernel parameters as well: net.ipv4.tcp_keepalive_time net.ipv4.tcp_keepalive_intvl...
  • Page 33: Setting Shell Limits For The Oracle User

    Chapter 11. Setting Shell Limits for the Oracle User Most shells like Bash provide control over various resources like the maximum allowable number of open file descriptors or the maximum number of processes available to a user. To see all shell limits, run: ulimit -a For more information on ulimit for the Bash shell, see man bash and search for ulimit.
  • Page 34: Limiting Maximum Number Of Processes Available For The Oracle User

    Chapter 11. Setting Shell Limits for the Oracle User entire system will run out of file handles. This may prevent users logging in as the system cannot open any PAM modules that are required for the login process. That is why the hard limit should be set to 63536 and not 65536.
  • Page 35 Limiting Maximum Number of Processes Available for the Oracle User To see the current limit of the maximum number of processes for the oracle user, run: $ su - oracle $ ulimit -u Note The ulimit options are different for other shells. To change the "soft"...
  • Page 37: Enabling Asynchronous I/O And Direct I/O Support

    Chapter 12. Enabling Asynchronous I/O and Direct I/O Support Asynchronous I/O permits Oracle to continue processing after issuing I/Os requests which leads to higher I/O performance. Red Hat Enterprise Linux also allows Oracle to issue multiple simultaneous I/O requests with a single system call. This reduces context switch overhead and allows the kernel to optimize disk activity.
  • Page 38: Relinking Oracle 10G To Enable Asynchronous I/O Support

    Chapter 12. Enabling Asynchronous I/O and Direct I/O Support 12.2. Relinking Oracle 10g to Enable Asynchronous I/O Support Ensure that for 10g Release 1 and 2 the libaio and libaio-devel RPMs are installed on the system: # rpm -q libaio libaio-devel libaio-0.3.96-5 libaio-devel-0.3.96-5 If you relink Oracle for asynchronous I/O without installing the libaio RPM, then you will get an error...
  • Page 39: Tuning Asynchronous I/O For Oracle 9I And 10G

    Tuning Asynchronous I/O for Oracle 9i and 10g filesystemio_options=asynch This parameter is platform specific. By default, this parameter is set to none for Linux and thus needs to be changed: SQL> show parameter filesystemio_options; NAME TYPE VALUE ------------------------------------ ----------- ----------- filesystemio_options string none...
  • Page 40: Verifying Asynchronous I/O Usage

    Chapter 12. Enabling Asynchronous I/O and Direct I/O Support # echo 1048576 > /proc/sys/fs/aio-max-size Alternatively, you can use sysctl(8) to change it: # sysctl -w fs.aio-max-size=1048576 To make the change permanent, add the following line to the /etc/sysctl.conf file. This file is used during the boot process: $ echo "fs.aio-max-size=1048576"...
  • Page 41 Verifying Asynchronous I/O Usage The numbers in red (number of active objects) show whether Oracle makes asynchronous I/O calls. The output will look a little bit different in Red Hat Enterprise Linux 4 and 5. However, the numbers in red will show same behavior in Red Hat Enterprise Linux 3 and Red Hat Enterprise Linux 4 and 5. The first column displays the cache names kioctx and kiocb.
  • Page 43: Configuring I/O For Raw Partitions

    Chapter 13. Configuring I/O for Raw Partitions 13.1. General Raw partitions allow Oracle to bypass the OS cache. A raw device can be assigned or bound to block devices such as disk or disk partitions. When a raw device is bound to a disk, any read or write access to the raw device will perform a raw I/O with the disk.
  • Page 44: Basics Of Raw Devices

    Chapter 13. Configuring I/O for Raw Partitions the alias settings in this example would not be required in Red Hat Enterprise Linux 4 Red Hat Enterprise Linux AS 4 Release Notes and 5. For more information, see . Be also careful when adding/removing devices which can change device names on the system.
  • Page 45: Using Raw Devices For Oracle Databases

    Using Raw Devices for Oracle Databases /dev/raw/raw100 /dev/sdz 13.3. Using Raw Devices for Oracle Databases Many guides and documentations show instructions on using the devices in /dev/raw/ for configuring raw devices for data files. It is not recommend to use the raw devices in /dev/raw/ for the following reason: When you configure raw devices for Oracle data files, you also have to change ownership and permissions of the devices in /dev/raw/ to allow Oracle to read and write to these raw devices.
  • Page 46: Using Block Devices For Oracle 10G Release 2 In Red Hat Enterprise Linux 4 And 5

    Chapter 13. Configuring I/O for Raw Partitions And the /etc/sysconfig/rawdevices file would look something like this if you use EMC PowerPath: /u02/oradata/asmdisks/disk01 /dev/emcpowera /u02/oradata/asmdisks/disk02 /dev/emcpowerb /u02/oradata/asmdisks/disk03 /dev/emcpowerc /u02/oradata/asmdisks/disk04 /dev/emcpowerd In this example, 4 raw devices have been created using minor numbers 1 through 4. This means that the devices /dev/raw/raw1../dev/raw/raw4 should not be used by any application on the system.
  • Page 47: Large Memory Optimization, Big Pages, And Huge Pages

    Chapter 14. Large Memory Optimization, Big Pages, and Huge Pages Please Note As explained in detail in this section, enabling big pages helps reduce TLB misses. However, this performance benefit is realized primarily when using large SGA sizes. Once a portion of memory is locked down for big pages, applications that use normal pages cannot access that portion of the memory.
  • Page 48: Usage Of Big Pages And Huge Pages In Oracle 9I And 10G

    Chapter 14. Large Memory Optimization, Big Pages, and Huge Pages • pages are locked in memory and are never swapped out which guarantees that shared memory such as SGA remains in RAM. • contiguous pages are pre-allocated and cannot be used for anything else but for System V shared memory, for example SGA.
  • Page 49: Configuring Huge Pages In Red Hat Enterprise Linux 3

    Configuring Huge Pages in Red Hat Enterprise Linux 3 Thus, Big Pages cannot be larger than Highmem. The total amount of memory in the high region can be obtained by reading the memory statistic HighTotal from the /proc/meminfo file: $ grep "HighTotal" /proc/meminfo HighTotal: 9043840 kB The Big Pages feature can be enabled with the following command:...
  • Page 50 Chapter 14. Large Memory Optimization, Big Pages, and Huge Pages In Red Hat Enterprise Linux 3 the desired size of the Huge Pages pool is specified in megabytes. The size of the pool should be configured by the incremental size of the Huge Page size. To obtain the size of Huge Pages, execute the following command: $ grep Hugepagesize /proc/meminfo Hugepagesize:...
  • Page 51: Configuring Huge Pages In Red Hat Enterprise Linux 4 Or 5

    Configuring Huge Pages in Red Hat Enterprise Linux 4 or 5 This command usually takes a while to finish. 14.7. Configuring Huge Pages in Red Hat Enterprise Linux 4 or 5 Section 14.3, “Sizing Big Pages and Huge Pages”. Before configuring Big Pages, ensure to have read In Red Hat Enterprise Linux 4 or 5 the size of the Huge Pages pool is specified by the desired number of Huge Pages.
  • Page 52: Huge Pages And Shared Memory File System In Red Hat Enterprise Linux 3

    Chapter 14. Large Memory Optimization, Big Pages, and Huge Pages Note In order that an Oracle database can use Huge Pages in Red Hat Enterprise Linux 4 or 5, you also need to increase the ulimit parameter "memlock" for the oracle user in /etc/ security/limits.conf if "max locked memory"...
  • Page 53 Huge Pages and Shared Memory File System in Red Hat Enterprise Linux 3 On this database system the size of the database buffer cache is 2 GB: db_block_buffers = 262144 db_block_size = 8192 The following command shows that Oracle allocated a shared memory file of 2GB (262144*8192=2147483648) for the buffer cache on the ramfs shared memory file system: # mount | grep ramfs ramfs on /dev/shm type ramfs (rw)
  • Page 55: Growing The Oracle Sga To 2.7 Gb In X86 Red Hat Enterprise Linux 2.1 Without

    Chapter 15. Growing the Oracle SGA to 2.7 GB in x86 Red Hat Enterprise Linux 2.1 Without VLM 15.1. General Due to 32 bit virtual address limitations workarounds have been implemented in Linux to increase the maximum size for shared memories. The workaround is to lower the Mapped Base Address (mapped_base) for shared libraries and the SGA Attach Address for shared memory segments.
  • Page 56: Increasing Space For The Sga In Red Hat Enterprise Linux 2.1

    Chapter 15. Growing the Oracle SGA to 2.7 GB in x86 Red Hat Enterprise Linux 2.1 Without VLM 0ab11000-0ab99000 rw-p 02ac8000 08:09 273078 /ora/product/9.2.0/bin/oracle 0ab99000-0ad39000 rwxp 00000000 00:00 0 40000000-40016000 r-xp 00000000 08:01 16 /lib/ld-2.2.4.so 40016000-40017000 rw-p 00015000 08:01 16 /lib/ld-2.2.4.so 40017000-40018000 rw-p 00000000 00:00 0 40018000-40019000 r-xp 00000000 08:09 17935...
  • Page 57: Lowering The Mapped Base Address For Shared Libraries In Red Hat Enterprise Linux 2.1

    Lowering the Mapped Base Address for Shared Libraries in Red Hat Enterprise Linux 2.1 not be above the SGA attach address, example, between 0x15000000 (336 MB) and 0xc0000000 (3GB). To increase the space for shared memory in Red Hat Enterprise Linux 2.1, the mapped base for shared libraries for the Oracle processes must be changed by root.
  • Page 58: Allowing The Oracle User To Change The Mapped Base Address For Shared Libraries

    Chapter 15. Growing the Oracle SGA to 2.7 GB in x86 Red Hat Enterprise Linux 2.1 Without VLM [[ ! -f ksms.s_orig ]] && cp ksms.s ksms.s_orig # Modify the SGA attach address in the ksms.s file before relinking Oracle genksms -s 0x15000000 >...
  • Page 59 Allowing the Oracle User to Change the Mapped Base Address for Shared Libraries Allow the oracle user to execute /usr/local/bin/ChangeMappedBase via sudo without password: # echo "oracle ALL=NOPASSWD: /usr/local/bin/ChangeMappedBase" >> \ /etc/sudoers Now the Oracle user can run /usr/local/bin/ChangeMappedBase to change the mapped_base for its own shell: $ su - oracle $ cat /proc/$$/mapped_base;...
  • Page 61: Without Vlm

    /proc/self/maps in a shell. The directory self in the proc file system always points to the current running process which in this example is the cat process: # cat /etc/redhat-release Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
  • Page 62: Oracle 10G Sga Sizes In Red Hat Enterprise Linux 3, 4 Or 5

    3 and 0xb68000 (decimal 11960320) in Red Hat Enterprise Linux 4 and 5. This is much lower than 0x40000000 (decimal 1073741824) in Red Hat Enterprise Linux 2.1: # cat /etc/redhat-release Red Hat Linux Advanced Server release 2.1AS (Pensacola) # cat /proc/self/maps...
  • Page 63: Lowering The Sga Attach Address In Oracle 10G

    Lowering the SGA Attach Address in Oracle 10g Red Hat 10g Database Default Max Supported Comments Enterprise Version Supported SGA SGA without Kernel Type without VLM smp kernel (x86) 10g Release 2 Up to ~2.2 GB (*) Up to ~2.2 GB (*) No relink of 10g R2 is necessary but the SGA...
  • Page 64 Chapter 16. Growing the Oracle SGA to 2.7/3.42 GB in x86 Red Hat Enterprise Linux 3, 4 and 5 Without VLM # cat /proc/3035/maps | grep SYSV 50000000-aa200000 rw-s 00000000 00:04 262144 /SYSV8b1d1510 (deleted) The following commands were executed on a 10g R2 database system: # ps -ef | grep "[o]ra_ckpt"...
  • Page 65: Using Very Large Memory (Vlm)

    Note that the shmfs file system is available in Red Hat Enterprise Linux 3 but not in Red Hat Enterprise Linux 4 or 5: $ cat /etc/redhat-release Red Hat Enterprise Linux AS release 3 (Taroon Update 6) $ egrep "shm|tmpfs|ramfs" /proc/filesystems...
  • Page 66: Configuring Very Large Memory (Vlm)

    Chapter 17. Using Very Large Memory (VLM) $ cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 2) $ egrep "shm|tmpfs|ramfs" /proc/filesystems nodev tmpfs nodev ramfs This means that if you try to mount a shmfs file system in Red Hat Enterprise Linux 4 or 5, you will get...
  • Page 67 Configuring Very Large Memory (VLM) use_indirect_data_buffers=true db_block_size=8192 db_block_buffers=1048576 shared_pool_size=2831155200 Note that shmmax needs to be increased for shared_pool_size to fit into the System V shared memory. In fact, it should be slightly larger than the SGA size. Since shared_pool_size is less than 3 GB in this example, shmmax does not need to be larger than 3GB.
  • Page 69: Installing The Oracle Database 10G On Red Hat Enterprise Linux

    Part II. Installing the Oracle Database 10g on Red Hat Enterprise Linux Introduction and Information on Supported Setups for Oracle 10g This article provides a step by step guide for installing Oracle Database 10g on Red Hat Enterprise Linux. This guide covers the following Oracle Database and Red Hat Linux versions: Oracle Database Red Hat Enterprise Architecture...
  • Page 70 Part II. Installing the Oracle Database 10g on Red Hat Enterprise Linux Oracle Database Red Hat Enterprise Architecture Comments Version Linux Version 1 (10.1) for UNIX Systems Table 3. Table displaying Certified Red Hat Enterprise Linux For Oracle 10g Oracle's Certification Matrices For Validation and Certification information, see https://metalink.oracle.com/metalink/certify/certify.welcome...
  • Page 71: Downloading And Unpacking Oracle 10G Installation Files

    Chapter 18. Downloading and Unpacking Oracle 10g Installation Files http://otn.oracle.com/ Download Oracle 10g (32 bit and 64 bit) for Linux from the following web site: software/products/database/oracle10g/index.html Note To install an Oracle Database 10g (without RAC) you need to download the database file ship.db.lnx32.cpio.gz, 10201_database_linux_x86_64.cpio or similar file.
  • Page 73: Pre-Installation Preparation And Verification

    Chapter 19. Pre-Installation Preparation and Verification 19.1. Verifying Memory and Swap Space Oracle states that the system must have at least 512MB of RAM and 1GB of swap space or a swap space twice the size of the RAM. For systems with more than 2 GB of RAM it states the swap space can be between one and two times the size of the RAM.
  • Page 74 Chapter 19. Pre-Installation Preparation and Verification everything work safely, securely and accurately. This section contains a list Oracle Database versions and versions of Red Hat Enterprise Linux. The list details which packages are required and how to assess whether the correct RPMs are present. For Oracle 10g R2 (64 bit), on Red Hat Enterprise Linux 4 and 5 x86-64 versions, the document Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86-64 lists the following required...
  • Page 75 Verifying Software Packages (RPMs) gcc-c++-3.4.3-9.EL4 glibc-2.3.4-2 glibc-common-2.3.4-2 gnome-libs-1.4.1.2.90-44.1 libstdc++-3.4.3-9.EL4 libstdc++-devel-3.4.3-9.EL4 make-3.80-5 pdksh-5.2.14-30 sysstat-5.0.5-1 xscreensaver-4.18-5.rhel4.2 Note Install the libaio-0.3.96 RPM or a newer version, otherwise the OUI prerequisite check will fail. To check the RPMs, run: rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common \ gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio For 10g R2 (32 bit) on Red Hat Enterprise Linux 3 x86, the document Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86 lists the following required package versions or higher:...
  • Page 76 Chapter 19. Pre-Installation Preparation and Verification compat-gcc-7.3-2.96.128 compat-gcc-c++-7.3-2.96.128 compat-libstdc++-7.3-2.96.128 compat-libstdc++-devel-7.3-2.96.128 gnome-libs-1.4.1.2.90-34.1 (32 bit) openmotif21-2.1.30-8 setarch-1.3-1 libaio-0.3.96-3 libaio-devel-0.3.96-3 To check if you are running the AMD64 or Intel 64(x86-64) kernel on an AMD64 or Intel 64 platform, run: # uname -mi x86_64 x86_64 To check the RPMs, run: rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}...
  • Page 77: Verifying Kernel Parameters

    To check the RPM, run: rpm -q openmotif Also, make sure the redhat-release package is installed. Earlier versions of Red Hat Enterprise Linux may not install it by default when you selected a minimum system installation: rpm -q redhat-release The setarch utility is new in Red Hat Enterprise Linux 3 and 4.
  • Page 78 Chapter 19. Pre-Installation Preparation and Verification To verify shmmni, execute: cat /proc/sys/kernel/shmmni shmmni = 4096 To verify the shmall parameter, execute the command below. shmall is used in 10g R1. cat /proc/sys/kernel/shmall shmall = 2097152 To verify shmmin, execute: ipcs -lm |grep "min seg size" shmmin Note that shmseg is hardcoded in the kernel, the default is much higher.
  • Page 79 Verifying Kernel Parameters On the following versions of Red Hat Enterprise Linux 4 x86, 3 U5 x86, 3 U5 x86-64, and 2.1; you may have to increase the kernel parameters shmmax, semopm, and filemax to meet the minimum requirement. On Red Hat Enterprise Linux 4 x86-64 you may have to increase shmmax and semopm. Oracle also recommends to set the local port range ip_local_port_range for outgoing messages to "1024 65000"...
  • Page 80 Chapter 19. Pre-Installation Preparation and Verification To make the change permanent, add the following lines to the /etc/sysctl.conf file, which is used during the boot process: net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=262144 net.core.wmem_max=262144...
  • Page 81: Installing Required Software Packages

    Chapter 20. Installing Required Software Packages The following sections provide a detailed set of instructions for installing the required software packages(RPMs) before you install your Oracle Database 10g (R1 and R2). These sections include the following possible configurations: • 10g R2 on Red Hat Enterprise Linux 4 and 5 (x86-64), •...
  • Page 82 -Uvh compat-libstdc++-33-3.2.3-47.3.x86_64.rpm rpm -Uvh glibc-devel-2.3.4-2.13.i386.rpm libgcc-3.4.4-2.i386.rpm If you are yet to install Update 3 or later, do not forget to install an updated binutils RPM from https://rhn.redhat.com/ http://oss.oracle.com/ or from . This command will install the newer version of binutils, remember to change the version number if the one you downloaded is newer.
  • Page 83: R2 On Red Hat Enterprise Linux 4 And 5 (X86)

    10g R2 on Red Hat Enterprise Linux 4 and 5 (x86) redhat-artwork-0.120.1-1.2E.x86_64.rpm \ scrollkeeper-0.3.14-3.x86_64.rpm \ cdrecord-2.01.1-5.x86_64.rpm \ docbook-dtds-1.0-25.noarch.rpm \ evolution-data-server-1.0.2-9.x86_64.rpm \ intltool-0.31.2-1.x86_64.rpm \ libcroco-0.6.0-4.x86_64.rpm \ libgnomeprint22-2.8.0-3.x86_64.rpm \ libgnomeprintui22-2.8.0-1.x86_64.rpm \ libgsf-1.10.1-1.x86_64.rpm \ libwnck-2.8.1-1.rhel4.1.x86_64.rpm \ mkisofs-2.01.1-5.x86_64.rpm \ samba-common-3.0.10-1.4E.2.x86_64.rpm \ ghostscript-7.07-33.x86_64.rpm \ ghostscript-fonts-5.50-13.noarch.rpm \ gnutls-1.0.20-3.2.1.x86_64.rpm \...
  • Page 84: R1 On Red Hat Enterprise Linux 4 And 5 (X86-64)

    OUI does not recognize Red Hat Enterprise Linux 4 or 5 as a supported release yet. This means you will have to edit the /etc/redhat-release file, see below, or you apply the 4153257 patch for 10g R1 on Red Hat Enterprise Linux 4 and 5.
  • Page 85: Oracle 10G R1 And R2 On Red Hat Enterprise Linux 3 (X86)

    Oracle 10g R1 and R2 on Red Hat Enterprise Linux 3 (x86) 20.5. Oracle 10g R1 and R2 on Red Hat Enterprise Linux 3 (x86) On Red Hat Enterprise Linux 3 x86 you may have to install the following RPMs and dependencies to meet the software requirements: rpm -Uvh gcc-3.2.3-52.i386.rpm \ cpp-3.2.3-52.i386.rpm \...
  • Page 86: Oracle 10G R1 On Red Hat Enterprise Linux 2.1 (X86)

    2.4.9-e.25. To check the kernel version run uname -r. 20.8. Verifying and Updating the redhat-release File Verify that the redhat-release RPM is installed on your Red Hat system: rpm -q redhat-release This RPM is important for Red Hat Enterprise Linux since Red Hat Enterprise Linux 2.1, 3, 4 and 5 are...
  • Page 87 OS. However, the installer of 10g 10.1.0.3 does not recognize Red Hat Enterprise Linux 4 as a supported release yet. This means that you will have to edit the /etc/redhat-release file. It is not recommend to execute "runInstaller -ignoreSysPrereqs" since this will disable other checks you may need.
  • Page 89: Sizing Disk Space For Oracle 10G

    Chapter 21. Sizing Disk Space for Oracle 10g Oracle says that about 2.5 GB of disk space should be reserved for the Oracle software on Linux. Here are examples to check a file system: $ du -m -s /u01 1963 /u01 $ du -m -s /u01/app/oracle/oradata /u01/app/oracle/oradata...
  • Page 91: Setting Shell Limits For Your Oracle User

    Chapter 22. Setting Shell Limits for Your Oracle User Most shells like Bash provide control over various resources like the maximum allowable number of open file descriptors or the maximum number of processes available to a user. For more information on ulimit for Bash, see man bash and search for ulimit.
  • Page 93: Creating Oracle User Accounts

    Chapter 23. Creating Oracle User Accounts To create the oracle account and groups, execute the following commands: su - root groupadd dba # group of users to be granted SYSDBA system privilege groupadd oinstall # group owner of Oracle files useradd -c "Oracle software owner"...
  • Page 95: Creating Oracle Directories

    Chapter 24. Creating Oracle Directories For Oracle 10g you only need to create the directory for $ORACLE_BASE: su - root mkdir -p /u01/app/oracle chown oracle.oinstall /u01/app/oracle If you want to comply with Oracle's Optimal Flexible Architecture (OFA), then you do not want to place the database files in the /u01 directory but in another directory, file system or disk such as /u02: su - root mkdir -p /u02/oradata/orcl...
  • Page 96 Chapter 24. Creating Oracle Directories /u03/oradata/<db_name_1> /u03/oradata/<db_name_2> The mount point /u01 should be used for the Oracle software only. /u02, /u03, /u04 and so on, should be used for the database files. The db_name represents the DB_NAME initialization parameter which is typically the same as the SID name for single instance databases.
  • Page 97: Setting Oracle Environments

    Chapter 25. Setting Oracle Environments Since the Oracle Universal Installer (OUI) "runInstaller" is run from the oracle account, some environment variables must be configured for this account before OUI is started. Execute the following commands for the Bash which is the default shell on Red Hat Enterprise Linux, to verify your shell run: echo $SHELL): su - oracle export ORACLE_BASE=/u01/app/oracle...
  • Page 99: Installing Oracle Database 10G

    Chapter 26. Installing Oracle Database 10g This Chapter will guide you through the process of installing an Oracle 10g Database. 26.1. Installing Oracle 10g on a Remote Linux Server If you want to install Oracle on a remote server, then you need to relink X to your local desktop. The easiest way to do this is to use the "X11 forwarding"...
  • Page 100 Chapter 26. Installing Oracle Database 10g ocr1 (36006016054141500beac25dcc436dc11) [size=1 GB][features="0"][hwhandler="1 emc"] \_ round-robin 0 [active] \_ 1:0:1:0 sdc 8:32 [active] \_ 2:0:1:0 sdn 8:208 [active] ocr2 (36006016054141500a898dae7c436dc11) [size=2 GB][features="0"][hwhandler="1 emc"] \_ round-robin 0 [active] \_ 1:0:1:1 sdd 8:48 [active] \_ 2:0:1:1 sdo 8:224 [active] vote1 (3600601605414150040a48bf2c436dc11) [size=3 GB][features="0"][hwhandler="1 emc"] \_ round-robin 0 [active]...
  • Page 101 Installing Oracle 10gR2 Cluster Ready Services (CRS) with MPIO /dev/raw/raw1 8 33 /dev/raw/raw2 8 49 /dev/raw/raw3 8 65 /dev/raw/raw4 8 97 /dev/raw/raw5 8 113 On the other nodes run blockdev so the partition table are read again and created: # blockdev --rereadpt /dev/sdc # blockdev --rereadpt /dev/sdd # blockdev --rereadpt /dev/sde # blockdev --rereadpt /dev/sdg...
  • Page 102 Chapter 26. Installing Oracle Database 10g #/dev/raw/raw1 8 33 #/dev/raw/raw2 8 49 #/dev/raw/raw3 8 65 #/dev/raw/raw4 8 97 #/dev/raw/raw5 8 113 Check to be sure the Oracle Notification Services has started on all nodes. # ps -ef |grep ons oracle 20058 0 13:49 ? 00:00:00 /ora/crs/opmn/bin/ons -d...
  • Page 103: Starting Oracle Universal Installer

    Starting Oracle Universal Installer /dev/raw/raw1: bound to major 253, minor 25 /dev/raw/raw2: bound to major 253, minor 21 /dev/raw/raw3: bound to major 253, minor 22 /dev/raw/raw4: bound to major 253, minor 23 /dev/raw/raw5: bound to major 253, minor 24 Verify the correct permissions are all set. # ll /dev/raw total 0 crwxrwxrwx...
  • Page 104: Using Oracle Universal Installer (Oui)

    Chapter 26. Installing Oracle Database 10g $ su - root # mount /mnt/cdrom On Red Hat Enterprise Linux 3 and 4 execute: $ su - root # mount /media/cdrom To execute runInstaller from the mounted CD, run the command corresponding to your version as the oracle user.
  • Page 105 Using Oracle Universal Installer (OUI) Then click Continue - Product-specific Prerequisite Checks: Verify that all checks have been passed. Make sure that the status of each Check is set to "Succeeded". On Red Hat Enterprise Linux AS 4 ignore the warnings for binutils, gcc, and openmotif and proceed. Chapter 29, Oracle 10g and Linux Installation Errors and Troubleshooting.
  • Page 106: Updating After The Oracle Universal Installer

    Chapter 26. Installing Oracle Database 10g - Summary Click Install If Enterprise Manager configuration fails due to port allocation problems, read Chapter 29, Oracle 10g and Linux Installation Errors and Troubleshooting. When a window pops up to run the root.sh script, execute the script in another terminal as root: su - root # /u01/app/oracle/product/10.1.0/db_1/root.sh Running Oracle10 root.sh script...
  • Page 107 Updating after the Oracle Universal Installer export ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1 export PATH=$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib For 10g R2 (10.2.0.1.0) you may want to add the following lines to the ~oracle/.bash_profile file: export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1 export PATH=$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib After that run the following command to set all environment variables in ~oracle/.bash_profile: $ .
  • Page 109: Oracle Post Installation Tasks

    Chapter 27. Oracle Post Installation Tasks Important Section 26.5, “Updating after Before you continue, make sure you followed the steps at the Oracle Universal Installer”. 27.1. Startup and Shutdown of the Oracle 10g Database This section contains details on how to start up and shut down your Oracle Database. Note that the Start the database: oracle$ sqlplus /nolog SQL>...
  • Page 110 Chapter 27. Oracle Post Installation Tasks If you selected "Database Control for Database Management", then the Oracle Enterprise Manager Database Control (Database Control) can be shutdown with the following command which stops both the agent and the Oracle Containers for Java (OC4J) management service: su - oracle emctl stop dbconsole If you selected "Grid Control for Database Management"...
  • Page 111: Tips And Hints For Oracle 10G On Red Hat Enterprise Linux

    Chapter 28. Tips and Hints for Oracle 10g on Red Hat Enterprise Linux To reinstall Oracle 10g after a failed installation attempt, you might want to execute the following commands. Make sure you first used the "De-installation" option in the OUI. su - root export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 .
  • Page 113: Oracle 10G And Linux Installation Errors And Troubleshooting

    You may receive the following error while running the Oracle Universal Installer: Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-2.1, UnitedLinux-1.0 or redhat-3 Failed <<<< Exiting Oracle Universal Installer, log for this session can be found at ...
  • Page 114 Chapter 29. Oracle 10g and Linux Installation Errors and Troubleshooting Checking for filemax=65536; found filemax=26163. Failed <<<< Increase the file-max kernel parameter. Section 19.4, “Verifying Kernel Parameters” for information on this problem and how to solve it. ORA-01034: ORACLE not available, ORA-27101: shared memory realm does not exist, Linux Error: 2: No such file or directory, or ORA-01034: ORACLE not available First check if ORACLE_SID is set correctly.
  • Page 115 su - root init 3 init 5 If you are using telnet you will have to set the DISPLAY variable manually. Recovery Manager(rman) hangs You are probably running the wrong rman binary which belongs to the XFree86-devel RPM: $ which rman /usr/X11R6/bin/rman ORA-00988 missing or invalid password(s) During the Oracle 10g installation you probably provided a password for the Oracle database accounts...
  • Page 116 Chapter 29. Oracle 10g and Linux Installation Errors and Troubleshooting libs-6.8.2-1.EL.13.6.i386.rpm). The installation depends on the following packages, to install these packages execute the follow commands: # rpm -Uvh xorg-x11-deprecated-libs-6.8.2-1.EL.13.6.i386.rpm \ xorg-x11-libs-6.8.2-1.EL.13.6.i386.rpm \ xorg-x11-Mesa-libGL-6.8.2-1.EL.13.6.i386.rpm \ expat-1.95.7-4.i386.rpm \ fontconfig-2.2.3-7.i386.rpm \ freetype-2.1.9-1.i386.rpm \ zlib-1.2.1.2-1.i386.rpm Installing 10g R2 (10.2.0.1.0) on Red Hat Enterprise Linux 4 x86-64 Update 2 requires the i386 xorg-x11-deprecated-libs package (xorg-x11-deprecated-...
  • Page 117 Error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory Make sure the libaio RPM is installed. On Red Hat Enterprise Linux 3 x86: # rpm -Uvh libaio-0.3.96-5.i386.rpm On Red Hat Enterprise Linux 4 Update 2 x86-64: # rpm -Uvh libaio-0.3.103-3.x86_64.rpm Your version of libaio may be different.
  • Page 118 Make sure to upgrade to Red Hat Enterprise Linux 4 Update 3, or higher, otherwise to download the https://rhn.redhat.com/ http://oss.oracle.com/projects/compat-oracle/ binutils RPM from or from files/RedHat/. After you have downloaded the RPM install it: # rpm -Uvh --force binutils-2.15.92.0.2-13.0.0.0.2.x86_64.rpm Bugzilla Bug 679 For more information on this bug, see http://sources.redhat.com/bugzilla/show_bug.cgi?id=679...
  • Page 119 ORA-12547: TNS:lost contact There can be many reasons for this error. This can happen during the ASM instance start up when the libaio RPM is not installed on the system. You can test this by running lsnrctl as the oracle user. $ lsnrctl start Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) TNS-12547: TNS:lost contact...
  • Page 121: Installing The Oracle9I 32 Bit Database On Red Hat Enterprise Linux

    Part III. Installing the Oracle9i 32 bit Database on Red Hat Enterprise Linux Introduction and Information on Supported Setups for Oracle 9i This article provides a step by step guide for installing Oracle9i databases on Red Hat Enterprise Linux. This guide covers the following Oracle Database and Red Hat Linux versions: Oracle Database Version Red Hat Enterprise Linux Architecture...
  • Page 123: Preparing Red Hat Enterprise Linux For An Oracle Database Installation

    Chapter 30. Preparing Red Hat Enterprise Linux for an Oracle Database Installation This chapter will guide you though the pre-installation procedures for installing Oracle 9i on Red Hat Enterprise Linux 30.1. Unpacking and Downloading the Oracle9i Installation Files http://otn.oracle.com/software/products/oracle9i/htdocs/ Download Oracle9i for Linux from linuxsoft.html.
  • Page 124: Setting Shared Memory

    Chapter 30. Preparing Red Hat Enterprise Linux for an Oracle Database Installation 30.3. Setting Shared Memory For Oracle9i installations, the maximum shared memory size must be increased. If it is too small, the Oracle Database Configuration Assistant will display the following error message: ORA-27123: unable to attach to shared memory segment.
  • Page 125: Verifying Required Packages(Rpms)

    Chapter 31. Verifying Required Packages(RPMs) You will need certain RPM development packages for the Oracle installer to build Oracle modules, otherwise you will get error messages similar to this one: Error in invoking target ntcontab.o of makefile /u01/app/oracle/product/9.2.0/network/lib/ins_net_client.mk Note Always ensure you use the latest stable versions of RPM. See the Oracle9i Release Notes Release 2 (9.2.0.4.0) for Linux x86 for the list of required RPMs.
  • Page 126: Required Packages For Red Hat Enterprise Linux 4

    Chapter 31. Verifying Required Packages(RPMs) 31.3. Required Packages for Red Hat Enterprise Linux 4 Ensure the following packages are installed by executing the following command: rpm -q make compat-db compat-gcc-32 compat-gcc-32-c++ compat-oracle-rhel4 compat-libcwait compat-libgcc-296 compat-libstdc++-296 compat-libstdc++-33 gcc-c++ gnome-libs gnome-libs-devel libaio-devel libaio make openmotif21...
  • Page 127 Required Packages for Red Hat Enterprise Linux 4 gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm ORBit-0.5.17-14.i386.rpm ORBit-devel-0.5.17-14.i386.rpm alsa-lib-1.0.6-4.i386.rpm audiofile-0.2.6-1.i386.rpm esound-0.2.35-2.i386.rpm esound-devel-0.2.35-2.i386.rpm gtk+-1.2.10-33.i386.rpm gtk+-devel-1.2.10-33.i386.rpm imlib-1.9.13-23.i386.rpm imlib-devel-1.9.13-23.i386.rpm libpng10-1.0.16-1.i386.rpm alsa-lib-devel-1.0.6-4.i386.rpm audiofile-devel-0.2.6-1.i386.rpm gdk-pixbuf-0.22.0-15.1.i386.rpm glib-devel-1.2.10-15.i386.rpm indent-2.2.9-6.i386.rpm libjpeg-devel-6b-33.i386.rpm libtiff-devel-3.6.1-7.i386.rpm libungif-4.1.3-1.i386.rpm libungif-devel-4.1.3-1.i386.rpm Note If you are using the Red Hat Network(RHN), you can run: up2date gnome-libs gnome-libs-devel You can use the up2date command for any packages.
  • Page 129: Setting Up A Working Environment For Oracle

    Chapter 32. Setting Up a Working Environment for Oracle This chapter covers the creation of user accounts, directories and Oracle environments for your Oracle Database before you install. 32.1. Creating Oracle User Accounts This section covers the command necessary to activate the required accounts to install an Oracle Database.
  • Page 130 Chapter 32. Setting Up a Working Environment for Oracle export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.0 export ORACLE_SID=test export ORACLE_TERM=xterm You will need to export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora and other variables are not present in $ORACLE_HOME/network/admin export NLS_LANG=AMERICAN; export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH Set the shell search paths...
  • Page 131: Starting Runinstaller

    Chapter 33. Starting runInstaller An important point to note... If you use CDs to install the database, do not change directory (cd) to /mnt/cdrom to execute ./runInstaller! If you do so, the installation will fail because you will not be able to change the CDs.
  • Page 133: Installing Oracle9I R2 (9.2.0.1.0) On Red Hat Advanced Server

    Chapter 34. Installing Oracle9i R2 (9.2.0.1.0) on Red Hat Advanced Server 2.1 You may get one or more errors during the Oracle installation. If you encounter a problem, read Chapter 38, Oracle Installation Errors. for more information and solutions. The errors can be addressed very easily using the prescribed solutions.
  • Page 135: Installing Oracle9I R2 (9.2.0.4.0) On Red Hat Enterprise Linux 3

    Chapter 35. Installing Oracle9i R2 (9.2.0.4.0) on Red Hat Enterprise Linux 3 In order to install an Oracle9i R2 database on Red Hat Enterprise Linux 3, the "Oracle9iR2 Patch Set 3 9.2.0.4.0" patch set and a few other patches must be applied after the installation of Oracle9i Release 2 (9.2.0.1.0).
  • Page 136 Chapter 35. Installing Oracle9i R2 (9.2.0.4.0) on Red Hat Enterprise Linux 3 To resolve the __libc_wait symbol issue, download the p3006854_9204 patch p3006854_9204_LINUX.zip from http://metalink.oracle.com. See bug 3006854 for more information. To apply the patch, run # unzip p3006854_9204_LINUX.zip Archive: p3006854_9204_LINUX.zip creating: 3006854/ inflating: 3006854/rhel3_pre_install.sh...
  • Page 137 Installing Oracle9i R2 (9.2.0.1.0) on Red Hat Enterprise Linux 3 - Inventory Location: Click Next - Unix Group Name: Use "oinstall" Click Next When asked to run /tmp/orainstRoot.sh, run it before you click Continue - File Locations: Use the default values - Available Products: Select "Oracle9i Database 9.2.0.1.0"...
  • Page 138: Patching Oracle9I To 9.2.0.4.0 On Red Hat Enterprise Linux 3

    Chapter 35. Installing Oracle9i R2 (9.2.0.4.0) on Red Hat Enterprise Linux 3 /usr/bin/ld: ctxhx: hidden symbol `stat' in /usr/lib/libc_nonshared.a(stat.oS) is referenced by DSO collect2: ld returned 1 exit status make: *** [ctxhx] Error 1 Click ignore. This will be fixed when you apply the 9.2.0.4 patch set. 35.2.
  • Page 139 Patching Oracle9i to 9.2.0.4.0 on Red Hat Enterprise Linux 3 - Welcome Screen: Click Next - File Locations: Use default values - Available Products: Select "Oracle9iR2 Patch Set 3 9.2.0.4.0 !" - Summary: Start the Install - At the end of the installation, exit runInstaller You may get the error: "Error in invoking target install of makefile /u01/app/oracle/ product/9.2.0/network/lib/ins_oemagent.mk".
  • Page 140: Patching Oracle Intelligent Agent On Red Hat Enterprise Linux 3

    Chapter 35. Installing Oracle9i R2 (9.2.0.4.0) on Red Hat Enterprise Linux 3 $ dbca 35.3. Patching Oracle Intelligent Agent on Red Hat Enterprise Linux 3 When you run "agentctl start" (Oracle 9.2.0.4), dbsnmp will crash: $ su - oracle $ agentctl start DBSNMP for Linux: Version 9.2.0.4.0 - Production on 07-JAN-2004 19:11:14 Copyright (c) 2003 Oracle Corporation.
  • Page 141 Patching Oracle Intelligent Agent on Red Hat Enterprise Linux 3 $ su - oracle $ cd $ORACLE_HOME/network/lib $ make -f ins_oemagent.mk install Now you should be able to start the agent: $ su - oracle $ agentctl start Note Do not forget to undo the links to /usr/bin/gcc and /usr/bin/g++ if you do not need them any more.
  • Page 143: Installing Oracle9I R2 (9.2.0.6.0) On Red Hat Enterprise Linux

    Chapter 36. Installing Oracle9i R2 (9.2.0.6.0) on Red Hat Enterprise Linux 4 In order to install Oracle9i Release 2 (9.2.0.6), the 9.2.0.6 patch set must be applied for the Oracle database server (patch number 3948480) after the Oracle9i Release 2 (9.2.0.4) installation. For more information, see Oracle9i Release Notes Release 2 (9.2.0.4.0) for Linux x86 - Red Hat Enterprise Linux 4 Certification Update.
  • Page 144: Patching Oracle9I R2 To 9.2.0.6.0 On Red Hat Enterprise Linux 4

    Chapter 36. Installing Oracle9i R2 (9.2.0.6.0) on Red Hat Enterprise Linux 4 - Summary: Start the Install 36.2. Patching Oracle9i R2 to 9.2.0.6.0 on Red Hat Enterprise Linux 4 http:// Download the patch 3948480, Oracle9i Patch Set Release 2 (9.2.0.6) Patch Set 5, from metalink.oracle.com and execute the following commands to extract it: su - oracle...
  • Page 145 Patching Oracle9i R2 to 9.2.0.6.0 on Red Hat Enterprise Linux 4 su - oracle $ echo $LD_ASSUME_KERNEL # it is important that this variable is set! 2.4.19 $ /tmp/Disk1/install/runInstaller -paramFile /tmp/oraparam.ini - Welcome Screen: Click Next - File Locations: Use default values (in this example: /tmp/Disk1/stage/products.xml) - Available Products: Select "Oracle 9iR2 Patchset 9.2.0.6.0"...
  • Page 147: Starting And Shutting Down The Oracle9I Database

    Chapter 37. Starting and Shutting down the Oracle9i Database This chapter shows two separate ways to start and shut down an Oracle9i Database; Using SQLplus and using the ORACLE_HOME binaries. sqlplus Note In Oracle9i svrmgrl is no longer supported, however, you can now do everything with sqlplus so nothing is lost.
  • Page 148 Chapter 37. Starting and Shutting down the Oracle9i Database cp /u01/app/oracle/admin/test/pfile/inittest.ora.642002224936 \ $ORACLE_HOME/dbs/inittest.ora Then make sure that your init file already exists in $ORACLE_HOME/dbs.
  • Page 149: Oracle Installation Errors

    Chapter 38. Oracle Installation Errors This chapter covers many common errors and pitfalls associated with installing an Oracle9i Database. Log Files Always check first the error logs for 9.2.0 in /tmp/OraInstall*, where "*" will be the date of the install, for example /tmp/OraInstall2002-07-04_09-50-19PM. When you problems with make, see also the $ORACLE_HOME/install/make.log file.
  • Page 150 Chapter 38. Oracle Installation Errors INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m `cat $(LIBHOME)/sysliblist` $(LDLIBFLAG)sc_ca $(LDLIBFLAG)sc_fa $(LDLIBFLAG)sc_ex $(LDLIBFLAG)sc_da $(LDLIBFLAG)sc_ut $(LDLIBFLAG)sc_ch $(LDLIBFLAG)sc_fi $(LLIBCTXHX) $(LDLIBFLAG)c -Wl,-rpath,$(CTXHOME)lib $(CORELIBS) $(COMPEOBJS) After that hit Retry in the error pop-up. ORA-27123: unable to attach to shared memory segment This error, "ORA-27123: unable to attach to shared memory segment", message may came up when the Oracle Database Configuration Assistant was running.
  • Page 151 Copyright (c) 2003 Oracle Corporation. All rights reserved. Starting Oracle Intelligent Agent.../u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1855 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1 /u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1868 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1 /u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1880 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1 /u01/app/oracle/product/9.2.0/bin/dbsnmpwd: line 156: 1892 Section 35.3, “Patching You are probably trying to start the agent on Red Hat Enterprise Linux 3.
  • Page 152 Chapter 38. Oracle Installation Errors gcc -o /u01/app/oracle/product/9.2.0/rdbms/lib/oracle \ -L/u01/app/oracle/product/9.2.0/rdbms/lib/ ... /usr/bin/ld: /u01/app/oracle/product/9.2.0/rdbms/lib/oracle: hidden symbol `__fixunssfdi' in / usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libgcc.a(_fixunssfdi.oS) is referenced by DSO collect2: ld returned 1 exit status make: *** [/u01/app/oracle/product/9.2.0/rdbms/lib/oracle] Error 1 /usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/u01/app/oracle/product/9.2.0 To fix the linking problem, execute the following commands:...
  • Page 153 Recovery Manager(rman) Hangs You are probably running the wrong rman binary from the XFree86-devel RPM: $ which rman /usr/X11R6/bin/rman Can't find init file for Database "SID" You may see this error when you start the database with dbstart. Copy the init file for your SID (in this example “test”) from from /u01/app/oracle/admin/test/ pfile to $ORACLE_HOME/dbs to get dbstart and dbshut working: cp /u01/app/oracle/admin/test/pfile/inittest.ora.642002224936 $ORACLE_HOME/dbs/inittest.ora Error in setting permissions of file/directory /u01/app/oracle/jre/1.1.8/bin/i686/...
  • Page 154 Chapter 38. Oracle Installation Errors /u01/app/oracle/jre/1.1.8/bin/../lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so) Unable to initialize threads: cannot find class java/lang/Thread Could not create Java VM You may experience this problem when running the Database Configuration Assistant dbca on Red Hat Enterprise Linux 3 but forgot to set the LD_ASSUME_KERNEL environment variable.
  • Page 155 Note If you use newer Red Hat Enterprise Linux versions as your desktop and you want to install the database on another machine, then you need to set the DisallowTCP entry in /etc/X11/gdm/gdm.conf for the GNOME Display Manager to read: DisallowTCP=false After that you need to restart your X server.
  • Page 157: Reference List

    Optimizing Linux I/O http://metalink.oracle.com To read the Oracle MetaLink links refer to and input the numbers. Note that registration is required. Oracle MetaLink Note:200266.1 Oracle MetaLink Note:225751.1 http://www.puschitz.com/ http://www.oracle.com/technology/documentation/database10g.html http://www.oracle.com/technology/documentation/database10gr2.html http://www.bookpool.com/sm/0072230533 http://www.redhat.com/docs/manuals/csgfs/Oracle_GFS-en-US/index.html http://www.redhat.com/docs/manuals/csgfs/pdf/Oracle_GFS.pdf http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/release-notes/as-x86/ http://www.oracle.com/technology/pub/notes/technote_rhel3.html http://www.redhat.com/whitepapers/rhel/AdvServerRASMpdfRev2.pdf http://www.redhat.com/whitepapers/rhel/OracleonLinux.pdf http://www.redhat.com/whitepapers/rhel/OracleonLinux.pdf http://www.redhat.com/magazine/001nov04/features/vm/ http://www.bookpool.com/sm/0596005652 http://kerneltrap.org/node/2450 http://www.oracle.com/technology/deploy/availability/pdf/S939_SusairajLee.ppt.pdf...
  • Page 158 Chapter 39. Reference List Oracle MetaLink Note:249213.1 Oracle MetaLink Note:260152.1 Oracle MetaLink Note:262004.1 Oracle MetaLink Note:265194.1 Oracle MetaLink Note:270382.1 Oracle MetaLink Note:280463.1 Oracle MetaLink Note:329378.1 Oracle MetaLink Note:344320.1 Oracle Database Documentation Library Oracle Validated Configurations http://www.oracle.com/pls/db102/portal.portal_demo3?selected=1 http://www.oracle.com/technology/tech/linux/validated-configurations/index.html...
  • Page 159: A. Revision History

    Appendix A. Revision History Revision 1.00 Chris Curran ccurran@redhat.com Converted to the Red Hat standard Revision 1.01 Chris Curran ccurran@redhat.com Legal Notice Page: Clarification of Copyright Statement. Red Hat owns the copyright to this and all other subsequent derivative works. Werner Puschitz retains the copyright to the original at www.puschitz.com.