当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
OracleORA-02069注意事项
发布时间:2013/7/9 17:39:40 来源:城市网学院 编辑:admin
  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> #mit;
  提交完成。
  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> #mit;
  提交完成。
  SQL> create sequence seq_on_test4;
  序列已创建。
  SQL> create database link yangtk connect to scott identified by tiger using 'yangtk';
  数据库链接已创建。
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved