如何SID与Oracle tnsnames.ora中的服务名称不同 [英] How SID is different from Service name in Oracle tnsnames.ora

查看:235
本文介绍了如何SID与Oracle tnsnames.ora中的服务名称不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我需要两个?当我必须使用一个或另一个?

Why do I need two of them? When I have to use one or another?

推荐答案

@DAC

简而言之:SID =
的唯一名称您的DB,ServiceName =使用的别名
在连接时

In short: SID = the unique name of your DB, ServiceName = the alias used when connecting

不严格true .. SID = INSTANCE的唯一名称(例如,机器上运行的oracle进程)。 Oracle认为数据库是文件。

Not strictly true.. SID = unique name of the INSTANCE (eg the oracle process running on the machine). Oracle considers the "Database" to be the files.

服务名称= INSTANCE(或多个实例)的别名。这个的主要目的是,如果你正在运行一个集群,客户端可以说连接我到SALES.acme.com,DBA可以随时更改可用于SALES.acme.com请求的实例数,或者甚至将SALES.acme.com移动到完全不同的数据库,而无需客户端更改任何设置。

Service Name = alias to an INSTANCE (or many instances). The main purpose of this is if you are running a cluster, the client can say "connect me to SALES.acme.com", the DBA can on the fly change the number of instances which are available to SALES.acme.com requests, or even move SALES.acme.com to a completely different database without the client needing to change any settings.

这篇关于如何SID与Oracle tnsnames.ora中的服务名称不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆