Beruflich Dokumente
Kultur Dokumente
Next you will be prompted to choose which type of server installation you want. Here I prefer to
select a custom installation to select only the packages that i need.
In the next screen select all the required packages that you need, at least include:
Desktop Environment
X Server
Administration tools
Oracle 11g Preinstall package and the AsmLib driver
Once youre done with the packages, click next to begin the installation
When the operating system reboots, you will need to complete the setup as follows
You could create the grid user here. I prefer to do it later, click Forward to continue
Click Finnish
Now you will need to login using the root user. This is because the oracle user created by the
Oracle Preinstall package does not have password. Log on and set it up
Edit your hosts file hosts file with your hostname and ip.
Install your virtual box guest additions. This will not be necessary if youre on a physical server or
VmWare.
Edit the file /home/grid/.bash_profile and add the following lines to set up the grid user
environment
Edit the file /home/oracle/.bash_profile and add the following lines to set up the oracle user
environment
Shutdown your system and add the necessary disks to be used as ASM disks. In this case Ill created
3 disks
Startup you system and configure you ASM driver as the root user
Its time to setup the disks. As you saw in the previous screenshot, i have three additional disks
named (/dev/sdb, /dev/sdc, /dev/sdd ) we need to partition each disks in order to make them
available for ASM. We will use fdisk to partition them, here is the order youll have to follow.
1.
2.
3.
4.
5.
fdisk /dev/sdb
n,p,1,1,w
fdisk /dev/sdc
n,p,1,1,w
fdisk /dev/sdd
6. n,p,1,1,w
Here is how it looks like:
Lets check again our disks. You will notice that 3 more devices appear, those are the partition we
created.
At this point we will have our server ready for the grid infrastructure installation.
PART II Installing Oracle Grid Infrastructure 11.2.0.3 and ASM
In this installation we will use role separation of duties; we will proceed as the grid user whos
going to be the GRID_HOME owner
If you have downloaded all the files required, unzip the file p10404530_112030_Linux-x8664_3of7.zip as follows
After unzipping the file, you will have a folder called grid. Start the installer with ./runInstaler
Create one diskgroup called DATA with disks ( DISK1, DISK2 ) with external redundancy a shown.
Note: 11.0.3 in the path, should be 11.2.3 if you follow OFA or you can choose whatever you want
If the installer finds that something is not right with your server, it will tell you to run some fixup
scripts. Run them as root until your good
During the installation you will prompted to run two scripts a root user, run them to continue
To verify the installation just execute the command crsctl status resource t as grid user
PART III Installing the Database Software and creating the Database
Now we are going to install the database software as the oracle user. Unzip all the files required as
follows
Hosts File
The "/etc/hosts" file must contain a fully qualified name for the server.
<IP-address> <fully-qualified-machine-name> <machine-name>
For example.
127.0.0.1
localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.0.215 ol6.localdomain ol6
Set the correct hostname in the "/etc/hostname" file.
ol6.localdomain
Oracle Installation Prerequisites
Perform either the Automatic Setup or the Manual Setup to complete the basic prerequisites. The
Additional Setup is required for all installations.
Automatic Setup
If you plan to use the "oracle-rdbms-server-11gR2-preinstall" package to perform all your
prerequisite setup, follow the instructions at http://public-yum.oracle.com to setup the yum
repository for OL, then perform the following command.
# yum install oracle-rdbms-server-11gR2-preinstall
All necessary prerequisites will be performed automatically.
It is probably worth doing a full update as well, but this is not strictly speaking necessary.
# yum update
Manual Setup
If you have not used the "oracle-rdbms-server-11gR2-preinstall" package to perform all
prerequisites, you will need to manually perform the following setup tasks.
Add or amend the following lines in the "/etc/sysctl.conf" file.
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
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=1048586
Run the following command to change the current kernel parameters.
/sbin/sysctl -p
Add the following lines to the "/etc/security/limits.conf" file.
oracle
oracle
oracle
oracle
oracle
Add the following line to the "/etc/pam.d/login" file, if it does not already exist.
session
required
pam_limits.so
The following packages are listed as required, including the 32-bit version of some of the packages.
Many of the packages should be installed already.
yum install binutils -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
Alterao do hostname:
[root@hodb001vtr ~]# sysctl kernel.hostname=hodb002vtr.localdomain
kernel.hostname = hodb002vtr.localdomain
[root@hodb002vtr ~]#
Start the Oracle Universal Installer (OUI) by issuing the following command in the database
directory.
./runInstaller
Enterprise Manager Database Control URL - (orcl):
https://ol6.localdomain:1158/em
unzip p10404530_112030_Linux-x86-64_1of7.zip
unzip p10404530_112030_Linux-x86-64_2of7.zip
Youll have a folder called database lets get inside and ejecute the oracle installer with
./runInstaller
If you have toy Oracle Support credencials put them in place and continue.
As the installation goes on, you will need to execute a script as the root user
At the end of the installation you will see something like this.
Now lets create our database with dbca. As the oracle user execute the dbca
Select your template, this time were going to select general purpose
Choose the storage for your database. Select ASM and write the name of your diskgroup.
Choose to enable or not archiving and the FRA for you database. This time we are not going to set it
up. NOT RECOMMENDED IN PRODUCCTION SYSTEM.
Next review your database storage. You dont really need yo modify anything here.
At the end you will see a summary of the database you just created
Lets verify
Done! We now have a fully functional single database instance using ASM for storage over Oracle
Linux 6.