标签:
readhat 安装11gr2文档
需要注意的地方:必须关掉的 1,防火墙;2,SElinux 。
root 用户运行 setup 命令可关防火墙与SElinux
修改网络配置文件,一定要重启此文件才能生效。
linux安装oracle 10g 第三步出现sid不能使用,因为之前已经使用过这个sid ,解决办法:把/etc/oratab 最后一条记录删除
1. 检查内存,至少1G
grep MemTotal /proc/meminfo
2.交换分区
Available RAM
Swap Space Required
Between 1 GB and 2 GB 1.5 times the size
of RAM
Between 2 GB and 16 GB Equal to the size
of RAM
More than 16
GB 16 GB
grep
"model name" /proc/cpuinfo
grep SwapTotal /proc/meminfo
[root@rhel5 ~]# free
total
used free
shared buffers cached
Mem:
1035140 512924
522216
0 51236 335880
-/+ buffers/cache:
125808 909332
Swap:
1052248
0 1052248
3.
共享内存段至少要大于MEMORY_MAX_TARGET and MEMORY_TARGET
[root@rhel5 ~]# df -k /dev/shm/
Filesystem
1K-blocks Used Available Use% Mounted on
tmpfs
517568 0
517568 0% /dev/shm
4.
至少1G的 /tmp
df -h /tmp
5.
数据库软件和data磁盘空间要求
Installation Type
Requirement for Software Files (GB)
Enterprise Edition
3.95
Standard Edition
3.88
Installation Type Requirement for
Data Files (GB)
Enterprise Edition
1.7
Standard Edition
1.5
6.
操作系统版本
Operating System Requirements
The following are the operating system requirements for
Oracle Database 11g Release 2 (11.2) for Linux x86:
Asianux 2.0
Asianux 3.0
Oracle Enterprise Linux 4.0 Update 7 or later
Oracle Enterprise Linux 5.0
Red Hat Enterprise Linux 4.0 Update 7 or later
Red Hat Enterprise Linux 5.0
SUSE Linux Enterprise Server 10.0
SUSE Linux Enterprise Server 11.0
For Asianux 3, Oracle Enterprise Linux 5.0, and Red Hat
Enterprise Linux 5.0: 2.6.18 or later
[root@rhel5 ~]# uname -r
2.6.18-164.el5
[root@rhel5 ~]# uname -a
Linux rhel5.oraclelinux.com 2.6.18-164.el5 #1 SMP Tue Aug 18
15:51:54 EDT 2009 i686 i686 i386 GNU/Linux
[root@rhel5 ~]# uname -s
Linux
7. 安装必备的软件包
yum
-y install compat-db-4*
yum -y install libaio-0*
yum -y install compat-libstdc++-33-3*
yum -y install compat-gcc-34-3*
yum -y install compat-gcc-34-c++-3*
yum -y install libXp-1*
yum -y install openmotif-2*
yum -y install gcc-4*
yum -y install glibc*
8.
创建组和用户
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -g oinstall -G dba oracle
如果oracle用户已经存在
/usr/sbin/usermod -g oinstall -G dba oracle
echo oracle | passwd --stdin oracle
9. 修改内核参数
shmmax
- 共享内存段的最大字节数,建议设大点,甚至可以大过物理内存的字节数
shmmin - 共享内存段的最小尺寸.
shmmni - 共享内存段的最大数目.
shmseg - 每个进程可分配的最大共享内存段数目.
shmall - 最大的并发共享内存段数目,比SGA还要大.
semmns - 信号灯的最大数量,跟ORACLE的PROCESS数有关.
semmsl - 每个信号灯集合中最多的信号灯数目.
vi /etc/sysctl.conf
kernel.shmall
= 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
修改完执行此命令 : sysctl -p
10. vi /etc/security/limits.conf
oracle
soft nproc 2047
oracle
hard nproc 16384
oracle
soft nofile 1024
oracle
hard nofile 65536
11.
vi /etc/pam.d/login
session required pam_limits.so
12.
修改profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh"
]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
13. 创建目录结构
mkdir
-p /u01/app/oracle/product/10.2/db_1
chown -R oracle:oinstall /u01/app/
chmod -R 775 /u01/app/
14.
vi
/home/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH
15.
./runInstaller -ignoreSysPrereqs
rlwrap-0.30 的安装
tar
zxvf rlwrap-0.30.tar(文件名)
cd /rlwrap-0.30
./configure --prefix=/usr/local/rlwrap
make && make install
vi
/home/oracle/.bash_profile
alias sqlplus=‘/usr/local/rlwrap/bin/rlwrap sqlplus‘
alias rman=‘/usr/local/rlwrap/bin/rlwrap rman‘
su
- oracle
sqlplus
以oracle身份安装
./runInstaller -ignoreSysPrereqs
标签:
原文地址:http://www.cnblogs.com/liang545621/p/4515791.html