Skip to Main Content
  • Questions
  • How to set java.library.path when install oracle 18c on CentOS8.2?

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, yi.

Asked: June 24, 2020 - 1:42 am UTC

Last updated: June 24, 2020 - 5:01 am UTC

Version: oracle 18c

Viewed 10K+ times! This question is

You Asked

I was installing Oracle 18c rpm on CentOS8.2, after yum install oracle-database-ee-18c-1.0-1.x86_64.rpm and begin to configure by using "/etc/init.d/oracledb_ORCLCDB-18c configure" command, i got this java.library.path error.It says that the environment variables is invalid or missing . It seems that my java path is not available. I then install java jre-8u251-linux-x64.rpm and get nothing different.
<
[root@localhost ~]# /etc/init.d/oracledb_ORCLCDB-18c configure
Configuring Oracle Database ORCLCDB.
java.library.path 系统变量无效或缺少此变量。请为 java.library.path 设置正确值并重试操作。
[FATAL] [INS-00001] 未知的不可恢复错误
原因: 没有其他信息可用。
操作: 参阅日志或与 Oracle 技术支持服务联系
概要:
- [DBT-00006] 无法创建日志记录目录。
- [DBT-00006] 无法创建日志记录目录。

Database configuration failed.
/>
Anybody can help me?

and Connor said...

You might need to set the JAVA_HOME environment variable, such that "$JAVA_HOME/bin/java" is valid.

Its been a while since I installed XE but I also remember on some Linuxes, then even doing that did not solve the problem. In that case, I had to go into the /etc/init.d/oracledb_ORCLCDB-18c because there was an override in there for JAVA_HOME that I had to correct.

Hope this helps.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Additional packages maybe needed.

Ganesh Raja, May 31, 2021 - 6:05 am UTC

yum install libnsl.x86_64


More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database