Clone with DUPLICATE command
When cloning a database using DUPLICATE command from backup, the db_name and db_unique_name value are the same for the clone database. Is this expected?
From the examples Oracle provides in RMAN DUPLICATE CHANGES DB_NAME DB_UNIQUE_NAME TO UPPERCASE FOR CLONE DATABASE (Doc ID 2050095.1), db_name and db_unique_name are the same for the aux instance.
Besides running 'alter database set db_unique_name=<db_unique_name>' after clone database is up, is there any better way to handle it? I added 'set db_unique_name' line in the DUPLICATE command but seems it is ignored.