Oracle Patch Application Assistant and DISPLAY Variable

I installed EBS 12.1.3 to my laptop for testing purposes, and applied some patches. Although I carefully check the readme files of the patches, I wanted to be sure that I have followed post-installation tasks, so I tried to run Oracle Patch Application Assistant (admsi.pl). I got the following error:

Yes I know that it seems a very familiar problem for XWindow applications, but because I’ve logged in directly to XWindow, I shouldn’t get this error… Anyway, I checked if the DISPLAY variable is set, and see that it’s set to “:0.0” (as expected). All applications including Oracle Database Tools was working without error.

First I searched the My Oracle Support but couldn’t find a solution (maybe I missed), so I checked the source code of the script. admsi.pl simply sets same environment variables and calls “admsi_main.pl”. When I checked the admsi_main.pl, I see that it intentionally gives an error when the DISPLAY variable is set to “:0.0”. So to fix the problem, I opened the $AD_TOP/bin/admsi_main.pl file with a text editor, found the following line:

…and modified it:

Saved the file and then tried to run admsi.pl again, and it worked:

oraclepatchassistant

Please share
  • 1
  •  
  •  
  •  
  •  
  •  

AWS Big Data Specialist. Oracle Certified Professional (OCP) for EBS R12, Oracle 10g and 11g. Co-author of "Expert Oracle Enterprise Manager 12c" book published by Apress. Awarded as Oracle ACE (in 2011) and Oracle ACE Director (in 2016) for the continuous contributions to the Oracle users community. Founding member, and vice president of Turkish Oracle User Group (TROUG). Presented at various international conferences including Oracle Open World.

2 Comments

  1. Moussa ABDERRAHIM

    Dear M. Atil,

    Thank you very much for your post, it verry helpfull. It should be raised as an SR ! If you permit, i can do it, and refer to your post ?

    Regards,

    —————–

    Moussa

Leave Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.