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 ( 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. simply sets same environment variables and calls “”. When I checked the, 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/ file with a text editor, found the following line:

…and modified it:

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


Please share this post Share on Facebook1Share on Google+0Share on LinkedIn0Share on Reddit0Tweet about this on Twitter

Gokhan Atil is a database architect who has hands-on experience with both RDBMS and noSQL databases (Oracle, PostgreSQL, Microsoft SQL Server, Sybase IQ, MySQL, Cassandra, MongoDB and ElasticSearch), and strong background on software development. He is certified as Oracle Certified Professional (OCP) and is awarded as Oracle ACE (in 2011) and Oracle ACE Director (in 2016) for his continuous contributions to the Oracle users community.


  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 ?




Leave Comment

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