Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Clone databases using RMAN backup

Posted on 2013-11-25
8
Medium Priority
?
593 Views
Last Modified: 2014-02-01
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.
0
Comment
Question by:Mushfique Khan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 8

Assisted Solution

by:Pepe2323
Pepe2323 earned 750 total points
ID: 39676284
Hi I hope this help with your tasks

what ia have done when i'm doing data guard to replicate the database is this:

rman target / log=/path/you/want/rman_backup.log
run{
ALLOCATE CHANNEL c1 DEVICE TYPE DISK FORMAT '/path-of-the-backup/date/%U';
BACKUP FULL DATABASE PLUS ARCHIVELOG;
BACKUP CURRENT CONTROLFILE ;
}


and for the restore:

Be sure to have a  copy of the pfile where you want  to restore, if you only have spfile then create an pfile, and while you are restoring be sure have the cluster parameter as false into the pfile.

rman nocatalog

  connect target /

shutdown abort;
startup nomount;

    alter database mount;
    CROSSCHECK ARCHIVELOG ALL;
    CROSSCHECK BACKUP;
    CATALOG START WITH '/path/where-is the backup/' NOPROMPT;
    restore database;
    recover database;

Note:probably you will need to restore control files first before do all restore, check on you log what is the name of that backup of control files.


after finish the restore then:

shutdown immediate;

sqlplus  / as sysdba
startup
0
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 750 total points
ID: 39678303
Perhaps you would get better instructions if you Read The Fine Manual:
Oracle® Database Backup and Recovery User's Guide
0
 

Author Comment

by:Mushfique Khan
ID: 39690125
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 39693491
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!!!
0
 

Author Comment

by:Mushfique Khan
ID: 39698699
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?
0
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 39698958
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.
0
 

Author Comment

by:Mushfique Khan
ID: 39699318
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.
0
 

Author Comment

by:Mushfique Khan
ID: 39699394
got it too:

select * from dba_synonyms
where db_link is not null
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question