ttHostNameSet
To configure master/subscriber relationships and replication object permissions correctly, Replication DDL processing relies on being able to determine whether a host name used in a replication scheme refers to the computer on which the script is currently being run. This procedure enables an application to set a default host name for the current session that Replication DDL processing uses whenever there is a need to establish the name of the current host.
Required Privilege
This procedure requires the ADMIN
privilege.
Usage in TimesTen Scaleout and TimesTen Classic
This procedure is supported in TimesTen Classic.
TimesTen Scaleout applications can call this built-in procedure.
In TimesTen Scaleout, this procedure runs locally on the element from which it is called.
Related Views
This procedure has no related views.
Syntax
ttHostnameSet('hostName')
Parameters
ttHostNameSet
has the parameter:
Parameter | Type | Description |
---|---|---|
|
|
The required default name for the local computer. To clear the default value, specify |
Result Set
ttHostNameSet
returns no results.
Examples
CALL ttHostNameSet ('alias1');
Note:
The value of hostName
can be any host name or IP address string except 'localhost
', '127.0.0.1
' or '::1
'. You cannot set the default host name to a value that is different from a local host name used in an existing replication scheme.
See Also