Message Oracle RMAN-06171 - not connected to target database

ERRORnot connected to target database
CAUSEA command was issued but no connection to the target database has been established.
ACTIONIssue a CONNECT TARGET command to connect to the target database.