Wednesday, January 27, 2016

ALTER REPLICAT



ALTER REPLICAT

Use ALTER REPLICAT to change the attributes of a Replicat group that was created with the ADD REPLICAT command. Before using this command, stop Replicat by issuing the STOP REPLICAT command. If this is a coordinated Replicat group, the ALTER takes effect for all threads unless thethreadID option is used.
Note:
ALTER REPLICAT does not support switching from regular Replicat mode to coordinated mode. You must stop processes, make certain all of the en route data is applied to the target, roll the trail to a new trail, drop and recreate the Replicat group in coordinated mode, and then start the processes again.
Syntax
ALTER REPLICAT group_name[threadID], {
   ADD REPLICAT option [, ...] |
   INTEGRATED | NONINTEGRATED, CHECKPOINTTABLE owner.table 
}
[, CPU number]
[, PRI number]
[, HOMETERM device_name]
[, PROCESSNAME process_name]
group_name[threadID]
The name of the Replicat group or a thread of a coordinated Replicat that is to be altered. To specify a thread, use the full thread name, such asALTER REPLICAT fin003, EXTSEQNO 53. If a thread ID is not specified, the ALTER takes effect for all threads of the Replicat group.
ADD REPLICAT option
An ADD REPLICAT option. For a non-integrated Replicat, you can change the description or any service option that was configured with the ADD REPLICAT command, except for the CHECKPOINT and NODBCHECKPOINT options.
INTEGRATED
Switches Replicat from non-integrated mode to integrated mode. Transactions currently in process are applied before the switch is made. SeeAdministering Oracle GoldenGate for Windows and UNIX for the full procedure for performing the transition from non-integrated to integrated Replicat.
NONINTEGRATED, CHECKPOINTTABLE owner.table
(Oracle) Switches Replicat from integrated mode to non-integrated mode.
For CHECKPOINTTABLE, specify the owner and name of a checkpoint table. This table must be created with the ADD CHECKPOINTTABLE command before issuing ALTER EXTRACT with NONINTEGRATED.
See Administering Oracle GoldenGate for Windows and UNIX for the full procedure for performing the transition from integrated Replicat to non-integrated Replicat.
See Installing and Configuring Oracle GoldenGate for Oracle Database for more information about integrated Replicat.
CPU number
Valid for SQL/MX. Specifies the number of the CPU to be used for the process. Valid values are numbers 1 - 15 and -1 is default, which is assigned 1 higher than the last Manager started.
PRI number
Valid for SQL/MX. Specifies the Extract process priority. Valid values are numbers are 1 - 199 and -1 is the default, and is the same as the manager process priority.
HOMETERM device_name
Valid for SQL/MX. Specifies the name of the device to be used and must be a terminal or process. It can be entered in either Guardian $ or OSS/G/xxxxx form. The default is $zhome or the current session HOMETERM when $zhome is not defined.
PROCESSNAME process_name
Valid for SQL/MX. Specifies the name of the process as alphanumeric string up to five characters and can be entered in either Guardian $ or OSS/G/xxxxx form. The default is a system generated process name.
Examples
Example 1   
ALTER REPLICAT finance, EXTSEQNO 53
Example 2   
ALTER REPLICAT finance, EXTRBA 0
Example 3   
ALTER REPLICAT finance, BEGIN 2011-01-07 08:00:00
Example 4   
ALTER REPLICAT finance, INTEGRATED
Example 5   
ALTER REPLICAT finance, NONINTEGRATED, CHECKPOINTTABLE ogg.checkpt
Example 6   
ALTER REPLICAT fin001, EXTSEQNO 53

Example 7   
The following alters a Replicat on a SQL/MX NonStop platform.
ALTER REPLICAT reptcp, CPU 3, PRI 150, HOMETERM /G/zhome,  PROCESSNAME default

No comments: