Sub topic 1
Three Free Ways to Get an Oracle Database
Oracle provides several no-cost ways to practice SQL and database development. The three most useful options are:
- Oracle Database 26ai Free in a container: a local database that runs on your computer.
- Always Free Autonomous Database: a managed database hosted in Oracle Cloud.
- FreeSQL: a browser-based SQL practice environment that requires no local installation.
These options all let you run SQL, but they differ in setup, control, storage, connectivity, and lifecycle. This chapter compares them so you can choose an environment before you start the hands-on chapters.
Prerequisites
This chapter assumes that you can read basic SQL, including SELECT, INSERT, and CREATE TABLE statements. You should be comfortable using a terminal and understand that a database server accepts connections from client tools.
You need familiarity with Docker or Podman only if you plan to use the local container option. You do not need an Oracle Cloud account for FreeSQL or for a local container. An Oracle Cloud account is required for an Always Free Autonomous Database.
The three environments
26ai Free in a container
Oracle Database 26ai Free can run in a Docker or Podman container on your computer. A container packages the database software and its runtime dependencies into an isolated environment. You start and stop it with container commands, then connect with a SQL client such as SQL*Plus, SQLcl, or an application driver.
This option gives you the most local control. You can inspect logs, change container settings, create users, and experiment with features that require administrative access. It also works without a continuous internet connection after you have obtained the image.
The trade-off is setup and resource cost. You must install a container engine, download the database image, expose a listener port, and wait for the first database creation to finish. The database uses CPU, memory, and disk space on your computer. If you remove the container or its persistent storage incorrectly, you can lose your practice data.
Always Free Autonomous Database
An Always Free Autonomous Database runs in Oracle Cloud. Oracle manages the database software, patching, backups, and much of the underlying infrastructure. You create the database from the cloud console and use browser tools or a client connection to work with it.
This option is useful when you want a database that remains available across computers. It also provides a realistic cloud connection model, including encrypted connections and, for some client tools, a wallet. A wallet is a set of connection files and credentials that helps a client connect securely to an Oracle Cloud database.
The trade-off is reduced administrative control. You cannot manage the host operating system or perform every operation available on a local database. You also depend on cloud availability, account policies, network access, and the service's Always Free limits. An idle database may be stopped or reclaimed under the service's lifecycle rules, so you must understand those rules before treating it as permanent storage.
FreeSQL in the browser
FreeSQL is the quickest option for running Oracle SQL without installing a database, client, or container engine. You open the site in a browser, sign in if required, and run SQL in a provided workspace. It is well suited to short experiments, lessons, and saved scripts.
FreeSQL gives you the least control. You typically work within the site's available schema, features, and resource limits rather than managing users or database services. It is therefore a poor fit for practicing container administration, network configuration, or privileged database operations.
The main advantage is low friction. If your goal is to test a query or complete a SQL exercise, you can begin almost immediately.
Compare the choices
| Option | Setup effort | Control | Persistence | Best use |
|---|---|---|---|---|
| 26ai Free container | Medium to high | Highest | Local storage you manage | Database administration and repeatable local practice |
| Always Free Autonomous Database | Medium | Managed and limited | Cloud service lifecycle | Cloud connectivity and a persistent remote workspace |
| FreeSQL | Low | Lowest | Depends on site and account rules | Fast SQL exercises and saved scripts |
The word free does not mean that the environments have identical limits. Each option can restrict storage, compute, connections, features, or account lifetime. Read the current service terms when your data matters.
How the options fit together
The later chapters use the same basic verification idea in each environment: identify the current session, create a small table, insert a row, and query it. The SQL may be similar, but the connection process and administrative boundaries differ.
Choosing a starting point
Use this decision order:
- Choose FreeSQL when you need the fastest path to a working SQL editor.
- Choose a local container when you want to learn how Oracle services, containers, listener ports, and pluggable databases fit together.
- Choose Autonomous Database when you want a remotely hosted database and practice secure cloud connections.
- Use more than one option when you want to compare local and managed behavior. Keep separate practice data and connection details for each environment.
Exercise
Which environment should you choose if you want to practice SQL immediately without installing software?
Show answer
Choose FreeSQL. It runs in a browser and has the lowest setup effort, although it provides the least administrative control.