Failed to start OSA domain when domain is created outside ORACLE_HOME

(Doc ID 2320923.1)

Last updated on NOVEMBER 09, 2017

Applies to:

Oracle Stream Analytics - Version 12.2.1.1.0 and later
Information in this document applies to any platform.

Symptoms

- Environment: Own windows machine.
- Platform: Windows 7
- Product Version: 12.2.1.3.0

When configuring osa domain other than default %ORACLE_HOME%\user_projects\domains,
then in setDomainEnv.cmd, ORACLE_HOME set wrongly and JAVA_HOME does not set.

ERROR (*)
-------
.\setDomainEnv.cmd" is not recognized as an internal or external command, operable program or batch file.
path not found

STEPS TO REPRODUCE (*)
--------------------
1. download osa 12.2.1.3.0 from edelivery
2. download java 1.8.0_131
3. install osa
java -jar fmw_12.2.1.3.0_osa.jar
4. configure domain
ORACLE_HOME\oep\common\bin\config.cmd

change the domain place to somewhere else than ORACLE_HOME\user_domains

5. start startwlevs.cmd
cd the domain you set in step 4.
startwlevs.cmd

> it does not start.

6. change setDomainEnv.cmd
add following line at line 8 before call getProperty.cmd
SET ORACLE_HOME=D://temp//osa12213

ex)
...
FOR %%i IN ("%SCRIPT_PATH%\..\..\..\..") DO SET ORACLE_HOME=%%~fsi
SET ORACLE_HOME=D://temp//osa12213

if exist "%ORACLE_HOME%\oui\bin\getProperty.cmd" (
...

7. try start startwlevs.cmd
> not it started.

PATCH LEVEL
-------------
12.2.1.3.0

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms