广告
返回顶部
首页 > 资讯 > 数据库 >Centos 6.5安装oracle 11g
  • 416
分享到

Centos 6.5安装oracle 11g

2024-04-02 19:04:59 416人浏览 八月长安
摘要

Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.htmlhttp://download.oracl

Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_2of2.zip?AuthParam=1479527366_c5c6af19e54f7eed218aafe6914b194e  (下载地址)

安装时内存不要低于2G

1. 使用root用户登录操作系统

2. yum 安装 unzip 软件,用来解压上传的Oracle安装文件。

[root@Centos ~]# yum install unzip –y

3. 解压Oracle 安装程序

[root@CentOS ~]# cd /tmp

[root@CentOS tmp]# unzip linux.x64_11gR2_database_1of2.zip && unzip linux.x64_11gR2_database_2of2.zip

(这里有俩个包,1跟2都要下载)

 

4. Yum 安装vim软件,用于编辑配置文件(个人习惯,不安装vim,使用vi也可以)。

[root@CentOS tmp]# yum install vim -y

5. 在/etc/hosts文件中添加主机名

[root@CentOS tmp]# vim /etc/hosts

添加192.168.206.135 CentOS

 Centos 6.5安装oracle 11g

6. 关闭selinux

[root@CentOS tmp]# vim /etc/selinux/config

设置SELINUX=disabled

 Centos 6.5安装oracle 11g

[root@CentOS tmp]# setenforce 0

 

7. 关闭防火墙

[root@CentOS tmp]# service iptables stop


8. 安装Oracle 11g依赖包

[root@CentOS tmp]# yum install -y binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel GCc gcc-c++ glibc glibc-common glibc-devel libaio libaio-devel libgcc libstdc++ libstdc++-devel make nuMactl sysstat libXp unixODBC unixODBC-devel -y



9. 添加安装用户和用户组

 

[root@CentOS tmp]# groupadd oinstall

[root@CentOS tmp]# groupadd dba

[root@CentOS tmp]# useradd -g oinstall -G dba oracle

[root@CentOS tmp]# passwd oracle

[root@CentOS tmp]# id oracle

uid=1001(oracle) gid=1001(oinstall) 组=1001(oinstall),1002(dba)

 

10. 修改内核参数配置文件

[root@CentOS ~]# vim /etc/sysctl.conf

 

添加以下内容

 

fs.aio-max-nr = 1048576

fs.file-max = 6815744

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

kernel.shmall = 2097152

kernel.shmmax = 1073741824

 

 

[root@CentOS ~]# sysctl -p

 

其中kernel.shmmax = 1073741824为本机物理内存(2G)的一半,单位为byte。


这里会有个错误:



Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g



11. 修改用户的限制文件


[root@CentOS ~]# vim /etc/security/limits.conf

 

添加以下内容

 

oracle           soft    nproc           2047

oracle           hard    nproc           16384

oracle           soft    nofile          1024

oracle           hard    nofile          65536

oracle           soft    stack           10240

 

修改/etc/pam.d/login文件:

[root@CentOS ~]# vim /etc/pam.d/login

 

添加以下内容:

 

session  required   /lib64/security/pam_limits.so

session        required               pam_limits.so

 

修改/etc/profile文件:

[root@CentOS ~]# 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

 

12. 创建安装目录和设置文件权限

 

[root@CentOS ~]# mkdir -p /u01/app/oracle/product/11.2.0

[root@CentOS ~]# mkdir /u01/app/oracle/oradata

[root@CentOS ~]# mkdir /u01/app/oracle/inventory

[root@CentOS ~]# mkdir /u01/app/oracle/flash_recovery_area

[root@CentOS ~]# chown -R oracle:oinstall /u01/app/oracle

[root@CentOS ~]# chmod -R 775 /u01/app/oracle

 

 

13. 设置oracle用户环境变量

 

[root@CentOS ~]# su - oracle

[oracle@CentOS ~]$ vim .bash_profile

添加如下内容:

 

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=$ORACLE_BASE/product/11.2.0

ORACLE_SID=orcl

PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH



[root@oracle11g ~]# xhost +

access control disabled, clients can connect from any host

[root@oracle11g ~]# su - oracle

[oracle@oracle11g ~]$ unzip linux.x64_11gR2_database_1of2.zip 

[oracle@oracle11g ~]$ unzip linux.x64_11gR2_database_2of2.zip 

[oracle@oracle11g ~]$ cd database/

[oracle@oracle11g database]$ ./runInstaller 

这里要在图形化界面安装 下运行./runlnstaller,不然会出错,

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

注意,这里./runInstaller会出现错误,需要安装yum groupinstall "KDE Desktop" 然后在图形界下重启服务器,就可以了



Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g


Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

Centos 6.5安装oracle 11g

[root@oracle11g ~]# sh /u01/oraInventory/orainstRoot.sh 

执行/u01/有个root.sh的脚本


Running Oracle 11g root.sh script...


The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /u01/oracle/product/11.2.0.1/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.sh script.

Now product-specific root actions will be perfORMed.

Finished product-specific root actions.


.登陆oracle数据库


[oracle@oracle11g database]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 12 23:22:35 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from dual;

D

-

X

SQL> select instance_name from v$instance;

INSTANCE_NAME

----------------

orac11g

SQL> 


您可能感兴趣的文档:

--结束END--

本文标题: Centos 6.5安装oracle 11g

本文链接: https://www.lsjlt.com/news/48543.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Centos 6.5安装oracle 11g
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.htmlhttp://download.oracl...
    99+
    2022-10-18
  • rhel 6.5 安装oracle 11g
    1、安装RPM包yum install -y binutils elfutils-libelf glibc compat-libstdc++-33.x86_64 libgcc unixODBC java\*...
    99+
    2022-10-18
  • linux [CentOS 6.5]下安装oracle
    一,安装oracle依赖包# yum install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfuti...
    99+
    2022-10-18
  • 基于RHEL 6.5如何安装Oracle 11g
    小编给大家分享一下基于RHEL 6.5如何安装Oracle 11g,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!6  ...
    99+
    2022-10-18
  • redhat 6.5 64位安装oracle 11g所缺包
    总缺包:    compat-libstdc++-33-3.2.3安装光盘Packages文件夹里:    libstdc安装光盘Packages文件夹里: ...
    99+
    2022-10-18
  • CentOS-6.5-saltstack-安装
     官方网站:https://www.saltstack.com/官方文档   https://docs.saltstack.cn/contents.htmlGitHub:  h...
    99+
    2022-10-18
  • CentOS 6.5 x64安装svn
    #svn安装yum install -y subversion卸载svn旧版本yum remove -y subversionwget http://pkgs.repoforge.org/subversion/subversion-1.7....
    99+
    2023-01-30
    CentOS svn
  • centos 6.5安装zabbix 4.4
    本环境,使用单机部署。操作系统:centos 7.5 x64zabbix-server,Mysql,php,nginx都在同一台服务器。都是使用Yum安装的! 官方安装文档:https://www.zabbix.com/downl...
    99+
    2023-01-31
    centos zabbix
  • 基于RHEL 6.5安装Oracle 11g详细教程(5)——安装Oracle
    5  安装Oracle [root@oracle ~]# cd /temp/ [root@oracle temp]# ls linux.x64_11gR2_database_1of2.zip...
    99+
    2022-10-18
  • centos 6.5 怎么安装git
    Git 是最流行的版本控制系统之一,是许多开发人员使用的必备工具。Git 可以帮助开发人员团队更好地管理代码,并能够追踪更改以及协调版本之间的差异。对于一些人来说,在CentOS 6.5上安装 Git 可能有些棘手,但事实上它相当简单。以下...
    99+
    2023-10-22
  • CentOS 6.5下安装mongodb 2.6.5
        Mongo DB是目前在IT行业非常流行的一种非关系型数据库(NoSql),其灵活的数据存储方式,备受当前IT从业人员的青睐。Mongo DB很好的实现了面向对象的思想,在Mon...
    99+
    2022-10-18
  • CentOS 6.5上安装Zabbix 2.4.8
    环境说明主机名角色IP地址zabbix.contoso.comzabbix server192.168.49.129zabbix-db.contoso.commysql server192.168.49.1...
    99+
    2022-10-18
  • CentOS 6.5上安装JIRA 6.3.6
    JIRA是Atlassian公司出品的项目与事务跟踪工具被广泛应用于缺陷跟踪、客户服务、需求收集、流程审批、任务跟踪、项目跟踪和敏捷管理等工作领域。         ...
    99+
    2022-10-18
  • Centos 6.5编译安装LAMP
    一、前言1、环境说明基础环境Linux+Apache+MySQL+PHPlinux:6.5Apache 2.2.12mysql:5.6.17php:5.5.122、部署说明php安装目录:/usr/loca...
    99+
    2022-10-18
  • CentOS 6.5上安装Confluence 5.4.4
    Confluence是一个专业的企业知识管理与协同软件,也可以用于构建企业wiki。通过它可以实现团队成员之间的协作和知识共享。          &nbs...
    99+
    2022-10-18
  • CentOS 7 一键静默安装oracle 11G
    ...
    99+
    2015-04-28
    CentOS 7 一键静默安装oracle 11G
  • 基于RHEL 6.5安装Oracle 11g详细教程(2)——安装RHEL6.5
    2  安装RHEL 6.5 1)如下图所示,选择Oracle虚拟机,在Oracle虚拟机上点击右键,依次选择电源--打开电源(或使用Ctrl+B组合键)。 2)如下图所示,在Oracle虚...
    99+
    2022-10-18
  • centos 6.5 一分钟安装mysql
                    centos 6.5 一分钟安装mysql手动执行wget https://dev....
    99+
    2022-10-18
  • CentOS 6.5 Xtrabackup 2.4.2怎么安装
    这篇文章主要介绍CentOS 6.5 Xtrabackup 2.4.2怎么安装,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完! --方法① --安装所需的依...
    99+
    2022-10-18
  • 基于RHEL 6.5安装Oracle 11g详细教程(3)——安装VMware Tools
    3  安装VMware Tools 1)如下图所示,依次选择虚拟机 -- 客户机 -- 安装/升级VMware Tools。 2)如下图所示,单击确定。 3)如下图所示,单击确定。 ...
    99+
    2022-10-18
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作