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:
1 2 3 |
[appldemo@appldemo ~]$ admsi.pl Invoking Oracle Patch Application Assistant.... Please set the DISPLAY variable and re-run this script |
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:
1 |
if(($DISPLAY eq "") || ($DISPLAY eq ":0.0")){ |
…and modified it:
1 |
if($DISPLAY eq "") { |
Saved the file and then tried to run admsi.pl again, and it worked:
1
Moussa ABDERRAHIM
Gokhan Atil