firewall - ziggomembers.ziggo.nl/maurits.groenenberg/install oracle linux... · web...

89
Installeer Oracle Linux 6 Download the latest iso with oracle linux from oracle https://edelivery.oracle.com/linux (create a free account or login with existing account) Burn the iso to a DVD with the Linux 6 OS Boot your server from the DVD with the Linux 6 OS (if necessary, first adjust the BIOS boot options in your server/desktop/laptop to search for an OS on the DVD first before starting from HardDisk) Install Oracle Enterprise Linux 6 in graphical mode. Go for a fresh install , where everything on your hard disk will be deleted. Make the appropriate choices for your installation, choose for a database server when you have to decide what type of linux installation you want. For testing / training purposes, I prefer a server with some extra’s. Additional features such as X-Windows are necessary for installations of Oracle Software, but you might want to install a graphical desktop, system configuration and network tools. In case of serious server installations, where security is important, install only the minimum required to install a database server. For ASM, one thing is important: Before the installation starts and you choose the partition layout, make sure that you choose to make adjustements to the partition layout. Adjust the partition layout and create an empty partition without a filesystem reserved for later use with ASM

Upload: buianh

Post on 28-Apr-2018

236 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Installeer Oracle Linux 6

Download the latest iso with oracle linux from oracle

https://edelivery.oracle.com/linux

(create a free account or login with existing account)

Burn the iso to a DVD with the Linux 6 OS Boot your server from the DVD with the Linux 6 OS

(if necessary, first adjust the BIOS boot options in your server/desktop/laptop to search for an OS on the DVD first before starting from HardDisk)

Install Oracle Enterprise Linux 6 in graphical mode. Go for a fresh install , where everything on your hard disk will be deleted. Make the appropriate choices for your installation, choose for a database server

when you have to decide what type of linux installation you want. For testing / training purposes, I prefer a server with some extra’s. Additional features such as X-Windows are necessary for installations of Oracle Software, but you might want to install a graphical desktop, system configuration and network tools. In case of serious server installations, where security is important, install only the minimum required to install a database server.

For ASM, one thing is important:

Before the installation starts and you choose the partition layout, make sure that you choose to make adjustements to the partition layout. Adjust the partition layout and create an empty partition without a filesystem reserved for later use with ASM

1. Single disk

Adjust the partition layout, let’s assume that you have 1 disk and that the linux installer reserved 512 MB for a boot partition, 40 GB for a root partition and the rest for the home partition. Edit the home partition and shrink it to a lower value, let’s assume 100 GB less.

Default the installer will create a boot partition that we want to leave unchanged. Then for the rest, it will create a physical volume and a logical voume using the physical volume. Carefully write down the suggested configuration parameters and destroy both the physical and the logical volume. Now we create a new physical volume that leaves a part of the disk free, let’s say we leave 100GB free.

Page 2: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Create the physical volume, then create the logical volume root the same size as it was before using the physical volume created. Create a logical volume home using the rest of the space, which is 100 GB less then before.

(you might want to create extra filesystems as /u01 for oracle, /u02 for orage agent or any other filesystem like /var separate from /root)

We now have for our disk /dev/sda

/dev/sda1 for boot

/dev/sda2 for the lvm on /dev/mapper

In the lvm we have /root/ /home and other filesystems you might want to create, as /u01 for oracle

And 100 GB free, unused diskspace for later use for ASM

2. Two disks, one reserved for ASM

With two disk it’s even more easy. Install the linux 6 OS the same way as above, but for the partition layout, adjust it so that one disk will be used for the /boot and the physical and logical volume holding /root, /home and other filesystems you want to create

Make sure the first disk is used for the OS and oracle software, and the second disk is completely free and unused, reserved for later use with ASM

3. Three disks or more, two or more reserved for ASM

With more then two disks available , more choice is possible. If you have two identical disks you can leave them free and unused for later use with asm and reserve them for normal redundancy, where ASM will use the two disk to create a high available disk configuration where everything is mirrored on both disks.

After installation , reboot

Create an oracle user and minimal users for oinstall and dba group, oinstall primary group for oracle

Page 3: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Depending on security considerations , you might want to create other users as “grid” for asm, or operators belong to the dba or the asmdba group.

The most simple setup for training and testing is one oracle user, group oinstall and dba for everything

Login as root

Configure yum

# cd /etc/yum.repos.d# wget http://public-yum.oracle.com/public-yum-ol6.repo

=============================================================================

yum repolist

yum update

Transaction Summary

===========================================================================================================================================================================================================================================

Install 35 Package(s)

Upgrade 548 Package(s)

Total download size: 510 M

Is this ok [y/N]:

warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY

Retrieving key from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6

Importing GPG key 0xEC551F03:

Userid: "Oracle OSS group (Open Source Software group) <[email protected]>"

Page 4: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

From : http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6

Is this ok [y/N]:

Install some extra packages

--# yum install flash-plugin

--Needed for enterprise manager performance view

--# yum install oracle-validated

--Prerequisite for oracle database

#yum install oracleasm-support

Needed for oracle asm lib configuration

[root@freya ~]# /usr/sbin/groupadd oinstall

[root@freya ~]# /usr/sbin/groupadd -g 502 dba

[root@freya ~]# /usr/sbin/groupadd -g 503 oper

[root@freya ~]# /usr/sbin/groupadd -g 504 asmadmin

[root@freya ~]# /usr/sbin/groupadd -g 506 asmdba

[root@freya ~]# /usr/sbin/groupadd -g 505 asmoper

[root@freya ~]# /usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba oracle

[root@freya ~]# passwd oracle

# rpm -ivh oracleasmlib-2.0.4-1.el6.i686.rpm

Preparing... ########################################### [100%]

1:oracleasmlib ########################################### [100%]

We have two choices for asm:

Page 5: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

4. Use asmlib5. Not use asmlib but configure udev rules

With asm, the disk must be accessed by oracle from the start and not by root. This can be accomplished by the solutions above. We will focus on solution 1 (easiest) but you might want to use the other option with udev as well

You can search the internet on configuring udev rules in /etc/udev.d/rules

download oracleasmlib.i686 :

http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html

installer de rpm:

root@freya Downloads]# rpm -ivh oracleasmlib-2.0.4-1.el6.i686.rpm

Preparing... ########################################### [100%]

1:oracleasmlib ########################################### [100%]

configure

[root@freya Downloads]# /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.

Page 6: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Default user to own the driver interface []: oracle

Default group to own the driver interface []: oinstall

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 ]

Maak een paritie aan op de harddisk

Wij hebben /dev/sda unformatted

/dev/sdb linux 6 schijf

[root@freya oracle]# parted /dev/sdb

GNU Parted 2.1

Using /dev/sdb

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print

Model: ATA WDC WD3200AAJB-0 (scsi)

Disk /dev/sdb: 320GB

Sector size (logical/physical): 512B/512B

Partition Table: msdos

Number Start End Size Type File system Flags

1 1049kB 525MB 524MB primary ext4 boot

2 525MB 320GB 320GB primary lvm

Page 7: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

(parted) quit

[root@freya oracle]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/vg_freya00-lv_root 50G 3.1G 44G 7% /

tmpfs 1011M 308K 1011M 1% /dev/shm

/dev/sdb1 485M 95M 365M 21% /boot

/dev/mapper/vg_freya00-lv_home 97G 211M 92G 1% /home

/dev/mapper/vg_freya00-lv_u01 117G 188M 111G 1% /u01

/dev/mapper/vg_freya00-lv_var 24G 2.6G 20G 12% /var

[root@freya oracle]# pvdisplay

--- Physical volume ---

PV Name /dev/sdb2

VG Name vg_freya00

PV Size 297.60 GiB / not usable 4.00 MiB

Allocatable yes (but full)

PE Size 4.00 MiB

Total PE 76185

Free PE 0

Allocated PE 76185

PV UUID wrBLL6-2pYl-7QN2-d93y-DTWS-cpg1-MCBg7K

[root@freya oracle]# parted /dev/sda

GNU Parted 2.1

Page 8: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Using /dev/sda

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print

Model: ATA WDC WD3000JB-00K (scsi)

Disk /dev/sda: 300GB

Sector size (logical/physical): 512B/512B

Partition Table: msdos

Number Start End Size Type File system Flags

(parted) mklabel

New disk label type? gpt

Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to

continue?

Yes/No? y

(parted) mkpart

Partition name? []? asmpart

File system type? [ext2]?

Start? 1

End? 300g

(parted) print

Model: ATA WDC WD3000JB-00K (scsi)

Disk /dev/sda: 300GB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Page 9: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Number Start End Size File system Name Flags

1 1049kB 300GB 300GB asmpart

(parted) quit

#

Firewall

To turn off the firewall do the following.

[root@freya conf.d]# system-config-firewall-tui

system-config-firewall

[root@freya oracle]# system-config-firewall-tui

system-config-firewall

Page 10: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

â â

â A firewall protects against unauthorized â

â network intrusions. Enabling a firewall blocks â

â all incoming connections. Disabling a firewall â

â allows all connections and is not recommended. â

â â

â Firewall: [ ] Enabled â

â â

â ââââââ[6Câââââââââââââ[6Cââââââââââ â

â â OK â â Customize â â Cancel â â

â ââââââ âââââââââââââ ââââââââââ â

â â

â â

ââââââââââââââââââââââââââââââââââââââââââââââââââ

tab

enter

(OK)

â Clicking the 'Yes' button will override â

â any existing firewall configuration. Are â

â you sure that you want to do this? â

â â

Page 11: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

â Please remember to check if the services â

â iptables and ip6tables are enabled. â

â â

â âââââââ[14Cââââââ[8Câ

â â Yes â â No â â

â âââââââ ââââââ â

â â

â â

ââââââââââââââââââââââââââââââââââââââââââââ

SELinux

Disable SELinux by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.

SELINUX=disabled

Once the change is complete, restart the server.

For more information see:

Oracle Linux 6

REBOOT

================================================================================

[root@freya security]# oracleasm createdisk DATA1 /dev/sda1

Writing disk header: done

Instantiating disk: done

[root@freya security]#

p10404530_112030_LINUX_1of7

Page 12: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

p13390677_112040_LINUX_1of7

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html?ssSourceSiteId=ocomen

https://support.oracle.com/epmos/faces/MosIndex.jspx?_afrLoop=119531446556111&_afrWindowMode=0&_adf.ctrl-state=6gwyfet32_4

mkdir /home/oracle/stage

mkdir /home/oracle/stage/11.2.0.3

mkdir /home/oracle/stage/11.2.0.4

cat batch_unzip.sh

unzip p13390677_112040_LINUX_1of7.zip

unzip p13390677_112040_LINUX_2of7.zip

unzip p13390677_112040_LINUX_3of7.zip

unzip p13390677_112040_LINUX_4of7.zip

unzip p13390677_112040_LINUX_5of7.zip

unzip p13390677_112040_LINUX_6of7.zip

unzip p13390677_112040_LINUX_7of7.zip

yum whatprovides xclock

yum install xorg-x11-apps

cl;ose all connections and login as oracle

xclock

Page 13: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

[oracle@freya grid]$ ./runInstaller

[root@freya etc]# vi hosts

Page 14: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

192.168.1.251 freya.greenberg freya

"hosts" 3L, 194C written

Page 15: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 16: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 17: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 18: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 19: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 20: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 21: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 22: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Chown oracle:oinstall /u01/app

Page 23: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Click :

Fix & Check again

Page 24: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

[root@freya u01]# /tmp/CVU_11.2.0.4.0_oracle/runfixup.sh

Response file being used is :/tmp/CVU_11.2.0.4.0_oracle/fixup.response

Enable file being used is :/tmp/CVU_11.2.0.4.0_oracle/fixup.enable

Log file location: /tmp/CVU_11.2.0.4.0_oracle/orarun.log

uid=502(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),506(asmdba)

[root@freya u01]# /tmp/CVU_11.2.0.4.0_oracle/runfixup.sh

Response file being used is :/tmp/CVU_11.2.0.4.0_oracle/fixup.response

Enable file being used is :/tmp/CVU_11.2.0.4.0_oracle/fixup.enable

Log file location: /tmp/CVU_11.2.0.4.0_oracle/orarun.log

uid=502(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),506(asmdba)

[root@freya u01]# yum install compat-libcap1

Loaded plugins: refresh-packagekit, security

Setting up Install Process

Page 25: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Resolving Dependencies

--> Running transaction check

---> Package compat-libcap1.i686 0:1.10-1 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package Arch Version Repository Size

================================================================================

Installing:

compat-libcap1 i686 1.10-1 public_ol6_latest 16 k

Transaction Summary

================================================================================

Install 1 Package(s)

Total download size: 16 k

Installed size: 24 k

Is this ok [y/N]: y

Downloading Packages:

compat-libcap1-1.10-1.i686.rpm | 16 kB 00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Page 26: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Running Transaction

Installing : compat-libcap1-1.10-1.i686 1/1

Verifying : compat-libcap1-1.10-1.i686 1/1

Installed:

compat-libcap1.i686 0:1.10-1

Complete!

[root@freya u01]# yum install compat-libstdc++

Loaded plugins: refresh-packagekit, security

Setting up Install Process

No package compat-libstdc++ available.

Error: Nothing to do

[root@freya u01]# yum install compat-libstdc++-33

Loaded plugins: refresh-packagekit, security

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package compat-libstdc++-33.i686 0:3.2.3-69.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package Arch Version Repository Size

Page 27: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

================================================================================

Installing:

compat-libstdc++-33 i686 3.2.3-69.el6 public_ol6_latest 188 k

Transaction Summary

================================================================================

Install 1 Package(s)

Total download size: 188 k

Installed size: 716 k

Is this ok [y/N]: y

Downloading Packages:

compat-libstdc++-33-3.2.3-69.el6.i686.rpm | 188 kB 00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : compat-libstdc++-33-3.2.3-69.el6.i686 1/1

Verifying : compat-libstdc++-33-3.2.3-69.el6.i686 1/1

Installed:

compat-libstdc++-33.i686 0:3.2.3-69.el6

Complete!

[root@freya u01]# yum install libstdc++-devel

Page 28: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Loaded plugins: refresh-packagekit, security

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package libstdc++-devel.i686 0:4.4.7-4.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package Arch Version Repository Size

================================================================================

Installing:

libstdc++-devel i686 4.4.7-4.el6 public_ol6_latest 1.6 M

Transaction Summary

================================================================================

Install 1 Package(s)

Total download size: 1.6 M

Installed size: 8.4 M

Is this ok [y/N]: y

Downloading Packages:

libstdc++-devel-4.4.7-4.el6.i686.rpm | 1.6 MB 00:14

Running rpm_check_debug

Page 29: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : libstdc++-devel-4.4.7-4.el6.i686 1/1

Verifying : libstdc++-devel-4.4.7-4.el6.i686 1/1

Installed:

libstdc++-devel.i686 0:4.4.7-4.el6

Complete!

[root@freya u01]# yum install gcc

Loaded plugins: refresh-packagekit, security

Existing lock /var/run/yum.pid: another copy is running as pid 4801.

Another app is currently holding the yum lock; waiting for it to exit...

The other application is: PackageKit

Memory : 46 M RSS ( 61 MB VSZ)

Started: Sat Feb 8 22:25:58 2014 - 00:08 ago

State : Sleeping, pid: 4801

Another app is currently holding the yum lock; waiting for it to exit...

The other application is: PackageKit

Memory : 46 M RSS ( 61 MB VSZ)

Started: Sat Feb 8 22:25:58 2014 - 00:10 ago

State : Sleeping, pid: 4801

Setting up Install Process

Resolving Dependencies

Page 30: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

--> Running transaction check

---> Package gcc.i686 0:4.4.7-4.el6 will be installed

--> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.i686

--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-4.el6.i686

--> Running transaction check

---> Package cloog-ppl.i686 0:0.15.7-1.2.el6 will be installed

--> Processing Dependency: libppl.so.7 for package: cloog-ppl-0.15.7-1.2.el6.i686

--> Processing Dependency: libppl_c.so.2 for package: cloog-ppl-0.15.7-1.2.el6.i686

---> Package cpp.i686 0:4.4.7-4.el6 will be installed

--> Processing Dependency: libmpfr.so.1 for package: cpp-4.4.7-4.el6.i686

--> Running transaction check

---> Package mpfr.i686 0:2.4.1-6.el6 will be installed

---> Package ppl.i686 0:0.10.2-11.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package Arch Version Repository Size

================================================================================

Installing:

gcc i686 4.4.7-4.el6 public_ol6_latest 8.2 M

Installing for dependencies:

cloog-ppl i686 0.15.7-1.2.el6 public_ol6_latest 93 k

cpp i686 4.4.7-4.el6 public_ol6_latest 3.4 M

Page 31: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

mpfr i686 2.4.1-6.el6 public_ol6_latest 153 k

ppl i686 0.10.2-11.el6 public_ol6_latest 1.3 M

Transaction Summary

================================================================================

Install 5 Package(s)

Total download size: 13 M

Installed size: 29 M

Is this ok [y/N]: y

Downloading Packages:

(1/5): cloog-ppl-0.15.7-1.2.el6.i686.rpm | 93 kB 00:00

(2/5): cpp-4.4.7-4.el6.i686.rpm | 3.4 MB 00:02

(3/5): gcc-4.4.7-4.el6.i686.rpm | 8.2 MB 00:05

(4/5): mpfr-2.4.1-6.el6.i686.rpm | 153 kB 00:00

(5/5): ppl-0.10.2-11.el6.i686.rpm | 1.3 MB 00:00

--------------------------------------------------------------------------------

Total 807 kB/s | 13 MB 00:16

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : ppl-0.10.2-11.el6.i686 1/5

Installing : cloog-ppl-0.15.7-1.2.el6.i686 2/5

Installing : mpfr-2.4.1-6.el6.i686 3/5

Page 32: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Installing : cpp-4.4.7-4.el6.i686 4/5

Installing : gcc-4.4.7-4.el6.i686 5/5

Verifying : cpp-4.4.7-4.el6.i686 1/5

Verifying : cloog-ppl-0.15.7-1.2.el6.i686 2/5

Verifying : mpfr-2.4.1-6.el6.i686 3/5

Verifying : ppl-0.10.2-11.el6.i686 4/5

Verifying : gcc-4.4.7-4.el6.i686 5/5

Installed:

gcc.i686 0:4.4.7-4.el6

Dependency Installed:

cloog-ppl.i686 0:0.15.7-1.2.el6 cpp.i686 0:4.4.7-4.el6

mpfr.i686 0:2.4.1-6.el6 ppl.i686 0:0.10.2-11.el6

Complete!

[root@freya u01]# yum install gcc-c++

Loaded plugins: refresh-packagekit, security

Memory : 46 M RSS ( 61 MB VSZ)

Started: Sat Feb 8 22:27:00 2014 - 00:10 ago

State : Sleeping, pid: 4812

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package gcc-c++.i686 0:4.4.7-4.el6 will be installed

Page 33: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package Arch Version Repository Size

================================================================================

Installing:

gcc-c++ i686 4.4.7-4.el6 public_ol6_latest 4.3 M

Transaction Summary

================================================================================

Install 1 Package(s)

Total download size: 4.3 M

Installed size: 10 M

Is this ok [y/N]: y

Downloading Packages:

gcc-c++-4.4.7-4.el6.i686.rpm | 4.3 MB 00:22

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : gcc-c++-4.4.7-4.el6.i686 1/1

Verifying : gcc-c++-4.4.7-4.el6.i686 1/1

Page 34: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Installed:

gcc-c++.i686 0:4.4.7-4.el6

Complete!

[root@freya u01]# yum install ksh-20100621

Loaded plugins: refresh-packagekit, security

Memory : 46 M RSS ( 61 MB VSZ)

Started: Sat Feb 8 22:28:00 2014 - 00:09 ago

State : Sleeping, pid: 4816

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package ksh.i686 0:20100621-19.el6_4.4 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================

Package Arch Version Repository Size

=======================================================================================

Installing:

ksh i686 20100621-19.el6_4.4 public_ol6_latest 683 k

Transaction Summary

Page 35: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

=======================================================================================

Install 1 Package(s)

Total download size: 683 k

Installed size: 1.4 M

Is this ok [y/N]: y

Downloading Packages:

ksh-20100621-19.el6_4.4.i686.rpm | 683 kB 00:05

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : ksh-20100621-19.el6_4.4.i686 1/1

Verifying : ksh-20100621-19.el6_4.4.i686 1/1

Installed:

ksh.i686 0:20100621-19.el6_4.4

Complete!

[root@freya u01]# yum install libaio-devel

yum install libaio-devel

Loaded plugins: refresh-packagekit, security

Setting up Install Process

Resolving Dependencies

Page 36: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

--> Running transaction check

---> Package libaio-devel.i686 0:0.3.107-10.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================

Package Arch Version Repository Size

=======================================================================================

Installing:

libaio-devel i686 0.3.107-10.el6 public_ol6_latest 13 k

Transaction Summary

=======================================================================================

Install 1 Package(s)

Total download size: 13 k

Installed size: 19 k

Is this ok [y/N]: y

Downloading Packages:

libaio-devel-0.3.107-10.el6.i686.rpm | 13 kB 00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Page 37: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Running Transaction

Installing : libaio-devel-0.3.107-10.el6.i686 1/1

Verifying : libaio-devel-0.3.107-10.el6.i686 1/1

Installed:

libaio-devel.i686 0:0.3.107-10.el6

Complete!

[root@freya u01]#

Page 38: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 39: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 40: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

[root@freya u01]# cd /u01/app/oraInventory/

[root@freya oraInventory]# ./orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@freya oraInventory]# cd ../oracle/product/11.2.0.4/grid/

[root@freya grid]# ./root.sh

Performing root user operation for Oracle 11g

Page 41: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /u01/app/oracle/product/11.2.0.4/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/oracle/product/11.2.0.4/grid/crs/install/crsconfig_params

Creating trace directory

LOCAL ADD MODE

Creating OCR keys for user 'oracle', privgrp 'oinstall'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Page 42: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

CRS-4664: Node freya successfully pinned.

Adding Clusterware entries to upstart

freya 2014/02/08 23:31:21 /u01/app/oracle/product/11.2.0.4/grid/cdata/freya/backup_20140208_233121.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

cd ..

cd database/

[oracle@freya database]$ ./runInstaller

Starting Oracle Universal Installer...

Page 43: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 44: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 45: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Skip software updates

Page 46: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 47: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 48: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 49: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 50: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 51: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 52: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 53: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 54: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 55: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 56: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 57: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

MEMORY_TARGET needs /dev/shm filesystem with required size. By default /dev/shm size is half of the system memory. So you have to change line in /etc/fstab from:

tmpfs /dev/shm tmpfs defaults 0 0

to something like:

tmpfs /dev/shm tmpfs defaults,size=49G 0 0

df -h /dev/shm will show you tmpfs size. To avoid reboot after editing /etc/fstab you can do:

umount tmpfs

mount -a

Page 58: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

siz

Page 59: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 60: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 61: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 62: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 63: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 64: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 65: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 66: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 67: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 68: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 69: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 70: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

[root@freya db]# ./root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /u01/app/oracle/product/11.2.0.4/db

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Page 71: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

Page 72: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 73: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Database gateway

Page 74: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 75: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 76: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 77: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 78: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 79: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 80: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 81: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 82: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database
Page 83: firewall - Ziggomembers.ziggo.nl/maurits.groenenberg/Install Oracle Linux... · Web viewSuccessfully configured Oracle Grid Infrastructure for a Standalone Server cd .. cd database