1753524 Members
5531 Online
108795 Solutions
New Discussion юеВ

HPUX 11.0 + Oracle 9i

 
Jeanne Setterlund
New Member

HPUX 11.0 + Oracle 9i

I am porting an application from HPUX 10.2 with an Oracle 7 client to HPUX 11.0 with an Oracle 9i client. We previously used UIM/X 2.9 to build our interfaces, but we are also upgrading to UIM/X 3.0 for HPUX 11.0. I am building in 32-bit mode and use the 32-bit Oracle libraries. When I build the executable, I get no errors from the linker. However, when I try to run the program, I get an "Unable to open display" error. If I leave everything the same and point to the Oracle 7 client, the program builds and runs fine. Any suggestions?
9 REPLIES 9
Stuart Abramson_2
Honored Contributor

Re: HPUX 11.0 + Oracle 9i

Either you have not properly defined the DISPLAY parameter on the new login session, of you have an "xhost" error.

echo $DISPLAY from the script.

man xhost.
Steven E. Protter
Exalted Contributor

Re: HPUX 11.0 + Oracle 9i

Hi Jeanne,

Add this to the user .profile or the /etc/profile for the machine.

DISPLAY=$(who -m -u | awk '{print $8}'):0.0
export DISPLAY

This will make sure the DISPLAY is set right.

Hi Stuart.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeanne Setterlund
New Member

Re: HPUX 11.0 + Oracle 9i

Thanks for the reply. I am building and running the application on the same machine so I am really not crossing the network to display elsewhere. I specifically set my DISPLAY variable to rock2:0 and did an xhost+ anyway. No change in behavior. I still cannot open the display. It seems strange that changing the Oracle client version would affect whether the interface widgets can be displayed. Any other ideas?
Yogeeraj_1
Honored Contributor

Re: HPUX 11.0 + Oracle 9i

hi,

but sill, you must make sure that the DISPLAY is working correctly.

try running xclock if it is OK.

This is the first step towards finding a solution to the problem...

hth

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Jeanne Setterlund
New Member

Re: HPUX 11.0 + Oracle 9i

xclock works fine as does the app when I link in Oracle 7.
Stuart Abramson_2
Honored Contributor

Re: HPUX 11.0 + Oracle 9i

Our DBAs installed a product called "vncserver", which has something to do with displaying oracle applications. I never did understand it. maybe someone else can explain.

But they said they couldn't properly display without VNC server.
Vermeulen Peter
Frequent Advisor

Re: HPUX 11.0 + Oracle 9i

If you don't know what VNC Server is, you can compare it like a tool to remotely take over a pc or server. Something like pcAnywhere or PCduo but then FREE.
There are a few different versions out there, see for example: http://www.realvnc.com
Jeanne Setterlund
New Member

Re: HPUX 11.0 + Oracle 9i

We finally got the Display to work by setting it to the IP address rather than the fully qualified name. It was nice to see the application popup, but it does not make sense why we only have the problem when we link with Oracle 9i libraries. Thanks for all the responses. Now we will start trying to resolve why it is unable to resolve the name to the IP address.
Jeanne Setterlund
New Member

Re: HPUX 11.0 + Oracle 9i

RESOLUTION:
We ended up building one of the sample programs in the oracle precomp/demo directory. Then I ran chatr on the executable. The library libnss_dns.1 was included - although I did not find it in the Makefile or included files. This library contains the functions to resolve the dns names. I added that library to my own Makefile using the Oracle 9 libraries and my problem was resolved. Thanks to all who responded.