Oracle Transparent Gateway Microsoft SQL Server Administrator's Guide Release 8.1.6 for Windows NT Part Number A82868-01 |
| Library | Contents | Index

# C
Heterogeneous Services Initialization Parameters

The Oracle database server init.ora parameters are distinct from heterogeneous services (HS) initialization parameters. Set Heterogeneous Services parameters in the initialization parameter file using an agent-specific mechanism, or set them in the Oracle data dictionary using the DBMS_HS package. All string values for Heterogeneous Services parameters must be lowercase.

This appendix contains information about the following Heterogeneous Services initialization parameters:

- HS_FDS_CONNECT_INFO

- HS_FDS_DEFAULT_OWNER

- HS_FDS_PROC_IS_FUNC

- HS_FDS_RECOVERY_ACCOUNT

- HS_FDS_RECOVERY_PWD

- HS_FDS_TRACE_LEVEL

- HS_FDS_TRANSACTION_MODEL

  See Also: Oracle 8i Distributed Database Systems for information on other available initialization parameters.

## Initialization Parameter File Syntax

The syntax for the initialization parameter file is as follows:

1. The file is a sequence of commands.

2. Each command should start on a separate line.

3. End of line is considered a command terminator (unless escaped with a backslash).

4. Each command can have one of the following forms:

5. `<param> = <value>`

6. `set <param> = <value>`

7. `private <param> = <value>`

8. `set private <param> = <value>`

   where:

   <param> is an initialization parameter name.

   <value> is the initialization parameter value.

   'set' and 'private' are keywords.

9. 'set' and 'private' are reserved keywords. You cannot use either as an initialization parameter name. The 'set' keyword indicates that the initialization parameter should be set as an environment variable in the agent. The 'private' keyword indicates that the initialization parameter should be private to the agent and should not be uploaded to the server. Most initialization parameters should not be private. If, however, you are storing something sensitive like a password in the initialization parameter file, then you may not want it uploaded to the server because the initialization parameters and values are not encrypted when uploaded. Making these initialization parameters private prevents the upload from happening.

10. An initialization parameter name is a string of characters starting with a letter and consisting of letters, digits and underscores. Initialization parameter names are case sensitive.

11. An initialization parameter value is either:

    1. A string of characters that does not contain any backslashes, white space or double quotation marks (")

    2. A quoted string beginning with a double quotation mark and ending with a double quotation mark. The following can be used inside a quoted string:

       - backslash (\) is the escape character

       - \n inserts a newline

       - \t inserts a tab

       - \" inserts a double quotation mark

       - \\inserts a backslash

       A backslash at the end of the line continues the string on the next line. If a backslash precedes any other character then the backslash is ignored.

If there is a syntax error in an initialization parameter file, none of the settings takes effect.

## HS_FDS_CONNECT_INFO

Default value: | none
Range of values: | not applicable

Specifies the information needed to connect to the Microsoft SQL Server database.

This is a required parameter, whose format is:

    HS_FDS_CONNECT_INFO=server_name.database_name

where:

- server_name is the name of the server machine for the Microsoft SQL Server data and database_name is the name of the database.

If you specify only database_name, omitting server_name, the gateway uses the following subtree of the Windows NT registry to determine server_name:

HKEY_LOCAL_MACHINE\
SOFTWARE\
Microsoft\
MSSQLServer\
Client\
ConnectTo

## ``HS_FDS_DEFAULT_OWNER

Default value: | none
Range of values: | any value

The name of the table owner that is used for the Microsoft SQL Server tables if an owner is not specified in the SQL statements.

Note:: If this parameter is not specified and the owner is not explicitly specified in the SQL statement, then the user name of the Oracle user or the user name specified when creating the database link is used.

## HS_FDS_PROC_IS_FUNC

Default value: | none
Range of values: | any value

Enables return values from functions. By default, all stored procedures and functions do not return a return value to the user.

Note:: If you set this initialization parameter, you must change the syntax of the procedure execute statement for all existing stored procedures.

## HS_FDS_RECOVERY_ACCOUNT

Default value: | RECOVER
Range of values: | any valid userid

Specifies the name of the recovery account used for the commit-confirm transaction model. An account with user name and password must be set up at Microsoft SQL Server. For more information about the commit-confirm model, see the HS_FDS_TRANSACTION_MODEL parameter.

## HS_FDS_RECOVERY_PWD

Default value: | RECOVER
Range of values: | any valid password

Specifies the password of the recovery account used for the commit-confirm transaction model set up at Microsoft SQL Server. For more information about the commit-confirm model, see the HS_FDS_TRANSACTION_MODEL parameter.

## HS_FDS_TRACE_LEVEL

Default value: | off
Range of values: | off, on

Specifies whether error tracing is turned on or off for gateway connectivity.

The following values are valid:

- OFF disables the tracing of error messages.

- ON enables the tracing of error messages that occur when you encounter problems. The results are written to a gateway connectivity log file, in `ORACLE_HOME\tg4msql\trace`.

## HS_FDS_TRANSACTION_MODEL

Default value: | COMMIT_CONFIRM
Range of values: | COMMIT_CONFIRM, READ_ONLY, or SINGLE_SITE

Specifies the type of transaction model that is used when the Microsoft SQL Server database is updated by a transaction.

The following values are possible:

- COMMIT_CONFIRM provides read and write access to the Microsoft SQL Server database and allows the gateway to be part of a distributed update. To use the commit-confirm model, the following items must be created in the Microsoft SQL Server database:

  - Transaction log table. The table name is HS_TRANSACTION_LOG. The transaction log table must be granted SELECT, DELETE, and INSERT privileges set to public.

  - Recovery account. The account name is assigned with the HS_FDS_RECOVERY_ACCOUNT parameter.

  - Recovery account password. The password is assigned with the HS_FDS_RECOVERY_PWD parameter.

- READ_ONLY provides read access to the Microsoft SQL Server database.

- SINGLE_SITE provides read and write access to the Microsoft SQL Server database. However, the gateway cannot participate in distributed updates.

| Copyright © 2001 Oracle Corporation. All Rights Reserved. |
| Library | Contents | Index