While plan capture mode is active, you can choose whether to have plans for the same query replace existing plans by enabling or disabling set plan replace. This command activates plan replacement mode:
set plan replace on
You do not specify a group name with set plan replace; it affects the current active capture group.
To disable plan replacement:
set plan replace off
The use of the use database command while set plan replace is in effect disables plan replace mode.