How to Get Started with Always Free Autonomous Database on OCI

Share on LinkedIn ↗

Create your database, configure access, and run your first SQL query in the browser.

1. Create an OCI account and sign in

  1. Create an OCI Free Tier account, or use your existing account. Oracle allows one free account per person.
  2. Sign in to the OCI console.
  3. Select your tenancy's home region.

2. Create a VCN with public and private subnets (optional)

Skip to step 3 if you only need the database. Always Free Autonomous Database cannot be placed in a private subnet.

  1. Open Networking → Virtual cloud networks.
  2. Select Actions → Start VCN Wizard.
  3. Choose Create VCN with Internet Connectivity.
  4. Select your project compartment and enter dev-vcn as the VCN name.
  5. Enter your IPv4 ranges. Use non-overlapping subnets within your VCN; replace the masked digits below with your own values:
ComponentIPv4 CIDR
VCN10.x.x.x/16
Public subnet10.x.0.x/24
Private subnet10.x.1.x/24
  1. Leave DNS hostnames enabled and review the settings.
OCI VCN wizard review showing dev-vcn and the public and private subnet configuration
Figure 1. Review the VCN and subnet settings.
  1. Click Create and wait for all creation tasks to show Done.
VCN wizard resource creation checklist showing completed network resources
Figure 2. Wait for all network creation tasks to show Done.
  1. Select View VCN → Subnets.
  2. Confirm that both subnets are Available, with the expected address ranges and Public or Private access type.
Both regional subnets are Available with Public and Private access types and the expected CIDR blocks
Figure 3. Confirm that both subnets are Available.

3. Create your Autonomous Database

  1. Open Oracle AI Database → Autonomous AI Database.
  2. Select Create Autonomous AI Database.
  3. Select your project compartment.
  4. Enter or select the following values:
SettingValue
Display namedev-atp
Database nameDEVATP
WorkloadTransaction Processing
Always FreeEnabled
Database version19c, where supported by Always Free in your home region
Autonomous Database form with dev-atp, DEVATP and Transaction Processing selected
Figure 4. Enter the database names and select Transaction Processing.
Always Free database option enabled, 19c selected, and administrator password fields empty
Figure 5. Enable Always Free and select a supported database version.
  1. Set and confirm your ADMIN password.
  2. Save the password in your password manager.

4. Configure database access

  1. Under Network access, select Secure access from allowed IPs and VCNs only.
  2. Select IP address as the IP notation type.
  3. Select Add my IP address to fill in your current address automatically.
  4. Keep Require mutual TLS enabled.
OCI network access with allowed IPs selected, IP address notation, Add my IP enabled and mutual TLS enabled; IP values blurred
Figure 6. Configure network access and enable mutual TLS.

Find your address manually

  1. Connect to the network or VPN you will use for database access.
  2. Open api.ipify.org, or run this command in Windows PowerShell:
curl.exe https://api.ipify.org
  1. Copy the lookup result into the Values field. Use your public IP, not your laptop's private IP or 0.0.0.0/0.

5. Add tags and submit

  1. Expand Advanced options → Tags.
  2. Select None for the tag namespace and add these free-form tags:
KeyValue
ProjectOCIGettingStarted
EnvironmentDevelopment
Autonomous Database creation form with the Project and Environment tags prepared
Figure 7. Add the Project and Environment tags.
  1. Review the settings and confirm that Always Free is enabled.
  2. Click Create.
  3. Wait for the status to change from Provisioning to Available.
dev-atp in Provisioning with an Always Free label in the Chicago console
Figure 8. Wait while the database is Provisioning.
  1. Confirm that the details page shows Always Free and instance type Free.
  2. Check that mutual TLS is Required and the access control list is Enabled.
  3. Open Tags and confirm your Project and Environment values.
dev-atp Available and Always Free with instance type Free and database version 19c
Figure 9. Confirm Available and Always Free.

If you created the VCN, add the same tags to the VCN and each subnet through Tags → Add.

6. Run your first SQL query

  1. Open Database Actions → SQL.
  2. Sign in if prompted.
  3. Paste this query into the worksheet:
SELECT 'Connected to Autonomous Database' AS message,
       SYSTIMESTAMP AS checked_at
FROM dual;
  1. Click Run Statement.
  2. Confirm that one row appears with Connected to Autonomous Database and a timestamp.
Database Actions SQL worksheet showing the connectivity query and its one row result
Figure 10. Check that your SQL query returns one row.

7. Test the connection from your Windows laptop

Download your database wallet

  1. Connect your laptop to the network or VPN you will use for database access. Confirm that its current public IP is in the database access control list.
  2. In the OCI console, open dev-atp → Database connection.
  3. Select Instance wallet, then Download wallet.
  4. Set and confirm a wallet password, then download Wallet_DEVATP.zip.
  5. Save the ZIP in a protected local folder.

Use your database password to sign in; use the wallet password only when prompted for it. Wallet download help

Connect with SQL Developer

  1. Download Oracle SQL Developer for Windows if needed, then launch it.
  2. Right-click Connections → New Database Connection.
  3. Enter these settings:
SettingValue
Connection namedev-atp
UsernameADMIN for this initial test
PasswordYour database ADMIN password
Connection typeCloud Wallet
Configuration fileBrowse to Wallet_DEVATP.zip
ServiceSelect devatp_low from the wallet service list
  1. Click Test and check for Success.
  2. Click Connect and run this query in the SQL worksheet:
SELECT 'Connected to Autonomous Database' AS message,
       SYSTIMESTAMP AS checked_at
FROM dual;

Confirm that one row appears with your connection message and a timestamp. Oracle SQL Developer wallet connection instructions

Windows SQL Developer showing the connection check query and successful output with Connected to Autonomous Database and a timestamp
Figure 11. Successful SQL test from Windows SQL Developer.

If the connection fails, check the database status, laptop IP allowlist entry, selected wallet, and database password. Your network must allow outbound TCP port 1522 for this mTLS connection.

8. Update access when your IP changes

  1. Open your database details page.
  2. Under Network, select Edit next to Access control list.
  3. Add an IP address entry with your current public IP. Use Add my IP address if available.
  4. Remove addresses you no longer use and save the changes.
  5. Wait for Available, then retry your connection.

9. Review project costs

  1. Open Billing & Cost Management → Cost Analysis.
  2. Select the date range for your project.
  3. Filter by Project = OCIGettingStarted.
  4. Group by service or SKU and review usage and charges.

If usage is not visible yet, check again after reporting updates. Tags do not cap spending. Cost Analysis help

10. Save your work

  1. Save your SQL scripts and export any data you need to keep.
  2. Review the Always Free lifecycle and backup limits. Inactive databases can be stopped and later reclaimed.
  3. Before deleting your database, confirm that your export is saved and verify the database name. Deletion removes your data.
Share on LinkedIn ↗

Join the discussion

Ask a question, share a result, or add a useful tip.

Loading comments…

Leave a comment

Your name and comment will be public. Keep passwords, email addresses, IP addresses, and other private details out of your comment. Cloudflare Turnstile checks submissions to help prevent spam.