Part I (OS installation)

Introduction:

I must thank my fellow DBA  Rodrigo Mufalani for his publication in Portuguese OTN.

Throughout my career as a DBA, I had to do hundreds of Oracle installations on virtually all supported Operating Systems, sometimes for testing, even some not supported by Oracle. My vision is that installing Oracle in a Linux environments has improved a lot over the years and various features have been incorporated into every released OS. In this article, I will show you how simple and quick it is to install a Linux server using Oracle Linux 7.1 to install and configure the Oracle database in version 12cR2 (latest version released by Oracle).

Host machine configuration:

MacBook Pro
8 GB Ram memory
Processor Intel Core i5 2.7 GHz
MacOs Sierra 10.12

Virtual Machine Configuration:

Virtual Box 5.1.8 for MacOS (Can be for any O

perating System you are using) Virtual Machine with 2Gb RAM memory
12Gb Virtual Machine Disk (vdi)

To start the installation we will create a virtual machine of the linux type in the Oracle Virtual Box by clicking the “New” button:

01

Note: I already have some machines that have already been created previously.

Choose a name you like for the virtual machine, the type that will be Linux and the version that is Oracle 64bits, as I am installing Oracle Linux 7.1 64 bit. Choose the option to create a disk now and put the amount of memory you want, in my case, as my laptop has 8gb of RAM, I put a very limited amount of memory for the virtual machine (2Gb only)

 

02

Previously I had already downloaded Oracle Linux 7.1 64bits and saved to a directory on my machine that is running MacOs, so now we will make the newly created virtual machine, see the iso of OEL 7.1 64bits. To do this, click on Settings → Storage → IDE Controller → Click on the icon to add and inform the location of the .ISO of the OS that we downloaded as I did below:

03

After that, we will start the virtual machine that will already boot the Oracle Enterprise Linux 7.1 installation disk and start the installation, which is very simple, in a few steps, we will have a fantastic Linux operating system almost ready to run our Oracle 12c R2 Will be the second part of this article. Press enter to start the installation on this screen below, or as soon as the 60s is over, it will automatically do this:

04

Choose the language option according to what you want, I as my mother language is the Brazilian Portuguese, I made this option and I have to congratulate the translation of the OS, which was very well made for my language, by the way.

05

Basically in this screen here below we have all the installation options in a single location and if you click next the default options may or may not suit your options, but who has made linux installations for some years, especially Debian or Slackware (which is Are excellent Linux OS) know that is to navigate in text mode by numerous screens and choose a series of packages to install. With the yum era, apt-get this greatly facilitates the installation of additional packages after installation and also solved the issue of the dependencies of other packages and libraries we often encountered when installing .rpms and .debs. On an already installed operating system. Since installing Oracle 12cR2 requires some operating system libraries, I will choose the option to select programs and install some additional packages.

06

I chose the Server with GUI (Grafical User Interface) and some additional packages to the right side of the following tables as we can check in the next 3 images:

07

08

09

Below we see the choice of partitioning, as here we are dealing with a machine just to demonstrate the OS installation, automatic partitioning meets us. It may be that if you use it on a production server these default partitioning options do not suit you and you need to configure the volumes in more detail according to the rules of your production environment. For this, it is a good idea to chat with your sysadmin for proper partitioning.

10

Once the packages have been selected, and the partitioning issues, we can proceed with the installation. If you want you can also choose a hostname for your virtual machine and make other settings directly from this screen. But do not worry, the installer will ask you about the essentials to finalize the installation successfully at the appropriate times as you progress it. Then, click to start the installation:

11

During the whole process of installing a linux OS, it is mandatory to set the root password (main Linux OS Administrator) and this we can do at the moment the installation is already running, as we did below:

12

I chose the oracle password, which the installer criticizes for being weak, based on an existing word. Put a stronger password, especially if it is a production environment. You have no idea how many times I came across the root password as oracle on database servers and also with the oracle user password being oracle. This is a serious security flaw, so think about not following easy passwords in your production environment.

13

At this point the installation has done almost everything, at least installing the packages and libraries that I chose to be part of this OS that we are installing. Click Restart:

14

To install, we must accept the license to use the OS

15

Let’s accept the license to finish the installation of OEL 7.1 64bits

16

I do not even need to think it’s a good idea to get OS support in a production environment. As is not the case here, we will ignore this part and will not configure the automatic updates or connect to the ULN (Unbreakable Linux Network). Purchasing support and configuration can be done later, with the OS already installed and fully operational.

17

Finishing the installation without configuring OS updates This can be configured after following these options:

18

Choose the language that the Operating System, choose according to what you want, I opted for portguês of Brazil.

19

Here we can choose the settings of our keyboard, again, I will choose Portuguese from Brazil (Equivalent to the ABNT2 keyboard):

20

Here we will create a user not to be using the root or oracle account (which will be used to install Oracle 12c R2):

21

Choose the Time Zone of your choice, in my case, I chose Bahia that is the same for São Paulo, Rio de Janeiro, which is where I live and there is no variation between them.

22

We have finished installing our Oracle Enterprise Linux 7.1 64 bit and it is ready to use:

23

For our virtual machine to have access to the internet, we have to do an additional configuration in the Oracle Virtual Box to use in Brigde mode. In the settings of your machine, go to the network part, make sure that the network card is enabled and is in bridge mode, as shown below:

24

Conclusion

Now that we have our Linux Operating System, Oracle Enterprise Linux 7.1 64-bit installed in our environment we can use it to learn more about various aspects of management, make several simulations and even create a laboratory environment to simulate some aspects before applying In a production environment. Nowadays it is easy for a laptop to have hardware capabilities to run a virtual machine. I hope this article has helped you understand how to install a Linux Operating System and we will in part II perform the installation and configuration of Oracle 12c R2.

 

Leave a Reply