bug:ORA-20002: Directory creation failed

本文记录了一次使用 Oracle Database Configuration Assistant (DBCA) 静默模式安装 Oracle 18c 数据库时遇到的问题及解决方案。安装过程中出现警告 ORA-20002 目录创建失败,并提供了详细的错误日志路径。文章分析了问题原因,为磁盘空间不足导致 $ORACLE_BASE 使用软链接,并提出了重装数据库作为最终解决方案。

dbca安装18c的时候出错如下:

[oracle@yuanqu tmp]$ dbca -silent -createDatabase  -responseFile ~/tmp/dbca_nopdb.rsp
Prepare for db operation
10% complete
Copying database files
40% complete
Creating and starting Oracle instance
42% complete
46% complete
50% complete
54% complete
[WARNING] ORA-20002: Directory creation failed
ORA-06512: at "SYS.DBMS_QOPATCH", line 1461
ORA-06512: at "SYS.DBMS_QOPATCH", line 1341
ORA-06512: at line 1

60% complete
Completing Database Creation
66% complete
69% complete
70% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /u01/app/oracle/cfgtoollogs/dbca/orcl.
Database Information:
Global Database Name:orcl
System Identifier(SID):orcl
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl/orcl.log" for further details.
[oracle@yuanqu tmp]$ sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 - Production on Mon Mar 28 03:21:44 2022
Version 18.3.0.0.0

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


Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.3.0.0.0

SQL> 
 

由于/目录的磁盘容易不大,所以这台机器的$ORACLE_BASE的确用的是软链接,这个bug目前还没有修复,只能重装数据库了。

作为折中方案,待数据库安装好后,再将此数据库shutdown,将$ORACLE_BASE下的所有文件移动到其它目录,再建一个软链接指到/u01.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值