设为首页 加入收藏

TOP

CentOS 5.6下安装oracle 11.2
2014-11-24 07:17:01 来源: 作者: 【 】 浏览:1
Tags:CentOS 5.6 安装 oracle 11.2
准备工作:
修改启动项
/etc/inittab
rpm -qa | grep binutils
如果没有,则安装:
rpm -ivh *.rpm
www.2cto.com
创建组,用户
groupadd oinstall
groupadd dba
mkdir -p /u01
useradd -g oinstall -G dba -d /u01/oracle oracle
passwd oracle
chown -R oracle:oinstall /u01
实现sqlplus 记忆
tar zxvf rlwrap-0.37.tar.gz
cd rlwrap-0.37
./configure && make install
编辑profile文件
vi .bash_profile
ORACLE_SID=orcl
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH
DISPLAY=192.168.1.101:0.0 ###本机地址
export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH PATH DISPLAY
stty erase ^h
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
保存,并退出oracle,然后登陆生效
检查环境变量: www.2cto.com
env | grep ORA
检查包:
rpm -qa | grep binutils
rpm -ivh * --force --nodeps
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
vi /etc/pam.d/login
session required pam_limits.so
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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
执行以下命令 使其生效
sysctl -p
mkdir -p /u02/app/oracle
chown -R oracle:oinstall /u02/app/oracle
chmod -R 775 /u02/app/oracle
ORACLE_SID=orcl
ORACLE_BASE=/u02
ORACLE_HOME=/$ORACLE_BASE/oracle
LD_LIBRARY_PATH=$ORACLE_HOME/lib;$LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin;$path www.2cto.com
DISPLAY=192.168.59.129:0.0
export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH PATH DISPLAY
stty erase ^h
alias sqlplus = "rlwrap sqlplus"
alias rman="rlwrap rman"
解决sqlplus报错:./sqlplus: error while loading shared libraries:
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot
restore segment prot after reloc: Permission denied
root用户登录
使用cd命令切换当前目录到 /etc/selinux
使用vim打开config文件
找到里面的SELINUX条目,设置成disabled
重启 系统

作者 jtchan
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇linux centos下安装oralce 11g完.. 下一篇KVM下CentOS 6.2 X64上安装Oracle..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Redis 分布式锁全解 (2025-12-25 17:19:51)
·SpringBoot 整合 Red (2025-12-25 17:19:48)
·MongoDB 索引 - 菜鸟 (2025-12-25 17:19:45)
·What Is Linux (2025-12-25 16:57:17)
·Linux小白必备:超全 (2025-12-25 16:57:14)