Skip Headers

Oracle9i Quick Installation Procedure
Release 1 (9.0.1) for Linux Intel

Part Number A90352-01

Oracle is a registered trademark, and Oracle Net, Oracle9i, Oracle Database Configuration Assistant, Oracle interMedia, OracleText, Oracle Names, PL/SQL, Pro*C/C++, Pro*COBOL, SQL*Forms, SQL*Loader, and SQL*Plus are trademarks or registered trademarks of Oracle Corporation. Other names may be trademarks of their respective owners.

Copyright © 2001, Oracle Corporation.

All Rights Reserved.

Oracle9i

Quick Installation Procedure Release 1 (9.0.1) for Linux Intel

June 2001

Part No. A90352-01

Purpose of this Procedure

The following procedure describes basic requirements your system needs to meet, and the minimum tasks you need to perform to install an Oracle9i Database. It is not intended to replace Oracle9i Installation Guide Release 1 (9.0.1) for UNIX Systems. If you are an experienced DBA, use this procedure as a guide to complete a quick installation of an Oracle9i Database.

If you want to install Oracle9i Management and Integration or Oracle9i Client, or if you need to complete complex installation configurations, including those with Legato Storage Manager and Oracle Real Application Clusters, then you must follow the complete installation procedure described in the Oracle9i Installation Guide Release 1 (9.0.1) for UNIX Systems.

If you have not installed Oracle products before, use this document to become familiar with the installation procedure.

Requirements

The requirements in this procedure are current as of the release date for Oracle9i. For the most current information, refer to the release notes for your platform, which are located at the following site:

http://docs.oracle.com

If you need assistance with navigating the Oracle Documentation site, refer to the following site:

http://docs.oracle.com/instructions.html

The following requirements must be met in order to perform a typical Oracle9i software installation and to create a simple prototype database.

Pre-Installation Tasks

Complete the following pre-installation tasks in order to ensure that Oracle is properly installed and that you can use the database after installation.

Determine Shell File Size Limit

Oracle9i includes native support for files greater than 2 GB. However, your operating system shell may impose file size limit.

To determine if your shell will impose a file size limit, use the following command:

Review Kernel Parameters

Oracle9i uses UNIX resources such as shared memory, swap memory and semaphores extensively for interprocess communication. If your kernel parameter settings are insufficient for Oracle9i, you will experience problems during installation and instance startup. The greater the amount of data you can store in memory, the faster your database will operate. In addition, by maintaining data in memory, the UNIX kernel reduces disk I/O activity.

Use the ipcs command to obtain a list of the system's current shared memory and semaphore segments, and their identification number and owner.

You can modify the kernel parameters by using the /proc file system.

To modify kernel parameters using the /proc file system:

  1. Log in as root user.

  2. Change to the /proc/sys/kernel directory.

  3. Review the current semaphore parameter values in the sem file using the cat or more utility. For example,

    # cat sem
    
    

    The output will list, in order, the values for the SEMMSL, SEMMNS, SEMOPM and SEMMNI parameters. The following example shows how the output will appear.

    250 32000 32 128
    
    

    In the preceding example, 250 is the value of the SEMMSL parameter, 32000 is the value of the SEMMNS parameter, 32 is the value of the SEMOPM parameter and 128 is the value of the SEMMNI parameter.

  4. Modify the parameter values using the following command:

    # echo SEMMSL_value SEMMNS_value SEMOPM_value SEMMNI_value > sem
    
    

    In the preceding command, all parameters must be entered in order.

  5. Review the current shared memory parameters using the cat or more utility. For example,

    # cat shared_memory_parameter
    
    

    In the preceding example, the shared_memory_parameter is either the SHMMAX or SHMMNI parameter. The parameter name must be entered in lowercase letters.

  6. Modify the shared memory parameter using the echo utility. For example, to modify the SHMMAX parameter, enter the following:

    # echo 2147483648 > shmmax
    
    
  7. Write a script to initialize these values during system startup and include the script in your system init files.

    See Also:

    For more information on script files and init files, refer to your system vendor's documentation.  

Refer to the following table to determine if your system shared memory and semaphore kernel parameters are set high enough for Oracle9i. The parameters in the following table are the minimum values required to run Oracle9i with a single database instance.

Kernel Parameter  Setting  Purpose 

SEMMNI 

100 

Defines the maximum number of semaphore sets in the entire system. 

SEMMNS 

256 

Defines the maximum number of semaphores on the system. This setting is a minimum recommended value, for initial installation only.

The SEMMNS parameter should be set to the sum of the PROCESSES parameter for each Oracle database, adding the largest one twice, and then adding an additional 10 for each database. 

SEMMSL 

100 

Defines the maximum number of semaphores per user id.

The SEMMSL setting should be 10 plus the largest PROCESSES parameter of any Oracle database on the system. 

SEMOPM 

100 

Defines the maximum number of operations per semop call. 

SEMVMX 

32767 

Defines the maximum value of a semaphore. 

SHMMAX 

2147483648 

Defines the maximum allowable size of the shared memory. The SHMMAX parameter does not affect how much shared memory is used or needed by Oracle9i, the operating system, or the operating system kernel.

One-half the size of your system's physical memory. Check your system for additional restrictions. 

SHMMIN 

Defines the minimum allowable size of a single shared memory segment. 

SHMMNI 

100 

Defines the maximum number of shared memory segments in the entire system. 

SHMSEG 

4096 

Defines the maximum number of shared memory segments one process can attach. 

Note: These are minimum kernel requirements for Oracle9i. If you have previously tuned your kernel parameters to levels equal to or higher than these values, continue to use the higher values. A system restart is necessary for kernel changes to take effect. 

Complete root user set-up tasks:
  1. Log in as the root user.

  2. Review the /etc/group file to verify current groups.

    1. Create database administrator groups, if necessary, by using the groupadd utility.

  3. Review the /etc/passwd file for current account names.

    1. Create the oracle and APACHE accounts, if necessary, using the useradd utility.

  4. Create mount points for the Oracle software and database.

  5. Set system environment variables.

  6. Set Oracle environment variables by adding an entry similar to the following example to each user startup .profile file for the Bourne or Korn shells, or .login file for the C shell.


    Note:

    If you have existing Oracle home directories in your directory path, Oracle Corporation recommends that you set up a new one for Oracle9i.

    For the NLS_LANG variable, enter the language environment you prefer to use. The following example assumes American English. 


    # Oracle Environment
    
    ORACLE_HOME=/opt/oracle/product/9.0.1; export ORACLE_HOME
    ORACLE_SID=dia2; export ORACLE_SID
    ORACLE_TERM=xterm; export ORACLE_TERM
    TNS_ADMIN=/export/home/oracle/config/9.0.1; export TNS_ADMIN
    NLS_LANG=AMERICAN-AMERICA.UTF8; export NLS_LANG
    ORA_NLS33;$oracle_home/ocommon/nls/admin/data; export ORA_NLS33
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/td/lib:/usr/ucblib: \
    /usr/local/lib export LD_LIBRARY_PATH # Set shell search paths: PATH=/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/openwin /bin:/opt/local/GNU/bin PATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$ORACLE_HOME/bin PATH=$PATH:/usr/local/samba/bin:/usr/ucb: export PATH #CLASSPATH must include the following JRE locations: CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib


    Note:

    DO NOT MODIFY THE JRE SYMBOLIC LINK AFTER ORACLE9i IS INSTALLED. The JRE shipped with Oracle9i is required by Oracle software. Do not modify this JRE unless it is done through a patch provided by Oracle Support. The inventory can contain multiple versions of the JRE, each of which can be used by one or more products or releases. The oraInventory file keeps an inventory of installed products and other installation information. Products in an Oracle home directory access required JREs through a symbolic link in $ORACLE_HOME/JRE directory to the actual location of a JRE within the inventory.  


Installation Tasks

Complete these tasks to perform a standard Oracle9i Database installation on your server and create a seed database. Oracle Corporation strongly recommends that you install a seed database to use as a prototype for configuring databases that conform to your needs.

  1. Mount the Oracle9i CD-ROM.

    There are multiple CD-ROMs included with Oracle9i. Mount Disk 1 to begin installation. Mount subsequent disks when prompted to do so. Place the Oracle9i CD-ROM Disk 1 in the CD-ROM drive. You must have root privileges to mount or unmount the CD-ROM manually. Be sure to unmount the CD-ROM before removing it from the drive by using the umount command.

    If volume management is available the CD-ROM will mount automatically to the /cdrom/ directory when you insert it into the CD-ROM drive. To check if volume management is available use the following command:

    % ps -e | grep vold
    
    

    This should return a line similar to:

    404 ?       16:03 vold
    
    

    If no lines are returned, then volume management is not running and CD-ROM will need to be mounted manually.

    Follow these steps to mount the Oracle9i CD-ROM manually:

    1. Place the Oracle9i CD-ROM in the CD-ROM drive.

    2. Log in as the root user and create a CD-ROM mount point if one does not already exist:

      % su root
      # mkdir cdrom_mount_point_directory
      
      
    3. Mount the CD-ROM drive on the mount point directory, then exit the root account by using the following commands.

      # mount options device_name cdrom_mount_point_directory
      # exit
      
      

    If you are unsure of the correct device_name, consult with your system administrator.


    Note:

      If you run the installer while the current working directory is in the CD-ROM, follow these steps to mount the next CD-ROM:

      1. Change directory to the root directory of your system and log in as the root user by using the following commands:

        $ cd /
        $ su root
        
        
      2. Unmount and remove the CD-ROM from the CD-ROM drive using the following command:

        # umount cdrom_mount_point_directory
        
        
      3. Insert and mount the next CD-ROM into the CD-ROM drive by using the following command:

        # mount options device_name cdrom_mount_point_
        directory
        
        
      4. Enter the correct mount point in the Installation dialog box.

      5. Click OK to continue.

       
  2. Run the Oracle Universal Installer.

    1. Log in as the oracle account.

    2. Start the installer by typing in the path where the installer executable is located. Do not try to run the installer executable from within the oracle9i directory. If you do, installation will fail. The following is an example of the correct command syntax:

      /cdrom/oracle9i/runInstaller
      
      

      In order to ensure that you do not have problems with your installation, Oracle Corporation strongly recommends that you review Oracle9i Installation Guide Release 1 (9.0.1) for UNIX Systems, "Installation" in Chapter 1.

    3. The Welcome window appears. Click Next.

    4. If this is the first installation of any Oracle9i products on the database server, the Inventory Location window appears. Specify a base directory where you want to install the files, and click OK.

    5. The UNIX Group Name window appears. Specify the group that will have permission to update Oracle software on the system. Enter the ORAINVENTORY group, or the OSDBA group if you chose not to create ORAINVENTORY. Click Next.

    6. If pre-installation tasks were not completed, a window opens prompting you to run the orainstRoot.sh script. Oracle Corporation does not recommend this procedure, but running this script will allow you to complete the installation.

    7. The File Locations window appears. Do not change text in the Source field. The Destination field will have the Oracle home directory path setting you defined during pre-installation.

      Specify the group that has permission to update Oracle software on your system, which should be ORAINVENTORY. If you have previously installed Oracle9i products on your system, the installer obtains the UNIX group name information from its records, which are stored in the /var/opt/oracle/oraInst.loc file.

    8. Click Next. The Available Products window appears.

      Select Oracle9i Database and click Next.

    9. The Installation Types window appears. Select Oracle9i Enterprise Edition or Standard Edition Installation. For information about installation types, refer to Oracle9i Installation Guide Release 1 (9.0.1) for UNIX Systems, "Oracle9i Installation Planning" in Chapter 1.

    10. The Component Locations window appears. Click Next.

    11. If you assigned the OSDBA group to a group with a different name than dba, then you are prompted to confirm the OSDBA group name. Confirm that the name is correct, and click Next.

    12. The Database Configuration window appears. Select General Purpose and click Next.

    13. If you have existing Oracle databases on your server prior to Oracle9i, then the installer prompts you to indicate if you want to run the Oracle Data Migration Assistant immediately after installation is complete. Make your selection, and click Next.

    14. The Database Identification window appears.

      Enter the Global Database Name and SID (system identifier) name in the provided fields for the seed database that will be created. Give your database a global name that is the same as the SID, with your domain name appended.

      For example, if your domain is acme.com, and your database is to be used for sales, a suitable Global Database Name is sales.acme.com, with the SID name sales.


      Note:

      As the SID is incorporated into many file names, Oracle Corporation recommends restricting it to no more than four characters to avoid file name problems on different operating systems. 


    15. Click Next. The Database File Location window appears.

      Enter the name of one of the mount points you chose for holding a database. The seed database will be installed in one directory under this mount point. Use the Browse... button to navigate to the mount point if necessary.

    16. Click Next. The Database Character Set window appears. Choose the database character set to be used. Click Next.

    17. The Summary window appears. Review your selections to confirm they are correct.

    18. Click Install. The Install window appears. Wait for the products you have selected to be installed.

      You will be prompted to insert the subsequent CD-ROMs.

    19. The Setup Privileges window appears, and prompts you to run the root.sh script.

      The installer creates the root.sh script during installation in the $ORACLE_HOME directory, and prompts you to run the script after products are installed in order to set necessary file permissions for Oracle products, and to perform other root-related configuration activities. At this point, if you choose, you may review the script before running it.

      Open another window, log in to the database server as root user, and enter the following commands:

      # cd $ORACLE_HOME
      # ./root.sh
      
      

      When prompted, specify the local bin directory. This is the directory you created in pre-installation step 5. If you neglected to do this step, the root.sh script creates one for you.

    20. The Configuration Tools, Apache Web Server Configuration Assistant, and Oracle Net Configuration Assistant windows open after you run the root.sh script. These configuration assistants help to create and configure your database and network environments. The Configuration Tools window displays the results of running these assistants. No information needs to be provided for these installation steps.

    21. The Database Configuration Assistant window opens. A Progress window opens and indicates actions the installer performs as it creates the seed database.

    22. Upon completing seed database configuration, the Database Configuration Assistant opens an alert window and shows the initial passwords for the SYS and SYSTEM database roles. Make a note of these passwords. Click the Password Management button to change the passwords for increased security. Click OK.

    23. The End of Installation window appears. Click Exit to exit the installer. Click Exit to exit the installer, or click Next Install to install additional products.

Post-Installation Tasks

Post-installation tasks vary according to product installation types and according to individual preferences for database configuration.

See Also:

For more information about post-installation tasks, commands to unlock system administration roles, and additional product installation or configuration tasks, refer to Oracle9i Installation Guide Release 1 (9.0.1) for UNIX Systems, "Post-Installation" in Chapter 4. 

Using the Seed Database to Learn About Oracle9i

The Oracle9i seed database is running after installation is complete. If you have not used Oracle products before, use the seed database to familiarize yourself with the products. Oracle Corporation recommends that you begin by looking at the following guides:

These books outline the fundamentals of database use and administration. The documentation can be found online at the following site:

http://docs.oracle.com

Shutting Down the Seed Database

To shut down the database enter the following commands:

$ sqlplus "/ as sysdba"
SQL> shutdown immediate
SQL> exit


Oracle
Copyright © 2001 Oracle Corporation.

All Rights Reserved.