当指定了db_domain的时候,在创建db link时会自动在db_link的后面加上db_domain(doc:
If you omit the domains from the name of a database link, Oracle expands the name by qualifying the database with the domain of your local database as it currently exists in the data dictionary, and then stores the link name in the data dictionary. The characters valid in a database domain name are: alphanumeric characters, underscore (_), and number sign (#)。
),9i好像记得是这样的,但是10g我验证了一下不是:
SQL> create database link dbl_test using 'orcl';
数据库链接已创建。
SQL> select db_link from dba_db_links;
DB_LINK
----------------------------------------------------------------------------
DBL
DBL_TEST
ORCL
还有一点需要主要的是:You must set this parameter for every instance, and multiple instances must have the same value in Real Application Clusters
6、global_name 全局数据库名
global_name 是由db_name.db_domain构成的,doc如下:
| 以下是引用片段: Understanding How Global Database Names Are Formed A global database name is formed from two components: a database name and a domain. The database name and the domain name are determined by the following initialization parameters at database creation: Component Parameter Requirements Example Database name DB_NAME Must be eight characters or less. sales Domain containing the database DB_DOMAIN Must follow standard Internet conventions. Levels in domain names must be separated by dots and the order of domain names is from leaf to root, left to right. us.acme.com |
但是通过验证发现oracle并没有把db_name.db_domain和global_name 同步起来,不知道为什么?global_name oracle是通过提供了一个view,sys.global_name,该试图是源于props$的,可以查看创建view的脚本,最终我们访问的是一个public synonym global_name:
- 用Photoshop给漂亮的烫发MM抠图
- Photoshop透明婚纱抠图大法
- Photoshop:让MM做个“变色龙”
- 用Photoshop来制作一款精美的宝宝照片墙
- Photoshop绝色美女通道抠图法
- 用Photoshop教你打造绚丽光芒效果
巧巧读书:http://www.qqread.com/oracle/2008/03/b402403.html
相关专题
- Oracle 10g基础应用 (4514篇文章)
- Oracle语句优化规则汇总(8) (17次浏览)
- Data Guard学习物理standby高级管理 (17次浏览)
- 甲骨文如何解析语义谜题 (13次浏览)
- 一步一步配置Oracle Stream (11次浏览)
- 如何查找运行系统里的“bad sql”语句 (9次浏览)
- 讲解“Oracle”下导出某用户所有表的方法 (8次浏览)
- Oracle语句优化规则汇总(5) (8次浏览)
- Oracle更新操作优化 (8次浏览)
- 实现数据库事务的方法ExecuteSqlTran() (7次浏览)
- Oracle中利用一个表结构拷贝成另外的表 (7次浏览)



