tnsnames.ora文件中边SERVICE_NAME的參数值--对于动态注冊和静态注冊。该參数有不同的取值



对于动态注冊:

The following pfile/spfile parameters are important when setting the value

for SERVICE_NAME in the tnsnames.ora file:



DB_NAME

DB_DOMAIN

SERVICE_NAMES



一句话概括:

Use the values of the parameters existing in the pfile or spfile,

namely DB_NAME and DB_DOMAIN to determine the value of the SERVICE_NAME that should be used in the TNSNAMES.ORA.




即是:SERVICE_NAME=DB_NAME.DB_DOMAIN



#######################################################################################################################

对于静态注冊:

If using statically defined SIDs in the listener.ora file under SID_DESC, the

GLOBAL_DBNAME parameter (within SID_DESC) must match the value set in the

tnsnames.ora file for SERVICE_NAME.



即是:SERVICE_NAME=GLOBAL_DBNAME parameter(listener.ora文件里)







附1:listener.ora文件里GLOBAL_DBNAME的含义:

--来自:Global Database Name Explained (Doc ID 115499.1)



In the LISTENER.ORA file, under the sections SID description, a parameter

GLOBAL_DBNAME can be found. This parameter identifies the database by its

global database name and consists of the name and domain name of the database,

as given in SERVICE_NAMES parameter in the database initialization parameter

file (init<SID>.ora).

即是:GLOBAL_DBNAME=consists of the name and domain name of the database





The value of this parameter is used by the Oracle Intelligent Agent to

determine the service name of the database. Detailed information about this

LISTENER.ORA parameter can be found in Note:97066.1 "How the Intelligent

Agent determines a database service name".



附2:

数据库初始化參数service_names的含义:

默认情况下,service_names为DB_NAME.DB_DOMAIN

SERVICE_NAME和SERVICE_NAMES和GLOBAL_DBNAME的各自己定义的更多相关文章

  1. 配置ORACLE 客户端连接到数据库

    --================================= -- 配置ORACLE 客户端连接到数据库 --================================= Oracle ...

  2. oracle中的listener.ora和tnsnames.ora

    一.oracle的客户端与服务器端 oracle在安装完成后服务器和客户端都需要进行网络配置才能实现网络连接.    服务器端配置监听器,客户端配置网络服务名. 服务器端可配置一个或多个监听程序 . ...

  3. oracle 配置监听

    LISTENER =  (DESCRIPTION_LIST =    (DESCRIPTION =      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521 ...

  4. Oracle静态监听与动态监听概念全解析

    基于11g,linux5.5做出的测试,单实例数据库做出的测试. 1.注册 Instance到监听器去注册自己的Instance_name与ORACLE_HOME,还可以选择添加global_dbna ...

  5. 使用PL/SQL Developer连接远程数据

    本机不安装Oracle客户端,使用PL/SQL Developer连接远程数据 1.先到Oracle网站下载Instant Client : http://www.oracle.com/technet ...

  6. Oracle Names - Oracle_SID /db_name instance_name service_names / service_name / sid / sid_name

    很多人还是困惑,下面再次尝试从几个不同角度区分一下: Oracle_SID / db_name, instance_name, service_names  / service_name, sid / ...

  7. DB_NAME、DB_UNIQUE_NAME、SERVICE_NAME和INSTANCE_NAME等的区别

    摘自:http://space.itpub.net/7922095/viewspace-715406 搭建DG时,突然想起oracle这些为数众多的name,以下是概念整理,仅代表个人观点 DB_NA ...

  8. oracle相同SID对外提供多个service_names

    为数据库设置多个服务名(通过SCOPE=both设置,同时修改参数文件) SQL> show parameter service_names; NAME TYPE VALUE --------- ...

  9. oracle监听器初识-配置多SERVICE_NAMES

    现象: 为数据库设置多个服务名(通过SCOPE=both设置,同时修改参数文件) SQL> show parameter service_names; NAME TYPE VALUE ----- ...

随机推荐

  1. js软键盘

    <<!DOCTYPE html><html><head>  <title></title></head><body& ...

  2. jdbc数据库中的增删改

    HttpSession session=request.getSession(); session.setAttribute("currentUser",u.username);/ ...

  3. Python-操作符和表达式

    //: 除后向下取正  -3//2=-2 **: 幂 3**3 = 27 not: ! and: && or: || 除了以上几个之外,其余与C++相同 length = 3 widt ...

  4. Spark2.2,IDEA,Maven开发环境搭建附测试

    前言: 停滞了一段时间,现在要沉下心来学习点东西,出点货了. 本文没有JavaJDK ScalaSDK和 IDEA的安装过程,网络上会有很多文章介绍这个内容,因此这里就不再赘述. 一.在IDEA上安装 ...

  5. A - Supermarket

    Problem description We often go to supermarkets to buy some fruits or vegetables, and on the tag the ...

  6. centos下使用shell+expect远程登录主机

    # 安装expect yum install expect # 新建脚本文件running #!/usr/bin/expect spawn /usr/bin/ssh root@114.114.114. ...

  7. HTML5标签构成

    一个HTML5文件是由一些列的元素和标签组成的.元素是HTML5文件的重要组成部分,例如title(文件标题).img(图像)及table(表格)等.元素名不区分大小写,而HTML5用标签来规定元素的 ...

  8. [原创]Linux(CentOS)下安装nodejs+express

    网上找了很多步骤,各种问题,自己总结下吧 1.下载 wget --no-check-certificate https://nodejs.org/dist/v6.10.1/node-v6.10.1-l ...

  9. 关于Core里的 StartUp里的方法的理解。

    public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; ...

  10. NuGet 下载dll

    PM> Install-Package DotNetCore.CAP PM> Install-Package  xxxdll