SQL> select instance_name from v$instance;INSTANCE_NAME
--------------------------------
PMORCL2Cause: An attempt was made to create a database link with the same name as the current database. Action: This database link needs a trailing qualifier to make the name unique. These qualifiers are operating system-specific. See your operating system-specific Oracle documentation for more information about creating database links. 先确定你的实例名。看看还抱什么错。

解决方案 »

  1.   

    Quote:
    据有关资料说,如果参数global_name的值为true时,链接名必须和远程数据库的实例名相同。
    Quote:

    这个没必要,我建过很多链接了,没有这个限制啊。
    global_name为true时,在同一网络内不能有相同的SID,否则建立的数据库链接不成立。
    如果为false,则在同一网络内可以有相同的SID,建立的数据库链接名不同即可。例如:在我这里有1.1,SID=ORCL和3.1,SID=ORCL还有14.1,SID=ORCL的数据库,另外我在4.1,SID=ORCL的数据库上建数据库链接,只要配置不同的connect string(似乎就是你说的远程数据库别名),就可以用不同的数据库链接名来设置。
    但是这种情况下,就要求init.ora中的global_name为false.
      

  2.   

    我的实例名确实是ORA8呀,我用语句:
    create database link ora8@ora8
    using 'ora8ss';
    可以建立链接,可是在SCHEMA MANAGER中测试有如下提示:
    the database link is not active
    还有别的什么原因呢?
      

  3.   

    1。tsping 可以成功?
    2。global_name=falst并且别名再对方服务器的tnsname。ora有配?
      

  4.   

    1.global_name=false
    2.配置tns.ora文件