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.
- 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.
- 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.
- Select language
- Accept the default value.
- Configure the keyboard
- Accept the default value.
- Configure mouse
- Accept the default value.
- Installation type
- Accept the default value.
- 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.
- Configure to start the loader
- Accept the default value.
- 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.
- 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.
- Configure Firewall
- For the purpose of this demonstration, no firewall is configured. SelectNo firewallSecurity administrator, please do not get angry ).
- Other languages
- Accept the default value.
- 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.
- 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 .)
- 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
- Unresolved relevance
- If you see this screen, selectInstall packages to satisfy dependenciesDefault Value) and continue the operation.
- 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.
- Prepare for Installation
- Installation Package
- The software will be copied to the hard disk and installed. Change the disk as prompted, and then clickNext.
- Create a boot disk
- If necessary, create a boot disk or selectSkip boot disk creation.
- Configure the monitor
- If the installer correctly identifies your monitor, accept the default value. Otherwise, select a compatible monitor from the list.
- 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.
- Use the first CD to start the server.
- You may need to change BIOS settings to allow startup from CD.
- 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.
- Select language
- Accept the default value.
- Configure the keyboard
- Accept the default value.
- Welcome Screen
- Configure mouse
- Accept the default value.
- Installation type
- 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.
- Configure to start the loader
- Accept the default value.
- 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.
- Configure Firewall
- For the purpose of this demonstration, no firewall is configured. SelectNo firewall.
- Other languages
- Accept the default value.
- 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.
- Set Root Password
- Enter the root password and enter it again for confirmation.
- 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
- Red Hat Enterprise Linux
-Do not select any options in this group.
- Miscellaneous
-Original software development
- ClickNextContinue.
- Prepare for Installation
- Installation Package
- The software will be copied to the hard disk and installed. Change the disk as prompted, and then clickNext.
- 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.
- Configure the monitor
- If the installer correctly identifies your monitor, accept the default value. Otherwise, select a compatible monitor from the list.
- Custom graphic configuration
- Accept the default value.
- Congratulations
- Extract the installation media from the system, and then clickNext.
- The system automatically restarts and displays a new welcome screen.
- License Agreement
- Read the license agreement. If you agree to the terms, selectYes, I agree to the License AgreementAnd clickNext.
- Date and Time
- If you want to use NTP server recommended), selectEnable Network Time ProtocolEnter the NTP server name.
- User Account
- Create an account for yourself.
- Do not create an account for oracle. This section describes how to create an oracle account later.
- 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.
- Other CD
- Complete settings
- A graphical logon screen is displayed.
- 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 ).
- Use SLES 8 CD to start the server.
- You may need to change BIOS settings to allow startup from CD.
- The SUSE Linux Enterprise Server Installation screen is displayed.
- The installer scans your hardware and displays the YaST interface.
- Select language
- Accept the license agreement.
- Accept default valuesEnglish (US).
- Installation settings
- 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.
- Software
- The Software Selection screen is displayed.
- 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)
- Time Zone
- ClickAccept.
- A warning dialog box is displayed. When you are ready to continue, clickYes, install.
- Change the CD as prompted by the installer.
- 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.
- The system restarts.
- Enter the password of the root user and enter it again for confirmation.
- Create an account for yourself. Do not create an oracle account at this time; we will create it later.
- Desktop settings
- Accept the default value.
- A warning window appears about automatic local printer detection.
- 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.
- A graphical logon screen is displayed.
- Now, you need to install Service Pack 3. Log on as your identity.
- Insert the update CD, and then clickPatch CD Update.
- 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.
- The YaST Online Update window appears.
- Accept the default value, and then clickNext.
- 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.
- A window appears, prompting you to restart online update.
- A window is displayed, prompting that the installation is successful.
- In the YaST Online Update window, clickFinish.
- In the YaST Control Center window, clickClose.
- Repeat steps 21 and 22.
- 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.
- A window is displayed, prompting that the installation is successful.
- On the YaST Online Update screen, clickNext.
- The installer writes the system configuration.
- In the YaST Control Center, clickClose.
- Log out.
- Retrieve the update CD.
- Restart the system.
- On the graphic logon screen, clickMenu.
- Congratulations! Your Linux software has been installed.