返回顶部
首页 > 资讯 > 操作系统 >linux7系统怎么安装oracle12C R2
  • 376
分享到

linux7系统怎么安装oracle12C R2

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

这篇文章主要介绍“linux7系统怎么安装oracle12C R2”,在日常操作中,相信很多人在linux7系统怎么安装oracle12C R2问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,

这篇文章主要介绍“linux7系统怎么安装oracle12C R2”,在日常操作中,相信很多人在linux7系统怎么安装oracle12C R2问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”linux7系统怎么安装oracle12C R2”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

##内存检查
#Minimum: 1 GB of RAM
#Recommended: 2 GB of RAM or more


grep MemTotal /proc/meminfo | awk '{print $2/1024" MB"}'


##swap的检查
#Available RAM,Swap Space Required
#Between 1 GB and 2 GB, 1.5 times the size of the RAM
#Between 2 GB and 16 GB, Equal to the size of the RAM
#More than 16 GB, 16 GB


grep SwapTotal /proc/meminfo | awk '{print $2/1024" MB"}'


##packages for linux6
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
GCc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)


yum -y install binutils compat-libcap1 compat-libstdc++ compat-libstdc++*.i686 gcc gcc-c++ glibc-2*.i686 glibc glibc-devel*.i686 glibc-devel ksh libgcc libgcc-*.i686 libstdc++*.i686 libstdc++ libstdc++-devel libstdc++devel*.i686 libaio-*.i686 libaio libaio-*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC-devel unixODBC*.i686 




##packages for linux 7
rpm -qa | grep binutils-2.23.52.0.1-12.el7.x86_64 
rpm -qa | grep compat-libcap1-1.10-3.el7.x86_64 
rpm -qa | grep compat-libstdc++-33-3.2.3-71.el7.i686
rpm -qa | grep compat-libstdc++-33-3.2.3-71.el7.x86_64
rpm -qa | grep gcc-4.8.2-3.el7.x86_64 
rpm -qa | grep gcc-c++-4.8.2-3.el7.x86_64 
rpm -qa | grep glibc-2.17-36.el7.i686 
rpm -qa | grep glibc-2.17-36.el7.x86_64 
rpm -qa | grep glibc-devel-2.17-36.el7.i686 
rpm -qa | grep glibc-devel-2.17-36.el7.x86_64 
rpm -qa | grep ksh
rpm -qa | grep libaio-0.3.109-9.el7.i686 
rpm -qa | grep libaio-0.3.109-9.el7.x86_64 
rpm -qa | grep libaio-devel-0.3.109-9.el7.i686 
rpm -qa | grep libaio-devel-0.3.109-9.el7.x86_64 
rpm -qa | grep libgcc-4.8.2-3.el7.i686 
rpm -qa | grep libgcc-4.8.2-3.el7.x86_64 
rpm -qa | grep libstdc++-4.8.2-3.el7.i686 
rpm -qa | grep libstdc++-4.8.2-3.el7.x86_64 
rpm -qa | grep libstdc++-devel-4.8.2-3.el7.i686 
rpm -qa | grep libstdc++-devel-4.8.2-3.el7.x86_64 
rpm -qa | grep libXi-1.7.2-1.el7.i686 
rpm -qa | grep libXi-1.7.2-1.el7.x86_64 
rpm -qa | grep libXtst-1.2.2-1.el7.i686 
rpm -qa | grep libXtst-1.2.2-1.el7.x86_64 
rpm -qa | grep make-3.82-19.el7.x86_64 
rpm -qa | grep sysstat-10.1.5-1.el7.x86_64


yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 gcc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio libaio-*.i686 libaio-devel libaio-devel*.i686 libgcc libgcc*.i686 libstdc++ libstdc++*.i686 libstdc++-devel libstdc++devel*.i686 libXi libXi*.i686 libXtst libXtst*.i686 make sysstat unixODBC unixODBC-devel unixODBC*.i686
yum -y localinstall compat-libstdc++-33-3.2.3-72.el7.*   #单独下载




##create user and group 
groupadd -g 1000 oinstall
groupadd -g 1001 dba
groupadd -g 1002 oper
useradd -g oinstall -G dba,oper oracle 




##vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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


/sbin/sysctl -p 




##官方文档对shmmax的设置解释,(文档 ID 567506.1),我一般直接使用当前设置/sbin/sysctl -a | grep shm
#Oracle Global Customer Support officially recommends a " maximum" for SHMMAX of "1/2 of physical RAM". 
#The maximum size of a shared memory segment is limited by the size of the available user address space. On 64-bit systems, this is a theoretical 2^64bytes. So the "theoretical limit" for SHMMAX is the amount of physical RAM that you have.  However, to actually attempt to use such a value could potentially lead to a situation where no system memory is available for anything else.  Therefore a more realistic "physical limit" for SHMMAX would probably be "physical RAM - 2Gb". 
#In an Oracle RDBMS application, this "physical limit" still leaves inadequate system memory for other necessary functions. Therefore, the common "Oracle maximum" for SHMMAX that you will often see is "1/2 of physical RAM". Many Oracle customers chose a higher fraction, at their discretion. 
#Occasionally, Customers may erroneously think that that setting the SHMMAX as recommended in this NOTE limits the total SGA.   That is not true.  Setting the SHMMAX as recommended only causes a few more "shared memory segments" to be used for whatever total SGA that you subsequently configure in Oracle. For additional detail, please see


##
?vi /etc/security/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 10240




##创建软件安装目录
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle




##添加本地参数
su - oracle
vi .bash_profile
umask 0022
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/12.2.0/db_1
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_HOME ORACLE_SID
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin:/usr/bin:/sbin
LD_LIBRARY_PATH=$ORACLE_HOME/lib


##修改hosts文件
ip add | grep enp0s8 | grep inet | awk '{print $2}' | awk -F"/" '{printf $1" "}{cmd="hostname";system(cmd)}' >> /etc/hosts
cat /etc/hosts


##开机启动图形化
[root@localhost ~]# systemctl get-default 
multi-user.target
[root@localhost ~]# cat /etc/inittab 
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analoGous to runlevel 3    #多用户模式
# graphical.target: analogous to runlevel 5     #图形化模式
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
#
[root@localhost ~]# systemctl set-default graphical.target   
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
[root@localhost ~]# systemctl get-default 
graphical.target


?
##关闭防火墙和selinux
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld  
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@rhel7ora11 ~]# getenforce 
Enforcing
[root@rhel7ora11 ~]# setenforce 0
[root@rhel7ora11 ~]# getenforce 
Permissive
[root@rhel7ora11 ~]# vi /etc/selinux/config 
SELINUX=disabled

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


##安装
./runInstaller
#执行脚本
[root@rhel7-ora12c-ip156 ~]# /u01/app/oraInventory/orainstRoot.sh 
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.


[root@rhel7-ora12c-ip156 ~]# /u01/app/oracle/product/12.2.0/db_1/root.sh 
PerfORMing root user operation.


The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/12.2.0/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.
Do you want to setup Oracle Trace File Analyzer (TFA) now ? yes|[no] : 
no
Oracle Trace File Analyzer (TFA - User Mode) is available at :
    /u01/app/oracle/product/12.2.0/db_1/suptools/tfa/release/tfa_home/bin/tfactl


OR


Oracle Trace File Analyzer (TFA - Daemon Mode) can be installed by running this script :
    /u01/app/oracle/product/12.2.0/db_1/suptools/tfa/release/tfa_home/install/roottfa.sh
    
#dbca创建数据库,aSSM管理最少需要1460M内存分配

到此,关于“linux7系统怎么安装oracle12C R2”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注编程网网站,小编会继续努力为大家带来更多实用的文章!

--结束END--

本文标题: linux7系统怎么安装oracle12C R2

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

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

猜你喜欢
  • linux7系统怎么安装oracle12C R2
    这篇文章主要介绍“linux7系统怎么安装oracle12C R2”,在日常操作中,相信很多人在linux7系统怎么安装oracle12C R2问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,...
    99+
    2024-04-02
  • RHEL7.3 安装oracle12C R2 RAC
    ##安装桌面 ##安装桌面 ...
    99+
    2024-04-02
  • 如何在Centos7系统中安装oracle12c
    本篇文章为大家展示了如何在Centos7系统中安装oracle12c,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。一、硬件配置CentOS7@VMware&...
    99+
    2024-04-02
  • CentOS6.7系统下安装配置Oracle11G R2
    一、安装Oracle 11G前环境搭建    本次实验是基于Linux(CentOS6.7_64)下搭建oracle 11g环境,这里选择CentOS安装oracle并不是最佳...
    99+
    2024-04-02
  • 4. Oracle12c数据库在Linux系统安装步骤
    部署环境 系统:CentOS Linux release 7.6 数据库:Oracle 12c 1. 修改主机名 2. 修改hosts文件 2.1 配置服务器ip地址 cd ...
    99+
    2023-09-06
    linux 运维 服务器 oracle dba Powered by 金山文档
  • VMware安装Android-x86_64-9.0-r2系统兼容arm设置
    Android-x86_64-9.0-r2虚拟机安装兼容arm的android应用程序 安装后WLAN提示已连接无网络(实际网络联通),终端模拟器依次输入以下命令后回车重启系统 susettings put global captive_...
    99+
    2023-09-09
    android 网络 arm开发
  • mysql数据库的安装与简单管理(redhat的linux7系统)
    学习掌握myslq数据库的基础Linux基本的使用掌握LINUX系统常用服务使用++++++++++++++++++++++++数据库管理:搭建数据库服务器管理数据库服务器+++++++++++++++++...
    99+
    2024-04-02
  • 安装oracle12c时swap不足怎么办
    这篇文章主要介绍“安装oracle12c时swap不足怎么办”,在日常操作中,相信很多人在安装oracle12c时swap不足怎么办问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解...
    99+
    2024-04-02
  • oracle11g在linux7的静默安装脚本怎么写
    这篇文章给大家分享的是有关oracle11g在linux7的静默安装脚本怎么写的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。1 把11.2.0.4的安装文件放到基础目录,一般我放...
    99+
    2024-04-02
  • oracle12c安装报错INS-32025怎么解决
    这篇文章主要讲解了“oracle12c安装报错INS-32025怎么解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“oracle12c安装报错INS-32...
    99+
    2024-04-02
  • 怎么安装linux系统
    本篇内容主要讲解“怎么安装linux系统”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么安装linux系统”吧!已经安装了windows系统,如何安装linux系统网络上的教程不是太旧就是太乱...
    99+
    2023-06-13
  • xp系统怎么安装
    今天小编给大家分享一下xp系统怎么安装的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。xp系统安装方法:下载的系统一般都是为I...
    99+
    2023-07-01
  • 怎么安装Win7系统
    以下是安装Windows 7系统的一般步骤:1. 准备安装介质:你需要准备一个Windows 7安装光盘或一个可引导的USB闪存驱动...
    99+
    2023-08-22
    win7
  • Win8系统要怎么安装 Win8系统安装全过程
      因为Win8的安装与购买是一体的,所以我们就从购买流程开始。登录微软的官方网站进入Win8购买页面,点击“我的电脑能不能运行Windows 8”下载Win8升级助手,然后运行吧。...
    99+
    2022-06-04
    系统安装 全过程 系统
  • centos7系统MySQL5.7怎么安装
    下面一起来了解下centos7系统MySQL5.7怎么安装,相信大家看完肯定会受益匪浅,文字在精不在多,希望centos7系统MySQL5.7怎么安装这篇短内容是你想要的。环境介绍云服务器地址:192.16...
    99+
    2024-04-02
  • CentOS系统怎么安装PPTP
    本篇内容介绍了“CentOS系统怎么安装PPTP”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!本文适合于能开通TUN和PPP的VPS,仅限X...
    99+
    2023-06-10
  • win7怎么安装双系统
    要在Windows 7上安装双系统,你需要按照以下步骤进行操作:1. 准备好安装另一个操作系统的安装介质,如Windows 10的安...
    99+
    2023-09-02
    win7
  • Linux系统怎么安装Nmap
    这篇文章将为大家详细讲解有关Linux系统怎么安装Nmap,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。1、安装包:(1)可以官网下载,地址:https://nmap.org(2)也可以用网盘下载,小编用...
    99+
    2023-06-28
  • Linux系统怎么安装composer
    本篇内容介绍了“Linux系统怎么安装composer”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!Composer 是由 Jordi Bo...
    99+
    2023-06-28
  • Linux系统怎么安装VFSTP
    本篇内容介绍了“Linux系统怎么安装VFSTP”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!FTP 用于Internet上的控制文件的双向...
    99+
    2023-06-28
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作