Introduction to Oracle Cloud Infrastructure (OCI) CLI
Oracle Cloud Infrastructure (OCI) provides a comprehensive set of services to develop, deploy, and manage modern applications. One of the key tools to interact with OCI is the OCI Command Line Interface (CLI). In this article, we will explore how to create a VM cluster network using the OCI CLI. Additionally, we will demonstrate the process of setting up an Exadata Cloud at Customer instance.
Prerequisites
Before proceeding with the tutorial, it’s essential to ensure that you have the OCI CLI installed on your machine. If you haven’t installed it already, you can refer to the official documentation for installation instructions.
Moreover, you will need an Oracle Cloud account with the necessary permissions to create resources. If you’re planning to create an Exadata Cloud at Customer instance, you should also ensure that you have the required licenses and permissions.
Installing the OCI CLI
Once you’ve downloaded the OCI CLI package, you can install it by running the following command:
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/main/src/install.sh)"
This command will guide you through the installation process. Make sure to follow the instructions carefully.
Configuring the OCI CLI
After installation, you’ll need to configure the OCI CLI to connect to your Oracle Cloud account. You can do this by running the following command:
oci setup config
This will prompt you to enter your user OCID, tenancy OCID, and region. You can find this information in the Oracle Cloud Console.
Creating a Compartment
Before creating a VM cluster network, you need to create a compartment to hold your resources. A compartment is a logical container that allows you to organize your resources within your Oracle Cloud tenancy. You can create a compartment using the following command:
oci iam compartment create --name my-compartment --description "My compartment"
Meanwhile, make sure to replace “my-compartment” with a name of your choice.
Creating a Virtual Cloud Network (VCN)
A VCN is a virtual network that you can use to launch compute instances and other resources. You can create a VCN using the following command:
oci network vcn create --cidr-block 10.0.0.0/16 --display-name my-vcn
This command creates a VCN with a /16 CIDR block and a display name of “my-vcn”. You can change the CIDR block and display name to suit your needs.
Creating a Subnet
A subnet is a logical network within your VCN. You can create a subnet using the following command:
oci network subnet create --display-name my-subnet --cidr-block 10.0.1.0/24 --vcn-id
Make sure to replace “
Creating a VM Cluster Network
A VM cluster network is a network that allows you to launch VM clusters. You can create a VM cluster network using the following command:
oci network vm-cluster create --display-name my-vm-cluster --subnet-id --availability-domain
Replace “
Creating an Exadata Cloud at Customer Instance
To create an Exadata Cloud at Customer instance, you need to create a VM cluster and then create an Exadata system. You can create a VM cluster using the following command:
oci compute vm-cluster create --display-name my-vm-cluster --vm-cluster-network-id
Replace “
Next, you can create an Exadata system using the following command:
oci database exadata create --display-name my-exadata --vm-cluster-id
Replace “
Conclusion
In this article, we demonstrated how to create a VM cluster network using the OCI CLI. Additionally, we showed how to create an Exadata Cloud at Customer instance. By following these steps, you can create your own VM cluster network and Exadata system.
Furthermore, if you need help with setting up your Oracle Cloud Infrastructure or migrating your applications to the cloud, you can contact PersonIT for their expertise.
Additional Resources
* OCI CLI Documentation
* Exadata Cloud at Customer Documentation