The easiest procedure and explanation for installing Oracle Linux 8.3 (DB construction first part)

I plan to explain the connection from .NET (Framework, Core, 5.0 comprehensively) to Oracle Database, focusing on ODP.NET Managed Driver, but first of all, in order to build the essential Oracle Database, I will explain how to install Oracle Linux with images very carefully (I also use it as a study memo).

This time it's the first part, and the second part is going to install Oracle Database 19c on Oracle Linux 8.3.

Oracle Linux is based on Red Hat, but it seems easy to build an Oracle Database (since it is easy to install Windows Server but the environment cannot be prepared), so this time I will use this for the DB server.

Probably the most polite procedure to explain the latest Oracle Linux 8.3 installation ...

The second part of installing and building Oracle Database 19c is ↓. -Building Oracle Database 19c on Oracle Linux 8.3 (DB building part 2)

About license

As stated on the Official Site, the OS itself can be downloaded and used for free (support is charged).

Also, as I will write in the second part, since Oracle Database has an OTN developer license, it can be used free of charge for limited purposes other than production use such as learning, development, testing (explained in the link below). There is). Moreover, the software can be downloaded from the official website.

-Software Download (Oracle Official Site)

Then, the following is the explanation of the installation method.

Download ISO image

↓ is the official website of Oracle Linux.

--Oracle Linux Site

The link at the top right of the site will take you to the download page.

0_site.PNG

Sign in You need to create an account, so if you don't have one, create one.

0_1_login.PNG

Next, the product selection screen will appear. Enter "** Oracle Linux **", search for it, and select the latest version (8.3 at the time of writing).

1_download.PNG

Click "Continue" in "View Items" at the top right of the ↑ screen to go to the next screen. Select "x86 64bit" in "Platforms / Languages" (please match your environment) and click "Continue".

2_download.PNG

The license screen will appear, so check it and click "Continue".

3_agree.PNG

Some ISO images will appear, but only "** V1004253-01.iso Oracle Linux Release 8 Update 3 for x86 (64 bit), 8.6 GB **" is OK. Press "Download".

4_download_select.PNG

If the download program is dropped, execute it.

5_download.PNG

You will be asked for the save destination path, so specify an appropriate location and click "Next"

6_download.PNG

The download will start. Let's wait patiently.

7_download_start.PNG

Oracle Linux installation

Once downloaded, load the ISO image and start the installation. This time, install it on the virtual environment. You will be using VMware Workstation 15 Player. I think that the installation procedure itself is the same for Hyper-V (I think that it is physically different, so I would be grateful if you could check it yourself ...).

At the top, select "Install Oracle Linux 8.3.0" and press Enter (white is selected).

8_install_bigin.PNG

Select a language. Here, select Japanese. If you select it, the screen will change to Japanese.

9_install_lang.PNG

Next, the installation setting screen will appear.

10_install_setup.PNG

Are the required items as follows?

-** Time and date **

In "Software Selection", you can select the server type and software, such as GUI or console only. I think the GUI consumes more resources, but this time I chose "server (using the GUI)" with an emphasis on ease of use and comprehension (although I would like to try it).

In addition, you can create an individual user other than root in "User settings", but it is not essential, so please do it according to your purpose (created in this article).

Below are the specific setting items.

For "Date and time", select the time zone of Tokyo.

11_install_lang.PNG

Since there is only one installation destination (in this case), it is selected by default, so just select "Finish".

12_install_disk.PNG

Set "Next network and host name". At first, the switch on the right is "Off", so turn it "On" and press "Set". The default is DHCP, but with this, the IP address changes each time you start up, so use a static IP address. Well, it's OK if you can connect from the outside

13_install_ip.PNG

Click the "IPv4" tab, click the "Add" button, and enter the address, netmask, and gateway. Enter the DNS server as well (please set your own settings here). If you can, click "Save". By the way, in my environment, the VMware network is "bridge: directly connected to the physical network".

14_install_ip.PNG

Make sure the IP address is set and click Finish.

15_install_ip_front.PNG

You will be returned to the initial settings screen, but the root password settings are at the bottom, so scroll down and select "root password".

17.setup_2.PNG

Enter the root password. If you can, click "Finish".

18_install_pass_root.PNG

To create a general user, go to "Create User". It's not essential, so if you are interested, please ... Even in a virtual environment, I always feel that it is not good to be root, so I will create it.

19_user_acc.PNG

This completes the settings. Check again if there are any problems with the contents, and press "Start Installation".

20_install_end.PNG

The installation will start. Drink coffee and wait patiently.

21_install_begin.PNG

When you're done, the "Restart System" button will turn blue, so press it to reboot.

22_install_reboot.PNG

If you reboot and don't touch anything on the first selection screen, you'll see something like this. Since the license has not been activated, click the icon in the middle.

23_setup_first.PNG

Check it and press "Finish".

23_setup_licence.PNG

Click "Complete settings" at the bottom right.

24_setup_licence_end.PNG

The login screen will appear, so log in with the account created during the setup work before installation.

25_setup_login_user.PNG

The welcome screen will appear, so select "Japanese".

26_setup_lang.PNG

Select "Japanese" for the keyboard layout.

27_setup_lang.PNG

You can choose "Location Services" as you like (I turned it off).

28_setup_locate.PNG

"Connect to an online account" is your choice. This time it is not for the purpose of creating a DB server.

29_setup_online.PNG

Setup is complete.

30_setup_end.PNG

A screen like this will appear, but if you press the x in the upper right, you will be taken to the desktop screen.

31_setup_end.PNG

It looks like this. This completes the installation of Oracle Linux.

32_end.PNG

Allow general users to sudo

If you can't do this, it will be troublesome, so let's set it.

Launch the terminal. Click "Activity" on the upper left, and a menu will appear on the left. Click the second terminal from the bottom.

32_2_terminal.PNG

Elevate to root once with su and give user administrator privileges.

$ su
[password input]

$ usermod -aG wheel user

It will not be reflected unless you log in again, so log out and log in again. If you click the power button on the upper right, there is a place where the user is displayed, so there is "Logout" in it.

33_logout.PNG

Let's check if it was reflected. Also, launch the terminal and check if it is added to the group with the following command.

$ id -Gn

If wheel is added, it's OK.

34_user.PNG

Now you can use sudo.

Also update the software

For the time being, let's keep the software up to date.

$ sudo yum update

that's all.

Next time, I would like to build Oracle Database 19c in this.

Reference link -Oracle Linux (Oracle Official) --Oracle Linux Documentation (Oracle Official)

Recommended Posts

The easiest procedure and explanation for installing Oracle Linux 8.3 (DB construction first part)
Let's try Linux for the first time
Build Oracle Database 19c on Oracle Linux 8.3 (DB Build Part 2)
Procedure for manually installing Java (jdk1.8) on Linux (CentOS7)
For the first time, I learned about Unix (Linux).
Procedure for installing Xenomai on RaspberryPi 3 model B + Part 1
Explanation of package tools and commands for Linux OS
[For memo] Linux Part 2
If you're learning Linux for the first time, do this!