Blog Aggregator - Amardeep Sidhu

  • Tags

  • Archives

  • Meta

  •  

Archive for June, 2008

30 Jun

Transaction Basics and ACID

I began to write a post on InnoDB transactions, but there was so much background material that I decided first to write a post introducing transactions, and then one on how InnoDB implements them.  If there is good response from these two posts, I will continue with other posts on the major storage engines […]

30 Jun

Talking, Training and statistics

I added some code to my site quite a while ago that indicates the number of visitors on-line at the current moment in time. It was for a bit of fun partly and also so that I could guage the….[Read More]

Posted by Pete On 22/05/08 At 02:02 PM

30 Jun

Read only Tables or Read only users

I saw a post by Richard Foote a few days ago and made a comment on the blog entry and also made a note to chat about it here. Richards post is titled ” Read-Only Table Before 11g (A Day….[Read More]

Posted by Pete On 21/05/08 At 03:45 PM

30 Jun

Virtual Machines Are Your Friends

VirtualBox, Virtual PC, VMware Workstation and a few other software packages help you create and run multiple virtual machines on your desktop or laptop enabling you to run multiple operating systems simultaneously on a single computer.

My personal favorite is VirtualBox (recently acquired by Sun Microsystems), not only because it is freely available as Open Source […]

29 Jun

OTN forums get a new look

Just had a glimpse. OTN forums has got a new look. A bunch of new features has also been added. Some of the new things i noticed are:

That simple editor is now rich text editor. Also supports emoticons.
You can add tags to a post and it displays the tag cloud (for all the posts) on […]

29 Jun

Installing Oracle 10g on Ubuntu Hardy Heron

I’m now working in a client site. One of the differences is that each development desktop bears a smug “Ubuntu - Linux for human beings” sticker. This is the first time I have really tangled with Linux. I’m not going to risk the wrath of Verity Stob by detailing my journey into the heart of the penguin. But I thought it would be worthwhile documenting my experiences with installing Oracle 10gR2 on Ubuntu 8.04 (AKA Hardy Heron).

Ubuntu is touted as a user-friendly flavour of Linux, and certainly the graphical desktop is welcoming to people used to Windows. However things get pretty gnarly pretty quickly as soon as you want to do anything off piste. And Oracle is not supported on Ubuntu ( the supported distros are Suse, RHEL, Asialux and Oracle’s own Unbreakable Linux) things go very off piste indeed. In the absence of official documentation we’re thrown on the resources of the internet. There is lots of information out there - the sort of people who love Linux are the sort of people who love the web - but it is often written with a presumption of familiarity in Linux. In amongst the shedloads of helpful advice there are opaque sentences such as this): “to install lesstif2 you will need to use ‘Adept’ to enable the universe repository or edit /etc/apt/source.list” (unfairly quoting Todd Trichler out of context). I know I should have devoted myself to studying the Linux architecture before I started but I really needed to install Oracle now.

The first guide Google turned up was Luca Mearelli’s Installazione di Oracle 10g su Ubuntu Linux which as you might have guessed is written in Italian. I found this quite distracting as anything in that language sounds like opera.

Madame Butterfly. Act 2. Scene 1.Whilst she awaits the return of Lt Pinkerton Koko-chan amuses herself by installing Oracle on different Linux distros. She sings the aria Impostazione dei parametri del kernel.

It was the setting of kernel parameters which drew me up short. There was no explanation (and even if there had been, my Italian would not have been up to translating it). Should I be changing kernel values on the say-so of a random Google hit?

So I surfed a bit more and found Installing 11g on Ubuntu Hardy Heron by Pythian’s Augusto Bott. This article is so good that it has been ripped off by plagiarising sites. Augusto’s guide included the same changes to the same kernel parameters as Luca’s guide but it included explanations (through a link to his earlier article about installing Oracle 11g on Ubuntu Feisty Fawn). Although he wrote his guide for 11g it works just as well for 10g. There were still a few things which caused me some puzzlement and I will discuss those below.

I wasted a lot of time trying to install 64-bit Oracle (because we have 64-bit desktops). I could download it and run the Installer but I couldn’t get OUI to link the database packages. The problem is:


  INFO: /usr/bin/ld: skipping incompatible /u01/app/oracle/product/10.2.0/db_2/lib/libsql10.a when searching for -lsql10

After a couple of hours fruitlessly downloading further packages I gave up and tried 32-bit, which worked first time without a hitch.

Annotations for Augusto Bott’s guide

Step 3 applied because I was installing on the Ubuntu desktop. The gotcha is in the innocuous statement “You will have to restart your Xserver for this change to take effect.” The Ubuntu desktop environment is X so the simplest way of doing this is to logout and login again. However I only discovered this fact after I issued the following command in a terminal window:

sudo /etc/init.d/gdm stop

Theoretically this should have just dumped me out to a text-mode command prompt. It didn’t quite work that way so I had to resort to a hard reboot.

In Step 8 the wise man will take a backup of these files just in case. The suggested values seem to be common across all the install guides I read, so I trusted them :) Given that I was only installing locally I didn’t bother setting the network parameters.

Step 9 is the actual install of the software. Oracle’s Universal Installer is a Java applet, which is why we need to change the X Windows settings. If you have trouble with this step first make sure you have done Step 3 properly. However I still got the OUI-10025 message. More Googling threw up this piece of voodoo, which solved the problem:

clarkea@clarkea-desktop:~$ export DISPLAY=:0.0clarkea@clarkea-desktop:~$ sudo su - oracleYour account has expired; please contact your system administratorsu: User account has expired(Ignored)oracle@clarkea-desktop:~$ export DISPLAY=:0.0oracle@clarkea-desktop:~$ xhost +access control disabled, clients can connect from any hostoracle@clarkea-desktop:~$

If xhost or xclock works then you can run OUI.

The OUI wizard is slightly different in 10g. In particular it doesn’t prompt for ORACLE_BASE and it defaults the paths to hang off your $HOME directory. You may want to change the location to /u01/app.

For me the actual install and linking process did not take nearly as long as Augusto suggests it will. Obviously our machines are a lot more powerful than his :)

Finally, if you apply the scripts Augusto suggests you will need to change the paths to point to 10.2.0 instead of 11.1.0.

To apply the 10.2.0.4 patch you just need to repeat the process.

Further References

Augusto’s earlier article on installing on Ubuntu Feisty Fawn (which has some additional explanation of the parameter tweaking)

Oracle Release for 10gR2 on Linux note

Oracle Install Guide for RHEL4 and SLES9

29 Jun

99 problems, but Glastonbury ain’t one…

The press has been having a field day recently about Jay-Z headlining Glastonbury. I’m watching his set on TV and it’s awesome. The guy is a genious and he’s got a huge field full of people eating out of his hand.
I find it pretty funny how they make a big deal about a rap act […]

29 Jun

99 problems, but Glastonbury ain’t one…

The press has been having a field day recently about Jay-Z headlining Glastonbury. I’m watching his set on TV and it’s awesome. The guy is a genious and he’s got a huge field full of people eating out of his hand.
I find it pretty funny how they make a big deal about a rap act […]

29 Jun

Wanted…

Takes a large dose of John Woo, inject it with steroids and give it a crack habit. What do you get? Wanted.
It’s uber violence that resembles a live action cartoon, kinda like Shoot ‘Em Up! Don’t go looking for story or even sense. Just enjoy the messed up freak show.
It’s wrong on so many levels […]

29 Jun

Wanted…

Takes a large dose of John Woo, inject it with steroids and give it a crack habit. What do you get? Wanted.
It’s uber violence that resembles a live action cartoon, kinda like Shoot ‘Em Up! Don’t go looking for story or even sense. Just enjoy the messed up freak show.
It’s wrong on so many levels […]

© 2008 Blog Aggregator - Amardeep Sidhu | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4 Sudoku, based on Pinkline by GPS Gazette