OEL7.6安装Oracle Database 19C(VERSION 19.3.0.0)
程序员文章站
2022-03-23 13:52:38
1.eDelivery中下载Oracle Database 19C和Oel的安装介质,并安装好操作系统2.安装Oracle环境准备工具[root@localhost ~]# yum -y install oracle-database-preinstall-19cLoaded plugins: la... ......
1.edelivery中下载oracle database 19c和oel的安装介质,并安装好操作系统
2.安装oracle环境准备工具
[root@localhost ~]# yum -y install oracle-database-preinstall-19c
loaded plugins: langpacks, ulninfo
resolving dependencies
--> running transaction check
---> package oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 will be installed
--> processing dependency: compat-libcap1 for package: oracle-database-preinstall-19c-1.0-1.el7.x86_64
--> processing dependency: ksh for package: oracle-database-preinstall-19c-1.0-1.el7.x86_64
(many more lines suppressed)
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-260.0.17.el7_6.6 glibc-headers.x86_64 0:2.17-260.0.17.el7_6.6
kernel-headers.x86_64 0:3.10.0-957.21.3.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-36.0.1.el7_6.2
dependency updated:
glibc.x86_64 0:2.17-260.0.17.el7_6.6 glibc-common.x86_64 0:2.17-260.0.17.el7_6.6
libstdc++.x86_64 0:4.8.5-36.0.1.el7_6.2
complete!
[root@localhost ~]#
3.创建目录
[root@localhost ~]# mkdir -p /u01/app/orainventory
[root@localhost ~]# mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1
[root@localhost ~]# chown -r oracle: /u01/app/orainventory
[root@localhost ~]# chown -r oracle: /u01/app/oracle
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ unzip -q /stage/db/v982063-01.zip -d /u01/app/oracle/product/19.3.0/dbhome_1/
[oracle@localhost ~]$
4.开始安装
[oracle@localhost ~]$ unzip -q /stage/db/v982063-01.zip -d /u01/app/oracle/product/19.3.0/dbhome_1/
[oracle@localhost ~]$ export oracle_home=/u01/app/oracle/product/19.3.0/dbhome_1
[oracle@localhost ~]$ export display=10.0.0.1:0.0
[oracle@localhost ~]$ /u01/app/oracle/product/19.3.0/dbhome_1/runinstaller
选择”create and configure a single instance database”
选择”server class”来获得更多高级选项...............
.[oracle@localhost ~]$ export oracle_sid=orcl
[oracle@localhost ~]$ export oracle_home=/u01/app/oracle/product/19.3.0/dbhome_1
[oracle@localhost ~]$ export oracle_base=/u01/app/oracle/
[oracle@localhost ~]$ export path=$path:$oracle_home/bin
[oracle@localhost ~]$ sqlplus / as sysdba
sql*plus: release 19.0.0.0.0 - production on thu jul 25 17:59:11 2019
version 19.3.0.0.0
copyright (c) 1982, 2019, oracle. all rights reserved.
connected to:
oracle database 19c enterprise edition release 19.0.0.0.0 - production
version 19.3.0.0.0
sql> show pdbs;
con_id con_name open mode restricted
---------- ------------------------------ ---------- ----------
2 pdb$seed read only no
3 orclpdb read write no
sql>
下一篇: 前端的一些小知识点