Installing Oracle 8i Release 3 (8.1.7)

This article describes how to install and configure Oracle on a local Solaris SPARC machine. The instructions assume the following:

  • You do not have a previous version of Oracle already installed on your machine. If you have a previous version of Oracle installed, you might need to migrate databases, depending on the version installed. In this case, do not follow these instructions. Instead, refer to Oracle product documentation on the Oracle Web site at docs.oracle.com/database_mp_8i.html.
  • Your Oracle database server will be located on the same machine as WebSphere Application Server. This configuration and the use of default settings documented in these instructions are appropriate only for development and very small production environments. For information on more complicated scenarios, refer to the IBM Redbook WebSphere V3.5 Handbook at www.redbooks.ibm.com/redbooks/SG246161.html. Although this Redbook was written for the WebSphere Application Server Version 3.5 product, much of the conceptual information also pertains to the WebSphere Application Server 4.0 product.
  • You have checked the Oracle product documentation on the Oracle Web site at docs.oracle.com/database_mp_8i.html to verify that you have enough memory and disk space for your installation.

Note: Install Oracle before installing WebSphere Application Server.

Perform the following steps to install Oracle 8i from the product CD-ROM:

  1. Ensure that you are logged into the machine with superuser (root) privileges.
  2. Ensure that you have set the following UNIX kernel, shared memory, and semaphore parameters properly:
    • SHMMAX
    • SHMMIN
    • SHMMNI
    • SHMSEG
    • SEMMNI
    • SEMMSL
    • SEMMNS
    • SEMOPM
    • SEMVMX

    For more information on the proper values for these parameters, refer to the Oracle 8i Installation Guide. It is recommended that you review these settings with your system administrator to ensure that they do not conflict with existing settings needed for other software programs on your system.

  3. Ensure that the DISPLAY and TERM environment variables are set correctly for your environment.
  4. Create a mount point for Oracle 8i. The mount point can be a directory in an existing volume, or you can set up a new logical volume.

    Note: If you plan to use Oracle in a production environment, it is recommended that you create a file system on a separate partition to store the database files. (If you are performing an Optimal Flexible Architecture (OFA)-compliant installation, you must create four mount points, one for Oracle 8i and three for the database files.) Refer to the Oracle 8i Installation Guide and your Solaris system documentation for more information on creating and mounting file systems.

  5. Use operating system utilities to create groups for database administrators (groups dba, osdba, osoper, and oinstall) and user oracle (who owns the Oracle software after installation) by doing the following:
    1. Start the admintool utility, as follows:
      # admintool
    2. In the Admintool window, click Browse > Groups. The Admintool:Groups window opens.
    3. In the Admintool:Groups window, click Edit > Add. The Admintool:Add Group window opens.
    4. In the Admintool:Add Group window, in the Group Name field, enter dba and click OK.
    5. Repeat Step c and Step d to create the groups osdba, osoper, and oinstall.
    6. In the Admintool:Groups window, click Browse > Users. The Admintool:Users window opens.
    7. In the Admintool:Users window, click Edit > Add. The Admintool:Add User window opens.
    8. In the Admintool:Add User window, do the following:
      1. In the User Name field, enter oracle.
      2. In the Primary Group field, enter oinstall.
      3. In the Secondary Groups field, enter dba.
      4. Select the desired user login shell by clicking the button beside the Login Shell field, and then clicking the desired shell. These instructions assume that the Bourne shell is the login shell for the user oracle. If you indicate a different shell for the user oracle, change the shell-specific instructions within this article accordingly.
      5. Ensure that the radio button beside the Create Home Directory field is selected.
      6. In the Path field, enter the desired home directory for the user oracle.
      7. Accept the default values for the other fields and click OK.
    9. Exit from the admintool utility.

    Note: Use the oracle account only for installing and maintaining Oracle software; do not log into a database as the user oracle.

  6. Ensure that the home directory for the user oracle is owned by the user oracle and the group oinstall.
  7. Log in as the user oracle, as follows:
    # su - oracle
  8. Ensure that the DISPLAY and TERM environment variables are still set properly.
  9. Ensure that the user mask value is set to 022 by entering the following command:
    $ umask

    If the command does not return a value of 022, set the value as follows:

    1. Edit the .profile file in the home directory of the user oracle by adding the line umask 022 to this file and then saving and closing it.
    2. Enter the following command:
      $ umask 022
  10. Add the following information to the .profile file in the home directory for the user oracle. Your Oracle System Identifier (SID) can differ from the example shown, but it must be fewer than eight characters in length.
    #-----------------------------------
    # Oracle environment setup
    #-----------------------------------
    #
    ORACLE_BASE=oracle_home_directory
    export ORACLE_BASE
    ORACLE_SID=orcl
    export ORACLE_SID
    ORACLE_HOME=$ORACLE_BASE/product/8.1.7
    export ORACLE_HOME
    PATH=$PATH:$ORACLE_HOME/bin
    export PATH
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export LD_LIBRARY_PATH
    ORA_CLIENT_LIB=shared
    export ORA_CLIENT_LIB
    echo 'The Oracle 8.1.7 environment is set'
  11. Log in as user root, as follows:
    # su - root
  12. Insert the Oracle 8i CD-ROM and, if necessary, mount the CD-ROM drive. In most Solaris systems, the Volume Management daemon (vold) mounts the CD automatically and immediately, as well as each time the machine is restarted. If the vold process is not running on your machine, see your Solaris documentation for instructions on how to mount the CD-ROM drive.

    The following steps assume that the CD-ROM is mounted at /cdrom.

  13. Oracle8i is provided on two CD-ROMs called Disk 1 and Disk 2. To avoid having to switch between these CD-ROMs to complete a full installation, Oracle recommends copying the contents of each CD-ROM to the hard drive of the machine on which you will install Oracle and running the Oracle Universal Installer from the new location. To perform these tasks, do the following:
    1. As user root, create a directory to hold the Oracle software, as follows:
      # mkdir software_source_directory
    2. Within the software_source_directory, create two subdirectories called Disk1 and Disk2, as follows:
      # cd software_source_directory
      # mkdir Disk1
      # mkdir Disk2
    3. Navigate to the directory /cdrom/cdrom0/, as follows:
      # cd /cdrom/cdrom0
    4. Copy the contents of the CD-ROM Disk 1 to the subdirectory Disk1, as follows:
      # cp -R * software_source_directory/Disk1
    5. Copy the contents of the CD-ROM Disk 2 to the subdirectory Disk2, as follows:
      # cp -R * software_source_directory/Disk2
    6. Navigate to the software_source_directory, as follows:
      # cd software_source_directory
    7. Change the ownership of the Disk1 and Disk2 subdirectories to user oracle, group oinstall, as follows:
      # chown -R oracle:oinstall Disk1
      # chown -R oracle:oinstall Disk2

    When copied in this fashion, the Oracle Universal Installer automatically finds the contents of each CD-ROM and does not prompt for the location of either CD-ROM during the course of installation.

  14. Log in as user oracle, as follows:
    # su - oracle
  15. Ensure that the DISPLAY and TERM environment variables are still set properly.
  16. Enter the following commands to begin the Oracle installation process:
    $ cd software_source_directory/Disk1
    $ ./runInstaller
    
    where software_source_directory is the directory into which you've copied the Oracle CD-ROMs.

    The Oracle Universal Installer opens, displaying the Welcome window.

  17. Click Next. The File Locations window opens.
  18. Verify the values in the Source and Destination fields. The value of the Source field must be software_source_directory/Disk1/stage/products.jar, and the value of the Destination field must be the same as the value you set for the ORACLE_HOME environment variable.
  19. Click Next. The UNIX Group Name window opens.
  20. Enter oinstall in the UNIX Group Name field, and then click Next.

    Note: If the /var/opt/oracle directory does not exist or cannot be written to by the user oracle, you are prompted to run the /oracle_home_directory/product/8.1.7/oraInstRoot.sh script at this point in the installation process. Switch to another terminal, log in as the user root, and execute the script. After the script has been executed, return to the Oracle Universal Installer to continue the installation process.

  21. In the Available Products window, verify that the Oracle8i Enterprise Edition 8.1.7.0.0 option is selected, and then click Next.
  22. In the Installation Types window, choose the Typical option, and then click Next.
  23. In the Database Identification window, enter a global database name in the Global Database Name field (for example, orcl.machine_name), and verify that the value in the SID field is the same as the value you set for the ORACLE_SID environment variable. Click Next.
  24. In the Database File Location window, specify the installation location for the Oracle database files in the Directory for Database Files field and then click Next.
  25. Verify the information in the Summary window, which summarizes all of the installation choices that you have made so far. When you determine that the information is correct, click Install. The Install window opens; it tracks the status of the Oracle installation.

    Note: At this point in the installation, you are prompted to run the root.sh configuration script to set the necessary file permissions for Oracle products. Switch to another terminal, log in as the user root, and execute the script. After the script runs, return to the Oracle Universal Installer to finish the installation process.

    After the installation and linking processes finish, the Configuration Tools window opens. The Net8 Configuration Assistant and Oracle Database Configuration Assistant are automatically configured, along with an Oracle database.

    The Configuration Tools window identifies two user accounts and passwords automatically configured for the database by the Oracle Database Configuration Assistant. One is the SYS account with a password of change_on_install and the other is the SYSTEM account with a password of manager. Note these accounts and passwords for future use.

  26. After the configuration process is complete, click Next. The End of Installation window opens.
  27. Click Exit to close the Oracle Universal Installer. Click Yes to confirm the action.
  28. Apply to the product any Oracle-supplied patches located in the software_source_directory/Disk1/patch, software_source_directory/Disk2/patch, software_source_directory/Disk1/opspatch, and software_source_directory/Disk2/opspatch directories. Review the README included with each patch for installation instructions.
  29. At this point, check the Oracle product documentation on the Oracle Web site at docs.oracle.com/database_mp_8i.html to verify that your environment variables are set to optimize your particular installation.
  30. Unmount any CD-ROM before removing it from the CD-ROM drive by entering the following command:
    # umount cdrom/cdrom0
  31. Proceed to the article "Configuring Oracle 8i Release 3 (8.1.7) for use with WebSphere Application Server" to configure Oracle for use with WebSphere Application Server.
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值