Install Oracle Database 10 GB on Linux x86 (1)

Source: Internet
Author: User

Overview

This is to install Oracle 10 on LinuxGThe first part of the main software component guide series. These articles detail all three of Linux's certified English release kits without introducing Asianux) and assume that cheap Intel x86 hardware is used. At the same time, we also gradually demonstrated how to evaluate major Oracle 10GInstall and configure the product on common hardware.

The fundamental goal of this series is to gradually demonstrate how to install and configure 10GAll components of the grid. Through this series, you will learn how to install and configure a single instance of Oracle 10GDatabase Article), dual-node Oracle RAC 10GDatabase and Oracle Application Server 10GAnd Oracle Enterprise Manager 10GAll major components of grid control.

The methods provided in this series will use the simplest way to perform tasks with the least number of steps. This method usually means that the selected configuration will only apply to evaluation. Therefore, this series is neither applicable to building production quality environments nor reflecting best practices.

The following are the articles about Oracle 10GThree certified Linux distribution kits:

  • Red Hat Enterprise Linux 2.1
  • Red Hat Enterprise Linux 3
  • Novell SUSE Linux Enterprise Server 8
If you are using Linux and/or Oracle for the first time, this first article is especially suitable for you. It first introduces the basic knowledge, and then gradually demonstrates how to install Oracle Database 10 from scratch G.

This article consists of four parts: Part 1 describes how to install the Linux operating system, Part 2 describes how to configure Linux for Oracle, and Part 2 describes the key points of installing the Oracle database, part 1 describes how to create other file systems and introduces the Automatic Storage Management (ASM) Oracle Database 10GAn outstanding new feature that significantly simplifies storage management ). The appendix provides information to help you understand the usage of the new database, including how to access the database interactively, how to stop and start the database, and related services.

Part 1: install Linux

This Guide uses servers with the following hardware configurations:

  • Two 800 MHz Pentium III CPUs
  • 512 MB RAM
  • Two SCSI host adapters (Ultra SCSI 160)
  • Eight SCSI disk drives (2x9 GB + 6x36 GB)
  • One 100Base-T Ethernet Adapter
  • One 1000Base-T Ethernet Adapter

Configure the disk so that each SCSI host adapter is connected to a 9 GB disk and three 36 GB disks.

Please note that although this is not a "powerful" setting at all, you can complete most of the tasks described in this Guide even with lower settings. Basic Database Installation requires only one CPU, 512 MB of memory, and a disk drive IDE, SCSI, or FireWire with at least 6.5 GB of available space ).

Now, we will gradually demonstrate how to install the Linux operating system on the server. This document assumes that a new Linux system is installed differently), and assumes that the server is dedicated to Oracle and there is no other operating system or data on the server.

Red Hat Enterprise Linux 2.1

Oracle 10GCertified to run on Red Hat Enterprise Linux 2.1 Advanced Server and Enterprise Server (Update 3) or later. Red Hat Network (RHN) provides updates that can be downloaded as an ISO file used to create a CD or as an update for a single package.

The simplest and quickest way to install application updates for all new Linux systems is to use the update CD. If Linux has been installed or there are no updates on CD, you can apply these updates through RHN. Because this compass is a brand new Linux installation, you will use the update CD.

  1. Use the first CD in the update CD set to start the server.
    • You may need to change BIOS settings to allow startup from CD.
  2. Display at the bottom of the startup ScreenBoot:.
    • SelectEnterTo install the image on the console. For other installation methods and options, seeRed Hat Installation Guide.)
    • The installer scans the hardware, temporarily displays the Red Hat flash screen, and then starts to display a series of screen prompts.
  3. Select language
    • Accept the default value.
  4. Configure the keyboard
    • Accept the default value.
  5. Configure mouse
    • Accept the default value.
  6. Installation type
    • Accept the default value.
  7. Set Disk Partitions
    • This document does not describe how to partition a disk, but assumes that you are familiar with the partitioning method.

      Warning error partition for disk isDelete all content on the hard diskIs one of the most reliable and quick methods. If you are not sure how to partition, stop first and ask someone to help you; otherwise, you may be at risk of data loss !)

      This article uses the following Partition Scheme file system is ext3 ):
      The 9 GB disk on the first controller (/dev/sda) contains the following partitions for storing all Linux and Oracle software:
      -100 MB/boot partition for RHEL 2.1, minimum 50 MB)
      -1,500 MB swap partition-set the partition size to at least twice the system RAM size, but do not exceed 2 gb32-bit systems do not support swap files larger than 2 GB ). If you need a swap space larger than 2 GB, create multiple swap partitions.
      -7,150 MB root partition-This partition will be used for all directories, including/usr,/tmp,/var,/opt, And/home. This is purely for the purpose of explaining this guide and simplifying the installation. A more reliable partitioning scheme is to divide these directories into separate file systems.

  8. Configure to start the loader
    • Accept the default value.
  9. Configure the start loader Password
    • If you want to set a password for GRUB, enter it here. This option is not required for the evaluation system.
  10. Configure the network
    • Generally, it is best to use a static IP address to configure the database server. To this end, deselectConfigure using DHCPEnter the network configuration of the server. Make sure that the host name is entered and selectedActivate on boot.
  11. Configure Firewall
    • For the purpose of this demonstration, no firewall is configured. SelectNo firewallSecurity administrator, please do not get angry ).
  12. Other languages
    • Accept the default value.
  13. Select time zone
    • Select the appropriate time settings for your region. Setting the system clock to UTC is usually a good practice for servers. To do this, clickSystem clock uses UTC.
  14. Configure account
    • Select a password for the root user and enter the entered domain name. Create an account for yourself. Do not create an oracle account at this time; we will create it later .)
  15. Select Program Package Group
    • Select Gnome or KDE or both.) The default graphic user interface is Gnome ). Note: These two guis are very popular, among which Gnome is more popular in the United States. I personally prefer KDE because its terminal simulator can be easily cut and pasted to copy input to multiple connections. For example, when you configure RAC on multiple nodes, this will save the input operation ).
    • SelectSoftware Development
  16. Unresolved relevance
    • If you see this screen, selectInstall packages to satisfy dependenciesDefault Value) and continue the operation.
  17. Graphical interface configuration (X)
    • Accept the default value unless the installer cannot identify your video card. If your video card cannot be identified, the operation will not continue.
  18. Prepare for Installation
    • ClickNext
  19. Installation Package
    • The software will be copied to the hard disk and installed. Change the disk as prompted, and then clickNext.
  20. Create a boot disk
    • If necessary, create a boot disk or selectSkip boot disk creation.
  21. Configure the monitor
    • If the installer correctly identifies your monitor, accept the default value. Otherwise, select a compatible monitor from the list.
  22. Congratulations
    • Extract the installation media from the system, and then clickNext.
The system automatically restarts and displays a graphical logon screen. If you are using the basic product CD instead of the update CD for installation, you must update it through the RHN application before proceeding.

Verify your installation

If you have completed the preceding steps, you must haveGAll required packages and updates. You can perform the following steps to verify your installation.

Required kernel version: 2.4.9-e.25 or later)

Run the following command to check the kernel version:

Uname-r example: # uname-r2.4.9-e.27smp
Version or later of other required packages ):
  • Gcc-2.96-124
  • Make-3.79
  • Binutils-2.11
  • Openmotif-2.1.30-11
  • Glibc-2.2.4-31
To view the versions of these packages installed on the system, run the following command:
Rpm-q gcc make binutils openmotif glibc example: # rpm-q gcc make binutils openmotif glibcgcc-2.96-118.7.2make-3.79.1-8binutils-2.11.90.0.8-12openmotif-2.1.30-11glibc-2.2.4-32.8
If any package version is missing or the version is earlier than the version specified above, you can download and install the update from the Red Hat Network.

Red Hat Enterprise Linux 3

Oracle 10GCertified, you can run the basic versions of Red Hat Enterprise Linux 3 Advanced Server and Enterprise Server without updating them. If you have an update CD, you can use the boot CD in the updated version instead of the basic version to automatically apply all updates during installation. Oracle supports all updates of Red Hat.

  1. Use the first CD to start the server.
    • You may need to change BIOS settings to allow startup from CD.
  2. Display at the bottom of the startup ScreenBoot:.
    • SelectEnterTo install the image on the console. For other installation methods and options, seeRed Hat Installation Guide.)
    • The installer scans the hardware, temporarily displays the Red Hat flash screen, and then starts to display a series of screen prompts.
  3. Select language
    • Accept the default value.
  4. Configure the keyboard
    • Accept the default value.
  5. Welcome Screen
    • ClickNext.
  6. Configure mouse
    • Accept the default value.
  7. Installation type
    • SelectCustom.
  8. Set Disk Partitions
    • This document does not describe how to partition a disk, but assumes that you are familiar with the partitioning method.

      Warning error partition for disk isDelete all content on the hard diskIs one of the most reliable and quick methods. If you are not sure how to partition, stop first and ask someone to help you; otherwise, you may be at risk of data loss !)

      This article uses the following Partition Scheme file system is ext3 ):
      The 9 GB disk on the first controller (/dev/sda) contains the following partitions for storing all Linux and Oracle software:
      -100 MB/boot Partition
      -1,500 MB swap partition-set the partition size to at least twice the system RAM size, but do not exceed 2 gb32-bit systems do not support swap files larger than 2 GB ). If you need a swap space larger than 2 GB, create multiple swap partitions.
      -7,150 MB root partition-This partition will be used for all directories, including/usr,/tmp,/var,/opt, And/home. This is purely for the purpose of explaining this guide and simplifying the installation. A more reliable partitioning scheme is to divide these directories into separate file systems.

  9. Configure to start the loader
    • Accept the default value.
  10. Configure the network
    • Generally, it is best to use a static IP address to configure the database server. To do this, clickEdit.
    • A pop-up window appears. DeselectConfigure using DHCPCheck box, and enter the IP address and network mask of the server. Ensure selectedActivate on bootAnd then clickOK.
    • In the Hostname box, selectManuallyEnter the host name.
    • In the Miscellaneous Settings box, enter other network Settings.
  11. Configure Firewall
    • For the purpose of this demonstration, no firewall is configured. SelectNo firewall.
  12. Other languages
    • Accept the default value.
  13. Select time zone
    • Select the appropriate time settings for your region. Setting the system clock to UTC is usually a good practice for servers. To do this, clickSystem clock uses UTC.
  14. Set Root Password
    • Enter the root password and enter it again for confirmation.
  15. Select Program Package Group
    • Select only the package set shown here. Do not select other options.
    • Desktop
      -X Window System
      -Gnome
      -KDE
      -For more information about GUI selection, see section 2.1.
    • Applications
      -Editor
      -Graphic Internet
    • Server
      -Do not select any options in this group.
    • Development
      -Development tools
    • System
      -Management tools
    • Red Hat Enterprise Linux
      -Do not select any options in this group.
    • Miscellaneous
      -Original software development
    • ClickNextContinue.
  16. Prepare for Installation
    • ClickNext.
  17. Installation Package
    • The software will be copied to the hard disk and installed. Change the disk as prompted, and then clickNext.
  18. Graphical interface configuration (X)
    • Accept the default value unless the installer cannot identify your video card. If your video card cannot be identified, the operation will not continue.
  19. Configure the monitor
    • If the installer correctly identifies your monitor, accept the default value. Otherwise, select a compatible monitor from the list.
  20. Custom graphic configuration
    • Accept the default value.
  21. Congratulations
    • Extract the installation media from the system, and then clickNext.
  22. The system automatically restarts and displays a new welcome screen.
    • ClickNext.
  23. License Agreement
    • Read the license agreement. If you agree to the terms, selectYes, I agree to the License AgreementAnd clickNext.
  24. Date and Time
    • Set the date and time.
    • If you want to use NTP server recommended), selectEnable Network Time ProtocolEnter the NTP server name.
  25. User Account
    • Create an account for yourself.
    • Do not create an account for oracle. This section describes how to create an oracle account later.
  26. Red Hat Network
    • If you want to use or activate the Red Hat Network account immediately, accept the default value and clickNextFollow the product activation instructions attached to the Red Hat product.
  27. Other CD
    • ClickNext.
  28. Complete settings
    • ClickNext.
  29. A graphical logon screen is displayed.
  30. Congratulations! Your Linux software has been installed.
Verify your installation

If you have completed the preceding steps, you must haveGAll required packages and updates. You can perform the following steps to verify your installation.

Required kernel version: 2.4.21-4. EL. This is the kernel version included in RHEL 3. Any version of the kernel provided in this kernel or update is applicable to Oracle 10G.)

Run the following command to check the kernel version:

Uname-r example: # uname-r2.4.21-4.0.1.ELsmp
Version or later of other required packages ):
  • Gcc-3.2.3-2
  • Make-3.79
  • Binutils-2.11
  • Openmotif-2.2.2-16
  • Setarch-1.3-1
  • Compat-gcc-7.3-2.96.122
  • Compat-gcc-c ++-7.3-2.96.122
  • Compat-libstdc ++-7.3-2.96.122
  • Compat-libstdc ++ devel-7.3-2.96.122
  • Compat-db-4.0.14.5Oracle 10g Database Installation GuideColumns are required, but not required here)
To view which versions of these packages are installed on the system, run the following command as the root user:
Rpm-q gcc make binutils openmotif setarch compat-db compat-gcc \ compat-gcc-c ++ compat-libstdc ++-devel example: # rpm-q gcc make binutils openmotif setarch compat-db compat-gcc \> openmotif compat-gcc-c ++ compat-libstdc + + compat-libstdc ++-develgcc-3.2.3-20make-3.79.1-17binutils-2.14.90.0.4-26openmotif-2.2.2-16setarch-1.3-1package compat-db is not installedcompat-gcc-7.3-2.96.122compat-gcc-c ++-7.3-2.96.122compat-libstdc ++-7.3-2.96.122compat-libstdc ++-devel-7.3-2.96.122
Note that the compat-db package has not been installed. Any program package group available during installation does not contain this package, so it must be installed in a separate step. If the system lacks any other package version, or the version is earlier than the specified version of compat-db), you can download and install updates from the Red Hat Network.

Install compat-db

Insert the second CD of the original Red Hat Enterprise Linux media. Update 2 does not include this package. It only exists in the original media .)

This CD is automatically mounted.

Run the following command as the root user:

Rpm-ivh/mnt/cdrom/RedHat/RPMS/compat-db-4.0.14-5.i386.rpm For example: # rpm-ivh/mnt/cdrom/RedHat/RPMS/compat-db-4.0.14-5.i386.rpmPreparing... ######################################## ### [100%] 1: compat-db ##################################### ###### [100%]

SUSE Linux Enterprise Server 8

Oracle 10GCertified to run on Novell SUSE Linux Enterprise Server (SLES) 8. Novell provides Service Pack and package update online through CD or its support portal. In this guide, we will install SLES 8 (Service Pack 3) from CD ).

  1. Use SLES 8 CD to start the server.
    • You may need to change BIOS settings to allow startup from CD.
  2. The SUSE Linux Enterprise Server Installation screen is displayed.
    • SelectInstallation.
    • The installer scans your hardware and displays the YaST interface.
  3. Select language
    • Accept the license agreement.
    • Accept default valuesEnglish (US).
  4. Installation settings
    • SelectNew Installation.
  5. Partition
    • This document does not describe how to partition a disk, but assumes that you are familiar with the partitioning method.

      Warning error partition for disk isDelete all content on the hard diskIs one of the most reliable and quick methods. If you are not sure how to partition, stop first and ask someone to help you; otherwise, you may be at risk of data loss !)

      This article uses the following Partition Scheme file system is ext3 ):
      The 9 GB disk on the first controller (/dev/sda) contains the following partitions for storing all Linux and Oracle software:
      -100 MB/boot Partition
      -1,500 MB swap partition-set the partition size to at least twice the system RAM size, but do not exceed 2 gb32-bit systems do not support swap files larger than 2 GB ). If you need a swap space larger than 2 GB, create multiple swap partitions.
      -7,150 MB root partition-This partition will be used for all directories, including/usr,/tmp,/var,/opt, And/home. This is purely for the purpose of explaining this guide and simplifying the installation. A more reliable partitioning scheme is to divide these directories into separate file systems.

  6. Software
    • ClickSoftware.
    • The Software Selection screen is displayed.
    • ClickDetailed Selection.
    • The software selection list is displayed in the left-side window. Click the check box next to each option to select/unselect it.
    • Select the following software: This is the recommended software set; do not select other software ):
      -C/C ++ compilers and tools
      -KDE or Gnome)
      -LSB Runtime Environment
      -Help and Support documentation
      -Basic graphics system
      -YaST2 configuration module
      -SLES management tool
    • We recommend that you do not install the following items because they may conflict with Oracle products that provide the same service:
      -Simple Web Server
      -Authentication Server NIS, LDAP, and Kerberos)
  7. Time Zone
    • Set your time zone.
  8. ClickAccept.
  9. A warning dialog box is displayed. When you are ready to continue, clickYes, install.
  10. Change the CD as prompted by the installer.
  11. After the software is installed, a window is displayed, prompting that the basic system has been installed successfully.
    • Remove the installation CD, and then clickOK.
  12. The system restarts.
  13. Enter the password of the root user and enter it again for confirmation.
  14. Create an account for yourself. Do not create an oracle account at this time; we will create it later.
  15. Desktop settings
    • Accept the default value.
  16. A warning window appears about automatic local printer detection.
    • ClickSkip detection.
  17. Configure the network interface, and clickNext.
    • We recommend that you set a static IP address for the server.
    • You do not need to configure a printer, modem, ISDN adapter, or sound card to build a database.
  18. A graphical logon screen is displayed.
  19. Now, you need to install Service Pack 3. Log on as your identity.
  20. Insert the update CD, and then clickPatch CD Update.
  21. Start YaST2SUSE's system management tool ).
    • Select SUSE> System> YaST2. SUSE is a green circle button located at the lower left of the screen with a smiling lizard side face. It is equivalent to "START ".)
    • A window is displayed, prompting you to enter the root user password. Enter the password, and then clickOK.
    • YaST Control Center appears.
  22. The YaST Online Update window appears.
    • Accept the default value, and then clickNext.
  23. A window is displayed, showing a patch update list.
    • YaST needs to update itself before updating other parts of the system. The required package has been selected. Do not select any other packages.
    • ClickAccept.
  24. A window appears, prompting you to restart online update.
    • ClickOK.
  25. A window is displayed, prompting that the installation is successful.
    • ClickOK.
  26. In the YaST Online Update window, clickFinish.
  27. In the YaST Control Center window, clickClose.
  28. Repeat steps 21 and 22.
  29. A window is displayed, showing a patch update list.
    • ClickAcceptAccept the default value.
    • A small pop-up window containing prompts such as "Make sure you update sendmail" may appear. ClickOKClose them.
    • This step takes some time. Hover the cursor overNextButton. If the update is still running, a clock icon is displayed.
  30. A window is displayed, prompting that the installation is successful.
    • ClickOK.
  31. On the YaST Online Update screen, clickNext.
    • The installer writes the system configuration.
  32. In the YaST Control Center, clickClose.
  33. Log out.
    • SUSE> Logout.
  34. Retrieve the update CD.
  35. Restart the system.
    • On the graphic logon screen, clickMenu.
    • SelectShutdown.
    • SelectRestart computer.
    • Enter the root password.
    • ClickOK.
  36. Congratulations! Your Linux software has been installed.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.