SlideShare a Scribd company logo
1 of 6
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.
##########################################

More Related Content

What's hot

Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands Raghav Arora
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistpraveen_01236
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOSAdamFallon4
 
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 3pptKalkey
 
Compression
CompressionCompression
Compressionaswathyu
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsYusuf Felly
 
Unix Commands
Unix CommandsUnix Commands
Unix CommandsDr.Ravi
 
Debian Package Management Simplified
Debian Package Management SimplifiedDebian Package Management Simplified
Debian Package Management SimplifiedAbhishek 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 BeginnersDavide Ciambelli
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manualdummy
 

What's hot (20)

History
HistoryHistory
History
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
 
unix-OS-Lab-4.doc
unix-OS-Lab-4.docunix-OS-Lab-4.doc
unix-OS-Lab-4.doc
 
Directories description
Directories descriptionDirectories description
Directories description
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
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...
 
Linux day 3ppt
Linux day 3pptLinux day 3ppt
Linux day 3ppt
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
 
Compression
CompressionCompression
Compression
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu Commands
 
Unix Commands
Unix CommandsUnix Commands
Unix Commands
 
Debian Package Management Simplified
Debian Package Management SimplifiedDebian Package Management Simplified
Debian Package Management Simplified
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
 
Refcard en-a4
Refcard en-a4Refcard en-a4
Refcard en-a4
 
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
 
FHS
FHSFHS
FHS
 
Cp command in Linux
Cp command in LinuxCp command in Linux
Cp command in Linux
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
 

Viewers also liked

Los dispositivos de multimedia
Los dispositivos de multimediaLos dispositivos de multimedia
Los dispositivos de multimediaCarlos De Gracia
 
Vaishali Gaikwad_7yrs_Sr.HR Generalist
Vaishali  Gaikwad_7yrs_Sr.HR GeneralistVaishali  Gaikwad_7yrs_Sr.HR Generalist
Vaishali Gaikwad_7yrs_Sr.HR GeneralistVaishali Gaikwad
 
TTK 1K Orifice Tube
TTK 1K Orifice TubeTTK 1K Orifice Tube
TTK 1K Orifice Tubemedinage
 
Severi Ojanen/ Mekaaninen kierrätys
Severi Ojanen/ Mekaaninen kierrätysSeveri Ojanen/ Mekaaninen kierrätys
Severi Ojanen/ Mekaaninen kierrätysPrizztech
 
Antti Porvali/ Harvinaiset maametallit akuissa
Antti Porvali/ Harvinaiset maametallit akuissaAntti Porvali/ Harvinaiset maametallit akuissa
Antti Porvali/ Harvinaiset maametallit akuissaPrizztech
 
Mari Lundström/ Hydrometallurgy and Corrosion
Mari Lundström/ Hydrometallurgy and CorrosionMari Lundström/ Hydrometallurgy and Corrosion
Mari Lundström/ Hydrometallurgy and CorrosionPrizztech
 

Viewers also liked (7)

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

Similar to Cloning database using srdf copy

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 ProcedureOrazer Technologies
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docLucky 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 hostOsama Mustafa
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and RecoveryAnar Godjaev
 
Les 05 Create Bu
Les 05 Create BuLes 05 Create Bu
Les 05 Create Buvivaankumar
 
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 SetupArun Sharma
 
Controlfilemanagement
ControlfilemanagementControlfilemanagement
ControlfilemanagementVinay Thota
 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Sharekutrovsky
 

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.
 
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.
 
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
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
 
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
 
RAC.docx
RAC.docxRAC.docx
RAC.docx
 
Les 07 Rman Rec
Les 07 Rman RecLes 07 Rman Rec
Les 07 Rman Rec
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
 
Les 08 Dupe Db
Les 08 Dupe DbLes 08 Dupe Db
Les 08 Dupe Db
 
ASM
ASMASM
ASM
 
Les 05 Create Bu
Les 05 Create BuLes 05 Create Bu
Les 05 Create Bu
 
Hotbackup
HotbackupHotbackup
Hotbackup
 
Createclone
CreatecloneCreateclone
Createclone
 
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
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Les 07 rman_rec
Les 07 rman_recLes 07 rman_rec
Les 07 rman_rec
 
Rac nonrac clone
Rac nonrac cloneRac nonrac clone
Rac nonrac clone
 
Les 01 Arch
Les 01 ArchLes 01 Arch
Les 01 Arch
 
Controlfilemanagement
ControlfilemanagementControlfilemanagement
Controlfilemanagement
 
RAC+ASM: Stories to Share
RAC+ASM: Stories to ShareRAC+ASM: Stories to Share
RAC+ASM: Stories to Share
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

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. ##########################################