How do I find ORACLE_HOME if HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_HOME_NAME doesn't exist? [closed]

dba.stackexchange https://dba.stackexchange.com/questions/274653

  •  07-03-2021
  •  | 
  •  

Question

I tried following these instructions, but there's no HKEY_LOCAL_MACHINE folder in regedit

Setting oracle_home didn't seem to work

C:\Users\ellie>set ORACLE_HOME = C:\App\db_home\WINDOWS.X64_193000_db_home

C:\Users\ellie>set ORACLE_SID=CDB

C:\Users\ellie>set PATH=C:\App\db_home\WINDOWS.X64_193000_db_home\bin

C:\Users\ellie>cd oracle_home
The system cannot find the path specified.

C:\Users\ellie>oracle_home
'oracle_home' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\ellie>echo %ORACLE_HOME%
%ORACLE_HOME%

I have oracle 19c

Was it helpful?

Solution

Usually registry keys for Oracle home are registered at the time of installation, not sure why registry keys are missing.When you set variables from command prompt you're setting at session level not system wide. In order to make it permanent you need to set either user wide or system wide variables.

From elevated command prompt type sysdm.cpl go to advanced tab click Environment Variables at the bottom,click new either system or user variables ,enter ORACLE_HOME and browse to ORACLE_HOME directory

enter image description here

After that you need to add bin in ORACLE_HOME directory to path,in the same pop up window look for variable path(user or system),click edit --> new browse to bin directory.

After completing above steps,open another command prompt and check for ORACLE_HOME and executable commands in bin directory(sqlplus,impdp,rman etc)

C:\echo %ORACLE_HOME% -- this variable read from either registry entries or system/user variables

C:\where sqlplus -- from path variable

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top