Oracle® Transparent Gateway for Sybase Administrator's Guide 10g Release 2 (10.2) for HP Tru64 UNIX Part Number B14285-01 |
|
|
View PDF |
The Oracle database server initialization parameters in the init.ora file are distinct from heterogeneous services (HS) initialization parameters. Set HS parameters in the initialization parameter file using an agent-specific mechanism, or set them in the Oracle data dictionary using the DBMS_HS package.
This appendix contains information about the following Heterogeneous Services initialization parameters:
See Also:
Oracle Database Heterogeneous Connectivity Administrator's Guide for information on other available initialization parameters.The HS initialization parameter file must be available when the gateway is started. During installation, the following default HS initialization parameter file is created:
$ORACLE_HOME/tg4sybs/admin/inittg4sybs.ora
Where $ORACLE_HOME is the directory under which the gateway is installed.
The syntax for the initialization parameter file is as follows:
The file is a sequence of commands.
Each command should start on a separate line.
End of line is considered a command terminator (unless escaped with a backslash).
Each command can have one of the following forms:
<param> = <value>
set <param> = <value>
private <param> = <value>
set private <param> = <value>
Where:
<param>
is an initialization parameter name.
<value>
is the initialization parameter value.
'set
' and 'private
' are keywords.
The keywords 'set
' and 'private
' are reserved. 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.
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.
An initialization parameter value is either:
A string of characters that does not contain any backslashes, white space or double quotation marks (")
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 new line
\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 take effect.
Default Value | Range of Values |
---|---|
none | Not Applicable |
Specifies the information needed to connect to the Sybase database.
This is a required parameter, whose format is:
HS_FDS_CONNECT_INFO=server_name.database_name[,INTERFACE=interface_file]
Where:
server_name is the name of the server machine for the Sybase data.
database_name is the name of the database.
interface_file is the full path and name of a Sybase interface file.
The entries for both the server_name and database_name are case-sensitive.
Default Value | Range of Values |
---|---|
Not Applicable | Any value |
The name of the table owner that is used for the Sybase tables if an owner is not specified in the SQL statements.
The name of the table owner is case-sensitive.
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.Default Value | Range of Values |
---|---|
1,000 Characters | Any positive integer value |
Used for setting the parser token size in case the default size is not sufficient. The default value can be changed in cases when the following error occurs:
pclex input buffer overflowed, try to increase the variable tokenSize in your evironment.
With default value of 1000, the gateway could handle SQL statements close to 2M. Note that the SQL statements sent to the gateway could be very different from the SQL statements issued by the users. If in doubt, turn on gateway trace. Increase this parameter to handle larger SQL statements sent to gateways
Default Value | Range of Values |
---|---|
FALSE | TRUE, FALSE |
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 to handle return values.Default Value | Range of Values |
---|---|
RECOVER | 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 Sybase. For more information about the commit-confirm model, see the HS_FDS_TRANSACTION_MODEL parameter.
The name of the recovery account is case-sensitive.
Default Value | Range of Values |
---|---|
RECOVER | Any valid password |
Specifies the password of the recovery account used for the commit-confirm transaction model set up at Sybase. For more information about the commit-confirm model, see the HS_FDS_TRANSACTION_MODEL parameter.
The name of the password of the recovery account is case-sensitive.
Default Value | Range of Values |
---|---|
FALSE | TRUE, FALSE |
Enables result sets to be returned from stored procedures. By default, all stored procedures do not return a result set to the user.
Note:
If you set this initialization parameter, you must do the following:Change the syntax of the procedure execute statement for all existing stored procedures, to handle result sets
Work in the sequential mode of Heterogeneous Services
Default Value | Range of Values |
---|---|
OFF | 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/TG4SYBS/LOG
.
Default Value | Range of Values |
---|---|
HS_TRANSACTION_LOG | Any valid table name |
Specifies the name of the table created in the Sybase database for logging transactions. For more information about the transaction model, see the HS_FDS_TRANSACTION_MODEL parameter.
Default Value | Range of Values |
---|---|
COMMIT_CONFIRM | COMMIT_CONFIRM, READ_ONLY or SINGLE_SITE |
Specifies the type of transaction model that is used when the Sybase database is updated by a transaction.
The following values are possible:
COMMIT_CONFIRM provides read and write access to the Sybase 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 Sybase database:
Transaction log table. The default table name is HS_TRANSACTION_LOG. A different name can be set using the HS_FDS_TRANSACTION_LOG parameter. 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 Sybase database.
SINGLE_SITE provides read and write access to the Sybase database. However, the gateway cannot participate in distributed updates.