Cmdlets for DB2

Build 23.0.8770

SwitchStrategy Parameter (Connect-DB2 Cmdlet)

This property allows you to specify a switching strategy to select a server from AlternateServers as the active server.

Syntax

Connect-DB2 -SwitchStrategy string

Possible Values

Sequence, Random, BestResponse

Data Type

cstr

Default Value

"sequence"

Remarks

There are three switching strategies available: Sequence: Always use the next server in AlternateServers as the active server. Random: Use a random server in AlternateServers as the active server. BestResponse: Always use the server with the shortest response time.

Specify SwitchStrategy:

SwitchStrategy=Random;

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8770