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
- Create an OCI Free Tier account, or use your existing account. Oracle allows one free account per person.
- Sign in to the OCI console.
- 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.
- Open Networking → Virtual cloud networks.
- Select Actions → Start VCN Wizard.
- Choose Create VCN with Internet Connectivity.
- Select your project compartment and enter
dev-vcnas the VCN name. - Enter your IPv4 ranges. Use non-overlapping subnets within your VCN; replace the masked digits below with your own values:
| Component | IPv4 CIDR |
|---|---|
| VCN | 10.x.x.x/16 |
| Public subnet | 10.x.0.x/24 |
| Private subnet | 10.x.1.x/24 |
- Leave DNS hostnames enabled and review the settings.

- Click Create and wait for all creation tasks to show Done.

- Select View VCN → Subnets.
- Confirm that both subnets are Available, with the expected address ranges and Public or Private access type.

3. Create your Autonomous Database
- Open Oracle AI Database → Autonomous AI Database.
- Select Create Autonomous AI Database.
- Select your project compartment.
- Enter or select the following values:
| Setting | Value |
|---|---|
| Display name | dev-atp |
| Database name | DEVATP |
| Workload | Transaction Processing |
| Always Free | Enabled |
| Database version | 19c, where supported by Always Free in your home region |


- Set and confirm your ADMIN password.
- Save the password in your password manager.
4. Configure database access
- Under Network access, select Secure access from allowed IPs and VCNs only.
- Select IP address as the IP notation type.
- Select Add my IP address to fill in your current address automatically.
- Keep Require mutual TLS enabled.

Find your address manually
- Connect to the network or VPN you will use for database access.
- Open api.ipify.org, or run this command in Windows PowerShell:
curl.exe https://api.ipify.org
- 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
- Expand Advanced options → Tags.
- Select None for the tag namespace and add these free-form tags:
| Key | Value |
|---|---|
| Project | OCIGettingStarted |
| Environment | Development |

- Review the settings and confirm that Always Free is enabled.
- Click Create.
- Wait for the status to change from Provisioning to Available.

- Confirm that the details page shows Always Free and instance type Free.
- Check that mutual TLS is Required and the access control list is Enabled.
- Open Tags and confirm your Project and Environment values.

If you created the VCN, add the same tags to the VCN and each subnet through Tags → Add.
6. Run your first SQL query
- Open Database Actions → SQL.
- Sign in if prompted.
- Paste this query into the worksheet:
SELECT 'Connected to Autonomous Database' AS message,
SYSTIMESTAMP AS checked_at
FROM dual;
- Click Run Statement.
- Confirm that one row appears with
Connected to Autonomous Databaseand a timestamp.

7. Test the connection from your Windows laptop
Download your database wallet
- 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.
- In the OCI console, open dev-atp → Database connection.
- Select Instance wallet, then Download wallet.
- Set and confirm a wallet password, then download
Wallet_DEVATP.zip. - 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
- Download Oracle SQL Developer for Windows if needed, then launch it.
- Right-click Connections → New Database Connection.
- Enter these settings:
| Setting | Value |
|---|---|
| Connection name | dev-atp |
| Username | ADMIN for this initial test |
| Password | Your database ADMIN password |
| Connection type | Cloud Wallet |
| Configuration file | Browse to Wallet_DEVATP.zip |
| Service | Select devatp_low from the wallet service list |
- Click Test and check for Success.
- 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

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
- Open your database details page.
- Under Network, select Edit next to Access control list.
- Add an IP address entry with your current public IP. Use Add my IP address if available.
- Remove addresses you no longer use and save the changes.
- Wait for Available, then retry your connection.
9. Review project costs
- Open Billing & Cost Management → Cost Analysis.
- Select the date range for your project.
- Filter by Project = OCIGettingStarted.
- 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
- Save your SQL scripts and export any data you need to keep.
- Review the Always Free lifecycle and backup limits. Inactive databases can be stopped and later reclaimed.
- Before deleting your database, confirm that your export is saved and verify the database name. Deletion removes your data.
Keep your Oracle notebook growing
Get new Oracle walkthroughs in your inbox, or follow the blog in your favorite RSS reader.
Free email delivery through Blogtrottr. Enter and confirm your email on their site; unsubscribe from any email. The free service may include ads. Your email address is not collected by this blog.
Join the discussion
Ask a question, share a result, or add a useful tip.
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.