Escolar Documentos
Profissional Documentos
Cultura Documentos
White Paper
Introduction Oracle 11g offers new features for creating a hysical !tan"#y "ata#ase an" clone or refresh from the acti$e pro"uction "ata#ase% This can #e accomplishe" using &'A()s D* +,-AT. /&O' A-T,V. DATABA!. feature%
An enhancement to the "uplicate "ata#ase feature is that the physical stan"#y or clone "ata#ase has a "ifferent "ata#ase i"entifier 0DB,D1 from the source "ata#ase which remo$es the hassle of registering this "ata#ase in &'A( catalog% 2e can "uplicate a "ata#ase in two ways3 1% Acti$e "ata#ase "uplication 4% Backup5#ase" "uplication Acti$e "ata#ase "uplication copies the li$e target "ata#ase o$er the network to the au6iliary "estination an" creates the "uplicate "ata#ase% The "ifference is that we "on7t nee" to ha$e the pre5e6isting &'A( #ackups since the files of the acti$e "ata#ase are copie" o$er the network% The "uplication is performe" #y the au6iliary channel%
+et)s "iscuss in "etail a#out the two features of Acti$e "ata#ase "uplication%
!9+E select process,status,threa"W,seAuenceW, #lockW from $Fmanage"8stan"#y where process like 7'& Q7G '& : A +Y,(I8+OI 4 4=< :
2e ha$e create" a hysical !tan"#y Data#ase *sing &'A( D* +,-AT. from the acti$e pro"uction #y copying@transferring the files@"ata o$er the network through the tns connect string% Fe, o0 the RMAN Duplicate 0eatures ,hich are o0 interest are as belo, Duplicating a !u#set of the !ource Data#ase Ta#lespaces3 '4cluding Read6Onl" &ablespaces D* +,-AT. TA&I.T DATABA!. TO "up"# /&O' A-T,V. DATABA!. !R, &.ADO(+Y (O/,+.(A'.-H.-RG '4cluding #peci0ied &ablespaces D* +,-AT. TA&I.T DATABA!. TO "up"# /&O' A-T,V. DATABA!. !R, TAB+.! A-. tools (O/,+.(A'.-H.-RG Including #peci0ied &ablespaces D* +,-AT. TA&I.T DATABA!. TO "up"# /&O' A-T,V. DATABA!. TAB+.! A-. users (O/,+.(A'.-H.-RG
+,!T.(.&%O&A3 0on the A*S,+,A&Y host @ On the host were we are refreshing it from pro"uction1 +,!T.(.& J 0D.!-&, T,O(8+,!T J 0D.!-&, T,O( J 0ADD&.!! J 0 &OTO-O+ J , -10R.Y J .ST &O-1=4111 0ADD&.!! J 0 &OTO-O+ J T- 10HO!T J #f15ora"#5 ::?%"ata%corp%#f1%yahoo%com10 O&T J 1=411111 !,D8+,!T8+,!T.(.& J 0!,D8+,!T J 0!,D8D.!- J 0I+OBA+8DB(A'. J spora:1t1 0O&A-+.8HO'. J @oracle@pro"uct@11%41 0!,D8(A'. J spora:1t1111 -onfirm the connection to #oth the target an" the au6iliary instance using sAlplus%
!tarting #ackup at 415O-T511 using channel O&A8D,!R81 channel O&A8D,!R813 starting "atafile copy copying current control file output file nameJ@u:1@ora"ata@#fora:4t@snapcf8#fora:4t1%f tagJTAI4:111:44T:<1?:? &.-,DJ4< !TA' JN?=1NCNN4 channel O&A8D,!R813 "atafile copy complete, elapse" time3 ::3::31= /inishe" #ackup at 415O-T511 "ata#ase mounte" contents of 'emory !cript3 T set newname for "atafile 1 to U@u:<@ora"ata@spora:1t@system::1%"#fUG
contents of 'emory !cript3 T sAl clone Ualter system set "#8name J 77! O&A:1T77 commentJ 77&eset to original $alue #y &'A(77 scopeJspfileUG sAl clone Ualter system reset "#8uniAue8name scopeJspfileUG shut"own clone imme"iateG startup clone nomountG V e6ecuting 'emory !cript sAl statement3 alter system set "#8name J 77! O&A:1T77 commentJ 77&eset to original $alue #y &'A(77 scopeJspfile sAl statement3 alter system reset "#8uniAue8name scopeJspfile Oracle instance shut "own connecte" to au6iliary "ata#ase 0not starte"1 Oracle instance starte" Total !ystem Ilo#al Area 4NCMC1ONO< #ytes
/i6e" !iDe 444M=?: #ytes Varia#le !iDe 41O1:<:O<: #ytes Data#ase Buffers =C?ON:M14 #ytes &e"o Buffers 1M1NN<N4 #ytes sAl statement3 -&.AT. -O(T&O+/,+. &.*!. !.T DATABA!. U! O&A:1TU &.!.T+OI! A&-H,V.+OI 'AS+OI/,+.! 4== 'AS+OI'.'B.&! 4 'ASDATA/,+.! ?==C< 'AS,(!TA(-.! C4 'AS+OIH,!TO&Y C41C +OI/,+. I&O* 4 0 7@u:1@ora"ata@spora:1t@re"o:4a%log7, 7@u:4@ora"ata@spora:1t@re"o:4#%log7 1 !,Y. 1 I &.*!., I&O* 11 0 7@u:1@ora"ata@spora:1t@re"o11a%log7, 7@u:4@ora"ata@spora:1t@re"o11#%log7 1 !,Y. 1 I &.*!., I&O* 14 0 7@u:1@ora"ata@spora:1t@re"o14a%log7, 7@u:4@ora"ata@spora:1t@re"o14#%log7 1 !,Y. 1 I &.*!., I&O* 1C 0 7@u:1@ora"ata@spora:1t@re"o1Ca%log7, 7@u:4@ora"ata@spora:1t@re"o1C#%log7 1 !,Y. 1 I &.*!.,
Our newly refreshe"@clone"@"uplicate DB Xspora:1tZ from the pro"uction X#fora:4tZ is rea"y for our testing@reporting purposes%
Re0erence Metalin9 Docu+ents -reating hysical !tan"#y *sing &'A( D* +,-AT. /&O' A-T,V. DATABA!. ;'+ ,D 1:N=M:O%1> &'A( 7Duplicate /rom Acti$e Data#ase7 /eature in 11I ;'+ ,D <=4O?O%1>