How is Oracle SID

2
Technical Articles > ArcSDE > Error Messages > Error Messages Received with Command Line Tools  Knowledge Base - Technical Articles  FAQ: How is the Oracle SID specified when making an operating system-authenticated direct connection to a geodatabase in Oracle? Article ID: 35424 Software:  ArcSDE 9.2, 9.3, 9.3.1, 10 Platforms:  N/A Question How is the Oracle SID specified when making an operating system-authenticated direct connection to a geodatabase in Oracle? Answer When using operating system (OS) authentication to connect from an ArcSDE client to a geodatabase in Oracle, a direct connection must be used and the Oracle instance to which the client is connecting must be specified. Below are two options for specifying the Oracle SID: • The ORACLE_SID can be set for the connecting session. • The ORACLE_SID can be specified in the connection string. Setting the ORACLE_SID for the connecting session  To set the ORACLE_SID for the connecting sessi on, issue the following command prior to executing a local client from the Command Prompt or UNIX shell: set ORACLE_SID=<SQL_Net_alias> where the <SQL_Net_alias> is the alias used by the Oracle client to connect to the database. To set the ORACLE_SID for the connecting sessi on from a remote client executed from a Command Prompt on Windows, issue this command before launching the client: set LOCAL=<SQL_Net_alias> To set the ORACLE_SID for the connecting sessi on from a remote client executed from a UNIX shell, issue this command before launching the client: set TWO_TASK=<SQL_Net_alias> Setting the ORACLE_SID with the connection string from a c lient application  To specify the ORACLE instance with the connection string, specific syntax must be provided for the Service in the connection file (ArcGIS or ArcIMS clients) or with the -i option (ArcSDE administrati on commands). The syntax varies depending on the version of Oracle to which the connection is made, and whether the connecting client is on the same server as the database or is on a remote computer. For a local client, the syntax is sde:oracle<release>:/;ORACLE_SID=<SQL_Net_alias>. For a remote client on a Windows operating system, the syntax is sde:oracle<release>:/;LOCAL=<SQL_Net_alias> For a remote client on a UNIX or Linux operating system, the syntax is sde:oracle<release>:/;TWO_TASK=<SQL_Net_alias> <Release> is the release of Oracle being used. For example, for a direct connection from a remote Windows client to an Oracle 10g database (alias=oragdb), the syntax is sde:oracle10g:/;LOCAL=ORAGDB

Transcript of How is Oracle SID

8/12/2019 How is Oracle SID

http://slidepdf.com/reader/full/how-is-oracle-sid 1/2

Technical Articles > ArcSDE > Error Messages > Error Messages Received with Command Line Tools

Knowledge Base - Technical Articles

FAQ: How is the Oracle SID specified when making an operating system-authenticated directconnection to a geodatabase in Oracle?

Article ID: 35424

Software: ArcSDE 9.2, 9.3, 9.3.1, 10

Platforms: N/A

Question

How is the Oracle SID specified when making an operating system-authenticated direct connection to a geodatabase in Oracle?

Answer

When using operating system (OS) authentication to connect from an ArcSDE client to a geodatabase in Oracle, a direct connection must be used and the Oracleinstance to which the client is connecting must be specified.

Below are two options for specifying the Oracle SID:

• The ORACLE_SID can be set for the connecting session.

• The ORACLE_SID can be specified in the connection string.

Setting the ORACLE_SID for the connecting session

To set the ORACLE_SID for the connecting session, issue the following command prior to executing a local client from the Command Prompt or UNIX shell:

set ORACLE_SID=<SQL_Net_alias>

where the <SQL_Net_alias> is the alias used by the Oracle client to connect to the database.

To set the ORACLE_SID for the connecting session from a remote client executed from a Command Prompt on Windows, issue this command before launchingthe client:

set LOCAL=<SQL_Net_alias>

To set the ORACLE_SID for the connecting session from a remote client executed from a UNIX shell, issue this command before launching the client:

set TWO_TASK=<SQL_Net_alias>

Setting the ORACLE_SID with the connection string from a c lient application To specify the ORACLE instance with the connection string, specific syntax must be provided for the Service in the connection file (ArcGIS or ArcIMS clients) or with the -i option (ArcSDE administration commands). The syntax varies depending on the version of Oracle to which the connection is made, and whether theconnecting client is on the same server as the database or is on a remote computer.

For a local client, the syntax is

sde:oracle<release>:/;ORACLE_SID=<SQL_Net_alias>.

For a remote client on a Windows operating system, the syntax is

sde:oracle<release>:/;LOCAL=<SQL_Net_alias>

For a remote client on a UNIX or Linux operating system, the syntax is

sde:oracle<release>:/;TWO_TASK=<SQL_Net_alias>

<Release> is the release of Oracle being used. For example, for a direct connection from a remote Windows client to an Oracle 10g database (alias=oragdb), thesyntax is

sde:oracle10g:/;LOCAL=ORAGDB

8/12/2019 How is Oracle SID

http://slidepdf.com/reader/full/how-is-oracle-sid 2/2