System: RHEL6.5 + oracle11g x86_64 (installation on CentOS is similar to this)
Use local Yum source (download Pdksh package in advance), specific process reference (for Rhel/centos): http://www.cnblogs.com/chinas/p/4536181.html
First, the official website describes the general process of installation reference:
as root logs into the system as root checking the Hardware Requirements Check the required hardware conditions checking the software Requirements Check the required software conditions creating Required Operating system Groups and users to create the required operating system group and user configuring Kernel and Parameters Limits Configuring kernel parameters and resource limits creating Required directories Create the required directory configuring the Oracle User's Environment Configuring an Oracle user's environment mounting the product Disc mount the products CD installing Oracle Database Installing the Oracle Database installing Oracle database Examples Creating an Oracle DB instance
View Code
First, check the hardware conditions of the system
Includes: memory requirements, system architecture, hard disk space requirements,
1, memory must not be less than 1G, recommended 2G or more, with the following command to check the memory:
# grep Memtotal/proc/meminfo
memtotal:1906552 KB #当前系统为2G内存
If the memory is less than 1G, the memory must be increased beforehand
To determine the size of the configuration swap space, enter the following command:
# grep Swaptotal/proc/meminfo
swaptotal:4095992 KB #当前系统为4G
2. View System Architecture
# uname-m
x86_64 #64位系统
View the kernel version (usually will meet the requirements)
# Uname-r
3. Determine the amount of available disk space:
# df-h/OPT
Filesystem Size used Avail use% mounted on
/dev/sda3 193G 21G 163G 12%/
Second, installation settings
1, set the IP and host name of the corresponding
# Hostnamebogon
# ifconfig Eth0 | grep "inet addr" #查看IP地址# cat/etc/hosts127.0. 0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost Localhost.localdomain Localhost6 localhost6.localdomain6
Add the last line in the/etc/hosts file:
192.168. 121.159 Bogon
2, the establishment of script build.sh,
# vim build.sh #注意以root登陆执行
Paste the following code in:
#!/bin/bash
#安装基本依赖库
Yum-y Install UnixODBC yum-y install unixodbcyum-y install unixodbc-devel yum-y Install Unixodbc-devel
Yum-y Install Elfutils-libelf-devel
Yum-y Install LIBXP #注意: Need to install LIBXP This library, this must be installed, otherwise install Oracle will appear Java Exception; case
Execute script
2, uninstall Ksh, and install Pdksh (these two packet conflict)
# RPM-E Ksh
# RPM-IVH--nodeps pdksh-5.2. 1. i386.rpm #这个软件包可能在镜像文件里没有, download it online, and note that it is not possible to install with Yum, install with RPM
3, install Java (Oracle Although integrated Java but the installation interface for Chinese support is not perfect, it is recommended to install early)
# yum-y Install java-1.6. 0
4. Add Oracle Installation interface to support Chinese:
# cd/usr/lib/jvm/jre-1.6.0/lib/# mv FONTCONFIG.BFC fontconfig.bfc.origin #备份默认字体配置 # cp Fontconfig. REDHAT.6.BFC FONTCONFIG.BFC #使用系统的字体配置
5. Execute the following command
# groupadd oinstall #建立安装组合管理组 groupadd dba useradd-g oinstall-G DBA Oracle #创建运行用户, belongs to Oninstall Group, affiliated DBA Group # passwd Oracle #创建密码
mkdir/opt/Oracle #建立安装的基本目录
# Chown-r oracle:oinstall/opt/oracle/ #设置该目录的目录的所属者和所属组并赋予权限 # 775 /opt/oracle/
6. Editing environment settings for Oracle Users
#
Add the following at the end:
022 #文件权限掩码为22export oracle_base=/opt/ORACLE #定义基本目录export oracle_sid= ORCL #定义数据库实例名称export DISPLAY=:0.0 #默认显示的终端号 export LANG=zh_cn. utf-8 #使用何种语言
7. Execution:
# Xhost +
8. Modify kernel and session content:
# vim/etc/sysctl.conf
#修改这两项kernel. Shmall=2097152Kernel.shmmax=536870912#在文件末尾添加下列内容fs. Aio-MAX-NR =1048576Fs.file-max =6815744Kernel.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
Reload the configuration file:
# Sysctl-p
9, the process session limit can be implemented using the Pam_limits authentication module, by modifying the login program login's PAM settings to enable the authentication
# vim/etc/pam.d/Login added at the end: session required pam_limits.so
10.# vi/etc/security/limits.conf
Add the following lines at the end of the file (note that the value must be a multiple of 4):
8192163843276865536
Soft is a soft limit, hard is a rigid limit, Nproc is the number of processes, Nofile is the number of files
11, install the Chinese package, otherwise in the creation of the database instance the interface will appear garbled (can be found in RHEL5.5 DVD image, the name is the following, actually installed on the Fonts-chinese on it, for the sake of insurance four are installed)
fonts-chinese-3.02-el5.noarch.rpm m17n-db-chinese-1.3. 3-el5.noarch.rpmfonts-iso8859-2-75dpi-1.0-17.1. noarch.rpm m17n-db-common-cjk-1.3. 3-el5.noarch.rpm.
Third, start the installation (intermediate process may encounter problems and solutions, see next: http://www.cnblogs.com/chinas/p/4471758.html)
1, Upload oracle11g installation package, and extract:
- Oracle$ cd/opt/oracle/$ unzip linux_11gr2_database_1of2.zip$ unzip Linux_11gr2_database_2of2.zip
$CD/home/oracle/database
$./runinstaller -jreloc/usr/lib/jvm/jre-1.6.0 #若要使用REDHAT6的中文java支持, note the-JRELOC option should be added to specify the installation location of the JRE
2. Process:
Do not provide e-mail
Is
Select default
Select Server Class
Select a Single instance database
Typical installation
Fill in the Management password, note the case with the number, not less than 8 bit
Note the path, default without Oracle, manually plus, that is, overwrite the path to/opt/oracle/orainventory
Is
Condition check, for the sake of insurance note manually check if the corresponding package is installed based on the results of the list, and if you have installed the dependent packages, some of the installed packages are newer than the list requires, and you can select Ignore All
Save the response file
Start installation
Install end, note switch to root as prompted to execute two script files
End of installation, note that you can open the browser login management interface according to the prompt
Four, late operation
1. Switch to root user to execute two script files
#/opt/oracle/product/orahome/root.sh
2, open the browser login management interface, enter the address indicated above, open the management interface to manage the database
Other: Installation Listener
[email protected]/]# Su-~]$ NETCA
9. Install a new database
Dbca
Then follow the prompts to create
Reference URL:
http://blog.163.com/xiangfei209%40126/blog/static/98695674201381910470981/
Http://www.linuxidc.com/Linux/2013-06/85357.htm
Http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCGJCEA
Mo-Pdksh-5.2.14:http://www.2cto.com/os/201306/218566.html
Centos/rhel Installing Oracle 11G