Oracle E-business suite: virtual host names solution for R12.2

1 min read
Jul 12, 2016

You have seen me rant about Oracle' provided virtual hostname solution before. If you have not, check it out here. In summary, Oracle provided solution basically asks you to change the physical hostname of the server to the virtual one, which effects no just oracle ebs, but everything running on that server. In my earlier blog post, I outlined the steps to get virtual hostname working for 11i, R12.0 and R12.1 releases. Oracle EBS R12.2 is a special case, as it uses both 32bit and 64bit JDK. I am happy to tell you that I have a working virtualhostname solution that works with EBS R12.2. Thanks to Maris Elsins who figured this out. In brief, the solution is to compile both 32bit and 64bit version of the fakehostname library and copy them to /usr/lib and /usr/lib64 directories with same name And then set LD_PRELOAD to just with out the absolute path. This way both 32bit and 64bit libraries pick up appropriate library corresponding to their architecture. Here are the steps to implement the solution #download the source code [applmgr@apps ~]$ wget [applmgr@apps ~]$ unzip [applmgr@apps ~]$ cd fakehostname-master/ #compile 32bit library [applmgr@apps fakehostname-master]$ gcc -fPIC -m32 -shared -Wl,-soname, -ldl -o fakehostname.c #compile 64bit library [applmgr@apps fakehostname-master]$ gcc -fPIC -m64 -shared -Wl,-soname, -ldl -o fakehostname.c [applmgr@apps fakehostname-master]$ ls libfakehostname* #copy the 32bit library to /usr/lib [applmgr@apps fakehostname-master]$ sudo cp /usr/lib #copy 64bit library to /usr/lib64 with same name as 32bit library [applmgr@apps fakehostname-master]$ sudo cp /usr/lib64/ #set LD_PRELOAD to the library name. Do not use the absolute path [applmgr@apps ~]$ export LD_PRELOAD="" #test the fake hostname [applmgr@apps ~]$ hostname [applmgr@apps ~]$ export [applmgr@apps ~]$ hostname

Get Email Notifications

No Comments Yet

Let us know what you think