Trying Oracle on Linux in the Enterprise
June 21st, 2005 by Kevin Cade in
My company runs its Oracle databases on HPUX11i and Hewlett Packard hardware. Oracle and HP are certified for use with Linux, so I wanted to see how the performance of some of our databases would compare if moved to Linux. My ideal goal was for Linux to do everything HPUX does, interconnecting with our existing infrastructure seamlessly. I wondered whether we'd lose any flexibility in administration.
For my first proper dive into the world of Linux, I chose Intel processors, thereby sticking to the philosophy of not changing too many components at one time. I was curious about how new 32-bit processors would compare to our "old" 64-bit UNIX ones. I'd read that the faster processors would more than make up for being only 32-bit, especially for our environment where most of our databases aren't too large and don't really get hammered that much. Our storage area network (SAN) is integral to our systems, so I really wanted to push to get all the features of our SAN disks from HPUX working on Linux as well. Finally, there's much talk about cost savings with Linux, and I wanted to add my two cents to the wide-ranging differences people find in total cost of ownership (TCO).
I've worked on a number of different *nixes, and learning Linux really was no different. As I find when going to a new UNIX hardware platform, the changes get bigger as you get closer to the hardware layer. Formatting disk partitions and kernel modifications, for instance, reminded me of old SunOS days. These tasks went fine on Linux, but the tasks aren't automated or as easy as Solaris or HPUX. Most of my kernel changes were dynamic, and although making them isn't idiot-proof, they didn't require a recompile/reboot--unlike the equivalent HPUX kernel changes. Because Linux is open, GUI tools are available to make these tasks easier. I like Webmin especially. Also, Red Hat's Disk Druid is a great tool for partitioning disks within the installation program--I don't know why RH doesn't make it available outside installation. While taking a Red Hat course, I asked a Red Hat employee this question. His only reply was something like, "A lot of people ask for that, I don't know why it's not available". Is anyone at Red Hat listening?
Having spent recent years solely with HPUX, I was glad to find lshw. It's a bit like ioscan, which provides an easy way to see all of your hardware at a glance. In Linux, all of the information is already there, but you need to look through various files in /proc to see them.
I had goofed around with Oracle on Linux on a laptop that I nabbed from our HelpDesk. But before I could trust Linux for our live database, I needed a real server in our computer room. This would mean getting authorization to buy two small servers. My evangelism method was to show that by spending less than £10K once, we would be able to save up to 15K, per HPUX server, repeating year in and year out.
Maybe the math was compelling, or perhaps it was the fact that our IT Director already was a Linux fan, but I was allowed to buy two HP-DL360 G4 (3.4GHz) 1U servers, which we refer to as pizza boxes. This model was the latest incarnation of the same boxes our Windows guys buy, so we already had some experience and confidence in the hardware, as well ass a predefined support channel. We choose Emulex LP9000 fibre cards, as they are our standard and are recommended by our SAN software manufacturers. I also bought a few licenses for HP Instant Lights Out (ILO) software, so I could compare fully that console solution to the Guardian Service Processor on our HPUX servers.
We bought Red Hat Enterprise Server 3.0, which installed fine, but the DL360 server has a SmartArray 6i hardware array for managing the two internal disks. Red Hat didn't have drivers in the 3.0 installation CDs, but it didn't take a RH representative long to point me to the download area on the RH Web site. There I found Update 4 of RH ES 3.0 ISO images. After some downloading and a few ISO burning sessions, this RH media had the needed cciss drivers and therefore recognized the internal disks. I have no complaints with Red Hat's Anaconda installation; it looks good and works fine.
Oracle is certified on many Linux distributions. I had heard in a speech that Oracle is so keen on Linux that it even gives you Linux OS support to help you get up and running. I tested this and found it to be true. Outlined below is the exact script I ran to modify the kernel parameters and set up the environment on a new Linux box for Oracle. I found this all by Googling for the necessary information.
Overall, my main feedback on Oracle on Linux it's great. As my English colleagues like to say, "It does what it says on the tin". Once the sysadmin configures the box for Oracle, your DBA won't even know he's not running on UNIX--the systems are that similar. If you've ever seen Oracle on Windows, you know that Oracle administration is OS independent. I've seen first-hand that the following tasks/components are completely the same for Oracle on UNIX and Linux:
installation program
patching program
.profile
environment variables
initialization files
import and export commands
listener
startup and shutdown commands
backup mode (for hot or on-line backups)
I've imported copies of five of our databases to Oracle on Linux with no problems. Most of these were running on 8.1.6, so any hassles encountered actually had to do with going from Oracle 8 to Oracle 9 rather than going from UNIX to Linux. We've been running our first live database on Linux for a few months now, and performance on these new boxes is great.
With Oracle now running on Linux, I needed to prove that all our infrastructure would still work. It did us no good to put our live databases on a server that couldn't be backed up, monitored, administered and cloned easily.
For backups, we use HP's DataProtector (formerly known as OmniBack), which runs as a server on UNIX and as clients on all of our Windows and UNIX servers. HP hasn't ported DP to Linux for the server; otherwise, I'd plan to manage all our backups from Linux. But HP does offer the DP client for Linux; it can be found on the UNIX DP CD, along with all the versions of UNIX. Most tasks for backups, including installing the client on a UNIX or Windows server, can be run from the GUI, but Linux isn't integrated smoothly yet.
As with many Linux jobs, though, the command line is the answer. Running the DP installation program and answering a few questions gave me an enterprise backup product that plays nicely with my existing setup. I'd say the learning curve here is miniscule.
The next priority for Linux connecting to our existing systems was monitoring. We use an excellent program called Big Brother to monitor our servers. It's free for non-commercial use, and I recommend it to everyone. Because UNIX shell scripting is my language of choice, I love how you can write a script to monitor anything and then plug that into Big Brother to report by way of a Web page. I knew the BB client would run on Linux, because I've already seen it run a BB server. All we had to do was download the program and follow the instructions to compile it once for each new hardware platform.
As before, configuring BB for Linux was exactly the same process as for UNIX. We now use BB to monitor network access, disk space usage, LVM status, Web servers, Oracle SQLplus connection, listener status and many other custom checks.
With availability monitoring covered by Big Brother, we wanted to get our new Linux boxes monitored for processor, disk, memory and swap in regard to performance. We could use standard UNIX tools such as sar, but we already standardised on HP Openview PerfView, which runs from a GUI and creates pretty graphs. We had to upgrade this product to a newer version to get it working with a Linux client, but there were no problems to report here either. This is an example, however, of where you need to decide whether you're going for maximum costs savings and installing open source everywhere. We already were paying enterprise prices for our old UNIX environment and, at least in the beginning, we didn't want to make huge changes and take on more risks. So we're still paying similar costs to have our Linux boxes monitored and backed up, because that's the solution we already have in place here.
When it comes to SANs, Linux works, but not as easily and flexibly as HPUX. To use a new lun on HPUX, you simply need to type <ioscan> and <insf -e>. But with Linux, you either need to reboot or find the hostadapter, SCSI channel, ID number and lun number and then type:
echo "scsi add-single-device a b c d" > /proc/scsi/scsi
DISK LUN TABLE: a hostadapter 0 b SCSI channel on host adapter 0 c ID 0 d LUN 0
I guess we're still at the early adopter stage, though, so these administration functions should be automated and simplified as time goes by. I believe QLogic has a better toolset, but so far I've only tried Emulex.
The rest of the nuts-n-bolts of Linux that needs to work with UNIX--things such as NFS, NIS, DNS, SSH simple sendmail and NTP--all worked wonderfully as well. Maybe I should have been satisfied with this, but I wanted to push to get as many of my UNIX tools to work on Linux as possible.
HPUX has an admin tool called Ignite that can be used to clone a server, both its configuration and its data. Ignite works like Ghost, but I think it's even better. As for Linux, a number of both commercial and free open-source admin tools are available. So far I've used Partition Image to save an image of an entire Linux partition across our network. You then can boot the same or an identical Linux box using Partition Image and restore that partition from the network, thus building or rebuilding a server for cloning or disaster recover purposes. Does this seem complicated? It's easier than it sounds.
This is good, but because HP hasn't ported Ignite to Linux, I still am looking for something that will make an image of my sever while it's still up and running. Ignite lets me boot a server into a special kernel controlled by Ignite and then install it completely over the network. Our HP servers support PXE boot, which can be used in conjunction with Red Hat's KickStart program to do something like this. It's outside the scope of my evaluation schedule, however, to do this, so I can't give insider tips here. Other things I'm looking into after this article is published include LVM, disk mirroring and snapshotting.
So here's a summary of the various strengths HPUX and Red Hat Linux offer in our situation:
Our Cost Savings
Total cost of ownership is difficult to calculate. Is Linux hard to learn? It depends on how well system administrators learn. If they've proven themselves by transferring expertise from one OS--or even from one flavour of UNIX to another--then it's no problem at all. With a little bit of help, either a training course or some mentoring, I believe any system administrator who wants to learn Linux will succeed.
Is Linux free? There's no such thing as a free lunch. You might be able find out everything you need to know from free Internet newsgroups, such as this one, but is that the way your organization really wants to do business? I assume that in an enterprise environment, the management is willing to pay for some kind of security and accountability regarding support and maintenance. We happily pay for hardware support so we can get help with our new fibre cards when we need it. We also pay for licenses and support for our backup and network monitoring software. This may change, but the company either will pay someone else for their time to develop and maintain the product we use or they will have to pay one of us techies in the company to do this work. Still, even with this compromise, we are saving tens of thousands of pounds each year, both on purchasing and support maintenance.
Linux wins on:
Cost
Cost of the OS
Cost savings from the Intel servers vs. PA-RISC ones
Dynamic kernel changes (no reboot)
HPUX wins on:
Maturity and power of admin tools
Maturity of RAID and fibre card drivers
Repartitioning boot disk (no reboot)
Server cloning software
Easy crash-dumps and remote console access
In conclusion, my opinion is that HPUX is more mature and easier to use, but Linux provides access to enough cost savings to make the switch worthwhile. In a few years, I expect Linux to be even more attractive.
Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Subscribe now!
The Latest
Newsletter
Tech Tip Videos
- Jul-01-09
- Jun-29-09
Recently Popular
From the Magazine
July 2009, #183
News Flash: Linux Kernel 3.0 to include an on-the-go Expresso machine interface! Ok, maybe not, but Linux is definitely going mobile, from phones to e-readers. Find out more inside about Android, the Kindle 2, the Western Digital MyBook II, The Bug, and Indamixx (a portable recording studio). And if you've gone mobile and you been wanting more Emacs in your life then check out Conkeror.
To compliment the mobile we've got the stationary: parsing command line options with getopt, checking your Ruby code with metric_fu, and building a secure Squid proxy. How is this stationary you ask? What can we say? It's not. We just wanted to see if anybody actually read this part of the page :) .
All this and more, and all you have to do is get your hot sweaty hands on the latest copy of Linux Journal.



Delicious
Digg
StumbleUpon
Reddit
Facebook








Server cloning software
On June 29th, 2005 linuxles (not verified) says:
I have been using Mondo Rescue successfully for years to do live
cloning and backups of Linux Filesystems running on various types
of x86 based hardware (from homebuilt workstations to IBM Netfinity
and Dell PowerEdge Servers)...
See: http://www.mondorescue.org/about/about.html
Mondo Rescue for Dell Poweredge 2850
On August 2nd, 2006 koschi (not verified) says:
hi linuxles,
we have a debian 3.1 linux running on a dell poweredge 2850 with a hp ultrium 448 tape drive. we are thinking of using mondo rescue for disaster recovery. do you have any experience with that?
ciao,
koschi
Oracle on Linux
On June 29th, 2005 Max Leon (not verified) says:
We have been using oracle on linux for 4 years now, we develop gaming software and the volume that the system needs to handle during peak hours is hardly belivable.
When we decided to migrate from the commercial platform to linux as the host OS we experienced no less than 40% extra performance.
I have to say that fact that we handle almost 8000 bps of data transmition on the DB with a 32bit platform is quite amazing.
Oracle on Linux
On June 28th, 2005 Dan Gillgren (not verified) says:
I recently undertook a similar project, and I am amused by the similarity of my approach to yours.
We migrated from an oracle 8.1.5 on Sun Sparc Hardware (Solaris 2.6), through to 10g (10.1.0.3) on a pair of HP DL380's (primary and standby config) running RH4AS.
The DL380 gave us the power of dual Intel Xeon processors. I also migrated the data to our SAN (IPStor) during this process, and run iSCSI between the oracle server and the SAN. The physical storage on the san is an array of 10k RPM SATA disks.
We ran in to a number of issues along the way, mainly to do with the lack of support RH3 has for the latest HP servers. So the call was made to go to RH4, even though it had just been released.
The end result for us has been fantastic. The users have noticed significant improvements in the response of applications and reporting. The age of the SUN boxes was making them a real liability, and I am glad to see the end of them.
My advice is to take professional advice before making a leap in to the linux platform for critical services. Other people have done it... I have done it... and I am damn happy with the end result.
Same comparison. Opposite conclusion.
On June 24th, 2005 Nordine (not verified) says:
We also compared HP-UX to Linux for our database-server.
Instead of comparing PA-RISC-processors with Intel Xeon-processor, we chose the Itanium2 64-bit processor. This processor can be used with HP-UX and Linux.
With the same level of support (3 years, 24/7), HP-UX was slightly cheaper (total cost for 3 years was about 15K EUR).
Because of other advantages (internal HP-UX knowhow, superb online cloning with Ignite-UX, reuse of earlier software investments like MirrorUX and Glance), we have decided to use HP-UX for our database-server.
Moving all business from HP-UX to Linux
On June 23rd, 2005 Mimmus (not verified) says:
Hi,
my company is a leader in providing Italian business information to the business world.
In latest two years, we are moving ALL business from HP-UX to Linux (Red Hat). Until now, only advantages....
Comparison does not adjust
On June 23rd, 2005 Lgoulart (not verified) says:
Try compare SuSE SLES 9 with HPUX. Red Hat do not have maturity on system administration tools. SuSE is inpired on HPUX.
Re: Comparison does not adjust
On June 29th, 2005 linuxles (not verified) says:
I have to disagree with your comment. I personally do not find
SuSE's GUI tools to be more mature than RedHat's...
If you make any configuration changes with SuSE outside of Yast,
you can bet they won't be there after a reboot! Yast relies on a
database to store all of your changes, and as such you are forced
to make all of your changes through Yast. Comparatively with RedHat
I can make any and all changes via the GUI or CLI interchangeably.
Also note that opensource tools are typically distro agnostic and
usually don't rely on any one specific distro to work properly. If
you are more comfortable working with the GUI, then that's fine.
I prefer to have a choice...
i disagree
On June 30th, 2005 Anonymous (not verified) says:
we are using Suse e9 x86-64 for the oracle database that runs our relatively large public website (~6-8mi page views a day) and we also use if for our application servers and webservers. i make all my changes on the CLI and have never once used YAST (except maybe during the install).
when comparing Suse to RedHat (even though I'm not a big Novell fan...) Suse wins on cost and performance as well (for our apps anyways). plus they are quicker to the market with support for new hardware -- like x86-64.
just my $.02
Question about HPUX win #5
On June 22nd, 2005 Anonymous (not verified) says:
Easy ... remote console access
What exactly does this mean? Are you referring to BIOS access?
re: Easy remote access
On June 23rd, 2005 KevinC (not verified) says:
modern HPUX servers have GSP (Guardian Service Provider) which gives a ethernet connection to the harware at console level. Hardware errors, firmware, the lot. I've not found anything that's easier or better--in my opinion
HP Intel server there are lan
On June 23rd, 2005 Anonymous (not verified) says:
HP Intel server there are lan console too ... with ssh and web interface
Serial Console?
On June 23rd, 2005 RichardC (not verified) says:
Sounds like a hardware feature, though Linux does have serial console support which is an option. I think some BIOSes (on a particular older machine I had anyway) may have an option to output to the serial port too.
Oracle on Linux on zSeries
On June 22nd, 2005 Chris Little (not verified) says:
We moved our child welfare Oracle database backend from HPUX 11i to Linux on the mainframe over a year ago. This is an absolutely mission critical database to the Oklahoma Department of Human Services and supports over 600 concurrent users. Reliability has been unparalled for the hardware, operating system, and database. We are currently experiencing better uptime in our Linux environment than the HPUX boxes we still have in house. Our DBA's are just as happy (as happy as DBA's can be) as ever.
Linux & Oracle on small hardware
On August 19th, 2005 José Maria Oliveira Simões (not verified) says:
I'm a Linux advocate since I had an opportunity to put my hands on a machine with an operating system that could do multitasking. At that time I only could use MS-DOS and the XENIX 286 wasn’t an option (the price tag was too high). Because of the Microsoft, the hardware was required to be upgraded (more RAM, more Disk, more processor speed) due to the kernel “growing
Post new comment