June 11, 2015 11:59:59

Source: Internet
Author: User

The following error occurred while MyEclipse DB Explorer was configuring the Oracle 10g Link database:

Connection refused (description= (tmp=) (vsnnum=153093120) (err=12505) (error_stack= (error=) (code=12505)))

You can connect to the database directly via Plsql, or you can connect to the database via Sqlplus

After finding the relevant data, the cause of the problem is as follows:
When JDBC connects to an Oracle database, it needs to use the database's Sid_name (that is, the Oracle instance name), not the database's Services_name
When you use Plsql to connect to a database, you only need the services_name of the database, so modify services_name in the connection string to Sid_name

You can view the SID of the current database in a few ways:

Select instance_name from V$instance;

Instance_name
----------------
Myorcl

June 11, 2015 11:59:59

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.