Oracle on Linux Installation for Non-DBAs Sheryl Calish Blue Heron Consulting Paper #36684.

Slides:



Advertisements
Similar presentations
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Advertisements

Presented by: Bill Ball Haroon Haider Khan Hoyt Duff.
INSTALLING LINUX.  Identify the proper Hardware  Methods for installing Linux  Determine a purpose for the Linux Machine  Linux File Systems  Linux.
Linux+ Guide to Linux Certification, Second Edition
Copyright GeneGo CONFIDENTIAL »« MetaCore TM (System requirements and installation) Systems Biology for Drug Discovery.
Module 1: Installing Windows XP Professional
ITE PC v4.0 Chapter 1 1 Operating Systems Computer Networks– 2.
2.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 2: Installing Windows Server.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
1 Web Server Administration Chapter 3 Installing the Server.
Lesson 5-Accessing Networks. Overview Introduction to Windows XP Professional. Introduction to Novell Client. Introduction to Red Hat Linux workstation.
Module 8 Linux Installation Procedures 8.1 Pre-Installation Tasks 8.2 Installing and Configuring Linux 8.3 X Server 8.4 Post Installation Configuration.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
Guide To UNIX Using Linux Third Edition
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
Overview Basic functions Features Installation: Windows host and Linux host.
Chapter 2 INSTALLTION OF LINUX DISTRIBUTION. Minimum hardware requirement 1) DVD drive: You must have a DVD drive (either DVD-ROM or DVD burner), and.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
1 Chapter Overview Preparing to Install Windows XP Professional Installing Windows XP Professional from a CD-ROM Installing Windows XP Professional over.
SUSE Linux Enterprise Desktop Administration Chapter 1 Install SUSE Linux Enterprise Desktop 10.
Linux+ Guide to Linux Certification, Third Edition
Guide To UNIX Using Linux Fourth Edition
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
1 Web Server Administration Chapter 3 Installing the Server.
Operating Systems Networking for Home and Small Businesses – Chapter 2 – Introduction To Networking.
Hands-On Microsoft Windows Server 2008
WINDOWS XP PROFESSIONAL Bilal Munir Mughal Chapter-1 1.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Tutorial 11 Installing, Updating, and Configuring Software
IBM Express Runtime Quick Start Workshop © 2007 IBM Corporation Install IBM Express Runtime Development Environment.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
Chapter 2 Installation Overview. Planning the Installation Questions: –Size of partitions –Where to put partitions –Which software packages to install.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Day 4 Understanding Hardware Partitions Linux Boot Sequence.
1 Web Server Administration Chapter 3 Installing the Server.
Module 1: Installing and Upgrading to Exchange Server 2003.
Installing Windows Vista Lesson 2. Skills Matrix Technology SkillObjective DomainObjective # Performing a Clean Installation Set up Windows Vista as the.
W2K Server Installation It is very important that before you begin to install Windows 2000 Server, you must prepare for the installation by gathering specific.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
© 2002 IBM Corporation LANDP 24 th April 2003 LANDP for Linux Web Lecture.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Module 1: Installing Microsoft Windows XP Professional.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Oracle on Oracle Linux Peter C. Smith NBS Consulting Solutions Paper #320.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
 Hardware compatibility means that software will run properly on the computer in which it is installed.  When purchasing software, look for one of these.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Linux Operations and Administration
2: Operating Systems Networking for Home & Small Business.
Class Meeting 11 ITI-481 – UNIX ADMIN Chris Uriarte, Instructor ITI-481: Unix Administration Rutgers University Internet Institute Instructor: Chris Uriarte.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
Chapter 8 Unix & Linux.
DIT314 ~ Client Operating System & Administration
Guide to Linux Installation and Administration, 2e
Installing OS.
Get Oracle 8i Running on Your Linux Server Straight Away!
Introduction of Week 3 Assignment Discussion
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Networking for Home and Small Businesses – Chapter 2
Installing Linux Redhat:
Networking for Home and Small Businesses – Chapter 2
Operating Systems Networking for Home and Small Businesses – Chapter 2 – Introduction To Networking.
Chapter 9 Linux Installation Procedures
Presentation transcript:

Oracle on Linux Installation for Non-DBAs Sheryl Calish Blue Heron Consulting Paper #36684

Introduction  Linux Installation  Oracle Installation  Most Recently:  Oracle 9i (Release 2) on SuSE 8.0 (kernel )  Past installs:  Oracle 9i on SuSE 7.2 (kernel 2.4.4)  Oracle on Red Hat 6.2 (kernel )

Linux Installation  Hardware and System Considerations  Linux distributions  How to prepare for a Linux installation

Oracle Installation  Preparation tasks  Reported installation issues  Recommendations for novices

Hardware and System Considerations  To check for compatibility with Linux and Xfree86  To ensure proper configuration of your system  To enable others to help you, if something goes wrong

Component Information Monitor: make, model, manufacture, horizontal and vertical scan rate for each resolution Video Card: make, chipset, model number and VRAM Sound Card: make, chipset, and model number

More Components Memory: amount of RAM Oracle 9i requires 512MB minimum Mouse: type, protocol and number of buttons Modem: type and port number CD-ROM: interface type SCSI Adapter: make and model number Paper #36684

Hard Disk Requirements Hard Drive(s): number, size and type Oracle 9i space requirements: 3.5 GB for database software (typical not customized installation) 1.0 GB for seed database 1.0 GB for swap space

System Information Network Information: IP address, netmask, gateway IP address, one or more server IP addresses, domain name, organization name Hostname: name of your computer Partitions: default or map of planned partitions and mount points

Which Distribution? United Linux: SuSE Linux, Turbolinux, Conectiva, The SCOgroup (Caldera) Red Hat Mandrake Debian

Certified for 9iR2 Red Hat 2.1 Advanced Server SLES7 and SLES8

Certified for 9i SLES7 SuSE 7.1 and 7.2 (&RAC) Red Hat 7.1 (&RAC) Caldera OU8 Paper #36684

Certified for SLES7 SuSE 7.1 and 7.2 Red Hat 2.1 AS Red Hat 7.1 Caldera OU8

Shrink Windows Partition Partition Magic FIPS GNU Parted YAST2

Partitioning Rationale "Partitioning Your Hard Drive": "4.3 Partitioning Hard Drives(s)" : easy/install-partitioning

Optimal Flexible Architecture Four separate mount points: /u01, /u02, /u03, /u04 each in its own partition

Two References "Tips for Installing and Configuring Oracle9i Database on Red Hat Linux", from OracleWorld 2003 "Installation Instructions for Oracle 9i Release 2 (9.2.0.x) on United Linux 1.0 based Linux systems", from

My Current Partition Table FilesystemSizeUsedAvailUse%Mounted on /dev/hda12.2G /windows/C /dev/hda2 ****Extended /dev/hda5 14M3.7M9.8M28%/boot /dev/hda6 4.0G2.1G1.9G52%/ /dev/hda7 1.0G***/swap /dev/hda8 6.0G3.8G2.2G64%/opt /dev/hda9 915M349M566M39%/home

Previous Partition Table Filesystem Size Used Avail Use% Mounted on /dev/hda6 1.9G 212M 1.5G 12% / /dev/hda11 758M 5.0M 714M 1% /home /dev/hda10 4.2G 3.7G 324M 92% /opt /dev/hda12 243M 13k 230M 1% /u02 /dev/hda13 243M 13k 230M 1% /u03 /dev/hda7 1.2G 828M 324M 72% /usr /dev/hda8 243M 41M 189M 18% /usr/local Paper #36684

Swap Space  Oracle 9i installation requires swap space to be equal to physical memory or 1GB, whichever is greater  A temporary swap file can be used

Run Linux Installer  Follow the documentation for your distribution  Check with your Linux distribution for the latest updates and patches

Prepare for Oracle Installation  Make sure appropriate software is installed  Create the database administrator groups  Create the Oracle user  Create mount points  Modify kernel parameters  Set environment variable s

Required Software rpm -q k_deflt > k_deflt rpm -q glibc > glibc rpm -q binutils > binutils

More Required Software rpm -q gilbc-locale >glibc-locale rpm -q make >make rpm -q gcc >gcc

Database Administrator Groups As root : From menu in SuSE: System -> Configuration -> Create group From command line: groupadd oinstall groupadd dba groupadd oper Paper #36684

Create Oracle user As root : From menu in SuSE: System -> Configuration -> Create user From command line: useradd oracle -g oinstall -G dba,oper

Mount Points If you did not create the partitions for these you can create the mount points now, then, As root, change ownership: chown oracle.dba /opt/oracle (or /u01) OR chown oracle.oinstall /opt/oracle chmod 775 /opt/oracle (or /u01) Run the same command for /u02, /u03, /u04

Kernel Parameters Oracle documentation warns of possible installation or production problems if the settings are insufficient SHMMAX

Environment Variables As oracle user Three sources: 1) Oracle Metalink 2) 3)orarun9i.rpm (run as root)

orarun9i.rpm can be downloaded from SuSE sets up most environment variables in /etc/profile.d/oracle.sh sets kernel parameters sets up automatic startup/shutdown of Oracle look at /usr/share/doc/packages/orarun9i/README

New orarun For SLES8 and SuSE 8.1 use: orarun SL80_81.noarch.rpm Major difference is location of : /etc/profile.d/oracle.[c]sh has been moved to: /etc/sysconfig/oracle Paper #36684

Oracle9i RHL Run Package Oracle9i RHL Run Package Available from GURU LABS Based on orarun9i.rpm from SuSE modified to work with Red Hat

Functions of RHL Run Provides: /etc/init.d/oracle /etc/profile.d/oracle/sh|chs (requires edits) /etc/sysconfig/oracle (requires edits) /usr/share/doc/oraclerun9i-1.4/INSTALL

Temporary swapfile # become the root user su - # create a 1GB file (or any value for "count") dd if=/dev/zero of=/swapfile bs=1k count= # make it a swapfile mkswap /swapfile # activate swapon /swapfile

Run Oracle Installer Oracle 9iR2 installation took 45 minutes with 512MB and 1GB of swap space Oracle 9iR1 installation took 1 hour with 512MB and 658MB of swap space Oracle installation took 15 minutes with 512MB of RAM and 1GB of swap space

Start Oracle linuxprompt:~> sqlplus /nolog SQL> connect / as sysdba SQL> startup

Install Cleanup In order to run Oracle Installer after an incomplete install From rm -rf /etc/oraInst.loc /etc/oratab (/tmp/OraInstall ?) rm -rf $ORACLE_BASE/* /tmp/ Paper #36684

Installation Issue #1 Issue: Inability to access another program after Oracle installation Solution: Add $PATH before you enter other path variables

PATH Example Instead of: PATH=/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/cc s/bin:/usr/openwin/bin:/opt/local/GNU/bin Enter: PATH=$PATH:/bin:/usr/bin:/usr/sbin:/etc:/opt/b in:/usr/ccs/bin:/usr/openwin/bin:/opt/local/GNU /bin

Installation Issue #2 Issue: Incompatibilities between some versions of Oracle and glibc or binutils of some versions of Linux Examples: Red Hat 7.0 and Oracle have a glibc issue Red Hat 7.1/7.2/7.3, AS 2.1 and Oracle 9iR1 have a binutil issue Sun JDK and SuSE 7.2 have a glibc issue

9iR2 and Red Hat 8.0 From " Error in invoking target install of makefile: /opt/oracle/product/9.2.0/ctx/lib/ins_ctx.mk " Edit $ORACLE_HOME/ctx/lib/env_ctx.mk and go to " INSO_LINK = ", add a " $(LDLIBFLAG)dl " to the line and save it.

9iR2 and SuSE 8.0 From suse-oracle mailing list " Error in invoking target ntcrontab.o of makefile: /opt/oracle/product/oracle/network/lib/ins_int_client.mk"

9iR2 on SuSE 8.0 (con't) First solution: Edit the file $ORACLE_HOME/sysliblist add the following to the existing line - L/usr/lib/gcc-lib/i486-suse-linux/ lgcc the line becomes something like this: - L/usr/lib/gcc-lib/i486-suse-linux/ lgcc -ldl -lm -lpthread Paper #36684

9iR2 on SuSE 8.0 Second solution: look in $ORACLE_HOME/install/make.log for linker errors (eg. lack of the library clntsh. (ld reports cannot find -lclntsh) go to $ORACLE_HOME/bin and run the command 'genclntsh' (as user oracle)

Installation Issue #3 Issue: Some have reported that the Installer hangs during installation Enter: unset LANG Then run Oracle Universal Installer

Installation Issue #4 Issue: Mounting and unmounting cdrom Run Oracle Universal Installer as Oracle user From Oracle user directory: mount /media/cdrom /media/cdrom/oracle9i/runInstaller unmount /media/cdrom DO NOT cd to cdrom directory to./runInstaller!

Recommendations  Decide on the version of Oracle you want to install and work backward.  Choose the version of the Linux distribution with the same binutils and glibc as the certified version.  Oracle 9iR2 reported to install smoothly on Red Hat 7.3, 8.0, SuSE 8.0, 8.1 and 8.2.  Check that your hardware and system components are supported by your chosen Linux distribution - especially for Xfree86.

Resources Oracle Metalink Linux Forum at SuSE: Listserve groups: SuSE-oracle

Contact Information Sheryl Calish Blue Heron Consulting Paper #36684