- 论坛徽章:
- 0
|
从metalink 得来的
Quick Start Guide Oracle9i Release 2 (9.2.0) RDBMS Installation Linux Operating System PURPOSE ======= This document is designed to be a quick reference that can be used when installing Oracle 9.2.0 on the Linux platform. It is NOT designed to take the place of the Installation Guide. It is recommended that users READ the installation guide. Instructions to locate that document are contained in Appendix A. A familiarity with the Linux Operating System is assumed. If Installation guide information is needed, please see the Appendix A at the bottom of this document for additional resources. Each step should be done in the order that it is listed. These steps are the bare minimum that is necessary for a typical install of the Oracle9i RDBMS. Verification of Version Certification: ====================================== Currently, Oracle 9.2.0 is certified ONLY on the following Intel Based Server Linux distributions: - Red Hat Advanced Server 2.1 - Suse SLES7, SLES8 - United Linux 1.0 For the latest certification and other related information, use the "Certify & Availability" link in Metalink. Installations on distributions and versions not listed in the Certify link is not supported. Pre-requisite Requirements for System Administrator: ==================================================== The following steps are required to verify your operating system meets minimum requirements for installation, and should be performed by the root user. For assistance with system administration issues, please contact your system administrator or operating system vendor. Use these steps to manually check the operating system requirements before attempting to install Oracle RDBMS software, or you may choose to use the convenient "Unix InstallPrep script" which automates these checks for you. For more information about the script, including download information, please review the following article: Note:189256.1 UNIX: Script to Verify Installation Requirements for Oracle 9.x version of RDBMS Users must have /bin/utils installed for the operating system. This is part of the developers option on RedHat Advanced Server 2.1. The Following Steps Need to be Performed by the Root User: 1. Configure System Resources: Ensure that the system has at least the following resources: ? 400 MB in /tmp * ? 512 MB of Physical Memory (RAM) ? Three times the amount of Physical Memory for Swap space (unless the system exceeds 1 GB of Physical Memory, where two times the amount of Physical Memory for Swap space is sufficient) * You may also redirect /tmp by setting the TEMP environment variable. This is only recommended in rare circumstances where /tmp cannot be expanded to meet free space requirements. 2. Create a Software Owner and Group: Create a Unix user and group that will own the Oracle software. (Typically user = oracle, group = dba) You may use a GUI tool for this if your distirbution provides one, or the 'useradd' and 'groupadd' command line utilities. Please make sure the user and group you use are defined in the local /etc/passwd and /etc/group files rather than resolved via a network service such as NIS. 3. Create a Software Mount Point and DataFile Mount Points: Create a mount point for the Oracle software installation (at least 2.5 GB, typically /u01) Create a second, third and fourth mount point for the database files, control files, and log files to be created (typically /u02, /u03, /u04). ? The oracle user should own these mount points and all of the directories below the mount point. 4. Test the Permissions: Ensure that the oracle user can write to the new mount points ? As a test, change directories to each of the new mount point directories as the oracle user and create a file or directory. Example: % touch /u01/test 5. Configure Kernel Resources: The following kernel parameters related to shared memory and semaphores will require tuning: SHMMAX = 2147483648 SHMMIN = 1 SHMMNI = 100 SEMMNS = 1000 SEMMSL = 250 SEMMNI = 100 SEMOPM = 100 6.On Linux kernel parameters can be set dynamically or can be written in a shell script to be set at boot time. Kernel parameters should be set as the root user. They are set as follows 1. cd /proc/sys/kernel 2. Modify the parameter values by using the following command syntax: a. # echo 100 32000 100 100 >; sem This sets SEMMSL, SEMMNS, SEMOPM, SEMMNI b. # echo 2147483648 >; shmmax c. # echo 1 >; shmmin d. # echo 100 >; shmmni ================================================================================ These changes are NOT persistent and must be re-set after each re-boot. On RedHat Advanced Server 2.1, these parameters can be entered into the file /etc/sysctl.conf. This parameters in this file are set each time the system is booted. Example: $ more /etc/sysctl.conf # Disables packet forwarding net.ipv4.ip_forward = 0 # Enables source route verification net.ipv4.conf.default.rp_filter = 1 # Disables the magic-sysrq key kernel.sysrq = 0 kernel.shmmax=256000000 kernel.shmmin=1 kernel.shmmni=100 kernel.sem= 250 32000 32 128 7. Mount CD-ROM: Depending on your Linux distribution the cdrom device is typically either "/cdrom" or "/mnt/cdrom". Please substitute the appropriate value when "<cdrom>;" appears in the examples. # mount <cdrom>; Installs can be done from either the CD or by copying the contents of each CD?s to a stage area on the local disk (/stage/Disk1, /stage/Disk2, /stage/DiskN) 8.This is required to run as root: /tmp/orainstRoot.sh First question of oracle installation. If no other versions of Oracle 8i or 9i have been installed before. You will be ask to run /tmp/orainstRoot.sh to create the oraInventory location pointer. Usually found in /etc on Linux Files that are located in /etc are /etc/oratab and /etc/oraInst.loc Installation Steps for the Oracle User ======================================= The Following Steps need to be performed by the Oracle User: This can be done from either a Telnet or an SSH connection. It is NOT recommended to perform installations from a su ? oracle connection. 1. Set Environment Variables Environment variables should be set in the login script for the oracle user. If the oracle user's default shell is the C-shell (/usr/bin/csh), then the login script will be named ".login". If the oracle user's default shell is the Bourne-shell (/usr/bin/bsh) or the Korn-shell (/usr/bin/sh or /usr/bin/ksh), then the login script will be named ".profile". In either case, the login script will be located in the oracle user's home directory ($HOME). The examples below assume that your software mount point is /u01. Parameter Value ----------- ------ ORACLE_HOME /u01/app/oracle/product/9.2.0 ORACLE_BASE /u01/app/oracle PATH /u01/app/oracle/product/9.2.0/bin: /usr/ccs/bin:/usr/bin/X11/:/usr/local/bin and any other items you require in your PATH ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data ORACLE_SID Set this to what you will call your database instance. (4 - 8 characters in length) If you are not on the console, you may need to set the following DISPLAY <ip-address>;:0.0 (review Note:153960.1 for detailed information) ENSURE THAT CLASS_PATH IS NOT SET IN THE ENVIRONMENT 2. Set the umask: Set the oracle user's umask to "022" in you ".profile" or ".login" file. Example: umask 022 3. Verify the Environment Log off and log on as the oracle user to ensure all environment variables are set correctly. Use the following command to view them: % env | more Before attempting to run the Oracle Universal Installer, verify that you can successfully run the following command: % /usr/bin/X11/xclock If this does not display a clock on your display screen, please review the following article: Note:153960.1 FAQ: X Server testing and troubleshooting 4. Start the Oracle Universal Installer and install the RDBMS software: Use the following commands to start the installer: % cd /tmp % /cdrom/runInstaller Or cd to /stage/Disk1 and run ./runInstaller Respond to the installer prompts as shown below: ? When prompted for whether orainstRoot.sh has been run by root, enter "y". This should have been done in Pre-Installation step 8 above. ? At the "Welcome Screen", click Next. ? If prompted, enter the directory to use for the "Inventory Location". This can be any directory, but is usually not under ORACLE_HOME because the oraInventory is shared with all Oracle products on the system. ? If prompted, enter the "UNIX Group Name" for the oracle user (dba). ? At the "File Locations Screen", verify the Destination listed is your ORACLE_HOME directory. Also enter a NAME to identify this ORACLE_HOME. The NAME can be anything, but is typically "DataServer" and the first three digits of the version. For example: "DataServer920" ? At the "Available Products Screen", choose Oracle9i Database, then click Next. ? At the "Installation Types Screen", choose Enterprise Edition, then click Next. ? If prompted, click Next at the "Component Locations Screen" to accept the default directories. ? At the "Database Configuration Screen", choose the the configuration based on how you plan to use the database, then click Next. ? If prompted, click Next at the " rivileged Operating System Groups Screen" to accept the default values (your current OS primary group). ? If prompted, enter the Global Database Name in the format "ORACLE_SID.hostname" at the "Database Identification Screen". For example: "TEST.LNXhost". The SID entry should be filled in with the value of ORACLE_SID. Click Next. ? If prompted, enter the directory where you would like to put datafiles at the "Database File Location Screen". Click Next. ? If prompted, select "Use the default character set" (WE8ISO8859P1) at the "Database Character Set Screen". Click Next. ? At the "Summary Screen", review your choices, then click Install. The install will begin. Follow instructions regarding running "root.sh" and any other prompts. When completed, the install will have created a default database, configured a Listener, and started both for you. Note: If you are having problems changing CD-ROMs when prompted to do so, please review the following article: Note:146566.1 How to Unmount / Eject First Cdrom Your Oracle9i Release 2 (9.2.0) RDBMS installation is now complete and ready for use. Appendix A ========== Documentation is available from the following resources: Oracle9i Release 2 (9.2.0) CD-ROM Disk1 ---------------------------------------- Mount the CD-ROM, then use a web browser to open the file "index.htm" located at the top level directory of the CD-ROM. Then proceed to Documentation menu Item on this CD-ROM you will find the Installation Guide, Administrator's Reference, and other useful documentation. Oracle Documentation Center --------------------------- Point your web browser to the following URL: http://otn.oracle.com/documentation/content.html Select the highest version CD-pack displayed to ensure you get the most up-to-date information. Reference --------- Note:225710.1 Red Hat AS 2.1: How to verify you have a supported kernel |
|