What if you could spin up a working cloud environment, connect it to a private network, and run a database, all before your coffee goes cold? That is not a marketing pitch. It is roughly what a first afternoon with Oracle Cloud Infrastructure looks like when you follow a sensible path instead of clicking around at random. This tutorial walks through that path in plain language: the concepts that trip people up, the order of steps that actually works, and the mistakes almost everyone makes on day one. (NIST SP 800-145: The NIST Definition of Cloud Computing)
What Oracle Cloud Infrastructure Actually Is
Oracle Cloud Infrastructure (OCI) is Oracle’s public cloud platform. It launched in 2016, and it has grown into a full stack of compute, storage, networking, database, and container services. If you have used AWS or Azure, the mental model will feel familiar, though the vocabulary differs in ways that matter.
The platform is organized around a few core building blocks:
| Concept | What It Means | Closest AWS Equivalent |
|---|---|---|
| Region | A geographic area with one or more data centers | Region |
| Availability domain (AD) | An isolated data center inside a region | Availability zone |
| Compartment | A logical folder for resources and permissions | Account or resource group |
| VCN | A virtual cloud network you define | VPC |
| Tenancy | Your top-level OCI account | Root account |
Most regions have three availability domains, though some have only one. That detail shapes how you design for reliability, so check it before you plan anything. A useful habit is reading a provider’s region announcements carefully, since the wording tells you whether a new location is live for all services or just a subset; the same skill applies when you learn how to read a cloud region announcement.
Compartments deserve extra attention because they are the concept most newcomers mishandle. In OCI, compartments are the main grouping mechanism for both resources and access policies. Unlike AWS accounts, they are cheap and easy to create, so you can organize by project, environment, or team without friction. Create a handful up front, name them clearly, and you will avoid a messy tenancy later.
Before You Touch the Console
Three things need to happen before any tutorial step makes sense.
First, sign up. Oracle offers a free tier that includes a set of Always Free resources, such as small AMD compute instances, Arm-based Ampere A1 capacity, and a limited Autonomous Database. The exact limits have changed over time, so treat any number you read as a snapshot rather than a guarantee. Sign-up generally requires a payment method for identity verification even when you stay on free resources.
Second, pick a home region. This choice is stickier than it looks. Your home region governs where certain global resources live, and changing it is not a casual operation. Choose the region closest to you or your users and move on.
Third, decide how you will work: the web console, the command line, or infrastructure as code. Most people should start with the console to build intuition, then move to the CLI. The OCI CLI is a Python-based tool. Typical setup involves generating an API signing key pair, uploading the public key to your account, and writing a configuration file at `~/.oci/config` with your tenancy and user identifiers. Once that file exists, commands become short and repeatable.
A practical tip: keep the config file out of version control and use named profiles if you manage more than one tenancy. People who skip this end up pasting credentials into terminals and losing track of which account they are pointed at.
Step One: Create Your Compartment and Network
Start with structure, not servers.
- Create a compartment for the project, for example `lab-network`.
- Open the VCN creation wizard and choose the option that creates a VCN with a public subnet and an internet-facing router.
- Accept the default CIDR block unless it clashes with something you already run.
- Review the route table and security list the wizard generates.
That wizard is genuinely good, and it saves a lot of typing. The catch is that people accept the defaults without reading them. The security list it creates allows SSH from anywhere on the internet. For a lab that is fine. For anything real, narrow the source to your own address range immediately.
A second common mistake: creating AD-specific subnets when regional subnets would do. Regional subnets span the region and are simpler to manage. Unless you have a specific reason, choose regional.
Networking is where OCI rewards patience. If you want a broader grounding in how these layers fit together before you build, a primer on cloud infrastructure and architecture is worth twenty minutes.
Step Two: Launch a Compute Instance
With the network in place, launch an instance.
- Choose an image. Oracle Linux and Ubuntu are both well supported.
- Choose a shape. The Always Free eligible shapes are the cheapest way to learn.
- Place it in your compartment and in the public subnet you created.
- Upload or generate an SSH key pair. Do not skip this; without it you cannot log in.
- Boot the instance and note its public IP address.
Then connect over SSH and confirm the basics work. Install a web server, open port 80 in the security list, and load the page in a browser. That single round trip proves your network path, your security rules, and your instance are all correct. If the page does not load, the problem is almost always the security list or the route table, not the server.
Here is where the CLI starts paying off. Instead of repeating console clicks, you can list instances, start and stop them, and script the whole flow. Teams that get comfortable with the CLI early tend to have fewer “works on my machine” moments, because the commands become documentation.
Step Three: Add Storage and a Database
A server alone is not a stack. Two additions make the lab useful.
Block volumes give you durable disk that survives instance termination. Attach one, format it, mount it, and add it to `/etc/fstab` so it returns after a reboot. Forgetting the fstab entry is a classic gotcha: everything works until the machine restarts, and then the mount is gone.
Autonomous Database is the managed database option, and it is the service most people associate with OCI. Provisioning a small instance takes minutes. You get connection strings, wallets, and a web-based tool for running queries. The free tier includes a limited version, which makes it a low-risk way to learn.
If containers are more your speed, Oracle Container Engine for Kubernetes (OKE) provides a managed Kubernetes control plane. It is more setup than a single VM, so save it for after you have the basics working. The same applies to Functions, OCI’s serverless option.
As your stack grows, so does the operational surface. Keeping architecture notes and runbooks current is not busywork; there is a real case for how technical writing supports enterprise infrastructure teams when systems get complicated. Write down what you built while it is fresh.
Step Four: Lock Down Access with IAM Policies
OCI’s policy language is readable, which is both a gift and a trap. A statement looks like this: allow a group to manage instances in a compartment. That is close to plain English, and it is easy to write something broader than you intended.
Three habits prevent trouble:
- Grant access to groups, never to individual users, so permissions survive staff changes.
- Scope policies to specific compartments rather than the tenancy root.
- Use the principle of least privilege from the start, because retrofitting it later is painful.
A frequent error is granting `manage all-resources` in the tenancy to a group “just for now.” That phrase has a way of becoming permanent. Start narrow, and expand only when a task genuinely fails.
Identity design also interacts with cost and reliability. If you plan to run AI workloads later, the same discipline applies; the way cloud reliability skills transfer to AI infrastructure is a useful lens, because the failure modes rhyme even when the services differ.
Step Five: Watch the Bill and Clean Up
Free tiers are generous, but they are not infinite. Two habits keep surprises away.
First, set a budget and an alert in the console. Even a rough threshold catches the accidental large instance or the forgotten block volume.
Second, tear down what you are not using. Terminate instances, delete unattached volumes, and remove load balancers. Data transfer is another quiet cost driver; a method for tracking cloud data transfer costs helps you see where bytes and money actually go.
Cost visibility is also a design input. If you are choosing shapes or planning for accelerators, understanding AI chips and computing infrastructure shapes decisions about what to run where, and why some workloads cost far more than their headline price suggests.
Common Mistakes and What Works Instead
After the basics, the same problems show up again and again. Here is the short list.
| Mistake | Why It Hurts | Better Approach |
|---|---|---|
| One giant compartment | Permissions become impossible to reason about | Compartments per project or environment |
| SSH open to the world | Constant scanning and brute-force attempts | Restrict source IPs in security lists |
| No fstab entry for volumes | Mount vanishes after reboot | Add the entry and test a restart |
| Broad IAM policies | Over-permissioned users, audit headaches | Group-based, compartment-scoped policies |
| No budget alert | Surprise charges | Set thresholds on day one |
| Skipping the CLI | Manual, unrepeatable setup | Script the routine steps early |
None of these are exotic. They are simply the things people skip when they are eager to see something running. Slowing down for an hour at the start saves days later.
Where to Go Next
Once the lab works, the natural next steps are containers, infrastructure as code, and observability. OKE gives you Kubernetes without managing the control plane. Terraform providers let you describe the whole stack in files. Logging and monitoring services show you what is actually happening.
The broader direction of the platform matters too. Oracle has been pushing intelligent, automated management across its services, and the idea that AI is reshaping cloud architecture is no longer speculative. Learning the fundamentals now means you are ready when the automation arrives. For a wider view of enterprise AI and cloud practice, the 9481.org resource library is a reasonable place to keep reading. (Cloud computing)
Conclusion
A first Oracle Cloud Infrastructure project does not need to be ambitious. It needs to be correct. Create a compartment, build a network with regional subnets, launch one instance, attach a volume, add a database, and write policies that grant only what is needed. Then set a budget alert and tear it all down. That loop, repeated a few times, teaches more than any single long tutorial.
The platform rewards people who read the defaults before accepting them. Security lists, IAM statements, and shape choices all have sensible starting points, but “sensible” is not the same as “right for you.” Check the numbers, keep notes, and let the CLI do the repetitive work. Do that, and OCI stops feeling like a maze and starts feeling like a toolkit.
Frequently Asked Questions
Is Oracle Cloud Infrastructure free to try?
Yes, in a limited sense. OCI offers an Always Free tier with small compute instances, Arm-based capacity, and a limited Autonomous Database, plus trial credits for new accounts. Sign-up usually requires a payment method for identity verification even if you stay on free resources. Limits have changed over time, so confirm current values before you plan around them.
Do I need to know Linux to follow an OCI tutorial?
It helps a great deal. Most tutorials assume you can connect over SSH, edit a configuration file, and install packages. You do not need to be a systems expert, but comfort with basic commands makes the compute and storage steps far less frustrating. If Linux is new to you, spend an hour on the basics first.
What is the difference between a compartment and a region in OCI?
A region is a physical geographic location containing one or more data centers. A compartment is a logical grouping inside your tenancy used to organize resources and scope permissions. Regions affect latency and availability; compartments affect organization and access control. They are unrelated concepts that beginners often conflate.
How long does it take to set up the OCI CLI?
Usually under half an hour. You generate an API key pair, upload the public key, and write a configuration file with your tenancy and user identifiers. The fiddly part is getting the identifiers right, so copy them from the console rather than typing them. Named profiles help if you work across multiple tenancies.
Why can’t I connect to my instance after launching it?
The most common causes are a security list that does not allow SSH from your address, a missing or misconfigured internet access device, or the wrong SSH key. Check the security list first, then the route table, then the key. The instance itself is rarely the problem.
Should I use the console or infrastructure as code?
Start with the console to build intuition, then move to the CLI, then to infrastructure as code once your setup stabilizes. Console clicks are great for learning and poor for repetition. Code is the opposite. Most teams end up using all three for different jobs.







