1. A non-transitory computer-readable medium storing therein a switching program for use in a duplex system including an operating node for processing a transaction that is a unit of a series of processes, the duplex system including a standby node for recovering the transaction processed by the operating node, the switching program causing a computer to execute: determining, if a problem occurs in the operating node, whether a processing attribute of the transaction processed by the operating node is an update and, if it is determined that the processing attribute is the update, determining whether a processing state of the transaction processed by the operating node is any one of an execution state of an update transaction or an execution state of a commit process for the update transaction; executing, if it is determined that the processing attribute is the update and the processing state is the execution state of the update transaction at the determining, a stop process for the update transaction being processed, or executing, if it is determined that the processing attribute is the update and the processing state is the execution state of the commit process, a process for completing the commit process being executed; and switching the standby node to a new operating node after the stop process is executed at the executing without waiting for completion of a rollback process that is performed in accordance with execution of the stop process for the update transaction at the executing, or switching the standby node to the new operating node after the commit process is completed at the executing.