Centos 6.5安装oracle 11g

简介:

1.下载Centos 6.5 64位和oracle 11g 64位数据库软件


2.操作系统安装

  (1).图形化界面安装

  (2).系统分区

     /       根分区(27G)

     /boot    安装oracle分区(512G)

     swap     交换分区(4G)

  (3).禁用防火墙

  (4).禁用Selinux

oracle dba专业群 581851278

oracle rac专业群 476687362


3.配置网络和yum源

[root@oracle11g ~]# ping baidu.com

PING baidu.com (180.149.132.47) 56(84) bytes of data.

64 bytes from 180.149.132.47: icmp_seq=1 ttl=47 time=144 ms

64 bytes from 180.149.132.47: icmp_seq=2 ttl=47 time=62.8 ms

--- baidu.com ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1424ms

rtt min/avg/max/mdev = 62.828/103.529/144.230/40.701 ms

[root@oracle11g ~]# vim /etc/yum.repos.d/CentOS-Base.repo 

baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ --这行全部取消注释

[root@oracle11g ~]# yum repolist

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

 * base: mirrors.btte.net

 * centosplus: mirrors.cn99.com

 * contrib: mirrors.cn99.com

 * extras: mirrors.cn99.com

 * updates: mirrors.cn99.com

repo id            repo name                  status

base            CentOS-6 - Base                6,696

centosplus        CentOS-6 - Plus                 52

contrib          CentOS-6 - Contrib               0

extras           CentOS-6 - Extras               62

updates          CentOS-6 - Updates              581

repolist: 7,391

[root@oracle11g ~]# 


4.安装依赖包

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

[root@oracle11g ~]#


5.修改内核参数

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

fs.file-max = 6815744

fs.aio-max-nr=1048576

kernel.shmall = 2097152

kernel.shmmax = 4127434752

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

[root@oracle11g ~]# sysctl -p


6.用户对系统资源的限制

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

[root@oracle11g ~]#


7.用户对shell的限制

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

[root@oracle11g ~]#


8.添加用户登陆模块

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

session   required     /lib/security/pam_limits.so

session   required     pam_limits.so

[root@oracle11g ~]#


9.主机与IP地址解析

[root@oracle11g ~]# vim /etc/hosts

192.168.3.20   oracle11g


10.创建用户与用户组

[root@oracle11g ~]# groupadd -g 500 oinstall

[root@oracle11g ~]# groupadd -g 501 dba

[root@oracle11g ~]# groupadd -g 502 oper

[root@oracle11g ~]# useradd -u 500 -g oinstall -G dba,oper oracle

[root@oracle11g ~]# chown  -R oracle:oinstall /home/oracle

[root@oracle11g ~]# passwd oracle

Changing password for user oracle.

New password: 

BAD PASSWORD: it is based on a dictionary word

BAD PASSWORD: is too simple

Retype new password: 

passwd: all authentication tokens updated successfully.

[root@oracle11g ~]#


11.创建所需要要的目录和设置环境变量

[root@oracle11g ~]# mkdir -p /u01/oracle/product/11.2.0.1/db_1

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

[root@oracle11g ~]# vim /home/oracle/.bash_profile

export ORACLE_BASE=/u01/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/db_1

export ORACLE_SID=orac11g

export PATH=$ORACLE_HOME/bin:$PATH

[root@oracle11g ~]# . /home/oracle/.bash_profile 


12.解压oracle 11g软件并安装

[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 

wKiom1gmu1_RButLAACL-94RFp4677.png-wh_50

wKioL1gmu1_jCyavAAAnFQ7SwHs552.png-wh_50

wKioL1gmu1_D0s1oAACI4xuoJFg523.png-wh_50

wKiom1gmu2DjIC57AACPNkjpMP4391.png-wh_50

wKioL1gmu2DxI2LeAACJwEbfaVA697.png-wh_50

wKiom1gmu2HwZSbZAACSlYkTUW0349.png-wh_50

wKiom1gmu2LQS28KAACmVMZrTGw271.png-wh_50

wKioL1gmu2KSD7eHAACsT_pTHL0535.png-wh_50

wKioL1gmu2KS7v1kAACf_gSg1VA055.png-wh_50

wKiom1gmu2PgMrSvAACePmJ_0TI392.png-wh_50

wKioL1gmu2ORK-hZAACq1xUpqTw467.png-wh_50

wKiom1gmu2SxPl4MAACsO_9CF1w394.png-wh_50

wKiom1gmu2WCtkWiAAC5GEQIgak753.png-wh_50

wKioL1gmu2WCwfEzAAC4yLDdua8454.png-wh_50

wKioL1gmu2bhaBe4AAC-TTRof8U410.png-wh_50

wKiom1gmu2biirKGAAC1PiTDsP8755.png-wh_50

wKioL1gmu2bQsa_0AAC_GkivHc8171.png-wh_50

wKiom1gmu2eCTgZAAACzyVWOCIw795.png-wh_50

wKioL1gmu2iibj0qAAEO3aaGBro881.png-wh_50

wKiom1gmu2ihQlltAADEbqwK0nY459.png-wh_50

wKiom1gmu2mjXLRKAAEJRtDODZw401.png-wh_50

wKiom1gmwtvTvHcrAAB4AdMCZ5s822.png-wh_50

wKioL1gmwtvhdAelAABEJqe5IYc034.png-wh_50

wKiom1gmwtyhQyFKAAAwQiuboYg081.png-wh_50

[root@oracle11g ~]# 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@oracle11g ~]# sh /u01/oracle/product/11.2.0.1/db_1/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.

[root@oracle11g ~]# 

wKioL1gmwtyQl_GlAACbd7vuBsg830.png-wh_50


13.登陆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> 










本文转自 z597011036 51CTO博客,原文链接:http://blog.51cto.com/tongcheng/1872047,如需转载请自行联系原作者
目录
相关文章
|
25天前
|
存储 分布式计算 Hadoop
Centos7.9安装kerberos
Centos7.9安装kerberos
74 25
|
20天前
|
存储 Shell 网络安全
Centos7.9安装openldap
Centos7.9安装openldap
48 16
|
22天前
|
数据可视化 Linux 应用服务中间件
Centos7.9安装phpldapadmin
Centos7.9安装phpldapadmin
47 15
|
1月前
|
Oracle 关系型数据库 Linux
linux8安装oracle 11g遇到的问题记录
Oracle 11g在Linux 8上安装时会遇到link编译环节的问题。官方建议忽略安装中的链接错误,安装完成后应用DBPSU 11.2.0.4.240716补丁及一次性补丁33991024,再重新编译二进制文件,并配置监听器和数据库。但因11g已退出服务期,这些补丁需付费获取。网上信息显示22年1月的PSU补丁也可解决问题,找到该补丁后按常规方式打补丁即可。如有需求或疑问可咨询我。
65 20
|
25天前
|
网络协议 Java 应用服务中间件
centos7环境下tomcat8的安装与配置
本文介绍了在Linux环境下安装和配置Tomcat 8的详细步骤。首先,通过无网络条件下的文件交互软件(如Xftp 6或MobaXterm)下载并解压Tomcat安装包至指定路径,启动Tomcat服务并测试访问。接着,修改Tomcat端口号以避免冲突,并部署Java Web应用项目至Tomcat服务器。最后,调整Linux防火墙规则,确保外部可以正常访问部署的应用。关键步骤包括关闭或配置防火墙、添加必要的端口规则,确保Tomcat服务稳定运行。
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第16天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括配置系统源、安装 SQL Server 2019 软件包以及数据库初始化,确保 SQL Server 正常运行。
143 4
|
3月前
|
Oracle 关系型数据库 MySQL
Centos7下图形化部署单点KFS同步工具并将Oracle增量同步到KES
Centos7下图形化部署单点KFS同步工具并将Oracle增量同步到KES
Centos7下图形化部署单点KFS同步工具并将Oracle增量同步到KES
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第8天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括系统准备、配置安装源、安装 SQL Server 软件包、运行安装程序、初始化数据库以及配置远程连接。通过这些步骤,您可以顺利地在 CentOS 系统上部署和使用 SQL Server 2019。
162 1
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第7天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括系统要求检查与准备、配置安装源、安装 SQL Server 2019、配置 SQL Server 以及数据库初始化(可选)。通过这些步骤,你可以成功安装并初步配置 SQL Server 2019,进行简单的数据库操作。
|
3月前
|
存储 安全 Linux
VMware安装CentOS7
【11月更文挑战第11天】本文详细介绍了在 VMware 中安装 CentOS 7 的步骤,包括准备工作、创建虚拟机、配置虚拟机硬件和安装 CentOS 7。具体步骤涵盖下载 CentOS 7 镜像文件、安装 VMware 软件、创建和配置虚拟机硬件、启动虚拟机并进行安装设置,最终完成 CentOS 7 的安装。在安装过程中,需注意合理设置磁盘分区、软件选择和网络配置,以确保系统的性能和功能满足需求。
352 0