Wednesday, January 14, 2009

Installing Oracle 10R2 on Fedora 10 32bit on a VM

Why Did I Post This
I could not find a good guide online. I wanted to setup a fedora box for playing and this looked like a good first step.

General Information
I did this on a VM so there are a few things that I have listed here that may help people install vmware tools.

General Information
Fedora 10 32bit in a VM
  • Only installed the OS. No extra items like office productivity
Oracle user groups are dba,oper,asmadmin oracle, Oracle
  • I used a capitol "O" for kicks
I choose to install to /oracle
  • I have never been given a good reason for this u01 junk
VMWARE TOOLS
Initial Install
I installed the RPM version with a simple rpm -i XXXXXXXXXXX.rpm on the virtual cdrom

Needed Dependancy
yum install gcc kernel-devel

This allowed me to compile the vmware tools. It will also allow the installation of Oracle. Of course the command to finish the install was /usr/bin/vmware-config-tools.pl


Needed Dependancies for the Oracle Install
Oracle Specific (Page 33 - Oracle Database installation guide)
yum install binutills compat-db compat-libstdc++ control-center gcc-c++ libstc++ glibc-common libstc++-devel gnome-libs make pdksh sysstat xscreensaver setarch

Others that I found and think I needed.
yum install libaio-devel elfutils-libelf-devel unixODBC unixODBC-devel compat-libstdc++-33
Some of these gave me errors for not having them installed. Others I found a reference to when looking at something else.


Edited /etc/sysctl.conf Kernel Parameters
# Put here as part of the oracle pre-install pg41+ of the Oracle Database Installation Guide
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144

Security Limits
Edited /etc/security/limits.conf Pg 43
## Put here as part of the Oracle Database pre-install
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536

Edit Pam (Failed-so I commented out)
Edited /etc/pam.d/login pg 43 (Breaks x. Commented out)
# Part of the Oracle Pre-install
#session required /lib/security/pam_limits.so
#session required pam_limits.so

As I use the system I may find out why Oracle thinks that this is needed. I installed without it.

SELINUX Disable (Not recommended, but Limits frustations)
Edited /etc/selinux/config Because it gets in the way (Requires a reboot)
SELINUX=disabled

To fool the os version check
Edited /etc/redhat-release (this so I can use the normal install)
redhat release 4

Create the folders and set the permissions
mkdir /oracle
mkdir /oracle/product
mkdir /oracle/product/10.2.0
mkdir /oracle/product/10.2.0/db_1
chown -R Oracle:oinstall /oracle
chown -R 775 /oracle
xhost +localhost
chmod -R g+w /oracle

Not so good oracle installation instructions
Go to the dvds you have/downloaded/etc
You need to get into the database folder
As Oracle run the runInstaller by cd to the directory and running ./runInstaller
Install, hopefully error free


After Install

Edit /etc/redhat-release
Fedora release 10 (Cambridge)

Error Documented
================================================================================
Exception String: Error in invoking target 'all_no_orcl ihsodbc' of makefile '/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/oracle/oraInventory/logs/installActions2009-01-14_09-01-47AM.log' for details.
===============================================================================
Solution yum install compat-libstdc++-33

Creating a database issues
If you create the databases with lower case you will have to create a simbolic link for some things(like EM) to run properly.

No comments: