My Oracle Support Banner

Oraenv Reports "Cannot Locate ORACLE_HOME" (Doc ID 2414408.1)

Last updated on SEPTEMBER 26, 2021

Applies to:

Oracle Database Cloud Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Linux x86-64

Symptoms


Not able to set environment variables using . oraenv file 

Issue is reported in GRID and ORACLE homes.

oratab file shows:

#
+ASM:<GI_HOME>:N
<DB_NAME>:<DB_HOME>:N

permissions are set to:
$ ls -al /etc/oratab
-rw-rw-r-- 1 oracle oinstall 135 Jun 12 11:19 /etc/oratab

example:

. oraenv
ORACLE_SID = [oracle] ? ORACLE_SID
Cannot locate ORACLE_HOME.
ORACLE_HOME = [] ? <DB_HOME>
Oracle base remains unchanged value <ORACLE_BASE>



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.