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:


2 Responses to “Oracle Patch Application Assistant and DISPLAY Variable”

  1. Moussa ABDERRAHIM says:

    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 ?




Leave a Reply

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