0% found this document useful (0 votes)
3 views3 pages

Oracle SQL Learning Setup Guide

This guide provides steps to set up an Oracle SQL learning environment, including installing Oracle Database Free 23c and SQL Developer. It also suggests installing the HR sample schema for practice and offers instructions for creating a connection in SQL Developer. Additionally, it includes a bonus section on creating tables and core SQL concepts to focus on for learning.

Uploaded by

ad277087
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Oracle SQL Learning Setup Guide

This guide provides steps to set up an Oracle SQL learning environment, including installing Oracle Database Free 23c and SQL Developer. It also suggests installing the HR sample schema for practice and offers instructions for creating a connection in SQL Developer. Additionally, it includes a bonus section on creating tables and core SQL concepts to focus on for learning.

Uploaded by

ad277087
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Oracle SQL Learning Environment Setup Guide

1. Install Oracle Database Locally

You'll need a local Oracle Database to connect to. There are a few easy options:

Option A: Use Oracle Database Free 23c (Recommended for learning)

- Download link: https://www.oracle.com/database/free/

- Choose: Oracle Database 23c Free - Developer Release

- Install it on your machine (Windows/Linux/Mac with Docker)

- It comes with a default service name (e.g., FREEPDB1) and port 1521.

2. Install SQL Developer

- Download from: https://www.oracle.com/tools/downloads/sqldev-downloads.html

- Install and launch SQL Developer on your computer.

3. Sample Databases (Optional but useful)

You can install the HR sample schema:

- Locate HR_main.sql from your Oracle installation or download from:

https://github.com/oracle/db-sample-schemas

- Run in SQL Developer:

@/path/to/hr_main.sql

- Unlock the HR account and set a password during setup.


4. Connect from SQL Developer

1. Open SQL Developer.

2. Create a new connection with the following settings:

- Username: hr (or your schema)

- Password: (your password)

- Hostname: localhost

- Port: 1521

- Service Name: FREEPDB1 (or your PDB)

3. Click Test, then Connect.

5. Bonus: Create Your Own Tables

Run the following SQL commands in SQL Developer:

CREATE TABLE students (

student_id NUMBER PRIMARY KEY,

name VARCHAR2(100),

grade NUMBER

);

INSERT INTO students VALUES (1, 'Alice', 90);

INSERT INTO students VALUES (2, 'Bob', 85);


6. Teaching Tip

Start with these core SQL concepts:

- SELECT statements

- WHERE, ORDER BY

- INSERT, UPDATE, DELETE

- JOINS (use HR schema)

- Functions like COUNT, SUM, AVG

You might also like