lunedì 18 giugno 2012

Oracle Linux installation & configuration guide

This post covers the topic of Oracle Linux installation.
Oracle Linux is a versatile operating system that offers a solid base for (almost)all Oracle products.

The version used in this post is Oracle Linux Release 6 Update 2 for x86_64 (64 Bit) that can be downloaded from:

Installation is pretty simple and not different than any other Linux.

These screens describe the process.

When installation is complete it's time to configure the system to work properly.

At first we need to enable network editing ifcfg-ethX file using a text editor.
The "X" above meas that every network card needs to be manually configured, in this case I'm going to configure my only NIC that is eth0.

I log in as root user:

[root@orcl ~]# nano /etc/sysconfig/network-scripts/ifcfg-eth0

And edit the file as follows:


Then you need to restart the network service to make this configuration running:

[root@orcl ~]# service network restart

Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]

When network is up and running I connect to my server via SSH using Putty from my PC

Next step is to add DNS nameserver:

[root@orcl ~]# nano /etc/resolv.conf


Then it's time to edit hosts file according to our server hostname

[root@orcl ~]# hostname
[root@orcl ~]# nano /etc/hosts localhost orcl

Now we need to enable YUM repository

[root@orcl ~]# cd /etc/yum.repos.d/
[root@orcl yum.repos.d]# wget

The step above enable access to YUM Repos giving us the ability to install software using the syntax:

yum install PACKET_NAME

Disable iptables:

[root@orcl ~]# service iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]

and remove the service so next reboot we don't have to stop iptables again

[root@orcl ~]# chkconfig iptables off

An optional step is to configure Network Time Protocol so your server can adjust time and date automatically.

[root@orcl ~]# nano /etc/ntp.conf

In this file look for this lines:


and edit address making them point to correct NTP servers.
When done start ntpd service:

[root@orcl ~]# service ntpd start

And finally make it executable at boot:

[root@orcl ~]# chkconfig ntp on

Last step is to disable SELINUX

[root@orcl ~]# nano /etc/selinux/config





Reboot...then your installation and configuration is complete!!!

Nessun commento:

Posta un commento