I decided to split this procedure in two posts.
In the first post you'll find the steps necessary to configure the linux host.
In the next post you are going to find the steps necessary to complete the procedure.
SERVER : RedHat 5.4
Oracle: 11.2.0.2
1) Minimum Hardware Requirements
Memory requirements:
– 1 GB for the database instance with Oracle Enterprise
Manager Database Control
– 1.5 GB for the ASM instance and Oracle Restart
• Disk space requirements:
– 3 GB of swap space (based on 2 GB RAM)
– 1 GB of disk space in the /tmp directory
– 3.8 GB for the Oracle Database software
– 4.5 GB for the Grid Infrastructure software
– 1.7 GB for the preconfigured database (optional)
– 3.4 gb for the fast recovery area (optional)
2) Required Rpms
As root :
cd /mnt/Rh54
cp -r packages /download/
Install createrepo :
rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm
and run
createrepo /download
chmod -R o-w+r /download
Create a repository configuration file, e.g. /etc/yum.repos.d/myrepo.repo containing :
[local]
name=My Repo
baseurl=file:///download
enabled=1
gpgcheck=0
NB: Be sure to remove all file file.repo from the directory /etc/yum.repos.d.
Install packages :
yum install compat-libstdc*
yum install elfutils-libelf*
yum install elfutils-libelf-devel*
yum install gcc*
yum install glibc*
yum install glibc-common*
yum install glibc-devel*
yum install glibc-headersglibc-headers*
yum install ksh*
yum install libaio*
yum install libgcc*
yum install libstdc*
yum install libstdc++-deve*
yum install make*
yum install sysstat*
yum install unixodbc*
yum install unixODBC-devel*
Install ASMLIb rpm
As root :
[root@oraclevm05 asmlibrh5.4]# rpm -ivh oracleasm-support-2.1.8-1.el5.x86_64.rpm
[root@oraclevm05 asmlibrh5.4]# rpm -ivh oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm
[root@OracleVm05 AsmLibRH5.4]# rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
3) Modify the kernel adding the following lines :
As root :
modify your kernel settings in /etc/sysctl.conf
kernel.shmall = 4294967296
kernel.shmmax = 68719476736
kernel.shmmni = 4096
kernel.shmmax = 68719476736
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
Reload kernel parameter : sysctl –p
4) Modify file /etc/pam.d/login file
As root :
Comments :
#session required pam_selinux.so close
by default, rhel 5 x86_64 linux is installed with selinux as "enforcing".
This is fine for the 11gR2 installation process. However, to subsequently run "sqlplus",
switch SELinux to the "Permissive" mode. See NOTE 454196.1, "./sqlplus: error on libnnz11.so: c
annot restore segment prot after reloc" for more details.
Add the following :
session required pam_limits.so
5) Create groups and users
As root :
groupadd -g 1000 oinstall
groupadd -g 1200 dba
useradd -u 1100 -g oinstall -G dba grid
useradd -u 1101 -g oinstall -G dba oracle
mkdir -p /u01/app/grid
chown -R grid:oinstall /u01
mkdir /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/
6) Change the password of oracle & grid
Come root :
passwd oracle
passwd grid
7) Modify the file .bash_profile
Oracle
ulimit -u 16384 -n 65536
export ORACLE_BASE=/u01/app/oracle
#export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
Grid
ulimit -u 16384 -n 65536
export ORACLE_BASE=/u01/app/grid
#export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export ORACLE_SID=+ASM
8) Configure asmlib
As root :
/etc/init.d/oracleasm configure
[root@OracleVm03 /]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
initializing the oracle asmlib driver: [ ok ]
Scanning the system for Oracle ASMLib disks: [ OK ]
9 ) From the ESX console add the following disks (ORADATA e ORAFRA).
11) From the linux server execute the following commands:
[root@OracleVm05 ~]# fdisk -l
Disk /dev/sda: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 10443 83778975 8e Linux LVM
Disk /dev/sdb: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
[root@OracleVm05 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 6527.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-6527, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-6527, default 6527):
Using default value 6527
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@OracleVm05 ~]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 6527.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-6527, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-6527, default 6527):
Using default value 6527
Command (m for help): w
The partition table has been altered!
calling ioctl() to re-read partition table.
12) Create ASMlib disk :
As root :
/etc/init.d/oracleasm createdisk ORADATA1 /dev/sdb1
/etc/init.d/oracleasm createdisk ORAFRA1 /dev/sdc1
[root@oraclevm05 ~]# /etc/init.d/oracleasm listdisks
ORADATA1
ORAFRA1
We have just completed the first part of the procedure. Now we are ready to start the installation of oracle and grid binary but for now that's all !
See you in my next blog.
Byeeee
No comments:
Post a Comment