[oracle@ol7-db wallet]$ export TNS_ADMIN=/u01/wallet
[oracle@ol7-db wallet]$
[oracle@ol7-db wallet]$ tnsping orbgadb_low
TNS Ping Utility for Linux: Version 18.0.0.0.0 - Production on 31-MAR-2021 23:45:35
Copyright (c) 1997, 2018, Oracle. All rights reserved.
Used parameter files:
/u01/wallet/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=adb.me-dubai-1.oraclecloud.com))(connect_data=(service_name=atrc9lotdxsjqrj_orbgadb_low.adb.oraclecloud.com))(security=(ssl_server_cert_dn=CN=adb.me-dubai-1.oraclecloud.com,OU=Oracle ADB DUBAI,O=Oracle Corporation,L=Redwood City,ST=California,C=US)))
OK (150 msec)
[oracle@ol7-db wallet]$
[oracle@ol7-db wallet]$
[oracle@ol7-db wallet]$ sqlplus admin@orbgadb_low
SQL*Plus: Release 18.0.0.0.0 - Production on Wed Mar 31 23:45:44 2021
Version 18.3.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Enter password:
Last Successful login time: Wed Mar 31 2021 23:24:18 +04:00
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.5.0.0.0
SQL>
In this post I will describe the step by step creation of Oracle 19c Autonomous Transaction Processing Database in Oracle Cloud using OCI Console.
Oracle Cloud Free Tier will allows you to sign up for an Oracle Cloud account which provides a number of Always Free services and a free credit of 300$ which can be use on all eligible Oracle cloud Infrastructure services for up to 30 days. The Always Free services are available for an unlimited period of time. Kindly click here to know more in detail.
In this article I will describe how to detach a block volume from an Oracle cloud Linux instance We will be covering the following steps:
Unmount the mount-point from the Linux Instance
Disconnect the Block volume from the instance
Detach the Block volume from the Instance
Delete the volume from Cloud console
1. Unmount the disk from the Linux Instance
Connect to the linux instance and run the umount command to unmount the filesystem with has to be deleted umount /oracle
2. Disconnect the Block volume from the instance
Once the disk is unmounted, access the cloud console and copy the commands to disconnect the block volume from the instance: Goto Attached block volumes > Click on ellipsis(…) and select iSCSI Commands & Information
Copy the COMMANDS FOR DISCONNECTING
Connect the VM as root user and run the commands
3. Detach the Block volume from the Instance
Once the Block volume is detached. Access the cloud console, navigate to Instances page and click on Instance name (oc-ol7 here)
Under Resources select Attached Block Volumes and click on the ellipsis(…) then select Detach
Click on Continue Detachment
Click ok
Now we can see the Volume State is Detaching.
4. Delete the volume from Cloud console
Once the volume is Detached, Open the navigation menu. Under Core Infrastructure, goto Block Storage and Click on Block Volumes
In the block volume section click on the ellipsis(…) on which the volume you want to delete, then click Terminate and confirm the selection when prompted.
In this article I will describe how to create a block volume and attaching it to an instance in Oracle cloud. We will be covering the following sections:
Creating Block Volume
Attaching the Block Volume to the Linux VM Instance
Format and Mount the volume on the instance
1. Creating Block Volume
Open the navigation menu. Under Core Infrastructure, go to Block Storage and click Block Volumes
Select the root compartment and click on Create Block Volume
Provide the Name and Volume size and Performance, then click on Create Block Volume
The Block volume is successfully created
2. Attaching the Block Volume to the Linux VM Instance
Open the navigation menu. Under Core Infrastructure, go to Compute and click Instances
Click on the instance name
Under Resources select Attached Block Volumes and click on Attach Block Volume
Choose Volume attachment type: ISCSI Select the volume which created in the previous section Select the Device Path, then click on Attach
Block Volume is successfully attached
Click on the ellipsis(…) and select iSCSI Commands & Information
Click on copy to copy the COMMANDS FOR CONNECTING
Connect the Linux VM instance as root user and run the iSCSI commands to connect the block volumes
3. Format and Mount the volume on the instance
Verify the newly added disk using fdisk command
Format the newly added Disk /dev/sdb
Verify the new partitioned disk /dev/sdb1
Format and Mount the disk
Create directory “oracle” and mount the newly created disk
This is my first blog post and I hope you will ignore mistakes. Thank you in advance.
Description:
In this blog post I will describe the step by step creation of Oracle cloud always free account and creating a Linux Virtual Machine.
Oracle Cloud Free Tier will allows you to sign up for an Oracle Cloud account which provides a number of Always Free services and a free credit of 300$ which can be use on all eligible Oracle cloud Infrastructure services for up to 30 days. The Always Free services are available for an unlimited period of time. Kindly click here to know more in detail.
Choose your country and enter your name and email address Once provided the details, check your email. You will see an account validation email from Oracle.
Enter the account information. Note: Home Region cannot be changed once you sign-up.
Enter the address information, mobile details & Payment details and verify the same Note: You need to provide the credit card details and 1$ will be charged for the verification and the same will be reserved. You will not be charged unless you elect to upgrade the account.
Enter you cloud account name and click next. This is the name we choose during the account creation
Enter the cloud account credentials and click next. Username is your email address.
You are now login to your cloud account
3. Network Configuration
Create Virtual Cloud Network (VCN)
Open the navigation menu. Under Core Infrastructure, go to Networking and click Virtual Cloud Networks
Select the compartment you want to create the network. Then click on Create VCN
Enter a name for the VCN For CIDR Block, I choose IP 192.168.10.0/24, so that I can use the private IP range b/w 192.168.10.1 to 192.168.10.254.
Now the VCN status is available
Click on VCN Name (ocvcn) and you will be redirected to VCN Details page. Under Resource select Subnets and then click Create Subnet
Enter the information as per the below screenshot and click on Create Subnet. Note: Public subnet has selected to access the instance in public n/w.
The subnet is now created
Configure Internet Gateway
From VCN Details page under Resources, click on Internet Gateways
Give it a name and choose the compartment, then click on Create Internet Gateway
Your internet gateway is created. but you still need to add a route rule that allows traffic to flow to the gateway.
Adding Route table
From VNC Details page, Under Resources –> Route Tables, click on the route table associated with your public subnet.
Click on Add Route Rules
This is for the public subnet. select Target Type as Internet gateway Destination CIDR Block: 0.0.0.0/0 (This means all the internet) Once ready, click on Add Route Rules
Now you can see the Internet gateway route has been successfully added
Adding Security lists
Check your public IP using the URL and whitelist it to access the cloud VM which you will be creating in the next steps
From Subnet Details page, Under Resources, select Security Lists and click on the Default Security List as shown below
Click on Add Ingress Rules
Source Type: CIDR Source CIDR: <Your Public IP>/32 IP Protocol: TCP; Source Port Range: All; Destination Port Range: All Once ready, Click on Add Ingress Rules
Now you can see your my Public IP is whitelisted
Creation of Oracle Linux Virtual Machine Instance
Open the navigation menu. Under Core Infrastructure, go to Compute and click Instances.
Click on create instance
Name: Enter the name for the instance Create in Compartment: Select the compartment to create the instance in Availablilty Zone: Select the Availability domain that you want to create the instance Image: Select the image, by default Oracle Linux 7.x is used to boot the instance Shape: Select VM.Standard.E2.1.Micro, which is eligible for always free Add SSH keys: select Generate SSH Key pair; Click Save Private Key and Save Public key on your computer.
In Management section leave the setting as default
In Networking section enter the private IP and Hostname of the VM. Then click on Create
Wait for the instance creation to complete
After a couple of minutes you can see your Instance is in running state