oracle on oracle linux

35
Oracle on Oracle Linux Peter C. Smith NBS Consulting Solutions Paper #320

Upload: beryl

Post on 13-Jan-2016

97 views

Category:

Documents


3 download

DESCRIPTION

Oracle on Oracle Linux. Peter C. Smith NBS Consulting Solutions Paper #320. Agenda. Speaker Introduction Oracle Linux background Oracle Linux installation Oracle9i Oracle11g Oracle10g Upgrade 10g to 11g What was Learned What is the IOUG? Questions?. Who is Peter?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Oracle on Oracle Linux

Oracle on Oracle Linux

Peter C. Smith

NBS Consulting Solutions

Paper #320

Page 2: Oracle on Oracle Linux

Agenda

• Speaker Introduction• Oracle Linux background• Oracle Linux installation• Oracle9i• Oracle11g• Oracle10g• Upgrade 10g to 11g• What was Learned• What is the IOUG?• Questions?

Page 3: Oracle on Oracle Linux

Who is Peter?• for those who care about education: B.Sc. Electrical

Engineer and Computing Sciences Honours B.Sc. degrees from Queens University, Kingston, Ontario

• what really counts: 20+ years RDBMS experience, 15 with Oracle. Now a consultant in Ottawa

• volunteering: Ottawa Oracle User Group. Currently the IOUG Director of Education. Scouting leader.

• Donated blood 85+ times, have you?

Page 4: Oracle on Oracle Linux

Objectives

• Tricks for configuring Oracle Linux

• Tips for Oracle11g on Oracle Linux

• Tips for Oracle10g on Oracle Linux

• Upgrading 10g to 11g

Page 5: Oracle on Oracle Linux

Oracle Enterprise Linux background

• When released in 2006, it was just Red Hat Enterprise server edition with an Oracle wrapper

• Oracle Linux 4.4 quickly became 4.5 and then 5, but it’s still RedHat in a different wrapper

Page 6: Oracle on Oracle Linux

Oracle Enterprise Linux background

Oracle Enterprise Linux Red Hat Enterprise Linux

4.4 3

4.5 4

5.0 5

Page 8: Oracle on Oracle Linux

Laptop Configuration

• 750MB RAM (should be 1GB)• Celeron 1.4GHz• XP SP2• 60GB disk drive• Used DPart to partition the disk drive into 2

x 30GB partitions

Page 9: Oracle on Oracle Linux

Oracle Linux

• Going with the latest-greatest: OEL 5• Free for download from OTN

– 5 CDs for installation– 4 CDs for Source– Only needed first 3 installation CDs

• You can get Oracle9i, 10g and 11g for Linux as well from OTN

• http://oss.oracle.com/el5/docs/RELEASE-NOTES-en.html

Page 10: Oracle on Oracle Linux

Oracle Linux Installation

• Going for dual-boot rather than VMWare• Used DPart to shrink down the XP partition• Boot from 1st disk and go• Screen shots c/o Tim Hall

– http://www.oracle-base.com/articles/linux/OracleEnterpriseLinux5Installation.php

Page 11: Oracle on Oracle Linux
Page 12: Oracle on Oracle Linux

Oracle Linux Installation

• Keyboard– Made the mistake of following Tim’s

instructions. I may be Canadian, but my keyboard is American.

– Don’t use United Kingdom (# -> £)– Changed to “U.S. English” via “System Tools”

Page 13: Oracle on Oracle Linux

Oracle Linux Installation

• Manual disk configuration– Select the new empty partition– 2GB swap space– rest goes to /

Page 14: Oracle on Oracle Linux
Page 15: Oracle on Oracle Linux

Oracle Linux Installation

• Timezone / Region– Would be nice if some year they add in Ottawa

since it is the national capital of Canada– Eastern / Montreal is the closest I’ve every

seen for any flavour of Unix/Linux

Page 16: Oracle on Oracle Linux
Page 17: Oracle on Oracle Linux

Oracle Linux Installation

• Server– Software development– Web server

Page 18: Oracle on Oracle Linux
Page 19: Oracle on Oracle Linux

Oracle Linux Installation

• GNOME environment– Can do KDE, but stuck with defaults

• Only need the disks 1-3, even for 10g and 11g requirements

Page 20: Oracle on Oracle Linux
Page 21: Oracle on Oracle Linux

Oracle Linux Installation

• SELinux– Will need to disable it later, so might as well do

it now.– The reboot will be essential, I forgot and

SQLPlus returned some really interesting library file errors.

Page 22: Oracle on Oracle Linux
Page 23: Oracle on Oracle Linux
Page 24: Oracle on Oracle Linux
Page 25: Oracle on Oracle Linux

Linux Installation

• Now have Oracle Enterprise Linux installed!!!

• Create a group, DBA• Create a user, ORACLE and assign to

DBA group

Page 26: Oracle on Oracle Linux

Oracle 9i

• Oracle 9i can’t be installed on Oracle Linux 5.

• If you want to install 9i, then you can install Oracle Linux 4 or 4.5 as pointed out in the Certification table

Page 27: Oracle on Oracle Linux

Oracle 11g

• Tim Hall to the rescue, again• http://www.oracle-base.com/articles/11g/

OracleDB11gR1InstallationOnEnterpriseLinux4and5.php

• Amazing all the kernel changes you have to make for an Oracle database to work on Oracle Linux!

Page 28: Oracle on Oracle Linux

Oracle 11g

• Kernel requirements are the same at 10g– Disks 1, 2, 3 needed– Runs fine with the 10g RPMs still installed

• Different RPMs needed than for 10g• Spoof 11g entry in /etc/oratab• xclock &

Page 29: Oracle on Oracle Linux

Oracle 11g

• Let’s check out his document and verify the configuration

Page 30: Oracle on Oracle Linux

Oracle 10g

• Once again, Tim Hall’s site is a perfect place to get the step-by-step installation information

• http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php

Page 31: Oracle on Oracle Linux

Oracle 10g

• Different RPMs needed than for 11g– Disks 1, 2, 3 needed

• Have to convince Oracle that it’s RedHat 4 not 5, just to install 10g

• TMP / TMPDIR should be a big directory• Spoof 10g entry in /etc/oratab

Page 32: Oracle on Oracle Linux

Oracle 10g

• Let’s check out his document and verify the configuration

Page 33: Oracle on Oracle Linux

Oracle 10g to 11g

• If we’ve got time, let’s play.• We’ve got a 10g database, so let’s go to

11g

Page 34: Oracle on Oracle Linux

What was learned?

• Tim Hall’s web site is a wealth of information• Linux 5 installs easily, only need disks 1 – 3• Oracle9i doesn’t work on Linux 5• Oracle 10g and 11g install easily on Linux 5• Upgraded 10g to 11g (hopefully)

Page 35: Oracle on Oracle Linux

Questions?

• Peter C. Smith• Paper #320

– Please complete your session evaluation forms

[email protected]