š¦ Installing Oracle XE and Connecting with SQL Developer: From Download to Troubleshooting


Whether you're setting up a local Oracle database or connecting to it via SQL Developer, this guide has you coveredāfrom the official installer to resolving common connection errors like ORA-12541
.
š½ 1. Downloading and Installing Oracle XE
š Official Download Link
Access Oracleās official site to get the latest Oracle Database Express Edition (XE):
š https://www.oracle.com/database/technologies/xe-downloads.html
š Installation Steps (Windows)
Download the
.zip
or.exe
installer.If needed, extract the files and run the installer as Administrator.
During installation:
Set a password for the
SYSTEM
user.The default SID will be
XE
.
Wait for the installation to finish. Oracle services will be configured automatically.
š§ 2. Checking if Oracle Installed Successfully
Press
Win + R
, typeservices.msc
, and look for these services:OracleOraDB...TNSListener
OracleServiceXE
If both show as Running, youāre all set!
š ļø3. Did you download SQL Developer separately?
Oracle XE no longer includes SQL Developer by default. You need to download it manually:
š§© 3.1. Did you extract it correctly?
SQL Developer comes as a
.zip
file. You must extract everything to a folder with no spaces in the path, likeC:\SQLDeveloper
.Do not run it directly from inside the .zip file.
āļø 3.2. Check your Java (JDK) version
SQL Developer requires JDK 8 or 11.
If you downloaded the version without JDK, the application may crash when starting.
Tip: download the version labeled āwith JDK includedā to avoid issues.
š§¼ 3.3. Clear old settings
If SQL Developer opened before but no longer launches:
Close SQL Developer.
Go to:
C:\Users\YourUsername\AppData\Roaming\SQL Developer
Rename or delete the
system...
folder.Try launching the app again.
š 3.4. Antivirus or security policies
Some antivirus tools or network policies might block Java or SQL Developer itself.
Try running it as Administrator.
In corporate environments, there may be restrictions in place.
š§Ŗ 4. Creating a New Connection in SQL Developer
Open SQL Developer
Click on "+" New Connection
Fill out the fields like this:
Field | Suggested Value |
Connection Name | LocalOracleXE (or any label you like) |
Username | system |
Password | the password you set during install |
Connection Type | Basic |
Hostname | localhost |
Port | 1521 |
SID | XE |
- Click Test.
If the result is "Success" in green, click Connect š
ā 5. Common Errors and How to Fix Them
š“ ORA-12541: TNS: No Listener
Error:
ORA-12541: Cannot establish connection. No listener on host localhost port 1521
Solution:
Open Command Prompt as Administrator
Run:
lsnrctl status
If it says the listener is not running, start it with:
lsnrctl start
If you get ācommand not found,ā navigate to the Oracle bin
directory first:
cd C:\app\yourname\product\21c\dbhomeXE\bin lsnrctl
start
Tip: Run where lsnrctl
to find the exact path.
š“ ORA-01017: Invalid Username/Password
Error:
ORA-01017: invalid username/password
Solution:
Make sure you're using the correct user (
system
,hr
, etc.)Double-check the password (it's case-sensitive)
To reset the password (if needed):
ALTER USER system IDENTIFIED BY newPassword;
(you can run this using SYSDBA if necessary)
š“ Connection Timeout or Refused
Solution:
Ensure your firewall isnāt blocking port
1521
.Restart the services:
OracleServiceXE
OracleOraDB...TNSListener
š 6. Finding the Oracle Installation Path
If you're unsure where Oracle is installed:
Open
services.msc
Right-click on
OracleServiceXE
> PropertiesLook under āPath to executableā to find the full install location
Alternatively, search for āSQL Plusā in Windowsāif you find it, Oracle is installed and accessible.
ā Conclusion
With Oracle XE properly installed and SQL Developer configured, you're now fully equipped to explore local Oracle development with confidence. From setting up your first connection to resolving listener issues and common authentication errors, this guide has your back.
Remember: even if you run into problems like ORA-12541
or password errors, theyāre usually quick to diagnose and fix with the right steps.
You're ready to dive into queries, procedures, and all that Oracle has to offer ā enjoy the journey!
#OracleXE #SQLDeveloper #OracleDatabase #TNSListener #ORA12541 #DatabaseSetup #DevTips #BackendDev #OracleBeginner #DBAHelp #PLSQL
Subscribe to my newsletter
Read articles from Johnny Hideki Kinoshita de Faria directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Johnny Hideki Kinoshita de Faria
Johnny Hideki Kinoshita de Faria
Technology professional with over 15 years of experience delivering innovative, scalable, and secure solutions ā especially within the financial sector. I bring deep expertise in Oracle PL/SQL (9+ years), designing robust data architectures that ensure performance and reliability. On the back-end side, Iāve spent 6 years building enterprise-grade applications using .NET, applying best practices like TDD and clean code to deliver high-quality solutions. In addition to my backend strengths, I have 6 years of experience with PHP and JavaScript, allowing me to develop full-stack web applications that combine strong performance with intuitive user interfaces. I've led and contributed to projects involving digital account management, integration of VISA credit and debit transactions, modernization of payment systems, financial analysis tools, and fraud prevention strategies. Academically, I hold a postgraduate certificate in .NET Architecture and an MBA in IT Project Management, blending technical skill with business acumen. Over the past 6 years, Iāve also taken on leadership roles ā managing teams, mentoring developers, and driving strategic initiatives. I'm fluent in agile methodologies and make consistent use of tools like Azure Boards to coordinate tasks and align team performance with delivery goals.