Forum OpenACS Q&A: Installing Oracle without X server
I guess it would be possible to accomplish the x client stuff through ssh with my Apple PowerBook (OS X 10.2) but I've never used an X client with it so any advice on how this problem could be solved would be highly appreciated.
A few versions ago (probably 8.1.5 or 8.1.6) I tried to get around this. Oracle's install docs mentioned an environment variable you can set to have the install print *absolutely nothing*, taking all it's answers from a text file. This ought to work in all cases. Unfortunately, the installer still checked for the presence of an X server, even though it wasn't going to make use of it, and would stop if one wasn't found. I'll be very surprised if this has been fixed, but you might want to look at the official install docs and see if it's still documented.
Malte's right, VNC is the best way to do this. At least you are running Redhat 7.3 so you should alread have the X server installed. Until recently Redhat didn't include X in a server install because you don't need or want it on a server. Unless you're installing Oracle!
I got both vncserver on the server and VNCThing on my PBook up and and running and even the ssh tunneling working.
X Windows seems to work ok (tested with emacs and gimp), but when I run runInstaller from the console, the process just says:
[oracle@swissnet Disk1]$ Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
After 20 minutes I'm getting a bit tired of waiting...
If you search here, there have been a few threads about this recently.
C.R., I'm not quite sure. When I set DISPLAY to localhost:0.0, no x windows apps are starting. When I change 0.0 to 1.0, they all work well. However, the problem below is the same with both of them.
So, I'm not quit there yet. This time the runInstaller script gets a bit further, and probably starts ok, because the last thing I can see is:
Object Monitor Status --------------------- OKHowever, no installer window is launched, the script just sits there.
I haven't seen this problem before so hopefully it is something like what Malte suggested.
My language settings contained @ so I unset it:
[oracle@swissnet oracle]$ echo $LANG fi_FI@euro [oracle@swissnet oracle]$ unset LANG [oracle@swissnet oracle]$ echo $LANG [oracle@swissnet oracle]$It didn't change the behaviour of the install script, though.
Anyway, for RH 7.3 you need to keep three things in mind:
- Install compat libraries
- unset LANG
Have a look at http://seneca.omniscia.org/~vivake/log/archives/000041.html, this should help as well.
If you have another installation you can zip up the appropriate dirs and unzip on the new machine.
I have done this many times remotely and I have a tarball (but it is huge). Note, you need the files before you create the db's. This works well, and you don't need to worry about vnc or other unreliable things breaking in the middle. Contact me off list if you would like a copy (but it would be easier if you can find one closer).
first try to open something like an xterm or emacs or netscape in from your remote server in your local machine, in that way you can see that X through SSH works.
Yes I am verifying if you need the compat libs for Oracle 8.1.7 on Redhad 8.0. I don't know if this applies to 7.3 or not.
I have passed the acceptance.sql test, but I will install OpenACS today, fingers crossed. I'll post my results on the thread dealing with this issue. For now all I have done is to set LD_ASSUME_KERNEL=2.2.5 in every environment using oracle, and I installed the glibc stub patch, which is available with the 8.1.7 download.
Tom, I've done it on 7.3 so I'm pretty sure it will work. I'm still looking forward to your results, though.
I think you can't use Oracle's patch before you have run the installer, which, for me, seems not to get through...
I followed the Bobo's log's instructions but it didn't get me any further
I've tried this now both with VNC and ssh X forwarding and the result is the same. Other X programs seem to work fine either way.
if yes, I will suggest you to read Bruno's instruction on installing oracle in redhat 7.x, it needs a special configuration to get it working, check it here http://archive.greenpeace.org/~bruno/oracle.html .
if not, your are not still tunneling X through ssh.
Yes, I can get e.g. Gimp and Xemacs running on my OS X on both XDarwin and VNC.
I think Bruno's instructions are pretty close to those Malte's link above points to, but I'll make a new try from scratch with them, however.
I had the same problem as you do but on Debian 3.0 once upon a time, and I gave up then. However I just tried again to install Oracle 8.1.7 remotely over ssh (openssh) and it works! (Well I have managed to display the Oracle Universal Installer) ... If the installation will complete entirely remains to be seen.
Before, I logged in to my remote server with "ssh -X mailto:firstname.lastname@example.org";, i.e., as user nsadmin. I then did the initial steps from there, su:ing to oracle etc. When I tried to run runInstaller from there it failed to work (DISPLAY not set, or whatever).
But this time I logged out of the remote session altogether when it was time to run runInstaller and logged in again, this time as user oracle; "ssh -X mailto:email@example.com";. That way it "just worked".
Of course, I am on Debian but it might work on OS X too..
Try to use ssh or openssh with the -X (capital X) flag if you have it on your platform.
When you have logged in to the remote host I think you should not set DISPLAY manually - ssh and the "-X" will do that for you. If you set it incorrectly it may very well seem to work but the tunnel will be by-passed IIRC. So you might end up sending passwords in the clear.
Thanks, but it didn't help either. runInstaller doesn't give any error, it just stucks after saying that "Object Monitor Status is OK"
I have to try to find a PC with x server from school, so I can test if this is because of my computer.
Now I'm really running out of options...
I could install Oracle8.1.7 for Linux (RedHat6.2) from a far away Windows2000 box through SSH tunneling through internet with no problem at all.
I'm glad I read this post !
Other thing is that after a reboot all the PostgreSQL data seems to have disappeared, but that's another story and thread topic...