SlideShare a Scribd company logo
Takethe backup of all the parametersfile and backup of listener which are running on
the database to becloned
Takethe backup of all the user which arerunning on the Database to be cloned
Check and take backup of all the services which wererunning on the database to be
cloned
Check on all the nodes whether disk are visible after confirmation from storage team
and if not ask the serverTeam to check on each nodes after confirmation from
storage team
Mount diskgroup
Alter diskgroup <Diskgroup Name> mount ; ( On each node using
SYSASM)
Mount Databasewith temporary init file and Recover
Mount the database using the old init.ora file which have we have taken
the backup
Change the name of the database like replace DRORBIP with ORBIP in the
paramters in init.ora files
 like change the name of the control files and redo logs
Page 2 of 6
Also check the structure or directories when changing the name in the
init.ora files are they Present in the database if not than create in the
database to be cloned
 like check whether cdump generation directories is there with the
Production name as it will give error when mounting the database with
init.ora file
Recover Database
SQL> recover database using backup controlfile until cancel ;
 While recovering the database it might give error asking for missing
archive logs so check in the production when the snap was taken or
when the database is put under begin and end backup mode note the
SCN and restore these archive logs using while connecting in the
production database using below RMAN script for each thread
(including FRA)
Example
RMAN_USER:RMAN_ORBIP1
RMAN_PASSWORD:ORBIP1
run {
allocate channel T1 type 'SBT_TAPE';
allocate channel T2 type 'SBT_TAPE';
allocate channel T3 type 'SBT_TAPE';
allocate channel T4 type 'SBT_TAPE';
send 'NSR_ENV=(
NSR_SERVER=vobkd7vr-eth1.819,
NSR_CLIENT=uknp71sr-bkp
)';
Page 3 of 6
restore archivelog from SEQUENCE 451920 UNTIL SEQUENCE
451924 thread 1;
release channel T1;
release channel T2;
release channel T3;
release channel T4;
} exit;
Transfer these archive logs to the destination of the database to be cloned
Provide each archive log while recovering the database and cancel the
recovery after providing the sufficient Archive logs
Example:
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '+ORBIP_DATA/orbipdub/system01.dbf'
SQL> recover database using backup controlfile until cancel ;
ORA-00279: change 14683760751667 generated at 07/28/2016 17:44:00
needed for
thread 1
ORA-00289: suggestion : +ORBIP_FRA
ORA-00280: change 14683760751667 for thread 1 is in sequence
#451925
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
Media recovery cancelled.
OpenDatabase & take controlfile trace
Page 4 of 6
SQL> alter database open resetlogs ;
Database altered.
SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
Database altered.
Before Shutting down the database create spfile from our old init.ora file
for future purpose while making necessary changes in the spfile like
changing the name of the database back to the name of the database to
be cloned and name of the diskgroup that we renamed in above step
Create spfile from the old init.ora file
SQL> Shut immeadite
Rename diskgroup
Rename the diskgroup by the name of Database to be clonned
renamedg phase=both dgname=ORBIP_FRA newdgname=DRORBIP_FRA
confirm=true config=/tmp/renamedg verbose=true
asm_diskstring='/dev/mapper/asm-*p1'
renamedg phase=both dgname=ORBIP_REDO01
newdgname=DRORBIP_REDO01 confirm=true
config=/tmp/renamedg_REDO01 verbose=true
asm_diskstring='/dev/mapper/asm-*p1'
renamedg phase=both dgname=ORBIP_REDO02
newdgname=DRORBIP_REDO02 confirm=true
config=/tmp/renamedg_REDO02 verbose=true
asm_diskstring='/dev/mapper/asm-*p1'
Page 5 of 6
renamedg phase=both dgname=ORBIP_DATA
newdgname=DRORBIP_DATA confirm=true config=/tmp/renamedg_DATA
verbose=true asm_diskstring='/dev/mapper/asm-*p1'
startupnomount withoriginal initfile (with
Cluster_database=FALSE)
Startup no mount with the spfile that we created from init.ora
Create Controlfile
Create Control file from the trace file that we have taken backup
Before opening the database make sure the controlfile location in spfile is
correctly mentioned and it has been copied in three location(Standard
Procedure)
Like:-
*.control_files='+DRORBIP_DATA', '+DRORBIP_REDO01','+DRORBIP_FRA'
OpenDatabase,addredologs,tempfile
Open the database
Add redo logs and Tempfile according the production database from
which it has been cloned
Set Cluster_database=TRUE
Restart DB using srvctl.
Page 6 of 6
While using srvctl we might get error that logs are not online check the
database and add the redo logs or make the redo logs available in the
database
Before handing out the database check the connectivity and all the
listeners are up and running and all the services are correctly assign and
all the users are there in database and in open state.
##########################################
Ad

More Related Content

What's hot (20)

History
HistoryHistory
History
RASHMI SHARMA
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
Raghav Arora
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
praveen_01236
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
AdamFallon4
 
unix-OS-Lab-4.doc
unix-OS-Lab-4.docunix-OS-Lab-4.doc
unix-OS-Lab-4.doc
ismailaboshatra
 
Directories description
Directories descriptionDirectories description
Directories description
Dr.M.Karthika parthasarathy
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
Craig Cannon
 
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
Linux day 3ppt
Linux day 3pptLinux day 3ppt
Linux day 3ppt
Kalkey
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
nitin lakhanpal
 
Compression
CompressionCompression
Compression
aswathyu
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu Commands
Yusuf Felly
 
Unix Commands
Unix CommandsUnix Commands
Unix Commands
Dr.Ravi
 
Debian Package Management Simplified
Debian Package Management SimplifiedDebian Package Management Simplified
Debian Package Management Simplified
Abhishek Amberkar
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
Anar Godjaev
 
Refcard en-a4
Refcard en-a4Refcard en-a4
Refcard en-a4
Arduino Aficionado
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
Davide Ciambelli
 
FHS
FHSFHS
FHS
alfianostefano
 
Cp command in Linux
Cp command in LinuxCp command in Linux
Cp command in Linux
Syed SadathUllah
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
dummy
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
Raghav Arora
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
praveen_01236
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
AdamFallon4
 
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
Linux day 3ppt
Linux day 3pptLinux day 3ppt
Linux day 3ppt
Kalkey
 
Compression
CompressionCompression
Compression
aswathyu
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu Commands
Yusuf Felly
 
Unix Commands
Unix CommandsUnix Commands
Unix Commands
Dr.Ravi
 
Debian Package Management Simplified
Debian Package Management SimplifiedDebian Package Management Simplified
Debian Package Management Simplified
Abhishek Amberkar
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
Anar Godjaev
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
Davide Ciambelli
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
dummy
 

Viewers also liked (7)

Los dispositivos de multimedia
Los dispositivos de multimediaLos dispositivos de multimedia
Los dispositivos de multimedia
Carlos De Gracia
 
Organigramas
OrganigramasOrganigramas
Organigramas
Yriannis Linares
 
Vaishali Gaikwad_7yrs_Sr.HR Generalist
Vaishali  Gaikwad_7yrs_Sr.HR GeneralistVaishali  Gaikwad_7yrs_Sr.HR Generalist
Vaishali Gaikwad_7yrs_Sr.HR Generalist
Vaishali Gaikwad
 
TTK 1K Orifice Tube
TTK 1K Orifice TubeTTK 1K Orifice Tube
TTK 1K Orifice Tube
medinage
 
Severi Ojanen/ Mekaaninen kierrätys
Severi Ojanen/ Mekaaninen kierrätysSeveri Ojanen/ Mekaaninen kierrätys
Severi Ojanen/ Mekaaninen kierrätys
Prizztech
 
Antti Porvali/ Harvinaiset maametallit akuissa
Antti Porvali/ Harvinaiset maametallit akuissaAntti Porvali/ Harvinaiset maametallit akuissa
Antti Porvali/ Harvinaiset maametallit akuissa
Prizztech
 
Mari Lundström/ Hydrometallurgy and Corrosion
Mari Lundström/ Hydrometallurgy and CorrosionMari Lundström/ Hydrometallurgy and Corrosion
Mari Lundström/ Hydrometallurgy and Corrosion
Prizztech
 
Los dispositivos de multimedia
Los dispositivos de multimediaLos dispositivos de multimedia
Los dispositivos de multimedia
Carlos De Gracia
 
Vaishali Gaikwad_7yrs_Sr.HR Generalist
Vaishali  Gaikwad_7yrs_Sr.HR GeneralistVaishali  Gaikwad_7yrs_Sr.HR Generalist
Vaishali Gaikwad_7yrs_Sr.HR Generalist
Vaishali Gaikwad
 
TTK 1K Orifice Tube
TTK 1K Orifice TubeTTK 1K Orifice Tube
TTK 1K Orifice Tube
medinage
 
Severi Ojanen/ Mekaaninen kierrätys
Severi Ojanen/ Mekaaninen kierrätysSeveri Ojanen/ Mekaaninen kierrätys
Severi Ojanen/ Mekaaninen kierrätys
Prizztech
 
Antti Porvali/ Harvinaiset maametallit akuissa
Antti Porvali/ Harvinaiset maametallit akuissaAntti Porvali/ Harvinaiset maametallit akuissa
Antti Porvali/ Harvinaiset maametallit akuissa
Prizztech
 
Mari Lundström/ Hydrometallurgy and Corrosion
Mari Lundström/ Hydrometallurgy and CorrosionMari Lundström/ Hydrometallurgy and Corrosion
Mari Lundström/ Hydrometallurgy and Corrosion
Prizztech
 
Ad

Similar to Cloning database using srdf copy (20)

Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step Procedure
Orazer Technologies
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
Lucky Ally
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
Osama Mustafa
 
RAC.docx
RAC.docxRAC.docx
RAC.docx
ssuser02862c
 
Les 07 Rman Rec
Les 07 Rman RecLes 07 Rman Rec
Les 07 Rman Rec
vivaankumar
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
Anar Godjaev
 
Les 08 Dupe Db
Les 08 Dupe DbLes 08 Dupe Db
Les 08 Dupe Db
vivaankumar
 
ASM
ASMASM
ASM
VINAY PANDEY
 
Les 05 Create Bu
Les 05 Create BuLes 05 Create Bu
Les 05 Create Bu
vivaankumar
 
Hotbackup
HotbackupHotbackup
Hotbackup
oracle documents
 
Createclone
CreatecloneCreateclone
Createclone
oracle documents
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
Arun Sharma
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
Satishbabu Gunukula
 
Les 07 rman_rec
Les 07 rman_recLes 07 rman_rec
Les 07 rman_rec
Femi Adeyemi
 
Rac nonrac clone
Rac nonrac cloneRac nonrac clone
Rac nonrac clone
stevejones167
 
Les 01 Arch
Les 01 ArchLes 01 Arch
Les 01 Arch
vivaankumar
 
Controlfilemanagement
ControlfilemanagementControlfilemanagement
Controlfilemanagement
Vinay Thota
 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Share
kutrovsky
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step Procedure
Orazer Technologies
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
Lucky Ally
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
Osama Mustafa
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
Anar Godjaev
 
Les 05 Create Bu
Les 05 Create BuLes 05 Create Bu
Les 05 Create Bu
vivaankumar
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
Arun Sharma
 
Controlfilemanagement
ControlfilemanagementControlfilemanagement
Controlfilemanagement
Vinay Thota
 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Share
kutrovsky
 
Ad

Recently uploaded (20)

YSPH VMOC Special Report - Measles Outbreak Southwest US 5-14-2025 .pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-14-2025  .pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-14-2025  .pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-14-2025 .pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptxUnit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Mayuri Chavan
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
How to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 InventoryHow to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 Inventory
Celine George
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
libbys peer assesment.docx..............
libbys peer assesment.docx..............libbys peer assesment.docx..............
libbys peer assesment.docx..............
19lburrell
 
COPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDFCOPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDF
SONU HEETSON
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
INQUISITORS School Quiz Prelims 2025.pptx
INQUISITORS School Quiz Prelims 2025.pptxINQUISITORS School Quiz Prelims 2025.pptx
INQUISITORS School Quiz Prelims 2025.pptx
SujatyaRoy
 
LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2
LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2
LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2
LDM & Mia eStudios
 
Pope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptxPope Leo XIV, the first Pope from North America.pptx
Pope Leo XIV, the first Pope from North America.pptx
Martin M Flynn
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptxUnit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Mayuri Chavan
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
E-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26ASE-Filing_of_Income_Tax.pptx and concept of form 26AS
E-Filing_of_Income_Tax.pptx and concept of form 26AS
Abinash Palangdar
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
How to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 InventoryHow to Manage Manual Reordering Rule in Odoo 18 Inventory
How to Manage Manual Reordering Rule in Odoo 18 Inventory
Celine George
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
libbys peer assesment.docx..............
libbys peer assesment.docx..............libbys peer assesment.docx..............
libbys peer assesment.docx..............
19lburrell
 
COPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDFCOPA Apprentice exam Questions and answers PDF
COPA Apprentice exam Questions and answers PDF
SONU HEETSON
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
INQUISITORS School Quiz Prelims 2025.pptx
INQUISITORS School Quiz Prelims 2025.pptxINQUISITORS School Quiz Prelims 2025.pptx
INQUISITORS School Quiz Prelims 2025.pptx
SujatyaRoy
 
LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2
LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2
LDMMIA Reiki Yoga S6 Free Workshop Money Pt 2
LDM & Mia eStudios
 

Cloning database using srdf copy

  • 1. Takethe backup of all the parametersfile and backup of listener which are running on the database to becloned Takethe backup of all the user which arerunning on the Database to be cloned Check and take backup of all the services which wererunning on the database to be cloned Check on all the nodes whether disk are visible after confirmation from storage team and if not ask the serverTeam to check on each nodes after confirmation from storage team Mount diskgroup Alter diskgroup <Diskgroup Name> mount ; ( On each node using SYSASM) Mount Databasewith temporary init file and Recover Mount the database using the old init.ora file which have we have taken the backup Change the name of the database like replace DRORBIP with ORBIP in the paramters in init.ora files  like change the name of the control files and redo logs
  • 2. Page 2 of 6 Also check the structure or directories when changing the name in the init.ora files are they Present in the database if not than create in the database to be cloned  like check whether cdump generation directories is there with the Production name as it will give error when mounting the database with init.ora file Recover Database SQL> recover database using backup controlfile until cancel ;  While recovering the database it might give error asking for missing archive logs so check in the production when the snap was taken or when the database is put under begin and end backup mode note the SCN and restore these archive logs using while connecting in the production database using below RMAN script for each thread (including FRA) Example RMAN_USER:RMAN_ORBIP1 RMAN_PASSWORD:ORBIP1 run { allocate channel T1 type 'SBT_TAPE'; allocate channel T2 type 'SBT_TAPE'; allocate channel T3 type 'SBT_TAPE'; allocate channel T4 type 'SBT_TAPE'; send 'NSR_ENV=( NSR_SERVER=vobkd7vr-eth1.819, NSR_CLIENT=uknp71sr-bkp )';
  • 3. Page 3 of 6 restore archivelog from SEQUENCE 451920 UNTIL SEQUENCE 451924 thread 1; release channel T1; release channel T2; release channel T3; release channel T4; } exit; Transfer these archive logs to the destination of the database to be cloned Provide each archive log while recovering the database and cancel the recovery after providing the sufficient Archive logs Example: ERROR at line 1: ORA-01113: file 1 needs media recovery ORA-01110: data file 1: '+ORBIP_DATA/orbipdub/system01.dbf' SQL> recover database using backup controlfile until cancel ; ORA-00279: change 14683760751667 generated at 07/28/2016 17:44:00 needed for thread 1 ORA-00289: suggestion : +ORBIP_FRA ORA-00280: change 14683760751667 for thread 1 is in sequence #451925 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} CANCEL Media recovery cancelled. OpenDatabase & take controlfile trace
  • 4. Page 4 of 6 SQL> alter database open resetlogs ; Database altered. SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE; Database altered. Before Shutting down the database create spfile from our old init.ora file for future purpose while making necessary changes in the spfile like changing the name of the database back to the name of the database to be cloned and name of the diskgroup that we renamed in above step Create spfile from the old init.ora file SQL> Shut immeadite Rename diskgroup Rename the diskgroup by the name of Database to be clonned renamedg phase=both dgname=ORBIP_FRA newdgname=DRORBIP_FRA confirm=true config=/tmp/renamedg verbose=true asm_diskstring='/dev/mapper/asm-*p1' renamedg phase=both dgname=ORBIP_REDO01 newdgname=DRORBIP_REDO01 confirm=true config=/tmp/renamedg_REDO01 verbose=true asm_diskstring='/dev/mapper/asm-*p1' renamedg phase=both dgname=ORBIP_REDO02 newdgname=DRORBIP_REDO02 confirm=true config=/tmp/renamedg_REDO02 verbose=true asm_diskstring='/dev/mapper/asm-*p1'
  • 5. Page 5 of 6 renamedg phase=both dgname=ORBIP_DATA newdgname=DRORBIP_DATA confirm=true config=/tmp/renamedg_DATA verbose=true asm_diskstring='/dev/mapper/asm-*p1' startupnomount withoriginal initfile (with Cluster_database=FALSE) Startup no mount with the spfile that we created from init.ora Create Controlfile Create Control file from the trace file that we have taken backup Before opening the database make sure the controlfile location in spfile is correctly mentioned and it has been copied in three location(Standard Procedure) Like:- *.control_files='+DRORBIP_DATA', '+DRORBIP_REDO01','+DRORBIP_FRA' OpenDatabase,addredologs,tempfile Open the database Add redo logs and Tempfile according the production database from which it has been cloned Set Cluster_database=TRUE Restart DB using srvctl.
  • 6. Page 6 of 6 While using srvctl we might get error that logs are not online check the database and add the redo logs or make the redo logs available in the database Before handing out the database check the connectivity and all the listeners are up and running and all the services are correctly assign and all the users are there in database and in open state. ##########################################
  翻译: