OL7.6上RPM方式安装Oracle 19c

设置主机名

[[email protected] ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.11 study1.localdomain study1
[[email protected] ~]# cat /etc/hostname
study1.localdomain

安装环境准备工具

其实直接rpm安装即可,它会自动解决依赖问题包括环境准备工具,但是这样oracle用户没有home目录,所以单独先安装环境准备工具

[[email protected] /]# yum -y install oracle-database-preinstall-19c
Loaded plugins: langpacks, ulninfo
ol7_UEKR5                                                                                                                                                                                        | 2.5 kB  00:00:00
ol7_latest                                                                                                                                                                                       | 2.7 kB  00:00:00
(1/4): ol7_UEKR5/x86_64/updateinfo                                                                                                                                                               |  49 kB  00:00:01
(2/4): ol7_latest/x86_64/updateinfo                                                                                                                                                              | 1.1 MB  00:00:05
(3/4): ol7_UEKR5/x86_64/primary_db                                                                                                                                                               | 5.7 MB  00:00:27
(4/4): ol7_latest/x86_64/primary_db                                                                                                                                                              |  19 MB  00:01:21
Resolving Dependencies

(many more lines supressed)

Installed:
  oracle-database-preinstall-19c.x86_64 0:1.0-1.el7                                                                                                                                                                     

Dependency Installed:
  compat-libcap1.x86_64 0:1.10-7.el7    compat-libstdc++-33.x86_64 0:3.2.3-72.el7    glibc-devel.x86_64 0:2.17-292.0.1.el7        glibc-headers.x86_64 0:2.17-292.0.1.el7    kernel-headers.x86_64 0:3.10.0-1062.el7
  ksh.x86_64 0:20120801-139.0.1.el7     libaio-devel.x86_64 0:0.3.109-13.el7         libstdc++-devel.x86_64 0:4.8.5-39.0.1.el7   

Dependency Updated:
  glibc.x86_64 0:2.17-292.0.1.el7                                     glibc-common.x86_64 0:2.17-292.0.1.el7                                     libstdc++.x86_64 0:4.8.5-39.0.1.el7                                    

Complete!
[[email protected] /]#

如果是rhel或者centos,就要手工先下载preinstall的rmp包,然后本地安装(或者添加oracle linux的yum源来yum安装)

[[email protected] /]# curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 18204  100 18204    0     0  18037      0  0:00:01  0:00:01 --:--:-- 18059
[[email protected] /]# yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

安装oracle软件

[[email protected] db]# yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm
Loaded plugins: langpacks, ulninfo
Examining oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64
Marking oracle-database-ee-19c-1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-ee-19c.x86_64 0:1.0-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================================================================
 Package                                                  Arch                                     Version                                 Repository                                                              Size
========================================================================================================================================================================================================================
Installing:
 oracle-database-ee-19c                                   x86_64                                   1.0-1                                   /oracle-database-ee-19c-1.0-1.x86_64                                   6.9 G

Transaction Summary
========================================================================================================================================================================================================================
Install  1 Package

Total size: 6.9 G
Installed size: 6.9 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : oracle-database-ee-19c-1.0-1.x86_64                                                                                                                                                                  1/1
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure
  Verifying  : oracle-database-ee-19c-1.0-1.x86_64                                                                                                                                                                  1/1 

Installed:
  oracle-database-ee-19c.x86_64 0:1.0-1                                                                                                                                                                                 

Complete!
[[email protected] db]#

oracle_home目录是/opt/oracle/product/19c/dbhome_1

创建数据库

[[email protected] dbhome_1]# /etc/init.d/oracledb_ORCLCDB-19c configure
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.

Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using ‘sqlplus / as sysdba‘ as the oracle user.
[[email protected] dbhome_1]#

这默认创建了名为ORCLCDB且pdb名ORCLPDB1的数据库,当然可以不用这么创建,用传统的dbca方式

优缺点

实际上这个方式并没有什么用,比起来静默安装也并没有显得更容易,只能安装数据库软件,并不能升级数据库,而且不能用于rac,只能用于安装单实例数据库,整个部署没有给予定制空间比如oracle_home目录如果和你公司的磁盘规划不一致呢,不过新手可能认为这样更简单,这个方式仅试试而已体会一下,实际生产中几乎是不能用的

原文地址:https://www.cnblogs.com/yongestcat/p/11419602.html

时间: 2024-10-09 17:26:02

OL7.6上RPM方式安装Oracle 19c的相关文章

OEL 7.6 RPM方式安装oracle atabase19c

准备安装介质:OS:https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.htmldatabase:https://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle19c-linux-5462157.html 安装前准备工作:[[email protected] ~]# yum -y localinstall oracle-dat

CentOS7下通过rpm方式安装MySQL及插入中文问题解决 [原创]

一 CentOS下通过rpm方式安装MySQL CentOS版本:CentOS-7 MySQL版本:MySQL-5.6.22 在网上搜了一下,Linux下安装MYSQL有三种方式: 1) 通过yum命令在线下载安装 2) 下载离线rpm安装包安装 3) 下载源码编译安装 方式1不打算用,因为我们大部分项目服务器是不能直接上Internet的,网上关于在线安装的教程很多,方式3对于只要应用MYSQL的人来说没必要多此一举. 1. 解压下载的zip包,会发现有以下几个rpm包: MySQL-clie

centos7和centos6.5环境rpm方式安装mysql5.7和mysql5.6详解

centos7和centos6.5环境rpm方式安装mysql5.7和mysql5.6详解 centos环境安装mysql5.7 其实不建议安装mysql5.7 语法和配置可能和以前的版本区别较大,多坑,慎入 1.yum方式安装(不推荐) a.安装mysql5.7 yum源 centos6: wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpmyum localinstall mysql-community-release

linux - mysql - 卸载:使用rpm方式安装的mysql

一.查看系统中是否以rpm包安装的mysql rpm -qa | grep -i mysql 结果: 备注:如果有内容则证明是使用rpm方式安装的mysql 二.卸载 使用rpm -e 命令将上个命令中包列表进行卸载 如果报错:error: Failed dependencies 只要加入--nodeps就ok了 命令格式:rpm -e 包名称 --nodeps 三.删除mysql相关的服务 chkconfig --list | grep -i mysql chkconfig --del mys

无外网情况下RPM方式安装MySQL5.6

RPM方式安装MySQL5.6 a. 检查MySQL及相关RPM包,是否安装,如果有安装,则移除(rpm –e 名称) 1 [[email protected] ~]# rpm -qa | grep -i mysql 2 mysql-libs-5.1.66-2.el6_3.x86_64 3 [[email protected] ~]# yum -y remove mysql-libs* b. 下载Linux对应的RPM包,如:CentOS6.4_64对应的RPM包,如下:这里给出我下载好的包,官

日记(2014-07-09) centos6.5 rpm方式安装gcc

由于实验室rpm包都被过滤掉,导致centos里面的yum无法下载安装软件.使用make编译各种软件源码发现没有gcc,g++.只好采用离线方式进行安装.话说yum无法下载rpm包,在下面的地址居然可以下载rpm压缩包.我这菜鸟没弄明白为什么. 在网上搜索资料安装成功,gcc和g++的rpm包下载地址http://fr2.rpmfind.net/linux/rpm2html/search.php?query=gcc-c%2B%2B&submit=Search+...&system=&

关于centos7中使用rpm方式安装mysql5.7版本后无法使用root登录的问题

最近在centos7中通过rpm方式安装了最新版本的mysql-server 5.7 (mysql57-community-release-el7-7.noarch.rpm) ,发现安装成功后无法使用root登录.百度google一番无果,最后在官方文档中找到了答案.现记录完整安装及问题解决过程,希望能帮助到其他朋友. OS版本: Linux version 3.10.0-327.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911

VirtualBox上桥接方式安装CentOS之后借助宿主上网

VirtualBox上桥接方式安装CentOS之后借助宿主上网: 修改centos文件: vi /etc/sysconfig/network-scripts/ifcfg-eth0 增加以下几项: GATEWAY=255.255.255.0 #同宿主电脑 NETMASK=192.168.1.1 #同宿主 IPADDR=191.168.1.102 #自己IP 然后 service network restart 即可连接.

无网络情况下rpm方式安装

记录一下最近遇到的坑: 在无网络的情况下,rpm方式安装linux软件,遇到报nokey的错误,下载了好几个RPM-GPG-KEY都没有用,最后使用rpm -ivh *.rpm --force --nodeps命令解决问题. 下次好好研究下rpm命令 顺便记录下搜狐强大的mirror:http://mirrors.sohu.com/