解决ORA-02069: global_names parameter must be set to TRUE for this operation 问题
2017-05-20 11:45
429 查看
解决ORA-02069: global_names parameter must be set to TRUE for this operation 问题
问题产生背景:
多数据库分库,在各个库之间采用dblink连接,DML操作会导致该问题的产生。解决步骤
各个数据库设置独立地global name, 并enable global name.select * from global_name;
alter database rename global_name to MAINDB;
修改tnsnames.ora 和listener.ora.
vi $ORACLE_HOME/network/admin/tnsnames.ora
MAINDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.198.135)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
IPDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.198.136)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
vi $ORACLE_HOME/network/admin/listener.ora
SID_LIST_LISTENER = (
SID_LIST = (
SID_DESC =
(GLOBAL_DBNAME = MAINDB)
(ORACLE_HOME = /db/oracle/product/11.2.0/db_1)
(SID_NAME=orcl)
)
)
各个库都要这样修改。
把DBLINK name 设置成和global name保持相同.
删除旧的db link: drop database link ORCLMAIN;
在MAINDB上建立到IPDB的link
Create database link IPDB connect to admin identified by 123
using ‘IPDB’;
从库也要建立到主库的反向DBLINK,命名原则同上.
在IPDB上建立到MAINDB的link
Create database link MAINDB connect to admin identified by 123
创建表同义词
create synonym IP_RECORD for IP_RECORD@IPDB ;
http://blog.csdn.net/huzhenwei/article/details/2533869
https://dba010.wordpress.com/2011/01/05/oracle-errorsora/#ORA-02069
http://blog.csdn.net/wwwer1/article/details/7297551
相关文章推荐
- 关于:ORA-02069: global_names parameter must be set to TRUE for this operation
- 利用数据库链做DML操作时报ORA-02069: global_names parameter must be set to TRUE for this operation
- 关于:ORA-02069: global_names parameter must be set to TRUE for this operation
- ORA-02069: global_names parameter must be set to TRUE for this operation
- 关于:ORA-02069: global_names parameter must be set to TRUE for this operation
- ORA-02069: global_names parameter must be set to TRUE for this operation
- ORA-02069: global_names parameter must be set to TRUE for this operation
- Oracle存储过程报错ORA-02069: global_names parameter must be set to TRUE for this operation
- Android解决"parameter must be a descendant of this view(参数必须是此视图的子视图 )"问题的方法
- Error: ORA-16698: LOG_ARCHIVE_DEST_n parameter set for object to be added
- 解决SQL 的 Collation 问题:Cannot resolve collation conflict for equal to operation.
- FastCGI must be properly configured before attempting to connect to Map Server.问题的解决办法
- 解决vcenter时出现的“Permission to perform this operation was denied”问题
- 一次解决libgcc_s.so.1 must be installed for pthread_cancel to work的经历
- ora-02069 此操作的Global_names必须设置为True
- Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance问题解决方法
- Openstack部署总结之:部署过程中“Error: Local ip for ovs agent must be set when tunneling is enabled”的问题
- Installshield 多语言安装包 和 安装序列号验证,及如何解决 Failed to set code page for Language 46 问题
- ORA-02069: 此操作的global_names参数必须设置为TRUE
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法