Install Oracle Database on a Windows machine, configure environment variables, and verify the setup so you can start running SQL queries locally.
Pick the latest Long-Term Support (LTS) release (for example, 19c) unless a project requires a specific version. LTS releases receive the longest patch support and work well with most client libraries.
Ensure your account has Administrator rights, Windows 10/11 64-bit is up-to-date, and Visual C++ 2017-2022 Redistributable x64 is installed; otherwise, the installer stops.
Visit oracle.com, sign in, and download «Oracle Database 19c (64-bit) Windows». Choose the ZIP, not the VMWare image, to keep the footprint light on your laptop.
Extract the ZIP, right-click setup.exe, and select “Run as administrator.” Accept license terms, pick «Create and configure a single instance database», then leave default paths unless your drive is space-constrained.
• Global database name (SID): use “ORCLCDB” to match docs.
• Character set: AL32UTF8 for emoji-safe storage.
• Passwords: Pick a strong one and note it; lost SYS access means reinstall.
Open PowerShell (Admin) and run:[Environment]::SetEnvironmentVariable('ORACLE_HOME','C:\app\oracle\product\19.0.0\dbhome_1','Machine')
[Environment]::SetEnvironmentVariable('PATH',$env:PATH+';'+$env:ORACLE_HOME+'\bin','Machine')
Log out and back in to activate.
Launch «SQL*Plus» from the Start menu or run sqlplus sys/Pa$$w0rd@ORCLCDB as sysdba
. A successful “Connected.” message confirms the listener, service, and credentials are correct.
Verify the sample schemas: SELECT username FROM dba_users WHERE default_tablespace = 'USERS';
. Seeing HR tells you the Human Resources demo schema is present.
Run the script shown below (Customers, Orders, Products, OrderItems) to seed data for tutorials. Keep each CREATE TABLE in its own transaction to simplify rollbacks.
Use Windows Services: locate «OracleServiceORCLCDB»; click «Stop» to free RAM when not developing, and «Start» when needed. Alternatively, run oradim -shutdown -sid ORCLCDB -shuttype SRVC,INST
.
The installer auto-creates a listener on port 1521. Create another only when hosting multiple Oracle homes that require different ports to avoid clashes.
No. One listener can service many databases as long as they share the same Oracle home and port.
Yes, but put Instant Client’s bin folder after ORACLE_HOME\bin in PATH to avoid DLL clashes.
Oracle is only certified on Windows Professional and Enterprise. Home often works, but support may refuse service requests.