Avatar of Mushfique Khan
Mushfique Khan
 asked on

Clone databases using RMAN backup

Hi, need some assistance, have to clone 2 dbs; one RAC/2 nodes & one standalone from rman backup of another & different db/s (RAC & standalone) running on different Solaris box.

Do update, if able to assist or can provide some steps/hints/links or any kind of assistance, will be highly appreciated.

Thanks in advance.
Oracle DatabaseStorage SoftwareUnix OS

Avatar of undefined
Last Comment
Mushfique Khan

8/22/2022 - Mon
SOLUTION
Pepe2323

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
MikeOM_DBA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mushfique Khan

ASKER
thanks folks, I was able to restore, using RMAN, basically I left it in the night and when got back in morning, saw that something got failed due to 100% file system error.

Can you please advice/suggest, how to fix/correct this or do I need to start from scratch again ... ;-(

Please assist/guide ... thanks.
MikeOM_DBA

You may need to make space or re-locate some files using the "SET NEWNAME FOR ..."

When you restart the restore, rman will detect and skip files already restored...

Good luck!

PS: Make sure you do not move files already restored!!!
Mushfique Khan

ASKER
Was able to fix all these and now the clone/refresh got completed, need one assistance here, how to update db links, because they are pointing to wrong database now, is there any way to figure it out and correct/update all of the db links?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
MikeOM_DBA

You will need to re-create them.
Query the DBA_DB_LINKS view and/or using SQL Developer (or TOAD) generate the code to replace them.
Mushfique Khan

ASKER
Thanks for this MikeOM_DBA, but this not about recreating, basically they are linking to a different db; e.g., we clone RAC2 to RAC1, but the db links are still linking to RAC2, where as they should be RAC1, task is to find out how many of db links are still targeting to RAC2 and update/correct or even recreate them linking to RAC1 ... is this clarify the situation.

Please do update, if requires any more info and thanks a lot.
Mushfique Khan

ASKER
got it too:

select * from dba_synonyms
where db_link is not null
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.