装oracle 11g好用的yum源,linux oracle 11g安装准备

在系统上检查软件依赖的安装

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

ea24d7467a65

Paste_Image.png

提示 is not installed 的用yum安装例如:

yum -y install compat-libstdc++-33

yum -y install elfutils-libelf-devel

提示:要提前配置好yum源。

创建oracle用户

密码为oracle,密码输入两次。

/usr/sbin/groupadd oinstall

/usr/sbin/groupadd dba

/usr/sbin/useradd -g oinstall -G dba oracle

passwd oracle

系统提示:

Changing password for user oracle.

New password:

BAD PASSWORD: it is based on a dictionary word

BAD PASSWORD: is too simpleRetype new password:

passwd: all authentication tokens updated successfully.

修改内核参数

vi /etc/sysctl.conf

文本末尾加入以下内容:

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

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 = 1048586

vi中编辑的方法

按i进入输入模式,esc退出 :wq退出编辑

为使上述配置生效而不重启系统,执行如下命令/sbin/sysctl –p

修改用户限制

vi /etc/security/limits.conf

文本末尾加入以下内容:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

修改用户验证选项

vi /etc/pam.d/login

文本末尾加入以下内容:

session required pam_limits.so

修改用户配置文件

vi /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

安装目录配置

切换到root 用户,执行以下命令。

mkdir -p oraInventory

chown -R oracle:oinstall oraInventory

chmod -R 775 oraInventory

配置oracle用户的环境变量

切换到oracle用户然后直接输入

vi .bash_profile

文本末尾加入以下内容:

export ORACLE_BASE=/u01export

ORACLE_HOME=$ORACLE_BASE/oracleexport

ORACLE_SID=oracleSidexport

PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin

之后执行

source .bash_profile

Oracle安装

先将安装包利用ftp传到目录下,一定要用oracle用户传!

然后进入目录解压文件

unzip linux.x64_11gR2_database_1of2.zip

unzip linux.x64_11gR2_database_2of2.zip

[oracle@localhost oraclepackage]$ cd database/

[oracle@localhost database]$ ./runInstaller

报错

[oracle@dbserver database]$ Xlib: connection to ":0.0" refused by server

Xlib : No protocol specified

解决

在root下面执行:

xhost +

再su过去oracle用户安装。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值