最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
当前位置: 首页 - 科技 - 知识百科 - 正文

Oracle中的global_name和dbdomain

来源:懂视网 责编:小采 时间:2020-11-09 11:19:46
文档

Oracle中的global_name和dbdomain

Oracle中的global_name和dbdomain:Oracle中的global_name和db domain,alter database rename global_name to xx并不影响db_domain参数, 而创建db link时使用的是g Oracle中的global_name和db domain determine the current database glob
推荐度:
导读Oracle中的global_name和dbdomain:Oracle中的global_name和db domain,alter database rename global_name to xx并不影响db_domain参数, 而创建db link时使用的是g Oracle中的global_name和db domain determine the current database glob

Oracle中的global_name和db domain,alter database rename global_name to xx并不影响db_domain参数, 而创建db link时使用的是g

Oracle中的global_name和db domain

  • determine the current database global name:

  • CONNECT SYSTEM@sales.us.example.com
  • GLOBAL_NAME;

  • GLOBAL_NAME
  • ----------------------------------------------------------------------------
  • SALES.US.EXAMPLE.COM

  • 2. You query the V$PARAMETER view to determine the current setting for the DB_DOMAIN initialization parameter:

  • V$PARAMETER

  • NAME VALUE
  • --------- -----------
  • db_domain US.EXAMPLE.COM

  • 3. You a partially-specified global name:



  • The database expands the global database name for this link by appending the domain part of the global database name of the local database to the name of the database specified in the link.

  • 4. You query USER_DB_LINKS to determine which domain name the database uses to resolve the partially specified global database name:

  • SELECT DB_LINK FROM USER_DB_LINKS;

  • DB_LINK
  • ------------------
  • HQ.US.EXAMPLE.COM

  • This result indicates that the domain part of the global database name of the local database is us.example.com. The database uses this domain in resolving partial database link names when the database link is created.

  • 5. Because you have received word that the sales database will move to Japan, you rename the sales database to sales.jp.example.com:

  • GLOBAL_NAME TO sales.jp.example.com;
  • GLOBAL_NAME;

  • GLOBAL_NAME
  • ----------------------------------------------------------------------------
  • SALES.JP.EXAMPLE.COM

  • 6. You query V$PARAMETER again changed, although you renamed the domain part of the global database name:

  • V$PARAMETER


  • NAME VALUE
  • --------- -----------
  • db_domain US.EXAMPLE.COM

  • This result indicates that the GLOBAL_NAME statementthe DB_DOMAIN initialization parameter

  • 7. You query USER_DB_LINKS to see how the database resolves the domain part of the global database name of supply:


  • SELECT DB_LINK FROM USER_DB_LINKS;

  • DB_LINK
  • ------------------
  • HQ.US.EXAMPLE.COM
  • SUPPLY.JP.EXAMPLE.COM

  • This result indicates that the The database does not use the DB_DOMAIN initialization parameter setting when resolving the partial link name.

  • 8. You then receive word that your previous information was faulty: sales will be in the ASIA.JP.EXAMPLE.COM domain, not the JP.EXAMPLE.COM domain. Consequently, you rename the global database name as follows:

  • GLOBAL_NAME TO sales.asia.jp.example.com;
  • GLOBAL_NAME;

  • GLOBAL_NAME
  • ----------------------------------------------------------------------------
  • SALES.ASIA.JP.EXAMPLE.COM

  • You query V$PARAMETER to again check the setting for the parameter DB_DOMAIN:

  • V$PARAMETER


  • NAME VALUE
  • ---------- -----------
  • db_domain US.EXAMPLE.COM

  • The result indicates that the domain setting statements.

  • 9. Finally, you create a link to the warehouse database and again query USER_DB_LINKS to determine how the database resolves the partially-specified global name:


  • SELECT DB_LINK FROM USER_DB_LINKS;

  • DB_LINK
  • ------------------
  • HQ.US.EXAMPLE.COM
  • SUPPLY.JP.EXAMPLE.COM
  • WAREHOUSE.ASIA.JP.EXAMPLE.COM

  • Again, you see that the database uses the domain part of the global database name of the local database to expand the partial link name during link creation.
  • 由此说明, alter database rename global_name to xx并不影响db_domain参数, 而创建db link时使用的是global_name而不是db_domain.

    linux

    声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

    文档

    Oracle中的global_name和dbdomain

    Oracle中的global_name和dbdomain:Oracle中的global_name和db domain,alter database rename global_name to xx并不影响db_domain参数, 而创建db link时使用的是g Oracle中的global_name和db domain determine the current database glob
    推荐度:
    标签: 数据库 oracle db
    • 热门焦点

    最新推荐

    猜你喜欢

    热门推荐

    专题
    Top