eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« Oracle 19c 新特性详解:DataGuard 中ADG的自动DML重定向 | Blog首页 | ORCL 2015 - 2018 近四年的收入数据参考 »

Oracle 19c 安装的问题解决 - DBT-00006
modb.pro

在安装 Oracle 19c RPM 时,依托 18c 的安装基础,非常顺利的可以完成安装。

请先参考:

http://www.eygle.com/archives/2018/10/oracle_18c_orclcdb_install.html

我的服务器版本:

[oracle@sdb0 ~]$ cat /etc/redhat-release

CentOS release 6.8 (Final)

[oracle@sdb0 ~]$ uname -a

Linux sdb0 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

以 root 身份:

rpm -ivh oracle-database-ee-19c-1.0-1.x86_64.rpm

Preparing...
1:oracle-database-ee-19c ############ [100%]
[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

可是在运行创建数据库的脚本时,遇到错误。

以下这个脚本用于初始化一个数据库:

/etc/init.d/oracledb_ORCLCDB-19c configure

遇到的错误是 DBT-00006 :

[root@sdb2 ~]# /etc/init.d/oracledb_ORCLCDB-19c configure
Configuring Oracle Database ORCLCDB.
[FATAL] [INS-00001] Unknown irrecoverable error
CAUSE: No additional information available.
ACTION: Refer to the logs or contact Oracle Support Services
SUMMARY:
- [DBT-00006] The logging directory could not be created.
- [DBT-00006] The logging directory could not be created.

Database configuration failed.

DBT-0006 ,提示不能创建日志目录,不要被单纯的字面意思所误导。

当尝试使用任何 Oracle 的执行文件时,发现一个错误暴露出来,原来是 GLIBC 版本过低,我的版本是 2.12 ,数据库需要 2.14:

[oracle@sdb2 ~]$ sqlplus / as sysdba
sqlplus: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/oracle/product/19c/dbhome_1/lib/libclntsh.so.19.1)
sqlplus: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/oracle/product/19c/dbhome_1/lib/libclntshcore.so.19.1)
sqlplus: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/oracle/product/19c/dbhome_1/lib/libnnz19.so)

开始要将 glibc 从 2.12 更新到 2.14,需要解决相关依赖问题,至少需要:

glibc-2.14.1-6.x86_64.rpm

glibc-common-2.14.1-6.x86_64.rpm

glibc-devel-2.14.1-6.x86_64.rpm

glibc-headers-2.14.1-6.x86_64.rpm

同步更新。

为我的老服务器找到了这几个包:

ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/

wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-common-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-devel-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-headers-2.14.1-6.x86_64.rpm

然后安装:

[root@sdb2 ~]# rpm -Fhv glibc*rpm
warning: glibc-2.14.1-6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
1:glibc-common ########################################### [ 25%]
2:glibc warning: /etc/localtime created as /etc/localtime.rpmnew
########################################### [ 50%]
3:glibc-headers ########################################### [ 75%]
4:glibc-devel ########################################### [100%]

接下来再运行Oracle的DBCA或者安装程序,就一切正常了:

[root@sdb2 ~]# su - oracle
[oracle@sdb2 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Nov 28 14:36:02 2018
Version 19.2.0.0.0

Copyright (c) 1982, 2018, Oracle. All rights reserved.

ERROR:
ORA-12162: TNS:net service name is incorrectly specified

建议按照新版本数据库是,相应的更新操作系统。


历史上的今天...
    >> 2009-02-19文章:
    >> 2006-02-19文章:
           天道酬勤

By eygle on 2019-02-19 15:14 | Comments (0) | Oracle12c/11g | 3322 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com