CentOS75 安装Oracle18c
1. 参考地址
- https://blog.csdn.net/u010257584/article/details/50902472
https://www.cnblogs.com/kerrycode/archive/2013/09/13/3319958.html
2. 验证需要的rpm包
- rpm -q binutils compat-libcap1 compat-libstdc++- gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXext libXtst libX11 libXau libxcb libXi make sysstat
查询结果
- binutils-2.27-.base.el7.x86_64
- compat-libcap1-1.10-.el7.x86_64
- package compat-libstdc++- is not installed
- gcc-4.8.-.el7.x86_64
- gcc-c++-4.8.-.el7.x86_64
- glibc-2.17-.el7.x86_64
- glibc-devel-2.17-.el7.x86_64
- package ksh is not installed
- libaio-0.3.-.el7.x86_64
- package libaio-devel is not installed
- libgcc-4.8.-.el7.x86_64
- libstdc++-4.8.-.el7.x86_64
- libstdc++-devel-4.8.-.el7.x86_64
- libXext-1.3.-.el7.x86_64
- libXtst-1.2.-.el7.x86_64
- libX11-1.6.-.el7.x86_64
- libXau-1.0.-2.1.el7.x86_64
- libxcb-1.12-.el7.x86_64
- libXi-1.7.-.el7.x86_64
- make-3.82-.el7.x86_64
- sysstat-10.1.-.el7.x86_64
安装没有安装的仨个包
- yum install -y compat-libstdc++-
- yum install -y libaio-devel
yum install -y ksh
3. 修改 系统配置
- vi /etc/sysctl.conf
- 添加或修改下面参数
- kernel.shmmax =
- kernel.shmall = 10
- kernel.shmmni =
- kernel.sem =
- net.core.rmem_default =
- net.core.rmem_max =
- net.core.wmem_default =
- net.core.wmem_max = 1
- net.ipv4.ip_local_port_range =
- fs.file-max=70
- fs.aio-max-nr=
修改
/etc/security/limits.conf
内容中添加如下配置。
- oracle soft nproc
- oracle hard nproc
- oracle soft nofile
- oracle hard nofile
- oracle soft stack
- oracle hard stack
关闭防火墙 关闭selinux
添加用户
- groupadd oinstall
- groupadd dba
- useradd -g oinstall -G dba oracle
- 修改密码
- passwd oracle
- 创建oracle主目录
- mkdir -p /u01/oracle
- 修改目录权限
- chown -R oracle:oinstall /u01/oracle
- chmod -R /u01/oracle
修改环境变量. 在/etc/profile.d目录下新增一个oracle.sh 增加内容为
- ORACLE_BASE=/u01/oracle; export ORACLE_BASE
- ORACLE_HOME=$ORACLE_BASE/product/18.3./db_1; export ORACLE_HOME
- ORACLE_SID=ora18c; export ORACLE_SID
- ORACLE_TERM=xterm; export ORACLE_TERM
- PATH=/usr/sbin:$PATH; export PATH
- PATH=$ORACLE_HOME/bin:$PATH; export PATH
- LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
- CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
- if [ $USER = "oracle" ]; then
- if [ $SHELL = "/bin/ksh" ]; then
- ulimit -p
- ulimit -n
- else
- ulimit -u -n
- fi
- fi
重新登录 验证 环境变量正常
- echo $ORACLE_HOME
- echo $ORACLE_SID
4. 上传linux 的安装包文件
xftp或者其他方式
解压缩 修改 安装权限
修改host 关闭防火墙 关闭 selinux 等步骤不在复述
5. 进入 GUI 图形化安装
注意 18c 与之前的不一样 需要将 安装文件放到 oracle_home 路径下来执行安装 没有再选择 oracle_home的选项了
- mkdir -p $ORACLE_HOME
- mv -R * $ORACLE_HOME
6. dbca 建库
tips 本次安装与其他的区别
注意加黑与红色字体部分
这次安装失败了三次 才想到官网找解决方案.
- . 下载地址
- http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
- . 本次安装应用端的速度很快好像更改了部分地方
- 官网地址:
- https://docs.oracle.com/en/database/oracle/oracle-database/18/ladbi/running-oracle-universal-installer-to-install-oracle-database.html#GUID-DD4800E9-C651-4B08-A6AC-E5ECCC6512B9
- . Log in as the Oracle installation owner user account (oracle) that you want to own the software binaries.
- Download the Oracle Database installation image files (db_home.zip) to a directory of your choice. For example, you can download the image files to the /tmp directory.
- Create the Oracle home directory and extract the image files that you have downloaded in to this Oracle home directory. For example:
- $ mkdir -p /u01/app/oracle/product/18.0./dbhome_1
- $ chgrp oinstall /u01/app/oracle/product/18.0./dbhome_1
- $ cd /u01/app/oracle/product/18.0./dbhome_1
- $ unzip -q /tmp/db_home.zip
- Note:
- . Oracle recommends that the Oracle home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations. Also, unzip the installation image files only in this Oracle home directory that you created.
- From the Oracle home directory, run the runInstaller command to start the Oracle Database Setup Wizard.
- $ cd /u01/app/oracle/product/18.0.0/dbhome_1
- $ ./runInstaller
- Note:
- Run the runInstaller command from the Oracle home directory only. Do not run runInstaller from any other location.
- . In the Select Configuration Option screen, select Create and configure a single instance database.
- .Select your installation type.
- Installation screens vary depending on the installation option you select. Respond to the configuration prompts as needed.
- Note:
- Click Help if you have any questions about the information you are asked to submit during installation.
CentOS75 安装Oracle18c的更多相关文章
- Docker (一) 安装 Oracle18c
通过Docker 安装 Oracle18c 1.拉取 oracle18c 镜像 docker pull registry.cn-hangzhou.aliyuncs.com/zhengqing/orac ...
- RPM 安装oracle18c 修改字符集的方法
1. 安装完preinstall 和 oracle 的rpm版本之后 到这个界面 rpm -ivh oracle-database-preinstall-18c-.el7.x86_64.rpm war ...
- Centos7.5静默安装Oracle18c
环境: CentOS7.5.Oracle18c(LINUX.X64_180000_db_home.zip) 1. 安装必要的依赖包 [root@bogon ~]# yum install bc bin ...
- CentOS75 安装 telnet 进行使用.
1. 安装必须要的服务 yum install xinetd telnet telnet-server 2. 修改增加root用户登录权限 vi /etc/securetty 在最后面增加两行 pts ...
- Windows 2019 下安装Oracle18c
1. 跟之前版本不一样 与linux 的版本一样 18c的DB 端的安装有区别. 首先需要 创建一个oracle的目录. 这里最简单的方法是 参照12c的目录来 创建 比如我创建的 然后将 db_ho ...
- Centos75 安装 postgresql11
切换到root账户, #安装yum 源 yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_6 ...
- RPM 方式安装 Oracle18c 的方法
1. 云和恩墨公众号介绍了 18c 通过rpm方式的安装包. 所以需要先下载一下. 地址. https://www.oracle.com/technetwork/database/enterprise ...
- 安装Oracle数据库心得
学到Oracle数据库了,想在自己电脑上安装个Oracle数据库.在网上下载了一个Oracle18c版 下边是我安装Oracle18c版的数据库失败,后来在卸载过程中遇到的问题: 1.用Univers ...
- Oracle数据库入门到高薪培训教程(从Oracle 11g 到 Oracle 19c)
一.Oracle数据库入门到高薪培训视频教程(从 Oracle11g 到 Oracle19c) 本套Oracle视频教程学习地址: https://edu.51cto.com/course/18034 ...
随机推荐
- VMware虚拟机下Linux系统的全屏显示
在VMware虚拟机下的Linux无法全屏的问题的解决方案如下: 1. 启动虚拟机,并启动Redhat6.4. 2. 点击“view”——然后将Autofit window这个选项勾选.(一般 ...
- (转载)c++引用
引用,顾名思义是某一个变量或对象的别名,对引用的操作与对其所绑定的变量或对象的操作完全等价 语法:类型 &引用名=目标变量名: 特别注意: 1.&不是求地址运算符,而是起标志作用 2. ...
- Git同时使用不同平台代码仓库
问题描述 公司项目使用代码仓库为gitinn/gitlab等,个人项目使用github进行托管,而公司项目和个人项目设置的邮箱和用户名是不同的,而ssh的密钥对又是基于这两个信息生成的,所以此时想要同 ...
- 各种 mv power cell
1. retention register : VDDB 是 backup power,当primary power shutoff 时 backup 会继续供电,将 reg 当前状态保存下来 2. ...
- Application Constants
Application: Application类是Android框架中提供的一个类.本身程序员不需要创建它,只需要继承它既可.并在manifest中进行注册. 它给我们提供了一个一般不会被销毁的全局 ...
- P3084 [USACO13OPEN]照片Photo
题目描述 农夫约翰决定给站在一条线上的N(1 <= N <= 200,000)头奶牛制作一张全家福照片,N头奶牛编号1到N. 于是约翰拍摄了M(1 <= M <= 100,00 ...
- 【转】php容易犯错的10个地方
原文地址: http://www.toptal.com/php/10-most-common-mistakes-php-programmers-make 译文地址:http://codecloud.n ...
- 【webstorm】project目录树显示不出
问题原因:webstorm自动生成的配置文件 .idea/modules.xml损坏. 解决: 1.关掉webstorm: 2.删除该项目下的.idea文件夹(如果隐藏,请设置显示隐藏文件夹): 3. ...
- 【H5】滚动事件(jq)
$(function(){ console.log($('html,body').scrollTop()); //记录滚动高度(滚动前) }) $('html,body').scroll(funct ...
- go语言之行--golang核武器goroutine调度原理、channel详解
一.goroutine简介 goroutine是go语言中最为NB的设计,也是其魅力所在,goroutine的本质是协程,是实现并行计算的核心.goroutine使用方式非常的简单,只需使用go关键字 ...