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

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsISCOPE Publication
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint23600690
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 

Recently uploaded (20)

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS Publications
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 

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