Podstrona: Erasmus / Wizytówka pracownika PRz

Erasmus

Oracle Database 21c XE – Docker Environment

red. Bartosz Kowal

The gvenzl/oracle-xe:21 Docker image provides a ready-to-use Oracle Database 21c Express Edition (XE) environment.

You can use this database to complete practical exercises, practice SQL queries, create tables, insert and modify data, and perform other database-related tasks.

This environment allows you to practice Oracle SQL locally without installing Oracle Database directly on your operating system.

1. Requirements

Make sure you have Docker installed and running on your computer.

2. Running Oracle Database 21c XE

Open a terminal and execute the following command:

docker run -d --name oracle21cxe -p 1521:1521 -e ORACLE_PASSWORD=system gvenzl/oracle-xe:21

This command downloads the Oracle Database 21c XE Docker image (if necessary) and starts a database container. The database may take a few minutes to initialize.

3. Database Connection Details

Use the following settings to connect to the database:

Parameter Value
Host localhost
Port 1521
Service Name XEPDB1
Username system
Password system

4. Important Note About Passwords

You can choose your own database password by changing the value of the ORACLE_PASSWORD environment variable.

For example, you can use Oracle123 instead of system:

-e ORACLE_PASSWORD=Oracle123

Important: Throughout the course instructions and exercises, I will use system as the password for both the SYS and SYSTEM database users.

If you choose a different password, remember to use your own password when connecting to the database.

Note: The password system is used here for educational purposes. It is not the default password provided by the Docker image; it is explicitly configured in the command above.

5. Additional Information

Docker image: gvenzl/oracle-xe – Docker Hub

You can use this Oracle Database environment throughout the course to complete your SQL and database exercises.

Laboratory no.1

red. Bartosz Kowal

Here you can find the first set of instructions and a presentation covering the topics that will be discussed during the course, as well as the grading criteria and assessment methods.

Downloads

Laboratory no.2

red. Bartosz Kowal

National Language Support (NLS)

Laboratory no.3

red. Bartosz Kowal

Oracle Net Services and the Listener

Downloads