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. To activate plan replacement mode, use:
set plan replace on
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.