B.3 Installing Oracle 10g

B.3.1 Oracle 10g Installation on SLES 10

  1. Follow the installation instructions provided in the SLES 10 installation manual. Install SLES 10 with the ext3 filesystem and default packages along with Oracle Server Base, C/C++ Compiler and Tools.

  2. Log in as root.

  3. Install the SLES 10 Service pack. Verify the service pack information by using the following command:

    SPident
    

    or

    cat /etc/SuSE-release
    

    The following result is expected:

    CONCLUSION: System is up-to-date!
      Found     SLES-10-x86_64-current
    
  4. The account for the oracle user is disabled. Enable the account by changing the shell for the oracle user from /bin/false to /bin/bash by using YaST user administration or by editing the /etc/passwd file.

  5. Set a new password for the oracle user by using YaST or by using the following command:

    /usr/bin/passwd oracle
    
  6. Change the default Oracle environment set by orarun, if required:

    1. Change the Oracle home directory by editing the ORACLE_HOME variable in /etc/profile.d/oracle.sh file.

    2. The default ORACLE_SID value is set to orcl. Change it to ESEC in /etc/profile.d/oracle.sh file.

  7. Set the kernel parameters by using the following command:

    /usr/sbin/rcoracle start
    
  8. Change to the oracle user:

    su - oracle
    
  9. Change to the database directory and run ./runinstaller.

    The Oracle Universal Installer screen is displayed.

  10. Accept the default inventory directory or browse and select a new directory, then click Next.

  11. From the Installation types, select Enterprise Edition, then click Next.

  12. For checking Network configuration requirements, select User Verified, then click.

  13. From the Configuration options, select Install Database Software only, then click Next.

    The Installation summary is displayed.

  14. Review the selections, then click Install.

  15. Execute the specified scripts as root and click OK on completion.

  16. After the installation is complete, click Exit.

B.3.2 Oracle 10g Installation on Red Hat Linux 4

  1. Log in as root.

  2. Run the following command to ensure that the required packages are installed on your server.

    rpm –q make
    

    List of packages:

    binutils-2.15.92.0.2-13.EL4
    compat-db-4.1.25-9
    compat-libstdc++-296-2.96-132.7.2
    control-center-2.8.0-12
    gcc-3.4.3-22.1.EL4
    gcc-c++-3.4.3-22.1.EL44
    glibc-2.3.4-2.9
    glibc-common-2.3.4-2.9
    gnome-libs-1.4.1.2.90-44.1
    libstdc++-3.4.3-22.1
    libstdc++-devel-3.4.3-22.1
    make-3.80-5
    numactl-0.6.4.i386
    pdksh-5.2.14-30
    sysstat-5.0.5-1
    xscreensaver-4.18-5.rhel4.2
    setarch-1.6-1
    
  3. Create a UNIX group and UNIX user account for the Oracle database owner by using the following commands:

    Add a dba group (as root):

    groupadd oinstall
    groupadd dba
    
  4. Add the Oracle user (as root):

    useradd –g oinstall –G dba –d /opt/oracle/product/<10.2.0.3>/db_1 –m oracle
    passwd oracle
    
  5. Create directories for ORACLE_HOME and ORACLE_BASE as the oracle user:

    mkdir –p /opt/oracle/product/<10.2.0.3>
    
  6. Open the .bash_profile file (in oracle user home directory) for editing, and append the following:

    # User specific environment and startup programs
    ORACLE_BASE=/opt/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
    ORACLE_TERM=xterm; export ORACLE_TERM
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    ORACLE_SID=oracle; export ORACLE_SID
    LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib; export CLASSPATH
    LD_ASSUME_KERNEl=2.4.19; export LD_ASSUME_KERNEL
    TMP=/tmp; export TMP
    TMPDIR=$TMP;export TMPDIR
    PATH=$PATH:$HOME/bin
    export PATH
    
    unset USERNAME
    

    IMPORTANT:This set of environment variables must only be used for the oracle user. These variables should not be set in the system environment or in the Sentinel Administrator User environment.

  7. Save the .bash_profile and exit.

  8. Log in as oracle user to load the environment variables you added in Step 6.

    exit
    su - oracle
    
  9. Check the environment variables by using the following command:

    set | more
    
  10. Log in as the oracle user. If you are using X emulation, set the DISPLAY environmental variable:

    DISPLAY=<machine-name>:0.0; export DISPLAY
    
  11. Change to database directory and run the following script:

    ./runInstaller
    
  12. When you proceed through the installation, leave all the prompts at their default values except the ones specified below:

    1. In the Welcome window, click Next.

    2. In the File Locations window, select ORACLE_BASE and ORACLE_HOME from the drop-down list for the Destination Name , then click Next.

    3. In the Select Product to Install window, select either the Oracle 10g Database or 10.2.0.1, then click Next.

    4. In the Installation Types window, select Enterprise Edition, then click Next.

    5. In the Database Configuration window, select General Purpose, then click Next.

    6. In the Summary window, review the installation summary, then click Install.

    7. In the End of Installation window, click Exit.

  13. To apply the Oracle 10.2.0.3 patch, change to database directory and run the following script:

    ./runInstaller
    
  14. Follow the prompts in the Installation windows. In the Summary window, review the installation summary and click Install. In the End of Installation window, click Exit.

B.3.3 Oracle 10g Installation on Solaris 10

NOTE:For more information on kernel parameter settings in Solaris 10, see Section B.4.1, Setting Kernel Values.

  1. Log in as root.

  2. Start the installation

    #  su - oracle
    # < Installation directory or CD mount>/ .runInstaller    
    
  3. In the Welcome window:

    1. Select Basic Installation.

    2. Deselect the Create Starter Database option.

    3. Specify the Oracle Home Location.

    4. Specify the oracle DBA group, then click Next.

  4. In the Product-Specific Prerequisite window, verify that all systems checks were successful, then click Next

  5. In the Summary window, review the install summary and click Install.

  6. In the End of Installation window, click Exit.