Sub topic 11
Choosing the Right Environment for Your Goal
Assume you know basic SQL, can use a terminal, and understand that a database server accepts connections from client tools. This chapter helps you choose an environment. It does not repeat the full setup steps for each option.
Oracle offers three practical no-cost choices:
- FreeSQL runs SQL in a browser.
- Oracle Database 26ai Free runs locally in a container.
- Always Free Autonomous Database runs in Oracle Cloud.
All three can execute SQL, create tables, and support practice. They differ in control, setup, persistence, and the kind of problems they help you learn.
Compare the three environments
| Environment | Setup effort | Control | Persistence | Best use |
|---|---|---|---|---|
| FreeSQL | Lowest | Low | Depends on the site and saved scripts | Quick SQL exercises |
| 26ai Free container | Medium | High | Local storage and container lifecycle | Learning Oracle administration and local development |
| Always Free Autonomous Database | Medium | Medium | Cloud database lifecycle | Practicing cloud access and managed Oracle features |
FreeSQL: choose speed and simplicity
FreeSQL is the fastest choice when you want to run a query without installing software or creating a cloud account. You open the site, sign in if required, select an available schema or lesson, and run SQL in the browser.
Choose FreeSQL when:
- You are following a short SQL exercise.
- You need a disposable environment.
- You are using a computer where Docker installation is not allowed.
- You want to compare query results without managing a database server.
FreeSQL is less suitable when you need database administration practice. You usually cannot control the server version, listener configuration, storage, or operating system. A browser session or shared schema may also have limits on saved objects and long-term persistence.
26ai Free in a container: choose control
A local container gives you a real Oracle Database instance on your computer. A container is an isolated process with its own filesystem, network settings, and database software. You control how it starts, stops, connects, and stores data.
Choose the container when:
- You want repeatable local development.
- You need to practice users, services, pluggable databases, or startup behavior.
- You want a database that works without an internet connection after the image is available.
- You need more control than a hosted browser environment provides.
The setup requires a container engine such as Docker or Podman, enough disk space and memory, and patience during first-time database creation. The database is normally reached through the local listener on port 1521. You must also understand the difference between the container database and the FREEPDB1 pluggable database. Most application practice should use the pluggable database rather than administrative access to the container database.
A container does not automatically mean permanent data. Removing the container can remove database files unless you use persistent storage. Stopping and restarting the same container normally preserves its files.
Always Free Autonomous Database: choose managed cloud access
An Always Free Autonomous Database is hosted by Oracle Cloud. Oracle manages much of the database infrastructure, including the underlying operating system and many maintenance tasks. You access the database through Database Actions, a SQL worksheet, a client connection, or another supported tool.
Choose it when:
- You want to practice connecting to a cloud database.
- You need a database that remains available beyond your local machine.
- You want to learn TLS connections, wallets, and cloud service names.
- You want managed Oracle features without maintaining the database host.
This option requires an Oracle Cloud account and network access. Cloud resources have region, quota, inactivity, and account-lifecycle rules. The database can also be stopped or reclaimed under applicable Always Free policies. Treat saved scripts and important data as separate assets. Keep copies outside the database.
Use a goal-based decision
Start with the skill you want to practice rather than the product name.
Use FreeSQL for a five-minute query experiment. Use the container for local application development or administration exercises. Use Autonomous Database for cloud connection practice and managed-service workflows.
Check your choice before starting
Ask these questions:
- Must the database work without an internet connection?
- Do you need to create users or inspect container and pluggable-database behavior?
- Will you need the database next week, or is this a one-session exercise?
- Can your computer run a database container comfortably?
- Do you have permission to create an Oracle Cloud resource?
- Is your main goal SQL syntax, local development, administration, or cloud connectivity?
If your answers point in different directions, prioritize the skill that is hardest to simulate elsewhere. SQL syntax works in all three environments. Container lifecycle behavior requires the local option. Wallets, TLS, and cloud service names are most natural with Autonomous Database.
Exercise
You need to test SQL for ten minutes on a restricted computer, then later practice connecting an application to a cloud database. Which environments should you choose, and why?
Show answer
Use FreeSQL for the ten-minute test because it requires no local installation. Use Always Free Autonomous Database for the later exercise because it provides a managed cloud endpoint and supports cloud connection workflows.