Geeky Project Part 4: Create a WebCenter VM

I'm such a Linux n00b.While finishing yesterday’s Part 3, I decided to investigate how to add a swap file to my OEL 5 VM to accomodate at least one of 11g’s resource requirements.

I may eventually have to bump up the physical memory allocated to the VM, which will completely cripple the host OS, but I’m bending the rules here a bit, i.e. I’m building a server VM on a client box with only 2 GB of RAM.

Not exactly the intended configuration for big iron software like 11g.

So, anyway, I did some digging and found a how-to for adding swap. Seems pretty easy.

To add a swap file:

Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.

At a shell prompt as root, type the following command with count being equal to the desired block size:

dd if=/dev/zero of=/swapfile bs=1024 count=65536

Setup the swap file with the command:

mkswap /swapfile

To enable the swap file immediately but not automatically at boot time:

swapon /swapfile

To enable it at boot time, edit /etc/fstab to include:

/swapfile   swap   swap   defaults   0 0

The next time the system boots, it will enable the new swap file.

Figured it would work for OEL too, which this post confirmed.

I used this installation note to determine how much swap I wanted to add, figuring about 1.5 GB should do the trick.

Ready to go, I waded in, but hit a snag on the second step.

bash: mkswap: command not found

Hmm. Seems odd, since I was using root. Back to Google.

Turns out to be an easy fix, one which I’m sure you already know. The command mkswap isn’t in the path of the user oracle, so I either had to a) login to OEL as root or b) use the full path for the command, /sbin/mkswap.

I chose the former and everything went well.

As an aside, I know this is n00b stuff, but bear with me here. The goal of this exercise is not only to produce a WebCenter VM, but also to document what it’s taken me to do that, including all the little steps. I’m hoping this will help others wade through the process, even the stuff that might be obvious.

Linux is a dark art. I’m a white belt.

Moving on, the final test for my 11g install was to open sqlplus, which seems a bit academic since I didn’t install the demo database. Still, I suppose it’s worth a go.

Again, using this guide, I followed the steps in the Appendix to set the Oracle environment variables and fire up sqlplus. The moment of truth came and I got this error ending in a nice “Permission denied” message. Ugh.

SELinux error

I thought I had disabled SELinux when I installed OEL. Guess not. A star popped up in the upper right-hand corner of the top panel, providing some detail about why I wasn’t permitted to run sqlplus.

SELinux details

Easy fix. I decided to disable SELinux, since I won’t need it, despite the ominous warning.

Disable SELinux

After a quick restart, I was able to get sqlplus going. A bit moot, considering I didn’t install the demo database, but it’s a milestone anyway. Fingers crossed that everything is cool.

So, now I’m ready for WebLogic. I’ve actually finished that process, but rather than create a giant post that mixes in a couple logical steps, I’ll save the details of that install for another post.

Find the comments.

AboutJake

a.k.a.:jkuramot

8 comments

  1. Not just WebCenter, but the whole stack. It's a good experience to go through every so often, if only for personal edification. Glad you're enjoying it.

  2. Ah, here's a “me too” post 🙂 That is; enjoying your WebCenter and VM posts. I haven't had time to try out the new version, unfortunately. (But apparently I was the first WebCenter customer in Norway, back around 2005 or so. So I've tried that – 10.1.x – install. Different stack, though.)

  3. Glad you're enjoying them. Wow, WC 10.1.x is a while back, and boy has the tech stack changed since then. Still playing foursquare?

  4. Ah, here's a “me too” post 🙂 That is; enjoying your WebCenter and VM posts. I haven't had time to try out the new version, unfortunately. (But apparently I was the first WebCenter customer in Norway, back around 2005 or so. So I've tried that – 10.1.x – install. Different stack, though.)

  5. Glad you're enjoying them. Wow, WC 10.1.x is a while back, and boy has the tech stack changed since then. Still playing foursquare?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.