博客
关于我
Oracle 19C的下载和安装部署(图形安装和静默安装)
阅读量:439 次
发布时间:2019-03-06

本文共 10050 字,大约阅读时间需要 33 分钟。

 

Oracle 19C的下载和安装部署(图形安装和静默安装)



 

 

Oracle Database 19c ,也就是12.2.0.3,最初在livesql.oracle.com上发布,是Oracle Database 12c和18c系列产品的最终版本,因此也是“长期支持”版本(以前称为“终端版本”)。 “长期支持”意味着Oracle Database 19c提供4年的高级支持(截止到2023年1月底)和至少3年的延长支持(截至2026年1月底)。 这个扩展的支持窗口对我们的很多客户至关重要,因为很多客户制定了相关的升级策略。有关最新的Oracle支持计划,请参阅My Oracle Support上的文档ID 742060.1。截止目前,Oracle Database 19c已经可以在Oracle数据库一体机上使用了。

 

 

Oracle12c版本的说明: 

Oracle12cR2=12.2.0.1 
Oracle18C=12.2.0.2 
Oracle19c=12.2.0.3

在MOS 官方文章:Release Schedule of Current Database Releases (文档 ID 742060.1) 上,可以清晰的看到Oracle的版本计划。

 

 

 

Oracle Database 19c 的目标

Oracle Database 19c 是大多数客户准备要升级的版本,Oracle已将 稳定性 作为此版本的核心目标。在Oracle Database 19c中,开发人员专注于修复已知问题,而不是添加新功能。 在数年内我们已有数百人和数千台服务器每天24小时的运行测试。测试包括数据库的核心、安装程序,再到组成产品的子程序及实用工具的堆栈等所有方面。目标只有一个,保证数据库的稳定性。真正的为客户带来实惠。

 

 

 

 

在Linux上安装Oracle Database 19c,需要OL7、RHEL7、SLES12及以上的更高版本。下面的内容来自官方文档 

The following Linux x86-64 kernels are supported: 
Oracle Linux 7.4 with the Unbreakable Enterprise Kernel 4: 4.1.12-112.16.7.el7uek.x86_64 or later 
Oracle Linux 7.4 with the Unbreakable Enterprise Kernel 5: 4.14.35-1818.1.6.el7uek.x86_64 or later 
Oracle Linux 7.4 with the Red Hat Compatible kernel: 3.10.0-693.5.2.0.1.el7.x86_64 or later 
Red Hat Enterprise Linux 7.4: 3.10.0-693.5.2.0.1.el7.x86_64 or later 

SUSE Linux Enterprise Server 12 SP3: 4.4.103-92.56-default or later

Oracle Enterprise Linux6和RedHat Linux6并没有出现在官方给的列表中。随着时间的推移,不只是要升级操作系统,还要升级数据库。要做好升级规划。要不后期就会有意想不到的问题。19c也就是12.2.0.3,是12c系列里面的终极版本,重在稳定!

 

 



 

一:  Oracle19C  安装包下载

下载地址如下:

选择安装包

同意

开始下载

 

二:  Oracle19C  图形化界面 安装

......

 

这里可以自动跑root脚本,不需要在单独跑root了

[root@oracle-server001 19]# /u01/app/oracle19/product/19.2.0/db_1/root.sh

 

[oracle19@oracle-server001 db_1]$ netca

[oracle19@oracle-server001 db_1]$ dbca

 



静默部分 

 

V981623-01 db 19.2.0.0.0.zip  安装包大概2.82G,解压后有6.5G ,数据库软件安装完成后有7G ,创建完数据库后有 10G 。

 

从Oracle 18c开始,在安装数据库软件时,需要把压缩文件解压到 $ORACLE_HOME 路径下,在此目录下运行 ./runInstaller

 

创建用户oracle19:

1
2
3
4
5
/usr/sbin/useradd -g oinstall -G oper,dba,asmdba,backupdba,dgdba,kmdba,racdba oracle19
passwd oracle19
mkdir -p /u19/app/oracle/product/19.2.0/dbhome_1
mkdir -p /u19/app/oraInventory
chown -R oracle19:oinstall /u19/app

创建环境变量: 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
vi .bash_profile
umask 022
export ORACLE_SID=lhr19c
export ORACLE_BASE=/u19/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.2.0/dbhome_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export NLS_DATE_FORMAT=
"YYYY-MM-DD HH24:MI:SS"
export TMP=/tmp
export TMPDIR=$TMP
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export EDITOR=vi
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORACLE_PATH=.:$ORACLE_BASE/dba_scripts/sql:$ORACLE_HOME/rdbms/admin
export SQLPATH=$ORACLE_HOME/sqlplus/admin
#export NLS_LANG=
"SIMPLIFIED CHINESE_CHINA.ZHS16GBK" 
--AL32UTF8 SELECT userenv('LANGUAGE') db_NLS_LANG FROM DUAL;
export NLS_LANG=
"AMERICAN_CHINA.ZHS16GBK"
alias sqlplus=
'rlwrap sqlplus'
alias rman=
'rlwrap rman'
alias asmcmd=
'rlwrap asmcmd'

 

安装:

1
2
cd $ORACLE_HOME
unzip /V981623-01-db-19.2.0.0.0.zip

 

响应文件:$ORACLE_HOME/install/response/db_install.rsp

 

静默安装19c:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---静默安装 19c 数据库单机软件
/u19/app/oracle/product/19.2.0/dbhome_1/runInstaller -silent  -
force 
-noconfig  -ignorePrereq \
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0 \
oracle.install.
option
=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/u19/app/oraInventory \
ORACLE_BASE=/u19/app/oracle \
ORACLE_HOME=/u19/app/oracle/product/19.2.0/dbhome_1 \
oracle.install.db.InstallEdition=EE \
oracle.install.db.OSDBA_GROUP=dba \
oracle.install.db.OSOPER_GROUP=oper \
oracle.install.db.OSBACKUPDBA_GROUP=backupdba \
oracle.install.db.OSDGDBA_GROUP=dgdba \
oracle.install.db.OSKMDBA_GROUP=kmdba \
oracle.install.db.OSRACDBA_GROUP=racdba \
oracle.install.db.rootconfig.executeRootScript=
true 
\
oracle.install.db.rootconfig.configMethod=ROOT

 

静默方式创建FS存储方式的单实例(含一个PDB):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dbca -silent -createDatabase -templateName General_Purpose.dbc -responseFile NO_VALUE \
-gdbname lhr19c  -sid lhr19c \
-createAsContainerDatabase 
TRUE 
\
-numberOfPDBs 1 \
-pdbName lhrpdb2 \
-pdbAdminPassword lhr \
-sysPassword lhr -systemPassword lhr \
-datafileDestination 
'/u01/app/oracle/oradata' 
\
-recoveryAreaDestination 
'/u01/app/oracle/flash_recovery_area' 
\
-redoLogFileSize 50 \
-storageType FS \
-characterset AL32UTF8 -nationalCharacterSet AL16UTF16 \
-sampleSchema 
true 
\
-totalMemory 2048 \
-databaseType OLTP  \
-emConfiguration NONE

 

执行过程: 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[oracle19@rac18c-n1 dbhome_1]$ /u01/u19/app/oracle/product/19.2.0/dbhome_1/runInstaller -silent  -
force 
-noconfig  -ignorePrereq \
> oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0 \
> oracle.install.
option
=INSTALL_DB_SWONLY \
> UNIX_GROUP_NAME=oinstall \
> INVENTORY_LOCATION=/u01/u19/app/oraInventory \
> ORACLE_BASE=/u01/u19/app/oracle \
> ORACLE_HOME=/u01/u19/app/oracle/product/19.2.0/dbhome_1 \
> oracle.install.db.InstallEdition=EE \
> oracle.install.db.OSDBA_GROUP=dba \
> oracle.install.db.OSOPER_GROUP=oper \
> oracle.install.db.OSBACKUPDBA_GROUP=backupdba \
> oracle.install.db.OSDGDBA_GROUP=dgdba \
> oracle.install.db.OSKMDBA_GROUP=kmdba \
> oracle.install.db.OSRACDBA_GROUP=racdba \
> oracle.install.db.rootconfig.executeRootScript=
true 
\
> oracle.install.db.rootconfig.configMethod=ROOT
Launching Oracle 
Database 
Setup Wizard...
 
Enter 
password 
for 
'root' 
user
[WARNING] [INS-13014] Target environment does 
not 
meet 
some 
optional requirements.
   
CAUSE: 
Some 
of 
the optional prerequisites are 
not 
met. See logs 
for 
details. /u01/app/oraInventory/logs/InstallActions2019-03-06_01-06-54PM/installActions2019-03-06_01-06-54PM.log
   
ACTION
: Identify the list 
of 
failed prerequisite checks 
from 
the log: /u01/app/oraInventory/logs/InstallActions2019-03-06_01-06-54PM/installActions2019-03-06_01-06-54PM.log. 
Then 
either 
from 
the log file 
or 
from 
installation manual find the appropriate configuration 
to 
meet the prerequisites 
and 
fix it manually.
The response file 
for 
this session can be found 
at
:
 
/u01/u19/app/oracle/product/19.2.0/dbhome_1/install/response/db_2019-03-06_01-06-54PM.rsp
You can find the log 
of 
this install session 
at
:
 
/u01/app/oraInventory/logs/InstallActions2019-03-06_01-06-54PM/installActions2019-03-06_01-06-54PM.log
Successfully Setup Software 
with 
warning(s).
[oracle19@rac18c-n1 dbhome_1]$ dbca -silent -createDatabase -templateName General_Purpose.dbc -responseFile NO_VALUE \
> -gdbname lhr19c  -sid lhr19c \
> -createAsContainerDatabase 
TRUE 
\
> -numberOfPDBs 1 \
> -pdbName pdb2 \
> -pdbAdminPassword lhr \
> -sysPassword lhr -systemPassword lhr \
> -datafileDestination 
'/u01/app/oracle/oradata' 
\
> -recoveryAreaDestination 
'/u01/app/oracle/flash_recovery_area' 
\
> -redoLogFileSize 50 \
> -storageType FS \
> -characterset AL32UTF8 -nationalCharacterSet AL16UTF16 \
> -sampleSchema 
true 
\
> -totalMemory 2048 \
> -databaseType OLTP  \
> -emConfiguration NONE
[WARNING] [DBT-06208] The 
'SYS' 
password 
entered does 
not 
conform 
to 
the Oracle recommended standards.
   
CAUSE: 
a. Oracle recommends that the 
password 
entered should be 
at 
least 8 characters 
in 
length, contain 
at 
least 1 uppercase 
character
, 1 
lower 
case 
character 
and 
1 digit [0-9].
b.The 
password 
entered 
is 
a keyword that Oracle does 
not 
recommend 
to 
be used 
as 
password
   
ACTION
: Specify a strong 
password
. If required refer Oracle documentation 
for 
guidelines.
[WARNING] [DBT-06208] The 
'SYSTEM' 
password 
entered does 
not 
conform 
to 
the Oracle recommended standards.
   
CAUSE: 
a. Oracle recommends that the 
password 
entered should be 
at 
least 8 characters 
in 
length, contain 
at 
least 1 uppercase 
character
, 1 
lower 
case 
character 
and 
1 digit [0-9].
b.The 
password 
entered 
is 
a keyword that Oracle does 
not 
recommend 
to 
be used 
as 
password
   
ACTION
: Specify a strong 
password
. If required refer Oracle documentation 
for 
guidelines.
[WARNING] [DBT-06208] The 
'PDBADMIN' 
password 
entered does 
not 
conform 
to 
the Oracle recommended standards.
   
CAUSE: 
a. Oracle recommends that the 
password 
entered should be 
at 
least 8 characters 
in 
length, contain 
at 
least 1 uppercase 
character
, 1 
lower 
case 
character 
and 
1 digit [0-9].
b.The 
password 
entered 
is 
a keyword that Oracle does 
not 
recommend 
to 
be used 
as 
password
   
ACTION
: Specify a strong 
password
. If required refer Oracle documentation 
for 
guidelines.
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
53% 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
:
 
/u01/u19/app/oracle/cfgtoollogs/dbca/lhr19c.
Database 
Information:
Global 
Database 
Name
:lhr19c
System Identifier(SID):lhr19c
Look 
at 
the log file 
"/u01/u19/app/oracle/cfgtoollogs/dbca/lhr19c/lhr19c1.log" 
for 
further details.

 

 据说,19c可以这样连接数据库:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[oracle19@rac18c-n1 bin]$ sqlplus system/lhr@192.168.20.10:1521,192.168.20.12:1521/lhr19c?connect_timeout=60
SQL*Plus: Release 19.0.0.0.0 - Production 
on 
Wed Mar 6 13:56:20 2019
Version 19.2.0.0.0
Copyright (c) 1982, 2018, Oracle.  
All 
rights reserved.
Last 
Successful login 
time
: Wed Mar 06 2019 13:56:05 +08:00
Connected 
to
:
Oracle 
Database 
19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.2.0.0.0
SQL> 
SQL> 
SQL> 
SQL> 
SQL> col BANNER_FULL format a80
SQL> 
select 
BANNER_FULL,CON_ID 
from 
v$version;
BANNER_FULL                                                                          CON_ID
-------------------------------------------------------------------------------- ----------
Oracle 
Database 
19c Enterprise Edition Release 19.0.0.0.0 - Production                    0
Version 19.2.0.0.0

 

 



   

    1、测试可以在CentOS 7.3环境上安装,但是在RHEL6.5上不能安装

     2、在安装过程中可以设置root.sh脚本自动执行

 

转载地址:http://gcnyz.baihongyu.com/

你可能感兴趣的文章
NHibernate学习[1]
查看>>
NHibernate异常:No persister for的解决办法
查看>>
Nhibernate的第一个实例
查看>>
NHibernate示例
查看>>
nid修改oracle11gR2数据库名
查看>>
NIFI1.21.0/NIFI1.22.0/NIFI1.24.0/NIFI1.26.0_2024-06-11最新版本安装_采用HTTP方式_搭建集群_实际操作---大数据之Nifi工作笔记0050
查看>>
NIFI1.21.0_java.net.SocketException:_Too many open files 打开的文件太多_实际操作---大数据之Nifi工作笔记0051
查看>>
NIFI1.21.0_Mysql到Mysql增量CDC同步中_日期类型_以及null数据同步处理补充---大数据之Nifi工作笔记0057
查看>>
NIFI1.21.0_Mysql到Mysql增量CDC同步中_补充_插入时如果目标表中已存在该数据则自动改为更新数据_Postgresql_Hbase也适用---大数据之Nifi工作笔记0058
查看>>
NIFI1.21.0_Mysql到Mysql增量CDC同步中_补充_更新时如果目标表中不存在记录就改为插入数据_Postgresql_Hbase也适用---大数据之Nifi工作笔记0059
查看>>
NIFI1.21.0_NIFI和hadoop蹦了_200G集群磁盘又满了_Jps看不到进程了_Unable to write in /tmp. Aborting----大数据之Nifi工作笔记0052
查看>>
NIFI1.21.0_Postgresql和Mysql同时指定库_指定多表_全量同步到Mysql数据库以及Hbase数据库中---大数据之Nifi工作笔记0060
查看>>
NIFI1.21.0最新版本安装_连接phoenix_单机版_Https登录_什么都没改换了最新版本的NIFI可以连接了_气人_实现插入数据到Hbase_实际操作---大数据之Nifi工作笔记0050
查看>>
NIFI1.21.0最新版本安装_配置使用HTTP登录_默认是用HTTPS登录的_Https登录需要输入用户名密码_HTTP不需要---大数据之Nifi工作笔记0051
查看>>
NIFI1.21.0通过Postgresql11的CDC逻辑复制槽实现_指定表多表增量同步_增删改数据分发及删除数据实时同步_通过分页解决变更记录过大问题_02----大数据之Nifi工作笔记0054
查看>>
NIFI1.21.0通过Postgresql11的CDC逻辑复制槽实现_指定表多表增量同步_增加修改实时同步_使用JsonPath及自定义Python脚本_03---大数据之Nifi工作笔记0055
查看>>
NIFI1.21.0通过Postgresql11的CDC逻辑复制槽实现_指定表多表增量同步_插入修改删除增量数据实时同步_通过分页解决变更记录过大问题_01----大数据之Nifi工作笔记0053
查看>>
NIFI1.21.0通过Postgresql11的CDC逻辑复制槽实现_指定表或全表增量同步_实现指定整库同步_或指定数据表同步配置_04---大数据之Nifi工作笔记0056
查看>>
NIFI1.23.2_最新版_性能优化通用_技巧积累_使用NIFI表达式过滤表_随时更新---大数据之Nifi工作笔记0063
查看>>
NIFI从MySql中增量同步数据_通过Mysql的binlog功能_实时同步mysql数据_根据binlog实现update数据实时同步_实际操作05---大数据之Nifi工作笔记0044
查看>>