centos6.5 oracle下载,Centos6.5安装Oracle11g PDF 下载

4. 第一还是安装各种依赖包(直接用的是网络安装,当然本地光盘里也可以)

[[email protected] Desktop]#yum groupinstall "Development Tools" -y

[[email protected] Desktop]#yum install binutils compat-libstdc++-33 elfutils elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel -y

5. 创建oracle用户,组以及安装目录

[[email protected] Desktop]# groupadd oinstall

[[email protected] Desktop]# groupadd dba

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

[[email protected] Desktop]# id oracle

uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)

[[email protected] Desktop]# passwd oracle

[[email protected] Desktop]# mkdir -p /oracle/11g

[[email protected] Desktop]# chown -R oracle:oinstall /oracle

[[email protected] Desktop]# chmod 775 /oracle/

说明:

-g:指定用户所属的群组

-G:指定用户所属的附加群组

-u:指定用户ID

-d:指定用户主目录

-s:指定用户登录shell

-m:若用户主目录不存在,则自动创建。

如果最后修改设定密码也为oracle,系统会提示密码过于简单,此时无需理会,再次输入回车即可。

6 修改内核参数

vim /etc/sysctl.conf

末尾增加如下

net.ipv4.ip_local_port_range= 9000 65500

fs.file-max = 6815744

kernel.shmall = 10523004

kernel.shmmax = 6465333657

kernel.shmmni = 4096

kernel.sem = 250 32000 100128

net.core.rmem_default=262144

net.core.wmem_default=262144

net.core.rmem_max=4194304

net.core.wmem_max=1048576

fs.aio-max-nr = 1048576

7 sysctl -p 使内核参数立即生效

8 修改系统资源限制

vim /etc/security/limits.conf

末尾增加如下:

# End of file

oracle   soft  nproc   2047

oracle   hard  nproc   16384

oracle   soft  nofile   1024

oracle   hard  nofile   65536

9 vim /etc/pam.d/login(防止本地登入一直回复到login状态的情况)

session    required    pam_namespace.so  #在此行下面添加一条

session    required     pam_limits.so

10 vim /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

11 设置oracle环境变量

[[email protected] ~]$ cd /home/oracle/

[[email protected] ~]$ vim .bash_profile

末尾增加:

ORACLE_BASE=/home/oracle/app/oracle/

ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/

下面的配置是安装oracle后新建的oracle实例的名字

ORACLE_SID=orcl

PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH

12 source .bash_profile  source /etc/profile  立立即生效上面配置

13 /etc/init.d/iptables stop关闭防火墙

vim /etc/selinux/config 关闭selinux

14 安装oracle

重新启动系统,以oracle用户进入系统,然后解压两个压缩包

[[email protected] Desktop]# chown oracle:oinstall -R  /opt/software/

[[email protected] ~]$ unzip linux_11gR2_database_1of2.zip

[[email protected] ~]$ unzip linux_11gR2_database_2of2.zip

[[email protected] ~]$ mv database/ /home/oracle/

/home/oracle

[[email protected] ~]$ LANG=en      防止中文安装乱码

[[email protected] ~]$ cd database/

doc  install  response  rpm  runInstaller  sshsetup  stage  welcome.html

[[email protected] database]$ ./runInstaller (运行安装脚本)

./runinstaller时报错:

Checking monitor: must be configured to display at least 256 colors

>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<

解决方法:

root 下先执行# xhost +

# yum -y install xorg-x11-xauth  libXp

# vi /etc/ssh/sshd_config

AllowTcpForwarding yes

X11Forwarding yes

# su oracle

$ DISPLAY=192.168.10.217:0.0; export DISPLAY

这里的192.168.10.217是我运行x11客户端的IP地址,而不是你的linux服务器的地址

去掉√,直接下一步

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值