Oracle Error Message
RMAN-06188: cannot use command when connected to a mounted target database
Reason for the Error
An attempt was made to issue a command that can be used only when there is no connection to the target database or when the target database is not mounted.
Solution
Dismount the database or restart RMAN and use the command before connecting to the target database.