Hi,
Sometimes You can get “TNS-12545: Connect failed because target host or object does not exist ” error.
Details of error are as follows.
TNS-12545: Connect failed because target host or object does not exist
Sometimes you can get this error because of IP address, probably you used hostname or scan name instead of Public IP adress or Scan IP.
You can try in CMD using nslookup if your client will resolve hostname or not
nslookup hostname nslookup SCAN-NAME
To solve this problem you need to change DNS Server and use same dns server with database server.
If you don’t change dns server then you should use Public IP or SCAN IP instead of hostname, SCAN Name.
Or you should check the host name with ip address in /etc/hosts/ , if it is correct or not.
Do you want to learn more details about RMAN, then read the following articles.
https://ittutorial.org/rman-backup-restore-and-recovery-tutorials-for-beginners-in-the-oracle-database/