How SID is different from Service name in Oracle tnsnames.ora

后端 未结 5 1814
迷失自我
迷失自我 2020-11-28 18:06

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

5条回答
  •  时光说笑
    2020-11-28 18:17

    As per Oracle Glossary :

    SID is a unique name for an Oracle database instance. ---> To switch between Oracle databases, users must specify the desired SID <---. The SID is included in the CONNECT DATA parts of the connect descriptors in a TNSNAMES.ORA file, and in the definition of the network listener in the LISTENER.ORA file. Also known as System ID. Oracle Service Name may be anything descriptive like "MyOracleServiceORCL". In Windows, You can your Service Name running as a service under Windows Services.

    You should use SID in TNSNAMES.ORA as a better approach.

提交回复
热议问题