instance_name、db_name、ORACLE_SID、db_name等的區別
----------from oracle metalink-----------
The global names is used by the oem product and needs to be in the sid_desc for oem to function correctly.
Service name is used in the tnsnames.ora file and when the connection using service name arrives at the listener, the listener checks it's tables for a registration match so it can hand of the connection to either a dedicated process or a dispatcher.
service_names in the init.ora file is set to the service_names + the db_domain and these two values should match the service_name parameter in the tnsnames.ora file or a registration error will occur if they do not match. The service_names is the parameter that registers the names listed here with the listener when the instance starts.
The global_dbname and the service name can be different names as long as the service_name matches the registration name registered with the listener.
DB_NAME is the database identifier of up to eight characters. If specified, it must correspond to the name specified in the CREATE DATABASE statement. Although the use of DB_NAME is optional, it should generally be set before invoking CREATE DATABASE and then referenced in that statement. If not specified, a database name must appear on either the STARTUP OPEN db_name or ALTER DATABASE db_name MOUNT command line.
INSTANCE_NAME is a string value representing the name of the instance and is used to uniquely identify a specific instance when multiple instances share common services names.
Prior to Oracle 8i, clients connected to a database by specifying the Oracle SID (system identifier) in the connect descriptor. INSTANCE_NAME should not be confused with the SID, which actually uniquely identifies the instances shared memory on a host.
From 8i, the concept of a 'service name' has been introduced. Specifically, clients can specify 'service_name' and 'instance_name' in the connect descriptor. The SERVICE_NAMES is used to identify a database service. This parameters defaults to DB_NAME.DB_DOMAIN (the global database name). A database can be identified by more than one service name. Now INSTANCE_NAME identifies an instance of a database. This parameter is analagous to the SID of an instance, that is "SID_NAME" is now "SERVICE_NAME". Again, an instance can have only one "INSTANCE_NAME," but more than one "SERVICE_NAMES"
E.g.:
instance_name = v817
service_names = ( marketing, support, education )
One more thing to note here is, the parameter is "SERVICE_NAME" in tnsnames.ora and "SERVICE_NAMES" defined in "init
The following articles which you could obtain using the search, will help you:
30715.1 Init.ora Parameter "DB_NAME" Reference Note
68522.1 Init.ora Parameter "INSTANCE_NAME" Reference Note
77640.1 SERVICE_NAME parameter in Oracle8i
76531.1 Service Name Usage in Net8i
69546.1 Oracle8i - Instance Registration to Listeners
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/543979/viewspace-231247/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle修改instance_name、db_name、db_unique_name、service_namesOracle
- 2.6.2.1 初始化引數DB_NAME
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- CREATE CONTROLFILE修改DB_NAME一定不能使用REUSE
- 19c環境bbed安裝及db_name檢視
- 叢集修改OCR中記錄的db_unique_name以及db_name
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- Oracle - 資料庫名、例項名、服務名、ORACLE_SID 的說明和區別Oracle資料庫
- 等保、分保是什麼?等保與分保的區別有哪些?
- JavaScript兩個等號和三個等號區別JavaScript
- 等保二級和等保三級的三大區別講解
- 【等保小知識】等保與分保的三大區別彙總分析
- 引數為*&與*的區別以及二維陣列傳遞時列數不對等的區別陣列
- 關於forName()、newInstance()、getMethod()、getClass()等區別的簡略說明
- 什麼是等級保護?一級等保和三級等保有什麼區別?
- 網路安全中二級等保和三級等保有什麼區別?
- 【等保小知識】等保與關保兩者之間有啥區別?
- 【網路安全小知識】二級等保和三級等保之間的區別有哪些?
- 裝飾器模式詳解(UML、原理、使用、與代理模式的區別等)模式
- 資料治理,辨析清楚制度、機制、流程等概念的區別很重要
- 【科普】等級保護與分級保護的區別和聯絡!
- C#基礎之==(雙等於號)與equals()區別C#
- 等保1.0和2.0分別是什麼?兩者有什麼區別?
- File、Blob、ArrayBuffer等檔案類的物件有什麼區別和聯絡物件
- LinkedList和ArrayList的區別、Vector和ArrayList的區別
- http和https的區別/get和post的區別HTTP
- ||和??的區別
- /*和/**的區別
- ??與?:的區別
- 蜂蜜的區別
- 等級保護分為幾個等級?一級、二級、三級有什麼區別?
- UIOTOS前端組態跟中控等SCADA、HMI有什麼區別?UI前端
- 什麼是等保?安全等保二級和三級的區別是什麼?
- UIModalPresentationStyle 各種型別的區別UI型別
- 值型別與引用型別的區別型別
- phoenix全域性索引和本地索引 概述,使用場景,區別等詳解索引
- scala中:: , +:, :+, :::, +++的區別
- jquery $(this) 和this的區別jQuery
- JQuery this和$(this)的區別jQuery