DB2 10.5 for Linux, UNIX, and Windows

db2swtch - Switch default DB2 copy and database client interface copy command

Switches both the default DB2® copy and the default database client interface copy.

The default DB2 copy is the copy that is used by applications that are not targeted at a specific DB2 copy. Issuing db2swtch launches the Default DB2 and IBM Database Client Interface Selection wizard which you can follow to set a new default DB2 Copy and set the default database client interface copy. This command is only available on Windows operating systems.

Authorization

Local Administrator authority.

Required connection

None

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-db2swtch--+-----+--+-------+--+----------+------------------->
             '- -l-'  '- -db2-'  '- -client-'   

>--+------------------------------------------------------+----->
   '- -d--name of DB2 copy or IBM data server driver copy-'   

>--+--------------+--+-----+-----------------------------------><
   +- -IDS common-+  +- -h-+   
   '- -IDS SQLI---'  '- -?-'   

Command parameters

no arguments
Launches the utility in graphical mode.
-l
Displays a list of DB2 copies and IBM® data server driver copies on the system.
-db2 -d DB2_copy_name
Switch the default DB2 copy to the name specified.
db2swtch -db2 -d DB2_copy_name
-client -d name of DB2 copy or IBM data server driver copy
Switch the default client interface copy to the name specified.
db2swtch -client -d name of DB2 copy or IBM data server driver copy
-d DB2_copy_name
Switches both default DB2 copy and client interface copy to the name specified.
db2swtch -d DB2_copy_name
-IDS
common
Redirects the IDS .NET data provider reference in machine.config to common IDS .NET data provider.
SQLI
Redirects the IDS .NET data provider reference in machine.config to SQLI IDS .NET data provider.
-h | -?
Displays help information.