Oracle SQL Training
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.
Set up the HR Account and Get the HR Schema
First, you will set up the HR account, which you will use to create and then log in to the schema. Then, you will get the HR schema, which holds the data that is used in class.
- In SQL Developer, add a new connection:
- Click the + icon under Connections:
- Enter "HR" as the Name and "system" for both the Username and Password, and click Connect:
- Close the dialog.
- Open the HR_Unlock_Account.sql file from your C:\Webucator\SQL\setup.
- Select File > Open:
- Navigate to and open the file:
- Select HR from the connection dropdown in the upper right:
- With the HR_Unlock_Account.sql file open, click the second green play button to run the script. This will create the HR user and assign it the appropriate privileges:
Now, it is time to get the HR schema.
- Run the Command Prompt as administrator:
- Run the following commands:
- Change directory to the setup folder within the Webucator folder:
cd \Webucator\setup\
- Start SQL*Plus as the HR user:
sqlplus C##HR/HR
- Change directory to the setup folder within the Webucator folder:
- Create and populate the HR Schema by running the following two commands:
@hr_cre.sql
You should see a lot of messages. The final message should be:@hr_popul.sql
Commit complete.
- Open SQL Developer and open the properties of the HR connection by right-clicking it and selecting Properties:
- Change the username from “system” to “C##HR” and change to password to “HR”:
- 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:
Congratulations. You are all set for your course.
Courseware and Class Files
This setup page is used for the following courseware:
Courseware
This is for other training companies who are licensing Webucator courseware.
- Courseware: Oracle PL/SQL.
- Courseware: Oracle SQL.