About this question
I have a installed oracle 19c
but i am unable to login
What must I do?
I have a installed oracle 19c
but i am unable to login
What must I do?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask MS SQL Server Expert
Answered on Feb 7, 2023
If you see the ora-12543: tns:destination host unreachable, you should follow the below steps:
1) we have to login to the sqlplus in the command prompt and connect as sysdba
sql>connect /as sysdba;2 ) alter the sys and unlock the account.
ALTER USER sys IDENTIFIED BY [newpassword] ACCOUNT UNLOCK; 3 ) you can login via following url :https://localhost:5500/em 4 ) Enter the username as sys and new newpassword<br>5 ) you can able login as sys account and continue with your dba works
Ranjana Admin JanBask Expert Latest answer
Answered on Jan 29, 2025
The ORA-12543: TNS:destination host unreachable error in Oracle happens when your database client cannot connect to the database server. This usually means there’s a network issue or a misconfiguration. Here’s how to fix it:
1. Understand Why This Error Occurs
This error usually happens when:
2. Steps to Fix the Error
✅ Check if the Server is Reachable
Try pinging the database server from your client machine:
ping your-db-serverIf there’s no response, the server might be offline or there’s a network issue.
✅ Test the Connection with TNSPING
Run this command in Command Prompt or Terminal:
tnsping your-db-aliasIf this fails, check your TNSNAMES.ORA file for errors.
✅ Verify Your TNSNAMES.ORA File
Open tnsnames.ora (usually in C:Oracle
etworkdmin on Windows).
Ensure the hostname, port, and service name are correct:
YOUR_DB_ALIAS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = your-db-server)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = your-service-name)
)
)Make sure the HOST value is correct and the database is running on that server.
✅ Check Firewall and Network Settings
If the server is on a different network, a firewall might be blocking port 1521 (default Oracle port).
Try disabling the firewall temporarily (if permitted) and check again.
✅ Restart the Oracle Listener
If the listener is down, restart it on the database server:
lsnrctl stop
lsnrctl startThen, try connecting again.
3. Final Thoughts
This error is usually network-related, so start by checking connectivity, TNS settings, and firewall rules. If you’re still stuck, let me know what steps you tried!
Ranjana Admin JanBask Expert
Answered on May 6, 2024
The ORA-12543 error typically occurs when the Oracle client cannot connect to the Oracle server because the specified destination host is unreachable. Here are some steps you can take to troubleshoot and resolve this issue:
Check Network Connectivity: Ensure that the network connection between the client and the server is working properly. Ping the server from the client machine to verify connectivity.
Verify Hostname and Port: Double-check that the hostname and port specified in the connection string are correct. Ensure there are no typos or errors in the configuration.
Firewall Configuration: Make sure that the firewall settings on both the client and server machines allow communication over the specified port. If necessary, adjust the firewall rules to permit Oracle traffic.
Check Listener Status: Verify that the Oracle Listener service is running on the server. You can do this by using the lsnrctl status command on the server machine.
Verify Listener Configuration: Ensure that the listener configuration (listener.ora) on the server is correct and includes the appropriate entry for the database instance you are trying to connect to.
Restart Services: Sometimes, simply restarting the Oracle services on the server or the client machine can resolve connectivity issues. Restart the Oracle Listener service (lsnrctl stop followed by lsnrctl start) and try connecting again.
Check Server Availability: Make sure that the Oracle database server is up and running. If the server is down or undergoing maintenance, you won't be able to establish a connection.
Review Log Files: Check the Oracle alert log and listener log files for any errors or warnings that might provide clues about the cause of the connectivity issue.
Consult Documentation: If you're still unable to resolve the issue, consult the Oracle documentation or seek assistance from your database administrator or IT support team for further troubleshooting.
By following these steps, you should be able to diagnose and resolve the ORA-12543 error and establish a successful connection to the Oracle database.
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step SQL Server guides from industry experts
Common SQL Server interview questions, answered
Guides, tips and career advice on SQL Server from JanBask experts.
SQL Server Top 75 SSAS Interview Questions and Answers For Beginners & Experts
Prepare for your SSAS interview with our comprehensive guide featuring 75 top SQL Server Analysis Services interview questions…
SQL Server How to Become a SQL Database Administrator?
How to become a sql database administrator In 2025, discover what these professionals do, explore how much they earn and learn…
SQL Server OLAP vs OLTP: Key Differences, Architectures, Performance & Real-World Examples
Compare OLTP vs OLAP with clear definitions, architecture diagrams, real-world examples, and FAQs. Learn when to use each system…
SQL Server 70+ Most Asked SSIS Interview Questions for Freshers & Experienced
Prepare for your next SQL Server Integration Services (SSIS) interview with our top 70+ SSIS interview questions and answers.…