Sunteți pe pagina 1din 3

How to Manually Clone a Database to Another Node In this Document

Goal Solution

Applies to:
Oracle Server - Enterprise Edition - Version: 07.03.04 to 11.1.1 Information in t is document applies to an! platform.

Goal
" is note #ives a step $! step #uide a$out o% to manuall! clone or restore t e data$ase to a different ost.

Solution
1& 'rere(uisites ---------------- " e cop! of t e datafiles must $e done %it t e data$ase closed or t e data$ase must $e in )*+,IVE-OG mode. /& init.ora or spfile and controlfile ---------------------------------------------------- 0ou need to cop! t e init.ora or spfile file to t e tar#et ost and locate it in O*)+-E1,O2E3d$s - +op! t e controlfile4s&. all t e datafiles and all t e arc ivelo#s #enerated. to t e tar#et ost. If data$ase is open t en. !ou need to put all t e ta$lespaces in $ac5up mode. $efore startin# t e cop!: )-"E* ")6-ES')+E 7")6-ES')+E18)2E9 6EGI8 6)+:;'< 99 cop! all t e ta$lespace datafiles )-"E* ")6-ES')+E 7")6-ES')+E18)2E9 E8= 6)+:;'< >>9 =o t is for all t e ta$lespces 3& Set t e oracle environment ------------------------+:39 set O*)+-E1SI=>7SI=9 +:39 s(lplus ?s!s@mana#er as s!sd$a? - + ec5 t e init.ora parameters t at reference location control1files > 7duplicate d$ control file4s&9

$ac5#round1dump1dest > 7duplicate d$ $dump9 core1dump1dest > 7duplicate d$ cdump9 user1dump1dest > 7duplicate d$ udump9 lo#1arc ive1dest11 > 7duplicate d$ arc dump location9 4& Set up a pass%ord file for t e duplicated data$ase orap%d file>AO*)+-E1,O2E@d$s@orap%AO*)+-E1SI= pass%ord>7...9 B& If Cindo%s 'latform. create a ne% 8" service for t e duplicate data$ase usin# oradim. oradim -ne% -sid 7SI=9 -intp%d 7pass%ord9 -maDusers 10 -startmode manual -spfile E7spfile9E or oradim -ne% -sid 7SI=9 -intp%d 7pass%ord9 -maDusers 10 -startmode manual -pfile E7pfile9E

B& Startup t e data$ase in mount status SF-9 startup mount SF-9 *ename an! of t e datafiles to t e ne% location. if necessar!: )-"E* =)")6)SE *E8)2E GI-E E@G;--1')",1OG1O-=1-O+)"IO8@)8=1=)")GI-E18)2E.=6GE "O E@G;--1')",1OG18EC1-O+)"IO8@)8=1=)")GI-E18)2E.=6GE< SF-9 *ename t e lo#files to t e ne% location if necessart alter data$ase rename file E7 ost ) location9E to E7 ost 6 location9E< H& + ec5 t at all t e datafiles are in t e ri# t location: select fileI. name from vAdatafile< 7& 'erform incomplete recover!: SF-9 recover data$ase usin# $ac5up controlfile until cancel< Gor%ard t e data$ase appl!in# arc ived redo lo# files until !ou decide to stop recover! $! t!pin# cancel at t e prompt 4assumin# t at !ou ave re(uired arc ived redo lo# files in t e lo#1arc ive1dest director!& 0ou ma! arc ive t e source data$ase redo lo# files and appl! t em at t e tar#et data$ase if re(uired. SF-9 alter data$ase open resetlo#s< J& In Cindo%s platforms. if !ou %ant t at t e data$ase %ill start automaticall! t en edit t e re#istr!: re#edit #o to ,:E01-O+)-12)+,I8E3SOG"C)*E3O*)+-E3,O2EK c an#e t e 5e! : O*)17SI=91);"OS")*">"*;E

S-ar putea să vă placă și