ITPub博客

首页 > 数据库 > Oracle > ora-02085问题解决

ora-02085问题解决

原创 Oracle 作者:gaoyj1973 时间:2007-03-21 17:29:38 0 删除 编辑

今天一个同事在create public database link 后,使用db_link 时总是提示ora-02085 的错误。

登陆主机,使用oerr查看这个错误

$ oerr ora 2085
02085, 00000, "database link %s connects to %s"
// *Cause: a database link connected to a database with a different name.
// The connection is rejected.
// *Action: create a database link with the same name as the database it
// connects to, or set global_names=false.
//

可以判断是global_name=true的问题

C:sqlplus /nolog

SQL> conn sys/25060413@wangdb as sysdba
已连接。
SQL>
SQL> show parameter global_names

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
global_names boolean TRUE
SQL>

问题应该是这个。

SQL>alter system set global_names = false scope =spfile;

SQL>shutdown immediate;

SQL>startup;

[@more@]ora

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

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

注册时间:2012-08-30

  • 博文量
    40
  • 访问量
    369690