Oracle SQL and PL/SQL Developer
Required Software
- Windows 10 Pro, Windows 11 Pro, or Windows 11 Pro for Workstation (not the Home editions). See this page for the required specs of the operating system.
- Oracle Database Express Edition (XE) 12c, 18c, or 21c - Free edition of Oracle RDBMS.
- Oracle SQL Developer - The client interface for connecting to Oracle.
Instructions
Create the Webucator Folder
The first step to setting up for your course package is to create the folder in which you will store most of your class files:
- Create a new folder named Webucator directly on the C drive (i.e., C:\Webucator).
- Unzip the class files for the Oracle SQL class into C:\Webucator\SQL\:
- Unzip the class files for the Oracle PL/SQL class into C:\Webucator\PL-SQL\:
The folder structure should look like this:
- C:
- Webucator
- SQL
- PL-SQL
- Webucator
Install the Software
Follow these instructions to install Oracle Database Express Edition (XE) and Oracle SQL Developer. Then, return to this page and follow the instructions below.
Now, it is time to get the HR schema.
- Run the Command Prompt as administrator:
- Run the following commands to open a SQL prompt at the setup folder:
- Change directory to the setup folder within the Webucator folder:
cd \Webucator\SQL\setup\
- Log into SQL*Plus as system using your system password:
You should get asqlplus system/system@//localhost/XEPDB1
SQL
prompt:
If you get a ORA-12541: TNS:no listener error, do the following:SQL>
- Find and open listener.ora, which is in C:\app\Admin\product\21c\homes\OraDB21Home1\network\admin\ or a similar directory.
- Change the host to 0.0.0.0:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
) - Save the file.
- Open Services and start (or restart) both of the following services:
- OracleOraDB21Home1TNSListener
- OracleServiceXE
- Restart the command prompt and go back to step 1 (Run the Command Prompt as administrator) above.
- Change directory to the setup folder within the Webucator folder:
- Create and populate the HR Schema by running the hr_install.sql script:
SQL> @hr_install.sql
- To confirm the installation actually did complete, run the following query:
You should get the following results:SQL> SELECT * FROM Regions;
REGION_ID REGION_NAME ---------- ------------------------- 1 Europe 2 Americas 3 Asia 4 Middle East and Africa 4 rows selected.
Connect to the HR Schema from SQL Developer
- Open SQL Developer.
- Click the + icon under Connections:
- Enter the following:
- Name: HR
- Username: HR
- Password: HR
- Hostname: localhost
- Port: 1521
- Service Name: XEPDB1
- Click Connect.
- Close the dialog.
- Open a blank SQL Worksheet by right-clicking HR under Connections and selecting Open SQL Worksheet:
- Enter the following SQL query in the new worksheet:
SELECT * FROM Regions;
- Run the query by clicking on the left green triangle. You should get 4 rows in the Query Result: If the query worked, you are all set.
Congratulations. You are all set for your course.
Tip: If your HR account gets locked, see How to Unlock the HR User in XEPDB1.
Courses and Class Files
This setup page is used for the following courses:
Courses
- Oracle SQL Training.
- All students should download the following class files:
- Oracle PL/SQL Training.
- All students should download the following class files: