ITPub博客

首页 > 数据库 > Oracle > oracle 11g r2 install

oracle 11g r2 install

原创 Oracle 作者:netwant 时间:2012-08-22 14:55:13 0 删除 编辑
oracle 11g release 2 install for linux as 5 x64[@more@]1.安装检查准备
查看内存、SWAP空间、硬盘空间、CPU情况。
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo

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


The following or later versions of the operating system are required for Oracle Database 11g Release 2 (11.2):
•Asianux 2
•Asianux 3
•Oracle Enterprise Linux 4 Update 7
•Oracle Enterprise Linux 5 Update 2
•Red Hat Enterprise Linux 4 Update 7
•Red Hat Enterprise Linux 5 Update 2
•SUSE Linux Enterprise Server 10 SP2
•SUSE Linux Enterprise Server 11

2.禁用secure Linux
因为SELINUX对oracle有影响,所以把secure linux设成无效,通过编辑/etc/selinux/config 文件禁用secure linux,确认其中的SELINUX标记如下:SELINUX=disabled。
也可以通过GUI工具(Applications > System Settings > Security Level),选择SELinux禁用该属性;

3.设置核心参数
cat >>/etc/sysctl.conf<kernel.shmall = 4294967296
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=1048576
net.core.wmem_max=1048576
EOF
sysctl -p命令使得内核改变立即生效
kernel.shmmax = 536870912 1073741824 2147483648 ,4294967296分别代表1G、2G、4G,8G(根据系统物理内存大小,选择相应值)
注:kernel.shmmax和kernel.shmall在源文件中也有参数,不要重复设置。


4.设置oracle用户的shell limit
cat >> /etc/security/limits.conf <oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
5.更改/etc/pam.d/login文件,
添加下面的内容,使shell limit生效:
cat >> /etc/pam.d/login <session required pam_limits.so
EOF

6.新增组和用户:
groupadd oinstall
groupadd dba
useradd oracle -g oinstall -G dba
passwd oracle
7.更改oracle用户环境变量
vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=/u01/oracle/product/11.1.0/
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=ocmdb1

8.创建Oracle的安装目录
mkdir -p /u01/oracle/product/11.1.0
chown -R oracle:oinstall /u01
chmod -R 775 /u01

unzip *.zip
chown -R oracle.oinstall database
chmod -R 775 database

9.检查系统安装包。

rpm -q binutils compat-libstdc++-33 gcc gcc-c++ glibc glibc-common glibc-devel libgcc libstdc++ libstdc++-devel make elfutils-libelf elfutils-libelf-devel libaio libaio-devel sysstat unixODBC unixODBC-devel

64位需要如下包:
rpm -q binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 elfutils-libelf-0.125 elfutils-libelf-devel-0.125 gcc-4.1.1 gcc-c++-4.1.1 glibc-2.5-12 glibc-2.5-12 glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5-12 libaio-0.3.106 libaio-0.3.106 libaio-devel-0.3.106 libgcc-4.1.1 libgcc-4.1.1 libstdc++-4.1.1 libstdc++-4.1.1 libstdc++-devel 4.1.1 make-3.81 numactl-devel-0.9.8.x86_64 sysstat-7.0.0
注:保证以上的安装包都安装完毕。
10./database/runInstaller完成安装。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/309902/viewspace-1059238/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-11-17

  • 博文量
    61
  • 访问量
    180996