ITPub博客

首页 > 应用开发 > IT综合 > Bequeath Connection Generates Ora-12560: Tns:Protocol Adapter Error [ID 831007.1]

Bequeath Connection Generates Ora-12560: Tns:Protocol Adapter Error [ID 831007.1]

原创 IT综合 作者:msdnchina 时间:2011-09-06 23:56:53 0 删除 编辑

Applies to:

Oracle Server - Enterprise Edition - Version: 6.0.0.0 to 11.2.0.2.0 - Release: 6.0 to 11.2
Microsoft Windows (32-bit)

Symptoms

The local connection is failing when making a bequeath connection:

Enter user-name: sys as sysdba
Enter password:
ERROR:
ORA-12560: TNS:proto adapter error






Changes

This is a newly duplicated database.

Cause

The Windows service name does not match the value for ORACLE_SID.

Solution

The ORACLE_SID environment variable is used to determine which service to connect to. Thus, the ORACLE_SID must match the portion of the service OracleService.

Either:

1) Correct your value for ORACLE_SID

or

2) Delete and recreate the service with the correct name using oradim.

eg,

oradim -delete -sid
oradim -new -sid -startmode auto -pfile

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/161195/viewspace-1054818/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-07-30

  • 博文量
    498
  • 访问量
    1542065