Print Friendly, PDF & Email

 
REQUEST

When trying to deploy a 13c agent on the RedHat 7.x or OEL 7.x hosts the deployment process crashes.
It crashes both by installing through “Add Targets Manually” option in the OEM console and through .rpm package installation.

 
RELATED

 
SYMPTOMS

During an agent installation either through “Add Targets Manually” option in the Enterprise Manager Cloud Control 13c console or through a response file you have the following error:

(1) When installing through the option in the Enterprise Manager Cloud Control 13c console

Remote Prerequisite Checks
Execution of command ABD=/agent13c; cd /agent13c/ADATMP_2019-02-18_19-52-03-PM;$ABD/ADATMP_2019-02-18_19-52-03-PM/agentcore.bin -prereqChecker -silent -ignoreSysPrereqs -rscratchPath $ABD/ADATMP_2019-02-18_19-52-03-PM/prereqlogs -entryPoint oracle.sysman.top.agent_Complete -nowait -noconsole -J-DORACLE_HOSTNAME=dbpilot.net -J-DAGENT_PORT=3872 -J-DALLOW_IPADDRESS=true -J-DAGENT_BASE_DIR=/agent13c -J-DSTAGE_LOCATION=$ABD/ADATMP_2019-02-18_19-52-03-PM/prereq_stage -J-DUSER_NAME=oracle -J-DRUN_AS=null -J-DORACLE_HOME=$ABD/agent_13.3.0.0.0 on host dbpilot.net Failed
Error Message:Not Available
Exit Code :1
You may have selected the wrong platform "Linux x86-64" for this host. If so select the correct platform.
You may have specified a non writable location for the environment variable TMP/TEMP in your shell initialization script($HOME/.cshrc, $HOME/.bashrc etc). Ensure that this location is writable.

(2) When configuring through a response file

/etc/init.d/oracle-agt RESPONSE_FILE=/usr/lib/oracle/agent/agent.properties

...
EErrrroorr:  oCcocuulrdr endo tdu rcirneg aitnei ttihael iJzaavtai oVni rotfu aVlM MCaocuhlidn en.otE rrreosre:r vAe  feantoaulg he xscpeapctei ofno rh aosb joecct chuerarped. Program will exit.

The weird error message means

EErrrroorr:  oCcocuulrdr endo tdu rcirneg aitnei ttihael iJzaavtai oVni rotfu aVlM MCaocuhlidn en.otE rrreosre:r vAe  feantoaulg he xscpeapctei ofno rh aosb joecct chuerarped. Program will exit.

E r r o r    o c c u r r e d   du r i n g  i n i t i a l i z a t i o n   o f   V M  C o u l d   n ot   r e s e r v e   e n o u g h   s p a c e   f o r   o b j e ct  h e a p  
 E r r o r:    C o u l d  n o t    c r e  a t e   t h e   J a v a   V i r t u a l  M a c h i n e .  E r r o r :   A   f a t a l   e x c e p t i o n   h a s   o c   c u r r ed  

 
SOLUTION

I had this error because of the 2 following reasons : (A) Missing environment java paramters and (B) lack of read permission on the /etc/oraInst.loc file.

(A) Add the following lines on a target machine for the user under which the agent is to be deployed either into .bash_profile or .bashrc file and retry the agent deployment

export TMP=/tmp
export _JAVA_OPTIONS="-Xms256m -Xmx512m"
export EM_COMMON_JAVA_OPTIONS="-Xms256m -Xmx512m"

NOTE: After an agent is deployed successfully the lines can be removed.

(B) Grant read permission on the /etc/oraInst.loc file and retry the agent deployment

##############################################
## Confirm lack of the read permission for an agent installation user
##############################################
[oracle@dbpilot.net]$ cat /etc/oraInst.loc
cat: /etc/oraInst.loc: Permission denied

[oracle@dbpilot.net]$ ls -l /etc/oraInst.loc
-rw-r-----. 1 root root 127 Feb 27  2018 /etc/oraInst.loc


##############################################
## Grant the read permission
##############################################
[oracle@dbpilot.net]$ exit
logout
[root@dbpilot.net]# chmod 644 /etc/oraInst.loc

[root@dbpilot.net]# ls -l /etc/oraInst.loc
-rw-r--r--. 1 root root 127 Feb 27  2018 /etc/oraInst.loc

##############################################
## Confirm the permission is granted
##############################################

[root@dbpilot.net]# su - oracle

[oracle@dbpilot.net ~]$ cat /etc/oraInst.loc
inst_group=oracle
inventory_loc=/agent13c/oraInventory

 
REFERENCES

EM 12c Agent Deployment Fails With Error “Error occurred during initialization of VM” (Doc ID 1488163.1)

 
 

Version  : 13:51 03.05.2018
Updated  : 09:26 19.02.2019
Platform : RedHat 7, OEL 7
OEM      : 13.1.0.0.0, 13.3.0.0.0