感谢强哥的文档 源文档链接

https://www.qstack.com.cn/archives/68.html

#-------------------------------------------------------------------------------

#

# 安装centos6.9下的oracle

# Author:nod

# Date:18-09-05

# 请确认hostname设置为oracle

# 创建目录/tmp/oracle mkdir -p /tmp/oracle

# 将p10404530_112030_Linux-x86-64_1of7.zip p10404530_112030_Linux-x86-64_2of7.zip\

# pdksh-5.2.14-30-mdv2011.0.x86_64.rpm 上传到/tmp/oracle目录

# 硬盘最低要求为50G 内存2G

# 百度云地址:链接:https://pan.baidu.com/s/11rgfBVJ-Vh46JKkIIu73Mg 密码:x34r

#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------

# 环境准备

#-------------------------------------------------------------------------------

/etc/init.d/iptables stop

chkconfig iptables off

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

setenforce 0

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

#检查内容

cat /etc/sysconfig/i18n

#LANG="en_US.UTF-8"

#SYSFONT="latarcyrheb-sun16"

echo $LANG

#en_US.UTF-8

yum -y groupinstall "Compatibility libraries" "Base" "Development tools" "debugging Tools"

yum -y install lrzsz

umount /mnt

cd /etc/yum.repos.d/

mkdir test -p

\mv *.repo test

echo '[local]

name=local

baseurl=file:///mnt

gpgcheck=0' >local.repo

mount /dev/cdrom /mnt

yum makecache

yum groupinstall desktop -y

yum install -y xorg-x11-utils

echo '*/5 * * * * /usr/sbin/ntpdate ntp1.aliyun.com >/dev/null 2>&1' >/var/spool/cron/root

mkdir -p /tmp/oracle

#-------------------------------------------------------------------------------

# 用户环境

#-------------------------------------------------------------------------------

groupadd oinstall

groupadd dba

useradd -g oinstall -G dba oracle

echo 123456 |passwd --stdin oracle

mkdir -p /u01/app

chown -R oracle:oinstall /u01

chmod -R 755 /u01

#-------------------------------------------------------------------------------

# 用户环境

#-------------------------------------------------------------------------------

#修改host解析

#172.30.2.119本机ip oracle

cat >> /etc/profile << EOF

if [ \$USER = "oracle" ];then

if [ \$SHELL = "/bin/ksh" ];then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

EOF

cat >> /home/oracle/.bash_profile <<EOF

HISTTIMEFORMAT='[%F %T]'

ORACLE_BASE=/u01/app

ORACLE_SID=orcl

ORACLE_HOME=\$ORACLE_BASE/oracle/product/11.2.0.3/db_1

NLS_LANG=AMERICAN_CHINA.ZHS16GBK

LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib

PATH=\$ORACLE_HOME/bin:\$PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID NLS_LANG PATH

EOF

cat >> /etc/sysctl.conf <<EOF

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 6815744

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

fs.aio-max-nr = 1048576

EOF

cat >> /etc/security/limits.conf <<EOF

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

EOF

cat >> /etc/pam.d/login <<EOF

session required /lib64/security/pam_limits.so

EOF

sysctl -p

cd /tmp/oracle

unzip -q p10404530_112030_Linux-x86-64_1of7.zip

unzip -q p10404530_112030_Linux-x86-64_2of7.zip

#此处是你物理机的ip 需要开启Xmanager - Passive

export DISPLAY=172.30.2.113:0.0

su - oracle

cd /tmp/oracle/database/

./runInstaller

#-------------------------------------------------------------------------------

# 进入图形界面更改 建议设置orcl密码为orcl

#-------------------------------------------------------------------------------

yum install -y libaio-devel

yum install -y elfutils-libelf-devel

cd /tmp/oracle

rpm -ivh pdksh-5.2.14-30-mdv2011.0.x86_64.rpm

sh /u01/oraInventory/orainstRoot.sh

sh /u01/app/oracle/product/11.2.0.3/db_1/root.sh

[root@oracle logs]# sh /u01/oraInventory/orainstRoot.sh

Changing permissions of /u01/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /u01/oraInventory to oinstall.

The execution of the script is complete.

[root@oracle logs]# sh /u01/app/oracle/product/11.2.0.3/db_1/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /u01/app/oracle/product/11.2.0.3/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

sqlplus / as sysdba

centos6.9安装oracle11g的更多相关文章

  1. CentOS6.8安装Oracle11g

    ===== 这中间还有很多细节问题该文档中并没有说明和指出: 1.如/tmp目录必须单独分出来,不然oracle在以后的使用中会逐渐变慢 2.官网说的512M内存即可,这里纠正下,如果只是测试安装那还 ...

  2. CentOS6.4 安装 Oracle11g

    1.硬件要求检查: 1.1 内存要求: 内存大于1G(使用虚拟机安装时内存要稍微大一些,否则安装检查不通过) #cat /proc/meminfo //查看内存大小 1.2 交换分区要求: 交换分区是 ...

  3. 【通过ssh oracle11g安装】centos6静默安装oracle11g

    转载链接:https://blog.csdn.net/u011391839/article/details/76566316 根据实际情况略作调整~ 博主参考了以上链接成功进行安装,列一下自己遇到的坑 ...

  4. CentOS6.5安装Oracle11g

    安装前必读: 1.      安装Oracle的虚拟机需要固定IP. 2.      注意安装过程中root用户与oracle用户的切换(su root/su oracle) 3.      环境变量 ...

  5. centos7远程安装oracle11g R2详细教程-解决一切问题

    相关链接与资源: sqldevelper(各种操作系统的oracle客户端) http://www.oracle.com/technetwork/cn/developer-tools/sql-deve ...

  6. Linux CentOS 6.5 64位 静默安装Oracle11g 云主机

    本例: 通过SSH远程连接云主机,上传oracle11g安装包,在centos6.5上无图形化界面静默安装oracle11g. 涉及工具及环境: 1.本地环境windows7+ssh远程连接工具xSh ...

  7. Centos6.5 安装 Oracle11gR2(64位)

    Centos6.5安装 Oracle11gR2(64位) 安装centos6.5 (我的是虚拟机环境) 1.  下载centos6.5的安装包,不解释. 例如以下图: 2.  下载oracle安装包, ...

  8. Linux-CentOS7下安装Oracle11g

    简述: 本文操作环境采用CentOS7 Linux安装Oracle11g与Windows区别较大,在Linux下需要创建用户以及用户组来供Oracle使用 Windows可以直接图形化界面从第一步到最 ...

  9. vmware Centos6.6安装64位

    Centos6.6安装64位 必须开启BIOS中的虚拟化技术 首先开机进入BIOS,一般机器是按F2,我的T420是按F1,然后进入Security,Virtualization,选择Enable即可 ...

随机推荐

  1. Linux交叉工具链安装

    这篇博文http://blog.csdn.net/u010957054/article/details/58056863 提到了一个好的百度网盘,里面有各个版本的交叉工具链. http://www.3 ...

  2. <jsp:include>动作元素,附:最易出错的一点

    先定义一个date.jsp,再定义一个main.jsp.用<jsp:include plage = "相对url地址" flush = "true"> ...

  3. 【HAOI2008】圆上的整点

    数学题 原题:平面上有一个圆, 圆心坐标为(0,0),半径为n. 问圆周上有多少个整点. 整点的定义即x,y坐标均为整数的点. 这根本就是一道数学题,注意是数学题,不是数论,数学! 纯粹就看魔性变公式 ...

  4. java小知识,驼峰规则

    单词之间不以空格.连接号或者底线连结(例如不应写成:camel case.camel-case或camel_case形式).共有两种格式: 1.小驼峰式命名法(lower camel case): 第 ...

  5. linux怎么不输入路径直接运行程序脚本

    有时候我们会遇到一些程序压缩包,已解压无需安装就可以直接运行的那种,例如sendemail,就是直接把程序压缩包下载下来,解压后直接跑sendemail那个脚本就可以实现发送邮件功能 其实很简单,只需 ...

  6. 机器学习 - 开发环境安装pycharm + tensorflow集成篇

    继续上篇的pyspark集成后,我们再来看看当今热的不得了的tensorflow是如何继承进pycharm环境的 参考: http://blog.csdn.net/include1224/articl ...

  7. windows下能搭建php-fpm吗 phpstudy

    这个Windows和Linux系统是不一样的,因为一般nginx搭配php需要php-fpm中间件,但是Windows下需要第三方编译. 下载的包里有php-cgi.exe 但不是php-fpm如果想 ...

  8. jmeter --JVM调优设置

    JMeter用户可根据运行的计算机配置,来适当调整JMeter.bat中的JVM调优设置,如下所示: set HEAP=-Xms512m -Xmx512m set NEW=-XX:NewSize=12 ...

  9. 超级账本Hyperledge的关键部件说明

    帐本(Ledger) Fabric帐本(Ledger)是一系列有序和防篡改的状态转换的记录,结构由一个区块链构成,并将不可变的.有序的记录存放在区块中:同时包含一个状态数据库来记录当前的状态,账本的当 ...

  10. jQuery 事件绑定四种方式,delegate委托强大绑定在3.0中修改为on

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...