SlideShare a Scribd company logo
Duplicate Database advance Method for distributing datafiles into multiple locations
Nabi Mohammad
We have belowrequirementinone of ourcustomer.
While restoringthe database,we needtodistribute the datafilesintotwomountpoints
1. All APPS_TS_MEDIA tablespace datafiles into /u01/app/oradata
2. Andremainingall into/u02/app/oradata
I have usedduplicate database methodtoperformthe refresh.The above requirementcanbe achieved
as belowwiththe RMAN duplicate script.
Pre- requisitesforthis Method:
- Database versionmustbe 11GR2 or higher.
- db_file_name_convert&log_file_name_convertparametersmustbe setrespectivelyforthe
remainingdatafiles.
-bash-4.1$ cat rman_restore.sh
RMAN AUXILIARY / LOG=restore.log <<EOF
RUN
{
ALLOCATE AUXILIARY CHANNEL C1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL C2 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL C3 DEVICE TYPE DISK;
SET NEWNAME FOR TABLESPACE APPS_TS_MEDIA to '/u01/app/oradata/%b';
DUPLICATE DATABASE TO <SID> BACKUP LOCATION '<full_path_of_backup_loction>'
NOFILENAMECHECK ;
}
EOF
%b - Specifies the file name stripped of directory paths. For example, if a data file is
named /u02/app/prod/APPS_TS_MEDIA14.dbf,then %b results
APPS_TS_MEDIA14.dbf.
<full_path_of_backup_loction> - Backup path where all the RMAN backup pieces reside
<SID> – Name of the database
The snippetof the logis as below
channel c3: specifying datafile(s) to restore from backup set
channel c3: restoring datafile 00004 to /u02/app/oradata/system04.dbf
channel c3: restoring datafile 00006 to /u02/app/oradata/system06.dbf
channel c3: restoring datafile 00008 to /u02/app/oradata/system08.dbf
channel c3: restoring datafile 00011 to /u02/app/oradata/system11.dbf
channel c3: restoring datafile 00015 to /u01/app/oradata/APPS_TS_MEDIA12.dbf
channel c3: restoring datafile 00017 to /u01/app/oradata/APPS_TS_MEDIA14.dbf
Duplicate Database advance Method for distributing datafiles into multiple locations
Nabi Mohammad
channel c3: restoring datafile 00020 to /u02/app/oradata/APPS_TS_TX_DATA06.dbf
channel c3: restoring datafile 00324 to /u02/app/oradata/portal01.dbf
channel c3: restoring datafile 00394 to /u02/app/oradata/amwx01.dbf
channel c3: restoring datafile 00395 to /u02/app/oradata/asnd01.dbf
channel c3: restoring datafile 00399 to /u02/app/oradata/fund01.dbf
channel c3: restoring datafile 00402 to /u02/app/oradata/gcsx01.dbf
channel c3: restoring datafile 00404 to /u02/app/oradata/iax01.dbf
channel c3: restoring datafile 00405 to /u02/app/oradata/lnsd01.dbf
channel c3: restoring datafile 00408 to /u02/app/oradata/mstx01.dbf
channel c3: restoring datafile 00411 to /u02/app/oradata/xled01.dbf
channel c3: restoring datafile 00414 to /u02/app/oradata/zpbx01.dbf
channel c3: restoring datafile 00420 to /u02/app/oradata/tools01.dbf
channel c3: restoring datafile 00423 to /u02/app/oradata/sadbamd01.dbf
channel c3: restoring datafile 00426 to /u02/app/oradata/undo03.dbf
channel c3: restoring datafile 00452 to /u02/app/oradata/applsysd15.dbf
channel c3: restoring datafile 00454 to /u02/app/oradata/applsysd17.dbf
channel c3: restoring datafile 00456 to /u02/app/oradata/applsysd19.dbf
channel c3: restoring datafile 00458 to /u02/app/oradata/applsysd20.dbf
channel c3: restoring datafile 00461 to /u02/app/oradata/applsysd21.dbf
channel c3: restoring datafile 00463 to /u02/app/oradata/APPS_TS_TX_IDX01.dbf
channel c3: restoring datafile 00466 to /u02/app/oradata/APPS_TS_SUMMARY01.dbf
channel c3: restoring datafile 00469 to /u02/app/oradata/APPS_TS_QUEUES01.dbf
channel c3: restoring datafile 00472 to /u02/app/oradata/APPS_TS_TX_DATA03.dbf
channel c3: restoring datafile 00473 to /u02/app/oradata/APPS_TS_TX_DATA04.dbf
channel c3: restoring datafile 00476 to /u02/app/oradata/APPS_TS_TX_IDX04.dbf
channel c3: restoring datafile 00479 to /u02/app/oradata/APPS_TS_SUMMARY02.dbf
channel c3: restoring datafile 00482 to /u01/app/oradata/APPS_TS_MEDIA02.dbf
channel c3: restoring datafile 00485 to /u01/app/oradata/APPS_TS_MEDIA05.dbf
channel c3: restoring datafile 00488 to /u01/app/oradata/APPS_TS_MEDIA08.dbf
channel c3: restoring datafile 00490 to /u02/app/oradata/APPS_TS_TOOLS02.dbf

More Related Content

Similar to Duplicate database advanced method for distributing datafiles into multiple locations

Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...
Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...
Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...
Puppet
 
FIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11GFIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11G
N/A
 
St22 abap programming
St22 abap programming St22 abap programming
St22 abap programming
nanda nanda
 
programming errors
programming errorsprogramming errors
programming errors
nanda nanda
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Raheel Syed
 
Checklist_AC.pdf
Checklist_AC.pdfChecklist_AC.pdf
Moving to ws2003
Moving to ws2003Moving to ws2003
Moving to ws2003
Sumit Tambe
 
Sap basis administrator user guide
Sap basis administrator   user guideSap basis administrator   user guide
Sap basis administrator user guide
PoguttuezhiniVP
 
Sapnote 0000071254
Sapnote 0000071254Sapnote 0000071254
Sapnote 0000071254
mohdhk55
 
Pre-Con Ed: Upgrading to CA Service Management
Pre-Con Ed: Upgrading to CA Service ManagementPre-Con Ed: Upgrading to CA Service Management
Pre-Con Ed: Upgrading to CA Service Management
CA Technologies
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
Deepti Singh
 
VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...
VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...
VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...
VMworld
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
Deepti Singh
 
Linux
LinuxLinux
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
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
 
Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013
Martin Kenneth Michalsky
 
Ae backup
Ae backupAe backup
Ae backup
Protect724v2
 
AWS Pentest.pdf
AWS Pentest.pdfAWS Pentest.pdf
AWS Pentest.pdf
MAHESHUMANATHGOPALAK
 
Moving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASMMoving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASM
Monowar Mukul
 

Similar to Duplicate database advanced method for distributing datafiles into multiple locations (20)

Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...
Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...
Puppet Camp Boston 2014: Orchestrating Infrastructure Change Using Puppet Rak...
 
FIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11GFIXING BLOCK CORRUPTION (RMAN) on 11G
FIXING BLOCK CORRUPTION (RMAN) on 11G
 
St22 abap programming
St22 abap programming St22 abap programming
St22 abap programming
 
programming errors
programming errorsprogramming errors
programming errors
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
 
Checklist_AC.pdf
Checklist_AC.pdfChecklist_AC.pdf
Checklist_AC.pdf
 
Moving to ws2003
Moving to ws2003Moving to ws2003
Moving to ws2003
 
Sap basis administrator user guide
Sap basis administrator   user guideSap basis administrator   user guide
Sap basis administrator user guide
 
Sapnote 0000071254
Sapnote 0000071254Sapnote 0000071254
Sapnote 0000071254
 
Pre-Con Ed: Upgrading to CA Service Management
Pre-Con Ed: Upgrading to CA Service ManagementPre-Con Ed: Upgrading to CA Service Management
Pre-Con Ed: Upgrading to CA Service Management
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...
VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...
VMworld 2013: vSphere Data Protection (VDP) Technical Deep Dive and Troublesh...
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Linux
LinuxLinux
Linux
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
 
Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013
 
Ae backup
Ae backupAe backup
Ae backup
 
AWS Pentest.pdf
AWS Pentest.pdfAWS Pentest.pdf
AWS Pentest.pdf
 
Moving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASMMoving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASM
 

More from Nabi Abdul

Rman workshop short
Rman workshop shortRman workshop short
Rman workshop short
Nabi Abdul
 
Rman script build_space_issue
Rman script build_space_issueRman script build_space_issue
Rman script build_space_issue
Nabi Abdul
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
Nabi Abdul
 
Rman backup and recovery 11g new features
Rman backup and recovery 11g new featuresRman backup and recovery 11g new features
Rman backup and recovery 11g new features
Nabi Abdul
 
Rman 11g new features
Rman 11g new featuresRman 11g new features
Rman 11g new features
Nabi Abdul
 
Oracle 11g nf_1.0
Oracle 11g nf_1.0Oracle 11g nf_1.0
Oracle 11g nf_1.0
Nabi Abdul
 

More from Nabi Abdul (6)

Rman workshop short
Rman workshop shortRman workshop short
Rman workshop short
 
Rman script build_space_issue
Rman script build_space_issueRman script build_space_issue
Rman script build_space_issue
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
 
Rman backup and recovery 11g new features
Rman backup and recovery 11g new featuresRman backup and recovery 11g new features
Rman backup and recovery 11g new features
 
Rman 11g new features
Rman 11g new featuresRman 11g new features
Rman 11g new features
 
Oracle 11g nf_1.0
Oracle 11g nf_1.0Oracle 11g nf_1.0
Oracle 11g nf_1.0
 

Recently uploaded

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
PuktoonEngr
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 

Recently uploaded (20)

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 

Duplicate database advanced method for distributing datafiles into multiple locations

  • 1. Duplicate Database advance Method for distributing datafiles into multiple locations Nabi Mohammad We have belowrequirementinone of ourcustomer. While restoringthe database,we needtodistribute the datafilesintotwomountpoints 1. All APPS_TS_MEDIA tablespace datafiles into /u01/app/oradata 2. Andremainingall into/u02/app/oradata I have usedduplicate database methodtoperformthe refresh.The above requirementcanbe achieved as belowwiththe RMAN duplicate script. Pre- requisitesforthis Method: - Database versionmustbe 11GR2 or higher. - db_file_name_convert&log_file_name_convertparametersmustbe setrespectivelyforthe remainingdatafiles. -bash-4.1$ cat rman_restore.sh RMAN AUXILIARY / LOG=restore.log <<EOF RUN { ALLOCATE AUXILIARY CHANNEL C1 DEVICE TYPE DISK; ALLOCATE AUXILIARY CHANNEL C2 DEVICE TYPE DISK; ALLOCATE AUXILIARY CHANNEL C3 DEVICE TYPE DISK; SET NEWNAME FOR TABLESPACE APPS_TS_MEDIA to '/u01/app/oradata/%b'; DUPLICATE DATABASE TO <SID> BACKUP LOCATION '<full_path_of_backup_loction>' NOFILENAMECHECK ; } EOF %b - Specifies the file name stripped of directory paths. For example, if a data file is named /u02/app/prod/APPS_TS_MEDIA14.dbf,then %b results APPS_TS_MEDIA14.dbf. <full_path_of_backup_loction> - Backup path where all the RMAN backup pieces reside <SID> – Name of the database The snippetof the logis as below channel c3: specifying datafile(s) to restore from backup set channel c3: restoring datafile 00004 to /u02/app/oradata/system04.dbf channel c3: restoring datafile 00006 to /u02/app/oradata/system06.dbf channel c3: restoring datafile 00008 to /u02/app/oradata/system08.dbf channel c3: restoring datafile 00011 to /u02/app/oradata/system11.dbf channel c3: restoring datafile 00015 to /u01/app/oradata/APPS_TS_MEDIA12.dbf channel c3: restoring datafile 00017 to /u01/app/oradata/APPS_TS_MEDIA14.dbf
  • 2. Duplicate Database advance Method for distributing datafiles into multiple locations Nabi Mohammad channel c3: restoring datafile 00020 to /u02/app/oradata/APPS_TS_TX_DATA06.dbf channel c3: restoring datafile 00324 to /u02/app/oradata/portal01.dbf channel c3: restoring datafile 00394 to /u02/app/oradata/amwx01.dbf channel c3: restoring datafile 00395 to /u02/app/oradata/asnd01.dbf channel c3: restoring datafile 00399 to /u02/app/oradata/fund01.dbf channel c3: restoring datafile 00402 to /u02/app/oradata/gcsx01.dbf channel c3: restoring datafile 00404 to /u02/app/oradata/iax01.dbf channel c3: restoring datafile 00405 to /u02/app/oradata/lnsd01.dbf channel c3: restoring datafile 00408 to /u02/app/oradata/mstx01.dbf channel c3: restoring datafile 00411 to /u02/app/oradata/xled01.dbf channel c3: restoring datafile 00414 to /u02/app/oradata/zpbx01.dbf channel c3: restoring datafile 00420 to /u02/app/oradata/tools01.dbf channel c3: restoring datafile 00423 to /u02/app/oradata/sadbamd01.dbf channel c3: restoring datafile 00426 to /u02/app/oradata/undo03.dbf channel c3: restoring datafile 00452 to /u02/app/oradata/applsysd15.dbf channel c3: restoring datafile 00454 to /u02/app/oradata/applsysd17.dbf channel c3: restoring datafile 00456 to /u02/app/oradata/applsysd19.dbf channel c3: restoring datafile 00458 to /u02/app/oradata/applsysd20.dbf channel c3: restoring datafile 00461 to /u02/app/oradata/applsysd21.dbf channel c3: restoring datafile 00463 to /u02/app/oradata/APPS_TS_TX_IDX01.dbf channel c3: restoring datafile 00466 to /u02/app/oradata/APPS_TS_SUMMARY01.dbf channel c3: restoring datafile 00469 to /u02/app/oradata/APPS_TS_QUEUES01.dbf channel c3: restoring datafile 00472 to /u02/app/oradata/APPS_TS_TX_DATA03.dbf channel c3: restoring datafile 00473 to /u02/app/oradata/APPS_TS_TX_DATA04.dbf channel c3: restoring datafile 00476 to /u02/app/oradata/APPS_TS_TX_IDX04.dbf channel c3: restoring datafile 00479 to /u02/app/oradata/APPS_TS_SUMMARY02.dbf channel c3: restoring datafile 00482 to /u01/app/oradata/APPS_TS_MEDIA02.dbf channel c3: restoring datafile 00485 to /u01/app/oradata/APPS_TS_MEDIA05.dbf channel c3: restoring datafile 00488 to /u01/app/oradata/APPS_TS_MEDIA08.dbf channel c3: restoring datafile 00490 to /u02/app/oradata/APPS_TS_TOOLS02.dbf