Back to Blog
    Cloud Infrastructure

    How to Set Up Oracle Cloud Infrastructure (OCI): Complete Registration & Setup Guide 2025

    Comprehensive guide to registering, configuring, and deploying on Oracle Cloud Infrastructure. From account creation to compute instances and autonomous databases.

    James Rodriguez

    Cloud Infrastructure Engineer

    January 18, 2025
    19 min read
    How to Set Up Oracle Cloud Infrastructure (OCI): Complete Registration & Setup Guide 2025

    Oracle Cloud Infrastructure (OCI) has emerged as a formidable competitor in the cloud computing landscape, offering enterprise-grade performance, competitive pricing, and a generous Always Free tier that includes resources many other providers charge for. Whether you're exploring OCI for its high-performance computing capabilities, its always-free ARM-based instances, or its industry-leading autonomous database technology, this guide will walk you through every step of getting started.


    OCI is particularly attractive for developers and businesses looking for predictable pricing, strong Oracle database integration, and surprisingly powerful free-tier resources that include up to 4 ARM-based Ampere A1 compute instances with 24 GB of total memory.


    Prerequisites for Oracle Cloud Registration


    Before beginning your Oracle Cloud journey, prepare the following:


  1. Email Address: Use a professional or dedicated email for your cloud account
  2. Phone Number: Required for SMS or voice verification during registration
  3. Credit or Debit Card: Needed for identity verification. Oracle emphasizes you won't be charged for Always Free resources
  4. Home Region Selection: Choose carefully — your home region cannot be changed after account creation and determines where your identity resources are stored
  5. Government ID: In some regions, you may need to provide additional identity verification

  6. Understanding Oracle Cloud's Free Tier


    Oracle's Always Free tier is exceptionally generous:


  7. 2 AMD-based Compute VMs: Each with 1/8 OCPU and 1 GB memory
  8. 4 ARM-based Ampere A1 Compute instances: Up to 24 GB total memory and 4 OCPUs (configurable)
  9. 200 GB total Block Volume storage: Plus 5 free backups
  10. 10 GB Object Storage: Plus 10 GB Archive Storage
  11. 2 Autonomous Databases: Each with 1 OCPU and 20 GB storage
  12. Load Balancer: 1 instance with 10 Mbps bandwidth
  13. Monitoring and Notifications: 500 million ingestion data points
  14. 10 TB/month outbound data transfer: Significantly more than competitors

  15. Step 1: Creating Your Oracle Cloud Account


    Registration Process


  16. Navigate to **cloud.oracle.com** and click "Sign Up for Free"
  17. Enter your country/territory and email address
  18. Complete email verification with the code sent to your inbox
  19. Fill in your personal information:
  20. - First and last name

    - Company name (optional for personal accounts)

    - Department and job title

    - Address and phone number

  21. Select your **Home Region** — This is critical:
  22. - Choose the region closest to your users or operations

    - Consider service availability (not all services are in all regions)

    - Popular choices: US East (Ashburn), US West (Phoenix), UK South (London), Germany Central (Frankfurt)

  23. Enter your payment information for verification
  24. Accept the terms and conditions
  25. Click "Start My Free Trial"

  26. Account Activation


    Account activation typically takes 2-15 minutes. During this time:


  27. You'll receive a welcome email with your cloud account name and username
  28. The email includes a link to set your initial password
  29. Your tenancy (top-level organizational container) is automatically created

  30. First Sign-In


  31. Go to **cloud.oracle.com**
  32. Enter your Cloud Account Name (tenancy name)
  33. Click "Next"
  34. Select "Oracle Cloud Infrastructure Direct Sign-In"
  35. Enter your username and password
  36. Set up Multi-Factor Authentication immediately (prompted on first login)

  37. Step 2: Understanding OCI Architecture


    Key OCI Concepts


    Before configuring resources, understand these foundational concepts:


  38. Tenancy: Your root-level container in OCI, created during signup
  39. Compartments: Logical containers for organizing resources (similar to folders)
  40. Regions: Geographic areas containing one or more Availability Domains
  41. Availability Domains (ADs): Independent data centers within a region
  42. Fault Domains: Groupings within ADs for hardware failure isolation
  43. Virtual Cloud Network (VCN): Your private network in OCI

  44. Compartment Strategy


    Compartments are crucial for organization, access control, and cost tracking:


  45. Navigate to **Identity & Security > Compartments**
  46. Create a hierarchical structure:
  47. - **Root Compartment** (your tenancy)

    - **Production**: Production workloads

    - **Development**: Dev and test environments

    - **Shared-Services**: Networking, monitoring, security tools

    - **Sandbox**: Experimentation and learning


    Creating Compartments


  48. Click "Create Compartment"
  49. Enter a name (e.g., "Development")
  50. Add a description
  51. Select the parent compartment
  52. Click "Create Compartment"
  53. Repeat for each compartment in your strategy

  54. Step 3: Configuring Identity and Access Management


    IAM Policies in OCI


    OCI uses a policy language that's readable and powerful:


    Policy syntax: `Allow <group> to <verb> <resource-type> in <location>`


    Verbs: inspect, read, use, manage (increasing levels of access)


    Creating Groups and Users


  55. Navigate to **Identity & Security > Domains > Default Domain**
  56. Create Groups:
  57. - **Administrators**: Full tenancy management

    - **NetworkAdmins**: Network resource management

    - **Developers**: Compute and application resources

    - **ReadOnlyUsers**: View-only access


  58. Create Users:
  59. - Click "Users" > "Create User"

    - Enter name, email, and description

    - Add user to appropriate groups

    - The user receives an email to set their password


    Writing IAM Policies


  60. Navigate to **Identity & Security > Policies**
  61. Create policies for each group:

  62. **Administrator Policy:**

    Allow group Administrators to manage all-resources in tenancy


    **Developer Policy:**

    Allow group Developers to manage instance-family in compartment Development

    Allow group Developers to manage volume-family in compartment Development

    Allow group Developers to use virtual-network-family in compartment Development

    Allow group Developers to manage object-family in compartment Development


    **Read-Only Policy:**

    Allow group ReadOnlyUsers to inspect all-resources in tenancy


    Multi-Factor Authentication


  63. Navigate to **Identity & Security > Domains > Default Domain > Security**
  64. Enable MFA enforcement for all users
  65. Configure MFA factors:
  66. - Mobile app (Oracle Mobile Authenticator or any TOTP app)

    - FIDO2 Security Keys

    - SMS (less secure but available as backup)


    Step 4: Setting Up Networking


    Creating a Virtual Cloud Network (VCN)


  67. Navigate to **Networking > Virtual Cloud Networks**
  68. Select your compartment
  69. Click "Start VCN Wizard" for guided setup or "Create VCN" for manual
  70. Using the Wizard ("VCN with Internet Connectivity"):
  71. - Enter VCN name (e.g., "main-vcn")

    - Configure CIDR blocks (default: 10.0.0.0/16)

    - The wizard creates public and private subnets, internet gateway, NAT gateway, and service gateway

  72. Click "Create"

  73. Network Security


    Security Lists vs Network Security Groups


  74. Security Lists: Applied at the subnet level, rules apply to all resources in the subnet
  75. Network Security Groups (NSGs): Applied to individual resources, more granular control (recommended)

  76. Creating a Network Security Group


  77. Navigate to **Networking > Virtual Cloud Networks > Your VCN > Network Security Groups**
  78. Click "Create Network Security Group"
  79. Add ingress rules:
  80. - SSH (TCP port 22) from your IP address

    - HTTP (TCP port 80) from 0.0.0.0/0

    - HTTPS (TCP port 443) from 0.0.0.0/0

  81. Add egress rules:
  82. - All traffic to 0.0.0.0/0 (or restrict as needed)


    Step 5: Launching Compute Instances


    Creating an Always Free Compute Instance


    AMD Instance (Always Free)


  83. Navigate to **Compute > Instances > Create Instance**
  84. Enter a name for your instance
  85. Select your compartment
  86. Configure placement: Choose an Availability Domain
  87. Select image: Oracle Linux 8, Ubuntu 22.04, or CentOS
  88. Select shape: **VM.Standard.E2.1.Micro** (Always Free)
  89. - 1/8 OCPU, 1 GB RAM

  90. Configure networking:
  91. - Select your VCN and public subnet

    - Assign a public IPv4 address

    - Select or create a Network Security Group

  92. Add SSH key:
  93. - Generate a key pair or paste your public key

    - Download and save the private key securely

  94. Configure boot volume: 47 GB (default, free)
  95. Click "Create"

  96. ARM Ampere A1 Instance (Always Free)


  97. Follow the same process but select shape: **VM.Standard.A1.Flex**
  98. Configure OCPUs (up to 4 free) and memory (up to 24 GB free)
  99. Recommended free configuration:
  100. - 2 OCPUs, 12 GB RAM for a single instance, or

    - 4 instances with 1 OCPU and 6 GB RAM each


    Connecting to Your Instance


    **SSH from terminal:**

    `ssh -i /path/to/private-key opc@<public-ip>`

    (Username is `opc` for Oracle Linux, `ubuntu` for Ubuntu)


    **Cloud Shell:**

  101. Click the Cloud Shell icon in the console header
  102. Upload your private key
  103. Connect using SSH from Cloud Shell

  104. Step 6: Setting Up Autonomous Database


    Creating an Always Free Autonomous Database


  105. Navigate to **Oracle Database > Autonomous Database**
  106. Click "Create Autonomous Database"
  107. Configure:
  108. - **Compartment**: Select appropriate compartment

    - **Display name**: e.g., "dev-database"

    - **Database name**: e.g., "devdb"

    - **Workload type**: Transaction Processing (ATP) or Data Warehouse (ADW)

    - **Deployment type**: Serverless

    - **Always Free**: Toggle ON

    - **Database version**: 19c or 23ai (latest)

    - **OCPU count**: 1 (free tier max)

    - **Storage**: 20 GB (free tier max)

  109. Create administrator credentials (ADMIN password)
  110. Configure network access:
  111. - Secure access from everywhere (simplest for development)

    - Or restrict to specific VCN/IPs for production

  112. Click "Create Autonomous Database"

  113. Connecting to Autonomous Database


  114. Click on your database instance
  115. Click "Database Connection"
  116. Download the wallet file (contains connection credentials)
  117. Use the wallet with:
  118. - **SQL Developer**: Oracle's free database IDE

    - **SQLcl**: Command-line SQL tool

    - **Application code**: Using JDBC, Python cx_Oracle, or Node.js oracledb drivers


    Using Database Tools in Console


  119. Click "Database Actions" on your Autonomous Database page
  120. Sign in with ADMIN credentials
  121. Access built-in tools:
  122. - **SQL Worksheet**: Run queries directly

    - **Data Modeler**: Design schemas visually

    - **REST Services**: Create REST APIs from database objects

    - **JSON Collections**: Work with document data

    - **APEX**: Build low-code applications


    Step 7: Object Storage Setup


    Creating a Bucket


  123. Navigate to **Storage > Object Storage > Buckets**
  124. Select your compartment
  125. Click "Create Bucket"
  126. Configure:
  127. - **Bucket Name**: Unique within your namespace

    - **Default Storage Tier**: Standard (or Archive for infrequent access)

    - **Emit Object Events**: Enable for event-driven workflows

    - **Encryption**: Oracle-managed keys (default) or customer-managed

  128. Click "Create"

  129. Uploading Objects


  130. Click on your bucket
  131. Click "Upload" and select files
  132. Or use the OCI CLI: `oci os object put --bucket-name my-bucket --file ./myfile.txt`

  133. Pre-Authenticated Requests


    Create shareable links for objects without requiring OCI credentials:


  134. Click on an object in your bucket
  135. Click "Create Pre-Authenticated Request"
  136. Set expiration time and access type
  137. Copy the generated URL (shown only once)

  138. Step 8: Installing OCI CLI and Cloud Shell


    OCI CLI Installation


    **macOS/Linux:**

    `bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"`


    **Windows:**

    Download and run the MSI installer from Oracle's documentation.


    CLI Configuration


  139. Run `oci setup config`
  140. Enter your:
  141. - User OCID (found in Identity > Users > Your User)

    - Tenancy OCID (found in Administration > Tenancy Details)

    - Region (e.g., us-ashburn-1)

  142. Generate or provide an API signing key
  143. Upload the public key to your user profile

  144. Essential CLI Commands


  145. `oci iam compartment list` — List compartments
  146. `oci compute instance list --compartment-id <id>` — List instances
  147. `oci os bucket list --compartment-id <id>` — List storage buckets
  148. `oci db autonomous-database list --compartment-id <id>` — List databases

  149. Using Cloud Shell


    Cloud Shell provides a browser-based terminal pre-configured with:


  150. OCI CLI (pre-authenticated)
  151. Python, Node.js, Java SDKs
  152. kubectl for Kubernetes
  153. Terraform
  154. 5 GB of persistent home directory storage

  155. Access it by clicking the terminal icon in the console header.


    Step 9: Monitoring and Observability


    Setting Up Alarms


  156. Navigate to **Observability & Management > Monitoring > Alarm Definitions**
  157. Click "Create Alarm"
  158. Configure:
  159. - Select metric namespace (e.g., oci_computeagent)

    - Choose metric (e.g., CpuUtilization)

    - Set threshold and trigger conditions

    - Configure notification topic

  160. Create a Notification Topic:
  161. - Navigate to **Application Integration > Notifications**

    - Create a topic and add email subscribers

    - Confirm the subscription via email


    OCI Logging


  162. Navigate to **Observability & Management > Logging**
  163. Enable logging for your resources:
  164. - VCN Flow Logs

    - Object Storage access logs

    - Load Balancer access and error logs

    - Compute instance system logs


    Step 10: Cost Management and Governance


    Budgets and Alerts


  165. Navigate to **Billing & Cost Management > Budgets**
  166. Click "Create Budget"
  167. Set budget amount and alert thresholds
  168. Configure email notifications

  169. Cost Analysis


  170. Go to **Billing & Cost Management > Cost Analysis**
  171. Filter by compartment, service, or tag
  172. Create saved reports for monthly reviews
  173. Export data for detailed analysis

  174. Tagging Strategy


    Implement a consistent tagging strategy:


  175. Navigate to **Governance > Tag Namespaces**
  176. Create a namespace (e.g., "CostCenter")
  177. Define tag keys: environment, project, owner, cost-center
  178. Apply tags to all resources for cost attribution and governance

  179. Conclusion and Next Steps


    You now have a fully configured Oracle Cloud Infrastructure environment with proper security, networking, compute, database, and monitoring capabilities. OCI's Always Free tier provides an exceptional platform for learning, development, and even running small production workloads.


    Your recommended next steps include exploring Oracle Container Engine for Kubernetes (OKE) for container orchestration, Oracle Functions for serverless computing, and the API Gateway for building REST APIs. OCI's unique strengths in autonomous database technology and high-performance computing make it an excellent choice for data-intensive applications.


    Continue building your OCI expertise through Oracle's free learning paths on Oracle University, and take advantage of the Always Free resources to experiment with new services without cost concerns. The key to mastering OCI is consistent hands-on practice and gradually expanding your service portfolio as your needs evolve.

    Tags:
    Oracle Cloud
    OCI
    Cloud Setup
    Tutorial
    Autonomous Database
    Cloud Computing
    Share this article

    Ready to Transform Your Sales Process?

    Start your free trial of OpenDesk CRM and experience the difference.

    Start Free Trial

    Related Articles