PDF version: http://download.csdn.net/detail/jaune161/9312775
Note
Because there are too many pictures, only the main part of the text is written. The installation steps and subsequent settings are shown in PDF.
This document applies to and installs ORACLE11GR2, other versions may be used as references, but the official documentation shall prevail.
Related information
ORACLE11GR2 Document:http://docs.oracle.com/cd/E11882_01/
Installation Tutorial:http://docs.oracle.com/cd/E11882_01/nav/portal_11.htm
installation Tutorial under linux_x86_64:http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm
First, check the necessary conditions 1.1, check memory and swap partition
Oracle requires more than 2GB of memory
#查看内存大小grep MemTotal /proc/meminfo#查看交换区大小grep SwapTotal /proc/meminfo#也可以使用下面的命令查看内存大小free -m
Swap partition Requirements
Memory Size |
Swap partition Requirements |
1gb~2gb |
1.5 times times the memory |
2gb~16gb |
is equal to the memory size |
Greater than 16GB |
16GB |
1.2. Confirm the number of operating system bits
[root@FSWWOA /]# uname -mx86_64
X86_64: Indicates that Intel's processor is used, and that the operating system is 64-bit
I386: Indicates that it is a 32-bit
1.3. Check the hard disk space
#查看临时目录空间[root@FSWWOA /]# df -h /tmp#查看硬盘总空间[root@FSWWOA /]# df -h
Oracle installation is required to have at least 1GB of space in the/tmp directory.
The following are the required space for each version of Oracle installation
version |
Space Required |
Enterprise Edition (Corporate Edition) |
4.7GB |
Standard Edition (normal edition) |
4.6GB |
Second, install the necessary software
You first need to check the system version and then find the corresponding Linux version from the Oracle official documentation.
[root@FSWWOA /]# cat /proc/versionversion2.6.32-71.el6.x86_64 (root@CentOS6064version4.4201007264.4.4-13) (GCC) ) #12915:21:162012
The corresponding version of the Oracle official documentation is as follows
On Red Hat Enterprise Linux 6
2.6.32-71.el6.x86_64 or later
Then, depending on the Linux version, find the software that is necessary to install it, as follows
The following or later version of packages for Oracle Linux 6, Red Hat Enterprise Linux 6, and Asianux Server 4 must bes in Stalled:
binutils-2.20. Wuyi. 0. 2-5.11. El6 (x86_64) compat-libcap1-1.10-1(x86_64) compat-libstdc++- --3.2. 3-.El6 (x86_64) compat-libstdc++- --3.2. 3-.El6. I686gcc-4.4. 4-.El6 (x86_64) gcc-c++-4.4. 4-.El6 (x86_64) glibc-2.12-1.7. El6 (i686) glibc-2.12-1.7. El6 (x86_64) glibc-devel-2.12-1.7. El6 (x86_64) glibc-devel-2.12-1.7. El6. I686kshlibgcc-4.4. 4-.El6 (i686) libgcc-4.4. 4-.El6 (x86_64) libstdc++-4.4. 4-.El6 (x86_64) libstdc++-4.4. 4-.El6. I686libstdc++-devel-4.4. 4-.El6 (x86_64) libstdc++-devel-4.4. 4-.El6. I686libaio-0.3. 107-.El6 (x86_64) libaio-0.3. 107-.El6. I686libaio-devel-0.3. 107-.El6 (x86_64) libaio-devel-0.3. 107-.El6. I686make-3.81-.el6sysstat-9.0. 4-One by one .El6 (x86_64)
Check that the system installs the above software and install the software if it is not installed
Yum Install- yBinutils.x86_64 binutils-devel.X86_64yum Install- yCompat-libcap1.X86_64yum Install- yCompat-LIBSTDC++-.X86_64yum Install- yCompat-LIBSTDC++-.I386yum Install- yGcc.x86_64 GCC- C++.X86_64yum Install- yglibc.x86_64 glibc.i686 glibc-devel.x86_64 glibc-devel.I386yum Install- yKsh.X86_64yum Install- ylibgcc.i386 LIBGCC.X86_64yum Install- yLibstdc++.i386 LIBSTDC++.x86_64 LIBSTDC++-Devel.i386 LIBSTDC++-Devel.X86_64yum Install- yLibaio Libaio-develYum Install- yMake.X86_64yum Install- ySysstat.X86_64yum Install- yPdksh.x86_64/*-------------------------------------*/Yum Install- yUnixODBC.x86_64 UnixODBC.i386 UnixODBC-devel.i386 UnixODBC-devel.x86_64
Iii. creating Oracle Users and Groups
[root@FSWWOA /]# groupadd dba[root@FSWWOA /]# groupadd oinstall#添加用户[root@FSWWOA /]# useradd -g oinstall -G dba oracle#设置Oracle的密码[root@FSWWOA /]# pwd oracle oracle#这里密码使用:oracle
Iv. Modify the system Parameters 4.1, modify the user's shell restrictions
Modify the/etc/security/limits.conf file
vi /etc/security/limits.conf
Then add the following in the file
soft204716384soft102465536
4.2. Modify the/etc/pam.d/login file
vi /etc/pam.d/login
Then add the following in the file
session required /lib/security/pam_limits.sosession required pam_limits.so
4.3, modify the system core parameters
Modify the/etc/sysctl.conf file and add it to the vi /etc/sysctl.conf
file
Fs. Aio-MAX-NR =1048576Fs. File-max =6815744Kernel. Shmall=2097152Kernel. Shmmax=536870912Kernel. Shmmni=4096Kernel. SEM= - 32000 - -Net. IPV4. IP_local_port_range =9000 65500Net. Core. Rmem_default =262144Net. Core. Rmem_max =4194304Net. Core. Wmem_default =262144Net. Core. Wmem_max =1048576
sysctl -p
the execution is configured to take effect immediately. Use to sysctl -a
view all system parameters.
V. Create an Oracle installation directory 5.1 Create an Oracle installation directory
cd /u01mkdir -p app/oracle/product/11.2.0/dbhome_1mkdir app/oradata
5.2 Modifying the directory owner
[[email protected] u01]chown-Roracle:oinstallapp[[email protected] u01]ll总用量 20drwxr-xr-xoracleoinstall 4096 11月 25 08:46appdrwx------root root 16384 11月 24 14:29lost+found
Vi. Modifying system environment variables
Use the vi ~/.bash_profile
open environment variable configuration file. Add the following:
export ORACLE_BASE=/u01/appexport ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1export ORACLE_SID=orclexport PATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/libexport
Then source ~/.bash_profile
the use is configured to take effect immediately. Use env | grep ORACLE
to view environment variable configurations.
Vii. Installing Oracle7.1 extracting Oracle installation files
Copy Oracle to a Linux server and unzip
unzip linux.x64_11gR2_database_1of2.zipunzip linux.x64_11gR2_database_2of2.zip
If you are using a CD-ROM installation, use a mount -t iso9660 /dev/dvd /mnt/dvd
mounted disc
7.2 Setting up the installation environment
If the Linux system character encoding is Chinese, the Oracle installation interface will be garbled during installation. You can use it to export LANG=en_US
change the character set of the session to the English character set and then install it without garbled characters.
In addition, the Oracle installation requires graphical interface support.
The remainder is in the PDF document (too many of the subsequent images are no longer one by one uploaded), and the remainder is as follows:
7.3 Starting the installation of Oracle
VIII. Test Installation Results
Ix. Modify the firewall configuration to add the Oracle port to the exception
X. Set up Oracle from startup
Xi. Setting the Oracle User name password is case insensitive
Installing the Oracle database under Linux