How to Install Oracle 21c and SQL Developer on Windows 10

If you're planning to use Oracle 21c and SQL Developer on your Windows 10 machine, this guide will walk you through the process step by step. We'll start with downloading the necessary software, followed by the installation and configuration of Oracle 21c, and then setting up SQL Developer for database management.

Step 1: Download the Software
Oracle Database 21c: Download from Oracle 21c Windows Downloads
SQL Developer: Download from SQL Developer Downloads

Step 2: Install Oracle 21c

  1. Extract the downloaded WINDOWS.X64_213000_db_home.zip.
  2. Run setup.exe to begin the installation.

Configuration Steps:
  1. Configuration Option: Select Create and configure a single instance database and click Next.
  2. Database Installation Options: Select Desktop class.
  3. Oracle Home User: Choose Create New Windows User with the following credentials:
  1. Typical Installation:


Click Next to proceed with the installation.
Troubleshooting:
If your Oracle 21c installation cannot proceed due to existing Oracle services, follow these steps to stop and delete the conflicting services:
1.Open the terminal as an administrator.
2.Run the following commands to stop and delete the services:
SC STOP OracleJobSchedulerORCL
SC STOP OracleOraDB19Home1MTSRecoveryService
SC STOP OracleOraDB19Home1TNSListener
SC STOP OracleRemExecServiceV2
SC STOP OracleServiceORCL
SC STOP OracleVssWriterORCL


SC DELETE OracleJobSchedulerORCL
SC DELETE OracleOraDB19Home1MTSRecoveryService
SC DELETE OracleOraDB19Home1TNSListener
SC DELETE OracleRemExecServiceV2
SC DELETE OracleServiceORCL
SC DELETE OracleVssWriterORCL

3.Restart your computer and try the installation again.

Step 3: Install SQL Developer

  1. Extract the downloaded sqldeveloper-23.1.1.345.2114-x64.zip.
  2. Run sqldeveloper.exe to start SQL Developer.

Creating a Connection in SQL Developer:
  1. Click the green + button to create a new connection.
  2. Fill in the connection details:
  1. Click the Test button to check the connection. If successful, click the Connect button.

Example SQL Queries


Creating a Table
CREATE TABLE EMPLOYEE(
    EMPID INT,
    FIRSTNAME VARCHAR(255),
    LASTNAME VARCHAR(255)
);


Inserting Data:
INSERT INTO EMPLOYEE (EMPID, FIRSTNAME, LASTNAME) VALUES (1, 'Kape', 'Tinapay');
INSERT INTO EMPLOYEE (EMPID, FIRSTNAME, LASTNAME) VALUES (2, 'Kamote', 'Kangkong');
INSERT INTO EMPLOYEE (EMPID, FIRSTNAME, LASTNAME) VALUES (3, 'Tamban', 'Bagoong');


Updating Data:
UPDATE EMPLOYEE SET FIRSTNAME = 'NewName', LASTNAME = 'NewLastName' WHERE EMPID = 2;


Deleting Data:
DELETE FROM EMPLOYEE WHERE EMPID = 2;


Selecting Data:
SELECT * FROM EMPLOYEE;


Comments in SQL Developer:

By following these steps, you will have Oracle 21c and SQL Developer up and running on your Windows 10 machine, allowing you to manage and interact with your databases efficiently.

Last update on Jul 10, 2024

Tags: oracle,sql developer

Back to Posts

Comments

No comments yet.

ForceTeach Corporation 2024