Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction
y
Oracle 9i on SuSE 7.2 (kernel 2.4.4) Oracle 8.1.7 on Red Hat 6.2 (kernel 2.2.16)
Linux Installation
Hardware and System Considerations Linux distributions How to prepare for a Linux installation
Oracle Installation
y
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
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 9i
SLES7 SuSE 7.1 and 7.2 (&RAC) Red Hat 7.1 (&RAC) Caldera OU8
Paper #36684
Partitioning Rationale
"Partitioning Your Hard Drive":
www.newriders.com/debian/html/noframes/node15
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 www.suse.com/oracle
3.7M 9.8M
Paper #36684
Swap Space
y
Oracle 9i installation requires swap space to be equal to physical memory or 1GB, whichever is greater A temporary swap file can be used
Follow the documentation for your distribution Check with your Linux distribution for the latest updates and patches
Make sure appropriate software is installed Create the database administrator groups Create the Oracle user Create mount points Modify kernel parameters Set environment variables
Required Software
rpm -q k_deflt > k_deflt-2.4.18-58 rpm -q glibc > glibc-2.2.5-158 rpm -q binutils > binutils-2.11.920.10-89
Mount Points
f 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
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-1.4-2-SL80_81.noarch.rpm Major difference is location of : /etc/profile.d/oracle.[c]sh has been moved to: /etc/sysconfig/oracle
Paper #36684
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=1048576 # make it a swapfile mkswap /swapfile # activate swapon /swapfile
Start Oracle
linuxprompt:~> sqlplus /nolog SQL> connect / as sysdba SQL> startup
Install Cleanup
n order to run Oracle Installer after an incomplete install From www.puschitz.comrm rm -rf /etc/oraInst.loc /etc/oratab (/tmp/OraInstall ?) rm -rf $ORACLE_BASE/* /tmp/<other_Oracle_owned_files>
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/ccs/bin:/usr/openwin/ bin:/opt/local/GNU/bin Enter: PATH=$PATH:/bin:/usr/bin:/usr/sbin :/etc:/opt/bin:/usr/ccs/bin:/usr/o penwin/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 8.1.7 have a glibc issue Red Hat 7.1/7.2/7.3, AS 2.1 and Oracle 9iR1 have a binutil issue Sun JDK 1.3.1 and SuSE 7.2 have a glibc issue
Edit $ORACLE_HOME/ctx/lib/env_ctx.mk and go to "INSO_LINK =", add a "$(LDLIBFLAG)dl" to the line and save it.
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
Recommendations
y
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 www.oracle.com/forums SuSE: www.suse.com/oracle Listserve groups:
SuSE-oracle oracle-on-linux@yahoogroups.com