ORA-12545: Connection failed because the target host or object does not exist

Source: Internet
Author: User

Method/Step
  1. 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. 2

    Workaround:

    First, start with the basics, right-click on the computer, select Manage

  3. 3

    Find the services and applications inside, open the service

  4. 4

    As shown ~ found:

    Oracleoradb11g_home1tnslistener

    Oracleserviceorcl

  5. 5

    Start these two data services, this is the most basic

  6. 6

    Once the data service is started, reconnect again

  7. 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. 8

    Workaround:

    Open app→ Account →product→11.1.0→db_1→network→admin

    Locate the two files shown in Listener.ora Tnsnames.ora

  9. 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. 10

    This way, you need to open your computer, find your computer name, and then select Copy

  11. 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. 12

    If you see a message like the one shown in, here you need to re-start the two services in your Oracle

  13. 13

    After the service is started, if you still see the error message, we need to configure your monitoring.

  14. 14

    Found in the Start menu,Net Configuration Assistant

  15. 15

    Open as shown, select the Listener configuration and click Next

  16. 16

    Select reconfigure to go to the next step

  17. 17

    Click Next directly

  18. 18

    Choose Yes

  19. 19

    The selection protocol is typically TCP

  20. 20

    Select Use standard port number and click Next

  21. 21st

    Select no , go to Next

  22. 22

    Listener configuration Complete, click next

  23. 23

    Selection complete, configuration complete, restart monitoring service

  24. 24

    So that your database can be connected successfully, the above methods hope to help everyone

ORA-12545: Connection failed because the target host or object does not exist

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.