Oracle SID & SERVICE_NAME
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 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.
Global name is set up in your init.ora file. It can be changed later if you didn't set it up, you can search the oracle docs for that. But it's much better if you plan for it in the beginning; it's tricky to change an existing instance's global name. If you need to do this, first try it out on an old computer, then do it in your production environment.
Global name is used for remote database links. If you don't set up a global name, your database will be known as ORACLE.WORLD . This will cause problems for people that remote link their databases into yours. So when setting up an Oracle instance, you should always set your global name to include your company's domain. Example, instead of saying oracledb for your global name, use oracledb.mycompany.com .
Even if you don't allow other companies to remote link to your databases, what if you install a second Oracle server? Both servers will think they're ORACLE.WORLD. So you might want to set up your global name to be something like oracledb1.mycompany.com , or, oracle-dev.mycompany.com and oracle-prod.mycompany.com ... or accounting.mycompany.com versus datawarehouse.mycompany.com .. etc etc
-Thomas[@more@]
You should use SID in TNSNAMES.ORA as a better approach.
Global name is set up in your init.ora file. It can be changed later if you didn't set it up, you can search the oracle docs for that. But it's much better if you plan for it in the beginning; it's tricky to change an existing instance's global name. If you need to do this, first try it out on an old computer, then do it in your production environment.
Global name is used for remote database links. If you don't set up a global name, your database will be known as ORACLE.WORLD . This will cause problems for people that remote link their databases into yours. So when setting up an Oracle instance, you should always set your global name to include your company's domain. Example, instead of saying oracledb for your global name, use oracledb.mycompany.com .
Even if you don't allow other companies to remote link to your databases, what if you install a second Oracle server? Both servers will think they're ORACLE.WORLD. So you might want to set up your global name to be something like oracledb1.mycompany.com , or, oracle-dev.mycompany.com and oracle-prod.mycompany.com ... or accounting.mycompany.com versus datawarehouse.mycompany.com .. etc etc
-Thomas[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/786540/viewspace-1005177/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle SID和Service_Name有什麼區別?Oracle
- [轉]ORACLE中的DB_NAME,SERVICE_NAME,INSTANCE_NAME,ORACLE_SID,GLOBAL_DBNAMEOracle
- Oracle中DB_NAME,SID,DB_DOMAIN,SERVICE_NAME等之間的區別OracleAI
- ORACLE中的DB_NAME,SERVICE_NAME,INSTANCE_NAME,ORACLE_SID,GLOBAL_DBNAME介紹Oracle
- ORACL中的DB_NAME,SERVICE_NAME,INSTANCE_NAME,ORACLE_SID,GLOBAL_DBNAME介紹Oracle
- oracle sidOracle
- 有關oracle SIDOracle
- oracle_sid與netmgr listener的sidOracle
- oracle中service_name區別總結Oracle
- Oracle SID VS Service NameOracle
- Oracle SID爆破工具SidGuessOracle
- 一、更改ORACLE SID名稱Oracle
- export ORACLE_SID=founder exportExportOracle
- oracle sid,instance_name,db_name,oracle_sid之間的關係Oracle
- 【Oracle】service_name和service_names的關係Oracle
- 【轉】怎樣修改Oracle的SIDOracle
- 更改Oracle資料庫的SIDOracle資料庫
- Oracle identifiers :SID (System Identifier)OracleIDE
- oracle 11g 更改sid和dbnameOracle
- ORACLE SPID/PID/SID區別Oracle
- oracle 816_init$SID.oraOracle
- ORACLE sid,pid,spid總結Oracle
- What is the $ORACLE_HOME/dbs/hc_<ORACLE_SID>.dat fileOracle
- 檢視window下預設ORACLE_SIDOracle
- Oracle查詢當前會話的sidOracle會話
- shell 指令碼讀多個oracle_sid指令碼Oracle
- 重建oracle密碼檔案pwd+sid.oraOracle密碼
- SID、ORACLE_SID、INSTANCE_NAME、DB_NAME、SERVER_NAMES、GLOBAL_DBNAME等區別OracleServer
- linux下設定ORACLE_SID和ORACLE_HOME變數LinuxOracle變數
- 關於ORACLE_SID和DB_NAME的理解Oracle
- ORACLE_SID,INSTANCE_NAME和DB_NAMEOracle
- Oracle中查詢阻塞與被阻塞SID的方法Oracle
- oracle獲取當前會話(程式)session id(sid)Oracle會話Session
- ORACLE session中SPID、PID、SID的區別OracleSession
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid不同UXDatabaseOracle
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid相同UXDatabaseOracle
- dataguard 更換IP,service_name(二)
- dataguard 搭建 oracle_sid不同 2節點 primary+standbyOracle