db-link名字总带有localdomain后缀,如何干掉它? 急急!!!

[复制链接]
查看11 | 回复6 | 2007-10-20 08:38:44 | 显示全部楼层 |阅读模式
global_name=false
domain_name=''
sqlnet.ora中:
#NAMES.DEFAULT_DOMAIN = localdomain
但是我创建的db-link名字总带有localdomain后缀,如何干掉它? 急急!!!
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
难道就没有人遇到过这个问题吗?
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
ALTER DATABASE RENAME GLOBAL_NAME TO xxxxxxxx
try it
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
为什么要干掉它,你可以不输入domain照样使用的。
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
这个问题是我在用两个Oracle数据库配置高级复制做一些特殊研究时遇到的。因为复制要求参与的数据库域名要一致,要么使用相同的域名,要么都不用。可偏偏有一台数据库,创建的 DBLink后面总是跟有一个LOCALDOMAIN名字。
在SQLPLUS中使用语句UPDATE GLOBAL_NAME SET GLOBAL_NAME = dbname;
可以到我的BLOG去看看:
http://ocp.blog.ccidnet.com/
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
Changing the Domain in a Global Database Name
Use the ALTER DATABASE statement to change the domain in a database global name. Note that after the database is created, changing the initialization parameter DB_DOMAIN has no effect on the global database name or on the resolution of database link names.
The following example shows the syntax for the renaming statement, where database is a database name and domain is the network domain:
ALTER DATABASE RENAME GLOBAL_NAME TO database.domain;
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
http://download.oracle.com/docs/ ... dmin.htm#sthref4107
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行