OracleORA-02069注意事项

2012-11-12

    Error: ORA-02069: global_names parameter must be set to TRUE for this operation
   
    Cause: You tried to execute an operation that requires a remote mapping. This can not be done because the parameter called GLOBAL_NAMES is not set to TRUE.
   
    Action: The options to resolve this Oracle error are:
   
    Try setting the GLOBAL_NAMES parameter to TRUE with the following statement:
   
    ALTER SESSION SET GLOBAL_NAMES = TRUE;
   
    在一条语句中如果同时包括数据库链和序列,就会出现潜在的问题,而Oracle的文档在这里并没有描述清楚。
   
    下面通过一个例子对同时包括数据库链和序列的几种情况分别进行说明。
   
    首先,构造一个测试的环境(两个数据库的GLOBAL_NAMES均为TRUE):
   
    SQL> conn scott/tiger@yangtk
   
    已连接。
   
    SQL> create table test_on_yangtk (id number);
   
    表已创建。
   
    SQL> insert into test_on_yangtk values (1);
   
    已创建 1 行。
   
    SQL> commit;
   
    提交完成。
   
    SQL> create sequence seq_on_yangtk;
   
    序列已创建。
   
    SQL> conn yangtk/yangtk@test4
   
    已连接。
   
    SQL> create table test_on_test4 (id number);
   
    表已创建。
   
    SQL> insert into test_on_test4 values (1);
   
    已创建 1 行。
   
    SQL> commit;
   
    提交完成。
   
    SQL> create sequence seq_on_test4;
   
    序列已创建。
   
    SQL> create database link yangtk connect to scott identified by tiger using 'yangtk';
   
    数据库链接已创建。

    相关推荐:

    Oracle会话数量查询及结束会话

    oracle中的Schema简析

    Oracle的MERGE未能添加数据

分享到:
0
相关阅读
友情链接
© 2018 我考网 http://www.woexam.com 中国互联网举报中心 湘ICP备18023104号 京公网安备 11010802020116号
违法和不良信息举报:9447029@qq.com