Nicolas
Nicolas

Reputation: 1

Oracle Client 19c silent installation Windows: [FATAL] java.lang.NullPointerException

I want to install the 32 bit Oracle Client for the 19c Database on Windows in silent mode. When I install it in the GUI it works perfectly fine, but when I install it in silent mode i get the error: [FATAL] java.lang.NullPointerException That is everything I get

That is the Response file I'm using

#-------------------------------------------------------------------------------
# Do not change the following system generated value. 
#-------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0

#-------------------------------------------------------------------------------
# Unix group to be set for the inventory directory.
#------------------------------------------------------------------------------- 
UNIX_GROUP_NAME=
#-------------------------------------------------------------------------------
# Complete path of the Oracle Base.
#-------------------------------------------------------------------------------
ORACLE_BASE=C:\Oracle
#--------------------------------------------------------------------------------------------
# Specify the Oracle Home user.                 
#
# Use Built-in Account or specify a Windows User Account with limited privilege to 
# install and configure the Oracle Home.
#
# Set oracle.install.IsBuiltInAccount to true if you want to use BuiltIn Account.
#
# Set oracle.install.IsBuiltInAccount to false if you want to use Windows Account
# user as Oracle Home user. 
#--------------------------------------------------------------------------------------------
oracle.install.IsBuiltInAccount=false
oracle.install.OracleHomeUserName=Oracle
oracle.install.OracleHomeUserPassword=

and that is the cmd command I execute

c:\Oracle\NT_193000_client_home\setup.exe -silent -waitforcompletion -responseFile "c:\Oracle\NT_193000_client_home\install\response\client.rsp" ORACLE_BASE="c:\Oracle" oracle.install.OracleHomeUserPassword="password"

I also tried to:

The responseFile is generated by Oracle and is the same as the template response file. The only difference is that I've added the values.

Executing the same command and leave out the -silent works perfectly. The GUI opens, everything is filled out right and i just have to hit enter 4 times to install it.

I've searched for multible hours but wasn't able to find something. Help would be much appriciated! Thanks.

Upvotes: 0

Views: 4438

Answers (2)

Rick Glorie
Rick Glorie

Reputation: 1

I have resolved this by adding an inst_loc registry entry:

HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.

How to create the entry in registry :

  1. Open registry
  2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
  3. Create a new key with name Oracle (if it does not exist)
  4. Go to Oracle and then create a new String Value with name "inst_loc"
  5. For example : Give the value as "C:\Program Files (x86)\Oracle\Inventory"

Source: https://forums.oracle.com/ords/apexds/post/hkey-local-machine-software-oracle-does-not-contain-entry-f-8712

Upvotes: 0

Wernfried Domscheit
Wernfried Domscheit

Reputation: 59436

When I developed the installation package (version 12.1) I faced several issues:

  • Setup must run with an Administrator account
  • ORACLE_BASE must exist

I set this environment variable:

SET JAVA_TOOL_OPTIONS=-Duser.language=en

Remove these Registry key:

  • HKLM\SOFTWARE\Wow6432Node\ORACLE
  • HKLM\SOFTWARE\ORACLE (for 64-bit Client)

Delete these files/folders:

  • %ProgramFiles(x86)%\Oracle\Inventory\oui
  • %ProgramFiles(x86)%\Oracle\Inventory\ContentsXML
  • %ProgramFiles%\Oracle\Inventory\oui (for 64-bit Client)
  • %ProgramFiles%\Oracle\Inventory\ContentsXML (for 64-bit Client)
  • %TEMP%\deinstall*
  • %TEMP%\OraInstall*
  • %TEMP%\CVU*

Maybe comment oracle.install.OracleHomeUserPassword in response file if you specify it as command line parameter. Remove the quotes ", folder name must not contain any space characters anyway. Put the setup.exe to a different folder than the installation folder.

Upvotes: 0

Related Questions