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

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. (21)jq动画

    jq动画的优点 优点: 1.可以知道动画结束的表示(结束的回调函数) 2.可以利用jq动画插件完成复杂的动画 动画有三个参数:动画的样式是字典.动画持续的事件,动画结束回调函数 <!DOCTYP ...

  2. vue的指令绑定、事件、冒泡

    a标签的属性绑定: v-once:就是第一次渲染什么就是什么,不会随着其他改变而改变,简言之就是绑定他不让他的值改变 防止跨站脚本攻击 如果你觉得安全的话,可以不要让变量的值显示成字符串 解决方法是: ...

  3. hdu3374 String Problem KMP+最大最小表示法

    Give you a string with length N, you can generate N strings by left shifts. For example let consider ...

  4. Tomcat端口被占用解决办法

    1.在cmd运行窗口中输入netstat -ano 查看当前被占用的端口所对应的进城PID: 2.输入命令tasklist,找到进程号PID对应的进程名称(映像名称) 3.打开任务管理器(ctrl+a ...

  5. $trainClassLayer.find('input[name=data-item-checkbox]').eq(index).change();//激活第index+1那个checkbox

    ☆ $.each(data, function (index, org) { if (org.alreadySent) { $trainClassLayer.find('input[name=data ...

  6. 新一代构建工具gradle学习

    简介:Gradle的出现,是技术发展的必然,站在了Ant.maven等构建工具的肩膀上,使用了一种强大且具有表达性的基于Groovy的领域特定语言(DSL),使其拥有易用且灵活的方式去实现定制逻辑.方 ...

  7. sudo权限的设置

    什么是sudo,为什么要sudo呢?就我个人愚见普通用户sudo之后拥有root用户的所有权限,其优点在于,虽然该用户拥有root权限,但他却不需要知道root用户密码,需要输入的是他本身的密码. 那 ...

  8. Django 之老师讲的教师,班级学生,class_2_teacher四个表格的项目

    现数据库中有四张表格 要求:实现查询功能  页面显示教师  id 姓名  教学班级 url 处设置 url(r'teacher_list/',teacher_list),  teacher_list函 ...

  9. http笔记汇总

    网上笔记参考: https://juejin.im/post/5b34e6ba51882574d20bbdd4#heading-8 http://dy.163.com/v2/article/detai ...

  10. [Hi3520DV200]烧录

    setenv ipaddr 192.168.1.11 setenv serverip 192.168.1.139 setenv gatewayip 192.168.1.1 mw.b ff ;sf pr ...