Sunteți pe pagina 1din 6

Oracle 10G Installations On

Red hat Linux AS 4 (Update 5 October)


Simple Steps

1.To Check Pre-req: (For 10g R2 (32-bit) on RHEL 4 x86)

Minimum Requirement 40 GB Hard disk and 512 RAM

1. Lists the following required package versions or higher:

Binutils-2.15.92.0.2-10.EL4
Compat-db-4.1.25-9
Control-center-2.8.0-12
Gcc-3.4.3-9.EL4
Gcc-c++-3.4.3-9.EL4
Glibc-2.3.4-2
Glibc-common-2.3.4-2
Gnome-libs-1.4.1.2.90-44.1
Libstdc++-3.4.3-9.EL4
Libstdc++-devel-3.4.3-9.EL4
Make-3.80-5
Pdksh-5.2.14-30
Sysstat-5.0.5-1
Xscreensaver-4.18-5.rhel4.2

Also ensure to install the libaio-0.3.96 RPM or a newer version! Otherwise the
OUI prerequisite check will fail.

Requirement doesn’t met


10g R2 on RHEL AS 4 (x86_64)
On my RHEL AS 4 x86_64 system I installed the following RPMs and dependencies:

rpm -Uvh gcc-3.4.4-2.x86_64.rpm \


gcc-c++-3.4.4-2.x86_64.rpm \
Libstdc++-devel-3.4.4-2.x86_64.rpm \
Cpp-3.4.4-2.x86_64.rpm \
Glibc-devel-2.3.4-2.13.x86_64.rpm \
Glibc-headers-2.3.4-2.13.x86_64.rpm \
Glibc-kernheaders-2.4-9.1.98.EL.x86_64.rpm

rpm -Uvh gnome-libs-1.4.1.2.90-44.1.x86_64.rpm \

Compat-db-4.1.25-9.x86_64.rpm \
ORBit-0.5.17-14.x86_64.rpm \
Gtk+-1.2.10-33.x86_64.rpm \
Imlib-1.9.13-23.x86_64.rpm \
Libpng10-1.0.16-1.x86_64.rpm \
Gdk-pixbuf-0.22.0-16.el4.x86_64.rpm \
Libungif-4.1.3-1.x86_64.rpm

rpm -Uvh sysstat-5.0.5-1.x86_64.rpm


Note that you also need to install the following i386 and x86_64 RPMs if not already
installed, otherwise you will get various different error messages.

rpm -Uvh xorg-x11-deprecated-libs-6.8.2-1.EL.13.20.i386.rpm \


Xorg-x11-libs-6.8.2-1.EL.13.20.i386.rpm \
Xorg-x11-Mesa-libGL-6.8.2-1.EL.13.20.i386.rpm \
Expat-1.95.7-4.i386.rpm \
Fontconfig-2.2.3-7.i386.rpm \
Freetype-2.1.9-1.i386.rpm \
Zlib-1.2.1.2-1.2.i386.rpm
Rpm -Uvh libaio-0.3.103-3.x86_64.rpm

rpm -Uvh compat-libstdc++-33-3.2.3-47.3.x86_64.rpm

Rpm -Uvh glibc-devel-2.3.4-2.13.i386.rpm \


Libgcc-3.4.4-2.i386.rpm

2. Checking Kernel Parameters

For Oracle10g, the following kernel parameters have to be set to values greater than
or equal to the recommended values which can be changed in the proc file system:

Go To VI Editor in Root User:

shmmax = 2147483648

shmmni = 4096

shmall = 2097152

shmseg = 10

semmsl = 250

semmns = 32000

semopm = 100

semmni = 128

file-max = 65536

ip_local_port_range = 1024 65000

rmem_default = 262144

rmem_max = 262144

wmem_default = 262144
wmem_max = 262144

Creating Oracle User Accounts

su – root

groupadd dba

groupadd oinstall

useradd -c "Oracle software owner" -g oinstall -G dba oracle

passwd oracle

Creating Oracle Directories


su – root

mkdir -p /u01/app/oracle

chown oracle.oinstall /u01/app/oracle

mkdir -p /u02/oradata/orcl

chown oracle.oinstall /u02/oradata/orcl

Setting Oracle Environments

Execute the following commands for the Bash shell which is the default shell on Red
Hat Linux (to verify your shell run: echo $SHELL):

su – oracle

export ORACLE_BASE=/u01/app/oracle

export ORACLE_SID=orcl

Installing Oracle10g

For RHEL AS 4, RHEL AS 3, and FC3 you have to execute:

su - root
mount /media/cdrom
Before you execute runInstaller, make sure the Oracle environment variables are
set, see Setting Oracle Environments. You can verify the settings by running the set
command:

su – oracle

oracle$ set

To execute runInstaller from the mounted CD, run the following command as the
oracle user:

oracle$ /mnt/cdrom/runInstaller

Using Oracle Universal Installer (OUI)

The following example shows how to install x86 Oracle 10g Release 1 Database
Software and a "General Purpose" database:
(Note, the screens and questions will look different if you install 10g R2 or 64-bit 10g
R1 database)

- Welcome Screen:

- Basic Installation: Checked it which is the default


- Oracle Home Location: Use default:

/u01/app/oracle/product/10.1.0/db_1

- Installation Type: I used the default: Enterprise Edition


- UNIX DBA Group: Use default: dba
- Create Starter Databases: I checked it for this example which is the
default
- Global Database Name: orcl

- Database password: Type in the password for SYS, SYSTEM,


SYSMAN, and DBSNMP accounts
- Advanced Installation: For this article I did not check it
Click Next

- Specify Inventory directory and credentials:

- Full path of the inventory directory: Use default:


/u01/app/oracle/oraInventory

- Specify Operating System group name: Use default: oinstall


Click Next

- A window pops up to run the orainstRoot.sh script:


-
Run the script in another terminal:
su - root
# /u01/app/oracle/oraInventory/orainstRoot.sh
Creating the Oracle inventory pointer file (/etc/oraInst.loc)
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
#
Click Continue

- Product-specific Prerequisite Checks:


Verify that all checks have been passed.

Make sure that the status of each Check is set to "Succeeded".


On RHEL AS 4 ignore the warnings for binutils, gcc, and openmotif
and proceed.

If a check failed, see Oracle10g Installation Errors on Linux.


Note that the "Retry" button doesn't work after you fixed one of the
failed checks.
Click Next

- Select Database Configuration:

I selected "General Purpose".


Click Next

- Specify Database Configuration Options:

- Global Database Name: I used "orcl".


- SID: I used "orcl".
Click Next

- Select Database Management Option:

I selected "Use Database Control for Database Management".


Click Next

- Specify Database File Storage Option:

I selected "File System".


- File System
- Specify Database file location: /u01/app/oracle/oradata/
If you want to comply with OFA, you might want to select another
mount point
than '/u01', e.g. /u02/oradata.
Click Next

- Specify Backup and Recovery Options:

For my test installation I selected "Do no enable Automated Backups".


Click Next
- Specify Database Schema Passwords:
Make sure that the password(s) don't start with a digit number!
Otherwise you
will later get error message(s) like "ORA-00988 missing or invalid
password".
Click Next

- Summary: Click Install

Updates after Running Oracle Universal Installer

For 10g R2 (10.2.0.1.0) I added the following lines to the ~oracle/.bash_profile


file:

Already We Set bash_profile: export ORACLE_BASE=/u01/app/oracle

Export ORACLE_SID=orcl

Now Update Entries Given Below:

export ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1

export PATH=$PATH:$ORACLE_HOME/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

S-ar putea să vă placă și