- 1
For example, the error message that may occur when we run Oracle ORA-12545: The connection failed because the target host or object does not exist
- 2
Workaround:
First, start with the basics, right-click on the computer, select Manage
- 3
Find the services and applications inside, open the service
- 4
As shown ~ found:
Oracleoradb11g_home1tnslistener
Oracleserviceorcl
- 5
Start these two data services, this is the most basic
- 6
Once the data service is started, reconnect again
- 7
If this is the same as shown in the prompt content, so the solution is estimated to be a bit of trouble, here you must be the local name of your computer changed
- 8
Workaround:
Open app→ Account →product→11.1.0→db_1→network→admin
Locate the two files shown in Listener.ora Tnsnames.ora
- 9
Click on the two files to make changes to the content (the main changes are as in the area of the red line)
- 10
This way, you need to open your computer, find your computer name, and then select Copy
- 11
Change the host name in both folders of Listener.ora Tnsnames.ora to your computer name, and then reconnect after the save is complete
- 12
If you see a message like the one shown in, here you need to re-start the two services in your Oracle
- 13
After the service is started, if you still see the error message, we need to configure your monitoring.
- 14
Found in the Start menu,Net Configuration Assistant
- 15
Open as shown, select the Listener configuration and click Next
- 16
Select reconfigure to go to the next step
- 17
Click Next directly
- 18
Choose Yes
- 19
The selection protocol is typically TCP
- 20
Select Use standard port number and click Next
- 21st
Select no , go to Next
- 22
Listener configuration Complete, click next
- 23
Selection complete, configuration complete, restart monitoring service
- 24
So that your database can be connected successfully, the above methods hope to help everyone