Setup Oracle 11gR2 for Redhat Linux AS 4 Update 7 x64

Setup Oracle 11gR2 for Redhat Linux AS 4 Update 7 x64

1. checking linux version.

[[email protected] ~]# uname -a
Linux redhat4.7 2.6.9-78.EL #1 Wed Jul 9 15:26:38 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

2. linking oracle installing document.

http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCGGJAB

The following or later version of packages for Oracle Linux 4 and Red Hat Enterprise Linux 4 must be installed:

binutils-2.15.92.0.2
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
expat-1.95.7
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-2.3.4-2.41 (32 bit)
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-0.3.105
libaio-0.3.105 (32 bit)
libaio-devel-0.3.105
libaio-devel-0.3.105 (32 bit)
libgcc-3.4.6
libgcc-3.4.6 (32-bit)
libstdc++-3.4.6
libstdc++-3.4.6 (32 bit)
libstdc++-devel 3.4.6
make-3.80
numactl-0.6.4.x86_64
pdksh-5.2.14
sysstat-5.0.5

[[email protected] ~]# rpm -qa|grep binutils
binutils-2.15.92.0.2-25

[[email protected] RPMS]# rpm -qa|grep sysstat
[[email protected] RPMS]#

/media/cdrecorder/RedHat/RPMS
[[email protected] RPMS]# cd /media/cdrecorder/RedHat/RPMS
[[email protected] RPMS]# ls sysstat-5.0.5-19.el4.x86_64.rpm
sysstat-5.0.5-19.el4.x86_64.rpm
[[email protected] RPMS]# ls glibc-common-2.3.4-2.41.x86_64.rpm
glibc-common-2.3.4-2.41.x86_64.rpm
[[email protected] RPMS]# rpm -ivh sysstat-5.0.5-19.el4.x86_64.rpm
warning: sysstat-5.0.5-19.el4.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:sysstat                ########################################### [100%]
[[email protected] RPMS]# rpm -ivh glibc-common-2.3.4-2.41.x86_64.rpm
warning: glibc-common-2.3.4-2.41.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
        package glibc-common-2

3. IP configuration.

[[email protected] ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.10.201
USERCTL=no
IPV6INIT=no
PEERDNS=no

[[email protected] ~]# vi /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
192.168.10.201  redhat4.7

[[email protected] ~]# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Setting network parameters:                                [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]

4. Add Group User for Setup Oracle database.

[[email protected] ~]# groupadd oinstall
[[email protected] ~]# groupadd dba

[[email protected] ~]# useradd -g oinstall -G dba oracle
[[email protected] ~]# passwd oracle

5. Configuring Kernel Parameters.

[[email protected] ~]# vi /etc/sysctl.conf

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912 #建议大于等于物理内存1/2(与性能相关)
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
                                                                                                                                                                              
~                                                                                                                                                                                           
~                                                                                                                                                                                           
"/etc/sysctl.conf" 31L, 964C written

[[email protected] ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
error: unknown error 22 setting key ‘kernel.shmmax‘
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

6. Configurting /etc/security/limits.conf

[[email protected] ~]# vi /etc/security/limits.conf

#ftp             hard    nproc           0
#@student        -       maxlogins       4
oracle           soft    nproc           2047
oracle           hard    nproc           16384
oracle           soft    nofile          1024
oracle           hard    nofile          65536

7. Configurting /etc/pam.d/login

[[email protected] ~]# vi /etc/pam.d/login

#%PAM-1.0
auth       required     pam_securetty.so
auth       required     pam_stack.so service=system-auth
auth       required     pam_nologin.so
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_stack.so service=system-auth
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should be the last session rule
session    required     pam_selinux.so open
session    required     /lib/security/pam_limits.so
session    required     pam_limits.so
~

8. Configurting /etc/profile

if [ $USER = "oracle" ]; then
   if [ $SHELL = "/bin/ksh" ]; then
      ulimit -p 16384
      ulimit -n 65536
   else
      ulimit -u 16384 -n 65536
   fi
fi

9. Creating Directories.

[[email protected] ~]# mkdir /u01/app/oracle -p
[[email protected] ~]# chown -R oracle:oinstall /u01
[[email protected] ~]# chmod -R 755 /u01

10. Uploading setup files to Linux by FTP.

[[email protected] ~]# unzip linux.x64_11gR2_database_1of2.zip
[[email protected] ~]# unzip linux.x64_11gR2_database_2of2.zip

11. Setting xhost display.

[[email protected] soft]# w
15:32:37 up  2:09,  4 users,  load average: 0.32, 1.16, 0.79
USER     TTY      FROM              [email protected]   IDLE   JCPU   PCPU WHAT
root     192.168. 192.168.10.1     13:28    0.00s  0.00s  0.13s /usr/bin/gnome-session
root     pts/1    192.168.10.1     13:34   56.00s  0.13s  0.04s -bash
root     pts/2    192.168.10.1:0.0 15:27    0.00s  0.00s  0.00s w
root     :0       -                14:22   ?xdm?   4:58   0.05s /usr/bin/gnome-session

[[email protected] soft]# xhost +
access control disabled, clients can connect from any host
[[email protected] soft]# export DISPLAY=192.168.10.1:0.0

12. installing oracle software.

[[email protected] database]# su - oracle
[[email protected] ~]$ cd /home/oracle/soft/database/
[[email protected] database]$ ./runInstaller

…start OUI windows.

 

 
 

 

 
 

 

 

Check installing Failed Message.

Swap Size

[[email protected] ~]# dd if=/dev/zero of=/home/oracle/swap bs=1024 count=2048000        
2048000+0 records in
2048000+0 records out
[[email protected] ~]# mkswap /home/oracle/swap
Setting up swapspace version 1, size = 2097147 kB
[[email protected] ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3943       3865         77          0         11       3416
-/+ buffers/cache:        436       3506
Swap:         2047          0       2047
[[email protected] ~]# swapon /home/oracle/swap
[[email protected] ~]# grep SwapTotal  /proc/meminfo
SwapTotal:     4144432 kB
[[email protected] ~]# vi /etc/fstab

/home/oracle/swap     swap      swap defaults 0 0

elfutils-libelf-devel

unixODBC-devel

[[email protected] ~]# cd /media/cdrecorder/RedHat/RPMS/
[[email protected] RPMS]# ls elfutils-libelf-devel-0.97.1-5.x86_64.rpm
elfutils-libelf-devel-0.97.1-5.x86_64.rpm
[[email protected] RPMS]# ls unixODBC-devel-2.2.11-1.RHEL4.1.x86_64.rpm
unixODBC-devel-2.2.11-1.RHEL4.1.x86_64.rpm
[[email protected] RPMS]# rpm -ivh elfutils-libelf-devel-0.97.1-5.x86_64.rpm
warning: elfutils-libelf-devel-0.97.1-5.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:elfutils-libelf-devel  ########################################### [100%]
[[email protected] RPMS]# rpm -ivh unixODBC-devel-2.2.11-1.RHEL4.1.x86_64.rpm
warning: unixODBC-devel-2.2.11-1.RHEL4.1.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:unixODBC-devel         ########################################### [100%]

 

 

[[email protected] ~]# cd /u01/app/oraInventory/
[[email protected] oraInventory]# ./orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.

[[email protected] oraInventory]# cd /u01/app/oracle/product/11.2.0/dbhome_1/
[[email protected] dbhome_1]# sh root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/11.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

时间: 2024-10-16 14:03:34

Setup Oracle 11gR2 for Redhat Linux AS 4 Update 7 x64的相关文章

RedHat 6 静默安装Oracle 11gR2

之前看了网上很多篇Linux静默安装Oracle的文章,但安装测试时老觉得有问题,后来直接找来Oracle官方英文文档并仔细阅读研究rsp文件的内容说明,经过自己在虚拟机中的安装测试,使用RedHat 6.5(内核版本:2.6.32-431.el6.x86_64)上静默安装Oracle 11gR2(版本:11.2.0.3),整理出了本文,主要包括了环境要求与准备.静默安装Oracle软件与监听.静默安装Oracle数据库.安装完成后检查.设置Oracle开机自动启动等部分. 一. 环境要求与准备

Redhat Linux 下安装Oracle 11g R2

能够下载:http://download.csdn.net/detail/ykh554541184/8086647文档方便查阅 官方文档:http://docs.oracle.com/cd/E11882_01/nav/portal_11.htm 1:基本环境 Redhat Enterprise Linux 6.132bit 内存:128GB 磁盘空间:600GB 2:检查Oracle 11g所需的包,假设没有在Redhat Enterprise Linux 6.1的安装光盘里找,然后安装. OR

六步搞定Linux Oracle 11gR2 配置安装

话不多说,下载Oracle 11gR2,注意为两个包linux_11gR2_database_1of2.zip,linux_11gR2_database_2of2.zip,下载后上传到Linux. 一.Linux系统下要安装的数据包. 个人经验,安装Linux过程中,选择全部默认的包,基本就安装差不多了. linux系统要安装好以下的包,要安装的包有: binutils-2.15.92.0-10.EL4 compat-db-4.1.25-9 compat-gcc-32-3.2.3-47.3  c

Switching from Redhat Linux to Oracle Linux in about 5,000 easy steps

Wayback When I remember being at Oracle Open World when Larry Ellison unveiled Oracle Enterprise Linux (OEL, which is now just Oracle Linux, or OL).    I think I even have a foam Oracle penguin and maybe even a t-shirt somewhere.  I was trying to und

Redhat 5.8 ORACLE 11gR2 RAC安装文档2-grid安装

3.安装Grid 3.1.安装rpm包 两个节点都要安装,以节点1为例 [[email protected] yum.repos.d]# yum install compat-libstdc++-33 ksh gcc gcc-c++ libgomp elfutils-libelf-devel glibc-devel glibc-headers libaio-devel libstdc++-devel sysstat unixODBC unixODBC-devel –y -----.. Compl

【Centos linux系统】命令行(静默)安装oracle 11gR2

[原文]:http://blog.chinaunix.net/uid-23886490-id-3565998.html 一.安装前准备 1.内存及swap要求 至于swap如何添加,后文将提到 1 2 grep MemTotal /proc/meminfo grep SwapTotal /proc/meminfo 2.硬盘空间 3.修改主机名,及ip对应关系 --设置主机名,也可以直接修改配置文件/etc/sysconfig/network,不过这个是重启之后才起作用 #sed -i "s/HO

Linux系统安装oracle 11gR2 启动netca失败解决办法

在Red Hat(64-bit)系统上,安装oracle 11gR2 启动netca: [[email protected] ~]$ netca Oracle Net Services 配置: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xa44c936e, pid=3166, tid=3085936848 # # Java VM: Java HotS

Linux下的Oracle 11gr2安装完成的的自启动操作。

Linux下的Oracle在安装结束后是处于运行状态的.重启机器后,Oracle不会像在Windows下那样将Oracle添加到Windows服务,在linux下需要手动启动Orcle服务 以oracle用户下,执行下面的命令 进入sqlplus $ sqlplus /nolog 以sysdba的身份连接到数据库,并启动Oracle数据库引擎 SQL> conn /as sysdba SQL> startup 退出sqlplus,运行Listener SQL> exit $ lsnrct

Networker 8.1异机恢复Oracle 11gR2

本文是一篇迟来的博文,写这篇博文源于近日在整理技术笔记时,看到2年前写的EMC Networker 8.1异机恢复Oracle 11gR2数据库的操作笔记(测试的是假如生产数据库服务器崩溃宕机,而将备份数据恢复到备用数据库服务器).虽然去年EMC就已推出了Networker 9,但本文可能多少还有一点参考价值,便稍加整理后发了出来. 一.测试环境 计算机名 IP地址 操作系统 角色 安装软件 Bakserver 10.1.1.4 RedHat 6 备份服务器 EMC Networker 8.1.