Learn the basics of installing Oracle Database 11g 1st from scratch on OracleEnterpriseLinux5 (for evaluation only ). Directory Overview Part 1: Installation
Learn the basics of installing Oracle Database 11g 1st from scratch on Oracle Enterprise Linux 5 (only for evaluation ). Directory Overview Part 1: Installation
Learn the basics of installing Oracle Database 11g 1st from scratch on Oracle Enterprise Linux 5 (only for evaluation ).
Directory
Overview
Part 1: install Linux
Part 1: Configure Linux for Oracle
Create directory
Create an Oracle group and User Account
Configure Linux Kernel Parameters
Set Shell restrictions for oracle users
Part 1: Installing Oracle
Install software
Part 1: Configure Storage
File System
Automatic Storage Management
Conclusion
Appendix
Overview
The entire installation process.It includes 32-bit and 64-bit architecture installation. Unless otherwise stated, the installation steps are the same.
This Guide provides the easiest way to complete the task (with the least number of steps. This method usually means that the selected configuration will only apply to evaluation. Therefore, this guide is neither applicable to building production quality environments nor reflecting best practices.
This guide 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 how to install the Oracle database, section 4th describes how to create other file systems and describes Automatic Storage Management (ASM ). The information provided in the appendix helps you understand the usage of the new database, including how to access the database interactively, how to stop and restart the database, and related services.
Part 1: Installing Oracle Enterprise Linux 5
This section describes how to install Oracle Enterprise Linux 5 (OEL5) on your hardware ). Make sure that your hardware meets the minimum hardware requirements required for Oracle Database 11g 1st.
Minimum hardware requirements:
32-bit (x86)
X86 compatible CPU
1 GB RAM
10 GB available disk space (3.5 GB for Oracle software + 1.5 GB for database + 3 GB for OEL5 + 2 GB swap space)
64-bit (x86_64)
X86_64 CPU compatibility
1 GB RAM
10.5 GB available disk space (4 GB for Oracle software + 1.5 GB for database + 3 GB for OEL5 + 2 GB swap space)
Note: Linux and Oracle must be installed in the same architecture. 32-bit Oracle can only run on 32-bit Linux, and 64-bit Oracle can only run on 64-bit Linux.
Now, we will gradually demonstrate how to install the Linux operating system on the server. This article assumes that the Linux system is completely installed (different from the upgrade), and the server is dedicated to Oracle, and there is no other operating system or data on the server.
Oracle Database 11g 1stYou can run the basic version of oel5. You can download OEL5 for free.
Start the server with the first CD or DVD.
You may need to change the BIOS settings to allow boot from CD/DVD.
The boot screen appears and the boot: prompt is displayed at the bottom.
Select Enter to install the image on the console.
Installer scans your hardware
Oracle Enterprise Linux splash screen
Click Next
Language Selection
Accept the default value.
Configure the keyboard
Accept the default value.
Install or upgrade
Select Install and click Next
Set Disk Partitions
This Guide does not describe how to partition a disk, but assumes that you are familiar with the partitioning method.
Warning disk partitioning by mistake is one of the most reliable and quickest ways to delete all content on the hard disk. 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 !)
Accept the default partition layout. Note that the default layout is applicable to evaluation, but not necessarily for other purposes. By default, a swap partition may be created, which is smaller than the one recommended in the Oracle guide. This is sufficient for evaluation.
Network Configuration
Generally, it is best to use a static IP address to configure the database server. To do this, click Edit.
A pop-up window appears. Deselect the Configure using DHCP check box and enter the IP address and network mask of the server. Make sure that Activate on boot is selected, and then click OK.
In the Hostname box, select manually and enter the host name.
In the Miscellaneous Settings box, enter other network Settings.
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, select System clock uses UTC.
Set Root Password
Enter the root password and enter it again for confirmation.
Software Package Installation
This Guide uses the "Default RPM" recommended by Oracle for installation. Accept the default software selection and click Next.
You also need to install additional RPM to run the Oracle database version 11g 1st. They will be installed later.
Installation Package
The software will be copied to the hard disk and installed. The system prompts you to change the disk.
After software installation is complete
Take out all CD/DVD start media.
Click Next.
Welcome to the Oracle Developer Conference
Click Forward
License Agreement
Read the license agreement. If you agree to the terms, select Yes, I agree to the License Agreement and click Forward.
Configure Firewall
For the purpose of this demonstration, no firewall is configured. Select Disabled and click Forward.
When the "Warning-No Firewall" window appears, click Yes.
SELinux
Select Disabled from the drop-down list and click Forward.
Kdump
Do not enable Kdump. Accept the default settings and click Forward.
Date and Time
Set the date and time.
If you want to use the NTP server (recommended), select Enable Network Time Protocol and enter the NTP server name.
System User
Create an account for yourself.
Do not create an account for oracle. This section describes how to create an oracle account later.
Sound Card
If you have a sound card, configure it and click Forward.
Other CD
Click Finish.
The system will restart
A graphical logon screen is displayed.
Congratulations! Your OEL5 software has been installed.
Install required software packages
The additional Linux software package must be installed before the Oracle software is installed. The package requirements vary with the 32-bit and 64-bit architectures, so this section contains separate descriptions for each architecture.
32-bit (x86) Installation
Required kernel version: 2.6.18. The kernel or other updated kernels can be used in Oracle Database 11g 1st.
Run the following command to check the kernel version:
Uname-r
Ex:
# Uname-r
2.6.18-8. el5
Required package version (or higher ):
Compat-libstdc ++-33-3.2.3-61
Elfutils-libelf-0.125-3.el5
Elfutils-libelf-devel-0.125-3.el5
Glibc-2.5-12
Glibc-devel-2.5-12
Glibc-common-2.5-12
Gcc-4.1.1-52.el5
Gcc-c ++-4.1.1-52. el5
Libgcc-4.1.1-52.el5
Libaio-0.3.106-3.2
Libaio-devel-0.3.106-3.2
Libstdc ++-4.1.1-52. el5
Libstdc +-devel-4.1.1-52.el5
UnixODBC-2.2.11-7.1
UnixODBC-devel-2.2.11-7.1
Sysstat-7.0.0-3.el5
Binutils-2.17.50.0.6-2.el5
Make-3.81-1.1If you have performed the "Default RPM" installation as recommended by Oracle, you also need to install some required packages:
Compat-libstdc ++-33
Elfutils-libelf-devel
Glibc-devel-2.5
Gcc
Gcc-c ++
Libaio-devel
Libstdc ++-devel
UnixODBC
UnixODBC-devel
Sysstat
To install other packages, load the Oracle Enterprise Linux media and go to the directory containing RPM.
Some required packages depend on other packages, so the dependent packages must also be installed. Log On As root and run the following command to install other required packages and their dependent packages:
Load CD 2
Cd cd_mount_point/Server
Rpm-ivh compat-libstdc ++-33 * elfutils-libelf-devel * glibc-devel-2 * glibc-headers-2 * gcc-4 * gcc-c ++-4 * libaio-devel * libstdc ++ -devel-4 * unixODBC *
For example:
# Rpm-ivh compat-libstdc ++-33 * elfutils-libelf-devel * glibc-devel-2 * glibc-headers-2 * gcc-4 * gcc-c ++-4 * libaio-devel * libstdc + +-devel-4 * unixODBC *
Warning: compat-libstdc ++-33-3.2.3-61.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ######################################## ### [100%]
1: unixODBC ####################################### #### [8%]
2: libstdc ++-devel ################################### ####### [1, 17%]
3: libgomp ####################################### #### [25%]
4: glibc-headers ##################################### ###### [33%]
5: glibc-devel ##################################### ###### [42%]
6: gcc ####################################### #### [50%]
7: gcc-c ++ ################################### ####### [1, 58%]
8: unixODBC-devel ##################################### ###### [67%]
9: libaio-devel ##################################### ###### [75%]
10: compat-libstdc ++-33 ################################# ######### [1, 83%]
11: elfutils-libelf-devel-s ################################# ######### [1, 92%]
12: elfutils-libelf-devel ################################### ####### [1, 100%]
Load CD 3
Cd cd_mount_point/Server
Rpm-ivh sysstat *
For example:
# Rpm-ivh sysstat *
Warning: sysstat-7.0.0-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ######################################## ### [100%]
1: sysstat ####################################### #### [100%]
Run the following command to verify that the required package has been installed on your system:
Rpm-q compat-libstdc ++-33 elfutils-libelf-devel glibc-devel-2.5 gcc-c ++ libaio-devel libstdc ++-devel \
UnixODBC-devel sysstat binutils elfutils-libelf glibc-common libaio libgcc libstdc ++ make
Ex:
# Rpm-q compat-libstdc ++-33 elfutils-libelf-devel glibc-devel-2.5 gcc-c ++ libaio-devel libstdc ++-devel \> unixODBC-devel sysstat binutils elfutils -libelf glibc-common libaio libgcc libstdc ++ makecompat-libstdc ++-memory ++-4.1.1-52. el5libaio-devel-0.3.106-3.2libstdc ++-devel-4.1.1-52.el5unixODBC-2.2.11-7.1unixODBC-devel-2.2.11-7.1sysstat-7.0.0-3.el5binutils-2.17.50.0.6-2.el5elfutils-libelf-0.125-3.el5glibc-2.5-12glibc-common-2.5-12libaio-0.3.106-3.2libgcc-4.1.1-52.el5libstdc ++-4.1.1-52. el5make-3.81-1.1