rhel7.2安装oracle 12C

OS:RHEL7.2

ORACLE 12C

step1:安装必需的rpm包

yum install binutils libX11 compat-libcap1 libXau compat-libstdc++-33 libaio gcc libaio-devel gcc-c++ libdmx glibc-devel glibc ksh make libgcc sysstat libstdc++ xorg-x11-utils libstdc++-devel xorg-x11-xauth libXext libXv libXtst libXi libxcb libXt libXmu libXxf86misc libXxf86dga libXxf86vm nfs-utils smartmontools

step2:修改内核参数

vim /etc/sysctl.d/98-oracle-kernel.conf

vm.swappiness = 1

vm.dirty_background_ratio = 3

vm.dirty_ratio = 80

vm.dirty_expire_centisecs = 500

vm.dirty_writeback_centisecs = 100

kernel.sem = 250 32000 100 128

fs.aio-max-nr = 1048576

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.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 8589934590  ==8G,大于SGA即可

kernel.shmall = 2147483648     ==8G

kernel.shmmni = 4096

sysctl -p /etc/sysctl.d/98-oracle-kernel.conf

step3:设置用户限制

vim /etc/security/limits.d/99-grid-oracle-limits.conf

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft stack 10240

oracle hard stack 32768

step4:添加用户

groupadd --gid 54321 oinstall

groupadd --gid 54322 dba

groupadd --gid 54326 oper

groupadd --gid 54327 backupdba

groupadd --gid 54328 dgdba

groupadd --gid 54329 kmdba

useradd --uid 54321 --gid oinstall --groups dba,oper,backupdba,dgdba,kmdba oracle

echo "oracle"|passwd --stdin oracle

step5:设置目录

mkdir -p /u01/app/12.2.0/grid

chown -R oracle.oinstall /u01

chmod -R 755 /u01

step6:设置环境变量

su - oracle

vim .bash_profile

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1

export ORACLE_SID=orcl

export PATH=$ORACLE_HOME/bin:$PATH;

step7:开始安装

su - root

xhost +

su - oracle

[[email protected] database]$ ./runInstaller

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB.   Actual 7211 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 1023 MB    Passed

Checking monitor: must be configured to display at least 256 colors

>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y

>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-08-11_01-14-29AM. Please wait ...

DISPLAY not set. Please set the DISPLAY and try again.

Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:

- For csh:              % setenv DISPLAY 192.168.1.128:0.0

- For sh, ksh and bash:     $ DISPLAY=192.168.1.128:0.0; export DISPLAY

Use the following command to see what shell is being used:

echo $SHELL

Use the following command to view the current DISPLAY environment variable setting:

echo $DISPLAY

- Make sure that client users are authorized to connect to the X Server.

To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:

% xhost +

To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':

% <full path to xclock.. see below>

If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.

Typical path for xclock: /usr/X11R6/bin/xclock

之后尝试设置了多次$DISPLAY,都不行,如下

DISPLAY=192.168.107.155:0.0;export $DISPLAY

DISPLAY=192.168.107.155:1.0;export $DISPLAY

DISPLAY=192.168.107.155:0.1export $DISPLAY

DISPLAY=:0;export $DISPLAY

DISPLAY=:1;export $DISPLAY

之后我在root的一个窗口执行xclock,发现没有clock,之后安装了xorg-x11-apps(yum install xorg-x11-apps),使用root的xclock就可以看到clock了

之后su - oracle还是看不到clock

之后到root窗口echo $DISPLAY发现是:0,所以我在oracle窗口也设置

DISPLAY=:0;export $DISPLAY

之后就可以正常的图形化安装了

安装过程截图:

这里用fix来修复一下

忽略swap报警,我这里只给swap分了1G

step8:DBCA建库

在这里你可以选择典型配置,也可以选择自定义配置,我选择的是自定义(advanced configuration)

创建listner,叫listner1

给SGA分6G,pga 500M,这是测试库,就我一个人用

安装sample

安装完成

[email protected]> select host_name,version from v$instance;

HOST_NAME                 VERSION

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

oracle12c                 12.2.0.1.0

[email protected]> !lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 14-AUG-2018 00:59:07

Copyright (c) 1991, 2016, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

STATUS of the LISTENER

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

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production

Start Date                14-AUG-2018 00:12:27

Uptime                    0 days 0 hr. 46 min. 44 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora

Listener Log File         /u01/app/oracle/diag/tnslsnr/oracle12c/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle12c)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=oracle12c)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/orcl/xdb_wallet))(Presentation=HTTP)(Session=RAW))

Services Summary...

Service "7351e8ae5372218ee0539b6ba8c08d05" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orcl" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orclXDB" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orclpdb" has 1 instance(s).

Instance "orcl", status READY, has 1 handler(s) for this service...

The command completed successfully

原文地址:http://blog.51cto.com/hashing123/2159207

时间: 2024-10-10 02:06:15

rhel7.2安装oracle 12C的相关文章

Oracle Linux6下安装Oracle 12c实战

经过N次安装尝试吐血总结,希望对大家有所帮助,同时做下记录备忘: 总结:安装前的准备工作是关键!!!Check and recheck! 参考:http://docs.oracle.com/cd/E16655_01/install.121/e17741/toc.htm#CEGHFFGG ***********************ORACLE 12C 安装步骤******************************************** 0.准备软件:Oracle Linux 6.4

Windows 下安装 Oracle 12c 教程

原文 Windows 下安装 Oracle 12c 教程 申明:本文原作者:Jmq   本文给大家带来的是 Oracle 12C 的安装教程. 1.准备 1.1 下载 Oracle 12c 安装程序 下载地址可参考:http://www.wxzzz.com/1231.html 文章可顺利下载. 1.2 解压下载好的两个压缩文件 将两个压缩包解压到同一个目录下,即“database”,然后单击解压目录下的“setup.exe”文件: 2.安装过程 2.1.双击”setup.exe”进行安装 软件会

在Fedora20上安装Oracle 12c

本文将引导大家在Fedora20的环境下成功安装Oracle12c. 安装前的准备 编辑/etc/hosts文件,添加本机名称 编辑/etc/selinux/config文件 编辑/etc/redhat-release 做如下查询,以确定要修改的项目 sysctl -a | grep fs.file-max sysctl -a | grep kernel.sem sysctl -a | grep kernel.shmmni sysctl -a | grep kernel.shmall sysct

RedHat 7 静默安装Oracle 12c

之前在网上看了很多Oracle的静默安装教程,感觉有些乱,经过自己查阅Oracle官网英文手册,结合在虚拟机中安装测试,整理出了这篇RedHat 7 静默安装Oracle 12c.redhat 6静默安装Oracle 11g R2也已基本整理好了,等有时间了再发出来. 本文原始出处:江健龙的技术博客http://jiangjianlong.blog.51cto.com/3735273/1792451 一.环境要求与准备 1.硬件要求 (1)磁盘空间 EnterpriseEdition : 6.4

(转)oracle linux 7 安装oracle 12c

原文:https://blog.csdn.net/jiuyun1986/article/details/53589446 1.安装准备 oracle linux 7.3 其它7版本也可以,安装后升级到最新 oracle database 12c oracle virtualBox xftp 5 xmanager 5 putty or  CRT 2.安装虚拟机及linux环境 a.新建虚拟机 内存根据自己实机情况来给 配置CPU及其它参数(把  指点设备 改成USB 这样在虚拟机与实机中切换鼠标方

centos6.7安装oracle 12c r1 (一)

昨天刚接到同事电话领导让安装部署一个oracle12c 他们都不知道c是什么意思还让安装,悲催没办法,谁让咱是技术呢,就是解决技术问题的,废话不多说,下面是我安装的记录: 一. 安装centos系统我就不介绍了网上有很多. 二. 配置yun源安装oracle需要的包. http://public-yum.oracle.com/getting-started.html  这里写的很清楚,配置好yum后安装一个包 oracle-rdbms-server-12cR1-preinstall,这是一 个o

WIN7上安装Oracle 12c图解

环境: WIN7 64位+ Oracle 12c(12.1.0.2.0) 方式: 图形化安装 以管理员登录系统: 1 双击database目录下的setup.exe 去掉"接收安全更新"的勾,点下一步. 2 等待一段时间后出现 我这里出现了错误INS-30131: 如下图,启动Server服务后正常: 3. 5. 6. 7. 8. 9.注意这里设置的密码最好满足Oracle的密码复杂性策略(即有大写和小写字符.数字,且大于8位),否则后面的监听配置可能会出现问题,而且这里一般建议选择&

Centos 7下安装Oracle 12c

SQL Server玩了有些年,最近想玩玩Oracle,于是想到装一台Oracle server来玩玩.第一次在Linux下安装Oracle,整个过程参考了一篇文章:http://blog.csdn.net/huangyanlong/article/details/45021171 环境:VMWare Workstatrion 8.0.3 操作系统:CentOS 7 x64 数据库:Oracle 12c x64 1)安装好Centos 7,这一步跳过 2)从Oracle官网下载12c的安装包,也

安装_CentOS7上安装Oracle 12C

原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明以下出处,否则追究版权法律责任. 深蓝的blog: 实验环境:Oracle VM VirtualBox 4.2.12 操作系统:CentOS 7(LINUX7)64bit 数据库  :Oracle 12C 64bit 实验目标:熟悉LINUX7下安装Oracle12C 操作演示: (1).安装Linux7操作系统 略 (2).官网下载oracle软件包 略 (3).下载oracle12C官方文档 略 (4).上传ora