建立dblink的时候dblink的名称必须和目标数据库的名称相同,否则是不行的。

解决方案 »

  1.   

    create database link db_lin
    connect to username identified by password
    using 'net servername'; 
    db_lin 是我们取的database link 的服务名;
    username 是我们要连接的用户名
    password 是我们要连接的用户的密码
    'net servername'  是以前建立好的网络服务名
    现在如果在username下有一张表是testone 
    那么是:select * from testone@db_lin;
      

  2.   

    KingSunSha(弱水三千) :您这观点,我不能同意!我测试了是可以的!9i
      

  3.   

    我一直使用 tablename@dblink另外:server端初始参数global_names = false
      

  4.   

    ORA-02085: database link string connects to string 
    Cause: The database link attempted to connect to a database with a different name. The name of the database link must be the same name as the name of the database. 
    Action: Create a database link with the same name as the database to which it connects. ----------------------
    这个是Oracle标准解决方案,不知道你能不能把你的dblink sql script贴出来。