TH1. Oracle Core Concepts and Architecture - DevWithNehaCloud/Oracle-Cloud-Infrastructure-wiki GitHub Wiki
Region
In Oracle Cloud Infrastructure (OCI), a Region is the top level of the physical infrastructure. It is a specific geographic area (like Mumbai, Hyderabad, London, or Ashburn) that contains one or more isolated data centers. or A Region in OCI is a geographical area where Oracle has multiple data centers (Availability Domains and Fault Domains).
Each Region is independent and isolated from others. Resources within a Region can communicate with low latency. OCI provides multiple Regions worldwide (e.g., us-ashburn-1, uk-london-1, ap-mumbai-1).
Think of a Region as a "Branch Office" of the Cloud located in a specific city.
Key Characteristics of an OCI Region
Geographic Isolation:
Regions are hundreds or thousands of kilometers apart. This ensures that a natural disaster in one region (like a flood in Mumbai) doesn't affect another region (like Hyderabad).
Data Sovereignty: Since you are in India, you might choose the India West (Mumbai) region to ensure your data stays within the country's borders for legal or compliance reasons.
Latency: You generally pick the region closest to your users. If your application is for users in Bangalore, the Mumbai or Hyderabad regions will provide the fastest response times.
Home Region: When you signed up for your OCI Free Tier account, you picked a "Home Region." This is where your account's main settings and identity information (IAM) are permanently stored.
Types of Regions in OCI OCI organizes regions into different "Realms" based on who is using them:
Commercial Regions: These are available to any person or company (like the one you are using for your practice).
Government Regions: Dedicated regions for specific governments (like the US or UK government) for extra security.
Dedicated Regions: A private version of OCI that a large company can actually install inside their own physical building.
Availability Domain (AD) in OCI :
An Availability Domain (AD) is a physically separate data center within a Region.
Each AD has its own power, cooling, and network connectivity. Regions can have 1, 2, or 3 ADs. ADs within the same Region are connected via a low-latency network high-bandwidth If one AD fails, others continue to function.
How to use ADs effectively? ✔ Distribute workloads across multiple ADs for high availability. ✔ Place primary and backup databases in different ADs for disaster recovery. ✔ Use ADs to run fault-tolerant applications (e.g., Active-Active setup).
Example: ADs in the us-ashburn-1 Region
- us-ashburn-1 (Region) ├── us-ashburn-1-AD1 (Availability Domain 1) ├── us-ashburn-1-AD2 (Availability Domain 2) ├── us-ashburn-1-AD3 (Availability Domain 3)
Fault Domain (FD) in OCI :
Each AD is further divided into Fault Domains (FDs).
FDs are logical groupings of hardware within an AD. They help protect workloads from hardware failures. Each AD typically has 3 FDs.
Example: Fault Domains in us-ashburn-1-AD1
- us-ashburn-1-AD1 (Availability Domain 1) ├── Fault Domain 1 ├── Fault Domain 2 ├── Fault Domain 3
✔ Best Practice: Deploy VMs across different Fault Domains to minimize failure impact.
| Feature | Region | Availability Domain (AD) | Fault Domain (FD) |
|---|---|---|---|
| What is it? | Geographic Location | Isolated Data Center | Logical Rack/Hardware group |
| Protects against | Entire Country/Area disaster | Entire Data Center failure | Single Rack/Hardware failure |
| Hierarchy | Top Level | Inside a Region | Inside an AD |
| Number | Dozens globally | 1 or 3 per Region | Exactly 3 per AD |
Tenancy
In Oracle Cloud Infrastructure (OCI), a Tenancy is the most basic building block of your account. It is a secure, isolated partition where you create, organize, and manage your cloud resources.
Think of it as a secure apartment building where Oracle is the landlord:
The Tenancy is your Apartment: When you sign up for OCI, Oracle gives you the keys to your own apartment (the Tenancy). Everything inside that apartment belongs to you.
Isolation: Your neighbors (other companies) have their own apartments. You cannot see into theirs, and they cannot see into yours.
The Rooms (Compartments): Inside your apartment, you can create different rooms to stay organized. In OCI, these are called Compartments. You might have one "room" for your Finance team and another for your Developers.
The Furniture (Resources): Your cloud resources—like servers (Compute), databases, and storage—are the furniture you place inside those rooms.
Key Characteristics: Root Container: The tenancy is the top-level container for all your cloud resources.
Account Identity: Your tenancy is linked to your billing account.
Global Reach: While your tenancy has a "Home Region," you can use it to manage resources in Oracle data centers all over the world.
on-prem vs cloud
1. On-Premises ((Self-Managed Infrastructure))
On-premises means a company runs its own data center. All the hardware, software, and data stay inside the organization’s physical facilities. The internal IT team is responsible for every single detail: purchasing servers, setting up storage, managing networking, ensuring physical security, and maintaining power and cooling systems.
Key Benefit: Gives the business complete control over its physical hardware and data security.
Key Challenge: Requires higher upfront costs (CapEx) and 24/7 manual responsibility for maintenance.
Ownership: You buy the hardware (CapEx - Capital Expenditure). This is expensive upfront.
Control: You have total control over the physical security and the hardware configuration.
Maintenance: Your IT team is responsible for replacing broken hard drives, updating firmware, and managing electricity.
Scalability: If you need more power, you have to buy a new server, wait for it to be delivered, and manually install it (this can take weeks).
2. Cloud Computing (Modern IT)
Cloud Computing is a modern IT delivery model that provides on-demand access to computing resources—including servers, storage, networking, and applications—over the internet. Instead of building and maintaining physical data centers, organizations "subscribe" to global providers like Oracle Cloud Infrastructure (OCI), AWS, Azure, or GCP.
This model allows businesses to deploy infrastructure instantly, scaling resources up or down based on real-time needs, without the burden of heavy upfront hardware costs or manual maintenance.
Expense: You pay only for what you use (OpEx - Operational Expenditure). It’s a monthly subscription or hourly rate.
Management: The provider (Oracle) manages the physical security, the power, and the hardware. You only manage your data and applications.
Scalability: If your application gets busy, you can add 10 more servers in minutes with a few clicks in the OCI console.
Reliability: Since the Cloud uses Regions, ADs, and FDs, your data is automatically protected against hardware failures.
| Feature | On-Premises | Cloud (OCI/AWS) |
|---|---|---|
| Cost Model | CapEx: High upfront cost. | OpEx: Pay-as-you-go. |
| Deployment | Takes weeks or months. | Takes minutes or seconds. |
| Maintenance | You handle hardware & power. | Provider handles all hardware. |
| Scalability | Difficult and slow. | Highly elastic (Auto-scaling). |
| Security | You are responsible for everything. | Shared Responsibility: They secure the "Cloud", you secure your "Data". |
The simplest way to understand the difference is the "Pizza as a Service" analogy: On-Prem is like making pizza at home from scratch (you own the oven, the gas, and the ingredients), while Cloud is like going to a restaurant or ordering delivery (someone else manages the kitchen, and you just enjoy the meal).