Oracle Autonomous Database and DevOps: A Simple Usage Approach – Part 4

This article is the fourth part of the series of articles on Oracle Autonomous Database and DevOps. For a better understanding, I recommend reading the “Oracle Autonomous Database and DevOps: A Simple Usability Approach – Part 1”, “Part 2” and “Part 3” articles before proceeding with the steps in this article.

As in the previous article we treated the secure connection of the ATP instance with Oracle SQL Developer using the wallet file of the provisioned instance, in this article we will proceed with the creation of the Linux application server. An interesting factor in this topic is that the Linux server will be created within the Oracle Cloud and thus showing the versatility of the Oracle Cloud. To start let’s build some concepts:

Why create the Virtual Cloud Network?

According to Oracle Corp., “Before you start an instance, you must have a virtual cloud network (VCN) and a subnet to start it. A subnet is a subdivision of your VCN. The subnet directs the traffic according to the route table. “.

Therefore, follow these steps:

– Creating the virtual network (Virtual Cloud Network): In the Oracle Cloud menu click on “Networking” and later “Virtual Cloud Network”:

In the Virtual Cloud Networks tab click on the “Create Virtual Cloud Network” button:

You will then be presented with the screen to create the Virtual Cloud Network, where it is necessary to specify all the information for the VNC configuration:

In the Virtual Cloud Network tab choose the option “Create Virtual Cloud Network plus related resources” to create the VNC only with public subnets:

Click the “Create Virtual Cloud Network” button and a screen with confirmation of creation will be displayed:

Thus it will be possible to verify the VCN created:

Click the name of the VCN, in the case of the example of this article “VirtualCloud”.

Then click on “Security Lists” in the menu:

Click “Default Security Lists for VirtualCloud”

On the next screen click on “Edit All Rules”: “

Afterwards, under the “Ingress Rule 3” tab, click the “Another Ingress Rule”:

In the next Ingress Rule add the following data:

Source CIDR : 0.0.0.0/0

Destination Port Range : 3055 (just an example)

After entering the information click on “Save Security List Rules”:

After this step we finish the configuration of the VCN:

With the Virtual Cloud Network configured, we will proceed with the provisioning of the Linux machine.

Provisioning the Linux server: In the initial menu of Oracle Cloud click on “Compute” and later on “Instances”:

On the next tab, click the “Create Instance” button:

In the Create Compute Instance tab, provide the requested information:

Name: Choose a name for your instance. (In the example: VMLINUXmachine)

Select an available domain for your instance: Choose the first available domain (In the example: ysjg: PHX-AD-1)

Choose an operating system or image source: Keep the option available from Oracle.

Image Operating System: Oracle Linux 7.6

Choose instance type: Choose “Virtual Machine”

Shape: We will use the option “VM.Standard2.1”

Image Version: Please select the latest version, 2018.09.25-0 (latest)

Configure boot volume: Keep the default option.

SSH Keys: Because Linux operating systems use SSH keys for authentication, you must provide a public key. Click “Choose SSH key file” and provide a public SSH key.

Then click on the “create” button:

While the server is being provisioned, the status displayed will be “Provisioning”:

Once the process is finished, the status is changed to “RUNNING”:

An interesting fact is that from this moment it is already possible to make ssh connection with the created server:


[root@techdatabasketblog /]# ssh 129.146.128.2
The authenticity of host '129.146.128.2 (129.146.128.2)' can't be established.
ECDSA key fingerprint is SHA256:kuM9EKvzZ47/2qof0kVZc9+po3tDjTEPdsCXVgye9BI.
ECDSA key fingerprint is MD5:84:06:1b:75:2c:5a:f4:72:db:49:ab:7e:b1:5c:5a:67.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '129.146.128.2' (ECDSA) to the list of known hosts.
Enter passphrase for key '/root/.ssh/id_rsa':
Please login as the user "opc" rather than the user "root".

Connection to 129.146.128.2 closed.
[root@techdatabasketblog /]# ssh opc@129.146.128.2
Enter passphrase for key '/root/.ssh/id_rsa':

[opc@vmlinuxmachine ~]$ hostname
vmlinuxmachine

[opc@vmlinuxmachine ~]$ uname -a
Linux vmlinuxmachine 4.14.35-1844.3.2.el7uek.x86_64 #2 SMP Mon Feb 25 17:43:37 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

[opc@vmlinuxmachine ~]$ date
Tue Apr 23 11:03:45 GMT 2019
[opc@vmlinuxmachine ~]$

So we finished the fourth part of the series of articles about Oracle Autonomous Database in Oracle Cloud for DevOps. In the next article we will continue to create microservices using Docker and the connection of a JAVA application with the database created in the cloud.

References:

https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/creatingnetwork.htm

https://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/compute-iaas/creating_an_instance_using_the_web_console/creating_an_instance_using_the_web_console.html

Bruno Reis da Silva is a Database Cloud Support Engineer and professionally Certified Oracle Database Administrator who has worked on the South American continent and is now working at the European continent. He was awarded the first Oracle Ace Associate of Hungary in 2017. His interests are in RDBMS, mainly Oracle, operating systems (Linux, AIX, HPUX and Solaris) and High Availability Solutions implementations. In his free time he enjoys playing sports , going to the gym and traveling. His blog www.techdatabasket.com is dedicated to his sister Laura Vitoria and the main reason for blogging is because he believes in the quote “giving back to get back” . He also enjoys continuous learning and the interaction with others who share his interest.

Carlos Magno de Andrade Júnior is an Database Architect at eProseed Europe, with more than 15 years of experience in Oracle database on complex projects in countries such as Brazil , India , the Netherlands, Luxembourg , France and Italy, having worked in companies such as Oracle Corporation, IBM, HSBC, among others. Also shares information on his blog ezdba.wordpress.com. Certifications : OCM 12c OCP 10g , 11g OCP , OCP 12c, OCE RAC , Exadata , ITIL and OEM 12c Cloud Control Implementation Specialist.

Related posts

Leave a Comment