Oracle 10g Transportable Tablespace Enhancements

33
Oracle 10g Transportable Tablespace Enhancements: Cross- Platform Conversion Capabilities By Jim Czuprynski Synopsis. Oracle 10g Release 1 (10gR1) adds several new features in the arena of Transportable Tablespaces. This article – the first in this series – demonstrates how these new features enable the transfer of data between databases on different servers across platform boundaries regardless of those platforms’ operating systems. One of the bigger challenges just about every Oracle DBA faces eventually is the need to transfer data from one database server to another. In my experience, several variables have to be taken into account whenever planning the best method to accomplish such a data transfer: How much data needs to be transferred? Depending upon the amount of data to be copied, I will have to adjust my methodology: If my users need a representative sample of data, I may decide to use tools like DataPump Export to select every nth record from the source database’s tables. DataPump may also be an excellent choice if there are foreign key constraints on several of the tables, since I can use the QUERY directive during the DataPump Export operation to filter only selected rows from related tables. However, if the data in one or more tablespaces needs to be transferred, I also have the option to use the Oracle transportable tablespace feature to transfer the tablespace(s) themselves to the target server. How much storage is available on the target server, and how is that storage arrayed? If I have the same amount of disk storage on each server, and it is arrayed exactly the same, then this makes my decision much simpler: I can simply use Recovery Manager (RMAN) to clone the production database, ship the backups to the target server, restore the database’s control files and datafiles from the backups, and then roll forward changes from copies of archived redo logs. However, storage is rarely identical, of course! When disk storage is arrayed differently or limited in size on the target server, I may have no choice but to export the source database, copy the resulting export files to the target, and import the data there. (Oracle 10g’s DataPump utility makes this even faster, of course. See my articles on the DataPump utility for more information.)

description

mm

Transcript of Oracle 10g Transportable Tablespace Enhancements

Oracle 10g Transportable Tablespace Enhancements: Cross-Platform Conversion CapabilitiesBy Jim Czpryns!i"ynopsis# Oracle 10g Release 1 (10gR1) adds several new features in the arena of Transportable Tablespaces. This article the first in this series demonstrates how these new features enable the transfer of data between databases on different servers across platform boundaries regardless of those platforms operating sstems.One of the bigger challenges just about every Oracle DBA faces eventually is the need to transfer data from one database server to another. In my experience, several variables haveto be taken into account henever planning the best method to accomplish such a data transfer!How much data needs to be transferred? Depending upon the amount of data to be copied, I ill have to adjust my methodology! If my users need a representative sample of data, I may decide to use tools like Data"ump #xport to select every nth record from the source database$s tables. Data"ump may also be an excellent choice if there are foreign !e constraints on several of the tables, since I can use the %'( directive during the Data"ump #xport operation to filter only selected ros from related tables. )oever, if the data in one or more tablespaces needs to be transferred, I also have the option to use the Oracle transportable tablespace feature to transfer the tablespace*s+ themselves to the target server. How much storage is available on the target server, and how is that storage arrayed? If I have the same amount of disk storage on each server, and it is arrayed exactly the same, then this makes my decision much simpler! I can simply use 'ecovery ,anager *',A-+ to clone the production database, ship the backups to the target server, restore the database$s control files and datafiles from the backups, and then roll forard changes from copies of archived redo logs. )oever, storage is rarely identical, of course. /hen disk storage is arrayed differently or limited in si0e on the target server, I may have no choice but to export the source database, copy the resulting export files to the target, and import the data there. *Oracle 12g$s Data"ump utility makes this even faster, of course.3ee my articles on the Data"ump utility for more information.+Do the source and target databases have the same character set? 4his is one of the most often5overlooked issues for data transfers. If I have ensured that standards are in place, hopefully the to databases$ character sets match, or at least the target database$s character set is a superset of the source database$s character set. Otherise, if I attempt to import data into my target database, and the target database$s character set is not a superset of the source database$s character set, there is a good probability that character data ill be corrupted, unconvertible, or simply lost.How much time do I have to complete the transfer? If I need to transfer the complete contents of a 64B database to my %A server prior to the evaluation of a ne Oracle patch, upgrade, or release, or for an upcoming major application softare release, then I need to find the fastest possible method to transfer the data from the source to the target database.-eedless to say, even though Data"ump #xport has improved dramatically the speed at hich I can dump data out of my source database, I am still constrained by the amount of time it takes to reload the data into the target database.Transportable Tablespaces: ConceptsIf time is of the essence, I may decide upon a much more attractive option! using the Oracle transportable tablespace features to migrate data from one server to another. 4he ability to transport a tablespace has been around since at least Oracle 7i, but I have found that not many DBAs are aare of its poer and flexibility. 4o transport a tablespace prior to Oracle 12g'1, the folloing steps are involved! 8irst, I need to identif hich tablespace*s+ need to be transported. -ote that it is critical to determine if any of the tablespace$s tables have referential integrity constraints that reference tables in other tablespaces9 if they do, those other tablespaces ill need to be included in the set of tablespaces to be transported. Once identified, the source tablespace*s+ need to be brought into read"onl mode by issuing the $%TE& T$B%E"P$CE 'tablespace(name) &E$* O+%,- command. 4his free0es the datafile*s+ for all of the source tablespace*s+ that need to be transported. #reate the metadata for source tablespace*s+ via the #:"O'4 utility *e.p#e.e+. ;opy the resulting tablespaces$ metadata as ell as all datafile(s) from the source database to the target database. $mport the transportable tablespace$s metadata on the target database via the I,"O'4 utility *imp#e.e+. Once the transport operations are complete, I can bring the nely transported tablespace into read"write mode on the target database by issuing the $%TE& T$B%E"P$CE 'tablespace(name) &E$* /&0TE- command, and then issue the same command on the source database to bring it back into read5rite mode. "rior to Oracle 12g'1, there as at least one other concern that needed to be addressed before considering this approach!What operating system do the source and target platforms use? If the source and target databases$ servers did not share the same operating system, I had little choice but toutili0e the export OE>!escriptionF%R'$%R2C90E,OT ,+LLET%=LE;4%'E lmt6ref4'T7REE 10;TOR%:E C1,1T1%L 12GOE?DRO4 T%=LE sh/customer6t)pes 4+R:E?'RE%TE T%=LE sh/customer6t)pes C cust6t)peF%R'$%R2CAE ,OT ,+LL4R18%R> OE>!escriptionF%R'$%R2C90E,OT ,+LLET%=LE;4%'E lmt6ref4'T7REE 10;TOR%:E C1,1T1%L 12GOE?####### Loa! reference tables#####1,;ERT 1,TO sh/sales6aggr6t)pes F%L+E;C0'4>0 0'ompan) Rollup0E?1,;ERT 1,TO sh/sales6aggr6t)pes F%L+E;C0R:,0 0Regional Rollup0E?1,;ERT 1,TO sh/sales6aggr6t)pes F%L+E;C0D;T0 0District Rollup0E?1,;ERT 1,TO sh/sales6aggr6t)pes F%L+E;C0TER0 0Territor) Rollup0E?1,;ERT 1,TO sh/customer6t)pes F%L+E;C0RTL0 0Retail %ccount0E?1,;ERT 1,TO sh/customer6t)pes F%L+E;C03$L0 03holesale %ccount0E?1,;ERT 1,TO sh/customer6t)pes F%L+E;C0+;:0 0+/;/ :o-ernment %ccount0E?1,;ERT 1,TO sh/customer6t)pes F%L+E;C0;L:0 0;tate/Local :o-ernment %ccount0E?1,;ERT 1,TO sh/customer6t)pes F%L+E;C01TL0 01nternational %ccount0E?'O881T?####### 'reate transaction table#####DRO4 T%=LE sh/aggr6sales 4+R:E?'RE%TE T%=LE sh/aggr6sales C sales6aggr6t)peF%R'$%R2CAE ,OT ,+LLgeo6area F%R'$%R2C9E ,OT ,+LLcust6t)peF%R'$%R2CAE ,OT ,+LLunits,+8=ERC1NEre-enue,+8=ERC1N2EET%=LE;4%'E lmt6.act4'T7REE N;TOR%:E C1,1T1%L 18E?####### Loa! transactions table#####1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0'4>00'84>00+;:019GN191D0G0N0/1PE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,00E%;T00+;:0NGGA0DADPGJ/J1E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,003E;T00+;:0GPDG9PJ10D2/9GE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00E%0000+;:01N2J01DNAAJ/9NE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00;E0000+;:09AND09J1DN0/2DE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00830000+;:090GJD992NGG/PGE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T003E0000+;:09GG0GN2G9JA/N0E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%0100+;:012AG01A909N/DPE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%0200+;:02GP0A12P1/JDE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E0100+;:010NJD119N12/J0E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E0200+;:0A2PG9ANJ1AJ/NDE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00830100+;:0A100AAANDGG/0GE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00830200+;:0PGJA10DP00/GPE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E0100+;:02JGP1A01PP2/NPE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E0200+;:020P1J22D9G0/P0E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0'4>00'84>00RTL0AANAPPADA1NDD/21E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,00E%;T00RTL01J9JGA1GP29G0/91E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,003E;T00RTL01D0D1D1JAP0GN/G0E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00E%0000RTL0G0GJGGJNJ19/DAE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00;E0000RTL0PAP0N101DJDN/JGE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00830000RTL0DPDN2JN91D9/00E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T003E0000RTL0P0PD9PG9P21/G1E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%0100RTL02PGJNA2A9J9/NNE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%0200RTL0N100ANN2290/0GE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E0100RTL0N1GJNND1DG1/JNE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E0200RTL0920A09NN0G9/0AE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00830100RTL0A0DN1AA1GJD/JJE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00830200RTL0AP0019222GJ/2AE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E0100RTL09PGJ1NAPPGA/29E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E0200RTL0910PA999PAG/NJE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0'4>00'84>003$L01DNJJGJ1JP9PGN9/N2E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,00E%;T003$L0D012GNDN109JA/9JE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,003E;T003$L010NDN02119APAG1/0DE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00E%00003$L0AD9NNJAP9J2JJ/AJE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00;E00003$L02ADJ2G2NDA1PD/0PE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T008300003$L0919JG099P10J1/PAE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T003E00003$L0D91J22DP9GA0P/1AE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%01003$L01JN0P91GPNG9J/JPE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%02003$L01GP9DA20N192P/NGE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E01003$L010P12J11G1NGA/N1E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E02003$L012JD011AG1D12/NPE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER008301003$L0201PG121GDPDP/9GE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER008302003$L0212JPP2A09102/9NE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E01003$L0A0NJP1AA10PG2/DAE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E02003$L0AANPA1ADAJA2D/N0E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0'4>00'84>00;L:0PGJ2G10DGPGJ/2PE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,00E%;T00;L:0901AP9A9D0P/09E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,003E;T00;L:0NGNGPDA9AJG/2DE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00E%0000;L:01PPDA21D1N1/AGE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00;E0000;L:0201JD21G9NJ/DDE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00830000;L:02DP202P19JG/PPE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T003E0000;L:0A1DDPA92GPP/2DE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%0100;L:0PGJ210DGP0/0JE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%0200;L:0100P110P2D1/A1E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E0100;L:0110P11200GG/P1E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E0200;L:0P0GNPGADG/JNE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00830100;L:01200012PPA1/2E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00830200;L:019P201D1N9J/JPE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E0100;L:02P0GA19GD/DDE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E0200;L:02GJD1A11912/D0E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0'4>00'84>001TL0NDP9D1DN2/ANE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,00E%;T001TL0A2PPANJ20/2NE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0R:,003E;T001TL02APN2NPA2/10E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00E%00001TL020AJ220NN/G2E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T00;E00001TL012D21ADD9/9AE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T008300001TL01PP221NDG/NGE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0D;T003E00001TL090A9ADA/N2E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%01001TL019001N1NG/D9E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00E%02001TL0DAJDGPJ/1GE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E01001TL02P1A1N0/GAE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER00;E02001TL0PJ110N1A/D0E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER008301001TL0100N10GG1/J9E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER008302001TL0PGJ10DGD/G9E?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E01001TL012P1APD/JDE?1,;ERT 1,TO ;$/%::R6;%LE; F%L+E;C0TER003E02001TL02J92PDD/JDE?'O881T?####### 'reate in!e.es an! constraints####### 'reate in!e.es an! constraints'RE%TE +,1Q+E 1,DEB sh/aggr6sales6p*6i!.O, sh/aggr6sales Csales6aggr6t)pe geo6area cust6t)peET%=LE;4%'E lmt6ref4'T7REE N;TOR%:E C1,1T1%L 12GOE?%LTER T%=LE sh/aggr6sales%DD 'O,;TR%1,T aggr6sales6p* 4R18%R> OE> Csales6aggr6t)pe geo6area cust6t)peE?%LTER T%=LE sh/aggr6sales%DD 'O,;TR%1,T aggr6sales6f*6aggr6t)pe7ORE1:, OE> Csales6aggr6t)peERE7ERE,'E; sh/sales6aggr6t)pes Citem6t)peE?%LTER T%=LE sh/aggr6sales%DD 'O,;TR%1,T aggr6sales6f*6cust6t)pe7ORE1:, OE> Ccust6t)peERE7ERE,'E; sh/customer6t)pes Ccust6t)peE?/* || Listing 1/A" Transporting a tablespace"|| 1/E 'reate D1RE'TOR> obRect for storage of source transportable|| tablespaces an! meta!ata|| 2/E 8a*e the source tablespace rea!#onl) to permit the transport|| A/E E.port the tablespace0s meta!ata -ia Data4ump E.port|| 9/E 'op) the tablespace0s !atafile an! meta!ata to target ser-er|| N/E 1mport tablespace into target !atabase|| D/E Enable tablespace for RE%D 3R1TE mo!e on target !atabase|| J/E Re#enable tablespace for RE%D 3R1TE mo!e on source !atabase*//*|| Transporting Tablespaces" ;ource ;er-er 4rocessing*/## 'reate the D1RE'TOR> obRect on the source !atabase ser-er'"@ m*!ir c"LoracleLtt.ports;QL@ DRO4 D1RE'TOR> tt.ports?;QL@ 'RE%TE D1RE'TOR> tt.ports %; 0c"LoracleLtt.ports0?;QL@ :R%,T RE%D 3R1TE O, D1RE'TOR> tt.ports TO 4+=L1'?## 8a*e the source tablespace rea!#onl);QL@ %LTER T%=LE;4%'E lmt6.act RE%D O,L>?## 'ontents of Data4ump E.port parameter file Ctts6e.port61/!pectlE"&O=6,%8E K TT;6EB4ORT61D1RE'TOR> K TTB4ORT;D+8471LE K tts6e.port61/!mp LO:71LE K tts6e.port61/logTR%,;4ORT6T%=LE;4%'E; K lmt6.actTR%,;4ORT67+LL6'$E'O K TR+E## ;tart a Data4ump E.port operation for the tablespace transportEB4D4 s)stem/oracle 4%R71LEKc"LoracleLtt.portsLtts6e.port61/!pectl####### Results of faile! transportable tablespace meta!ata e.port/ ,ote that## Oracle will not let a tablespace0s meta!ata be create! if tables within ## the tablespace reference obRects in other tablespaces not inclu!e! in## the list of tablespaces to be transporte!? also all tablespaces in the## transportable tablespace set must be in RE%D O,L> mo!e#####E.port" Release 10/2/0/1/0 # 4ro!uction on ;un!a) 1D %pril 200D 12"AG"AD'op)right CcE 200A 200N Oracle/%ll rights reser-e!/'onnecte! to" Oracle Database 10g Enterprise E!ition Release 10/2/0/1/0 # 4ro!uction3ith the 4artitioning OL%4 an! Data 8ining options;tarting 2;>;TE82/2TT;6EB4ORT612"s)stem/******** 4%R71LEKc"LoracleLtt.portsLtts6e.port61/!pectl OR%#AP12A" Data 4ump transportable tablespace Rob aborte!OR%#2PA91" The transportable set is not self#containe!&ob 2;>;TE82/2TT;6EB4ORT612 stoppe! !ue to fatal error at 12"AP"1P####### Results of successful transportable tablespace meta!ata e.port Ci/e/ ## after changing list of transportable tablespaces to inclu!e both L8T6B%'T## an! L8T6RE7E#####E.port" Release 10/2/0/1/0 # 4ro!uction on ;un!a) 1D %pril 200D 12"9N"N1'op)right CcE 200A 200N Oracle/%ll rights reser-e!/'onnecte! to" Oracle Database 10g Enterprise E!ition Release 10/2/0/1/0 # 4ro!uction3ith the 4artitioning OL%4 an! Data 8ining options;tarting 2;>;TE82/2TT;6EB4ORT612"s)stem/******** 4%R71LEKc"LoracleLtt.portsLtts6e.port61/!pectl 4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/4L+:T;6=LO4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/T%=LE4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/1,DEB4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/'O,;TR%1,T/'O,;TR%1,T4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/1,DEB6;T%T1;T1';4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/'O,;TR%1,T/RE76'O,;TR%1,T4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/T%=LE6;T%T1;T1';4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/4O;T61,;T%,'E/4L+:T;6=LO8aster table 2;>;TE82/2TT;6EB4ORT612 successfull) loa!e!/unloa!e!******************************************************************************Dump file set for ;>;TE8/TT;6EB4ORT61 is"'"LOR%'LELTTB4ORT;LTT;6EB4ORT61/D84&ob 2;>;TE82/2TT;6EB4ORT612 successfull) complete! at 12"9J"9A/*|| Transporting Tablespaces" Target ;er-er 4rocessing*/####### 'reate a D1RE'TOR> obRect for storage of target transportable## tablespaces an! meta!ata##### tt.ports TO 4+=L1'?####### 'ontents of Data4ump 1mport parameter file Ctts6import61/!pictlE"#####&O=6,%8E K TT;6184ORT61D1RE'TOR> K TTB4ORT;D+8471LE K TT;6EB4ORT61/D84 LO:71LE K tts6import61/logTR%,;4ORT6D%T%71LE; K /u02/tt.ports/L8T6B%'T01/D=7 /u02/tt.ports/L8T6RE7/D=7####### Data4ump 1mport comman!"#####184D4 s)stem/oracle 4%R71LEKtts6import61/!pictl@@@ Results of successful transportable tablespace import on target1mport" Release 10/2/0/1/0 # 4ro!uction on ;un!a) 1D %pril 200D 12"N2"AG'op)right CcE 200A 200N Oracle/%ll rights reser-e!/'onnecte! to" Oracle Database 10g Enterprise E!ition Release 10/2/0/1/0 # 4ro!uction3ith the 4artitioning OL%4 an! Data 8ining options8aster table 2;>;TE82/2TT;6184ORT612 successfull) loa!e!/unloa!e!;tarting 2;>;TE82/2TT;6184ORT612"s)stem/******** parfile K /u02/tt.ports/tts6import61/!pictl 4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/4L+:T;6=LO4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/T%=LE4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/1,DEB4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/'O,;TR%1,T/'O,;TR%1,T4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/1,DEB6;T%T1;T1';4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/'O,;TR%1,T/RE76'O,;TR%1,T4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/T%=LE6;T%T1;T1';4rocessing obRect t)pe TR%,;4ORT%=LE6EB4ORT/4O;T61,;T%,'E/4L+:T;6=LO&ob 2;>;TE82/2TT;6184ORT612 successfull) complete! at 12"NA"0J## %fter cop)ing the tablespaces0 !atafiles to the !estination ser-er0s ## !irector) bring the tablespaces bac* into rea!#write mo!e;QL@ %LTER T%=LE;4%'E lmt6.act RE%D 3R1TE?;QL@ %LTER T%=LE;4%'E lmt6ref RE%D 3R1TE?/* || Listing 1/9" Transporting a tablespace between platforms of !ifferent||2en!ian#ness2*/####### Reco-er) 8anager ;cript to con-ert !atabase on the target## ser-er from 3in!ows A2#bit format to Linu. D9#bit format#####SSSSSS R8%, comman! to con-ert a tablespace0s !atafiles fromS the current en!ian#ness to a !ifferent en!ian#nessSSSSS'O,FERT T%=LE;4%'E lmt6.actTO 4L%T7OR8K0;olarisHtmI OE CA2#bitE07OR8%TK0/u0A/oracle/ora!ata/rptrepos0?/* || Listing 1/N" 4reparing to transport an entire !atabase between platforms*/####### +sing D=8;6TD= to -ali!ate if a !atabase is rea!) for transport#####;ET ;ERFERO+T4+T O,DE'L%RE!b6chec* =OOLE%,?=E:1,####### 'an this !atabase be transporte! to the specifie! target platform5#####!b6chec* "K D=8;6TD=/'$E'O6D=C target6platform6name K@ 0Linu. 1% CA2#bitE0s*ip6option K@ D=8;6TD=/;O146O77L1,EE?17 !b6chec*T$E, D=8;6O+T4+T/4+T6L1,EC0Database can be transferre! to target platform/0E?EL;E D=8;6O+T4+T/4+T6L1,EC03arningTTT Database '%,,OT be transporte! to target platform/0E?E,D 17?####### %re there an) !irectories or e.ternal obRects that nee! to be ## transferre! separatel) after these tablespaceCsE ha-e been ## transporte! to the target platform5 #####!b6chec* "K D=8;6TD=/'$E'O6EBTER,%L?17 !b6chec*T$E, D=8;6O+T4+T/4+T6L1,EC0Database can be transferre! to target platform/0E?EL;E D=8;6O+T4+T/4+T6L1,EC03arningTTT Database '%,,OT be transporte! to target platform/0E?E,D 17?E,D?//* || Listing 1/D" 4reparing a !atabase for transport when con-ersion will||occur on the target platform*/####### R8%, session that prepares !atabase for transport an! con-ersion#####'"L31,DO3;Ls)stemA2@rman target /Reco-er) 8anager" Release 10/2/0/1/0 # 4ro!uction on 3e! %pr 1P 1G"AP"2G 200D'op)right CcE 1PG2 200N Oracle/%ll rights reser-e!/connecte! to target !atabase" OR'L102 CD=1DKA090A19PG2ER8%,@ R+, U2@ SSSSSA@ S 'on-erting a !atabase on target platform9@ SSSSSN@ 'O,FERT D%T%=%;ED@ O, T%R:ET 4L%T7OR8J@ 'O,FERT ;'R14T 0c"LoracleLrptreposLrptrepos/cn-0G@ TR%,;4ORT ;'R14T 0c"LoracleLrptreposLrptrepos/t.p0P@ ,E3 D%T%=%;E 0rptrepos011@D=671LE6,%8E6'O,FERT K0c"LoracleLora!ataLorcl1020 0c"LoracleLrptrepos0?12@ V;tarting con-ert at 1P#%4R#0Dusing channel OR%6D1;O61E.ternal table $R/BT6E84LO>EE64%>'$E'O; foun! in the !atabaseE.ternal table $R/BT6E84LO>EE6;E'+RED foun! in the !atabaseE.ternal table ;$/BT681D3E;T6;%LE; foun! in the !atabaseE.ternal table ;$/;%LE;6TR%,;%'T1O,;6EBT foun! in the !atabaseDirector) ;>;/TTB4ORT; foun! in the !atabaseDirector) ;>;/7T46;E'+RED foun! in the !atabaseDirector) ;>;/EBTER,%L6D1R foun! in the !atabaseDirector) ;>;/D%T%64+846D1R foun! in the !atabaseDirector) ;>;/;+=D1R foun! in the !atabaseDirector) ;>;/B8LD1R foun! in the !atabaseDirector) ;>;/8ED1%6D1R foun! in the !atabaseDirector) ;>;/LO:671LE6D1R foun! in the !atabaseDirector) ;>;/D%T%671LE6D1R foun! in the !atabaseDirector) ;>;/3ORO6D1R foun! in the !atabaseDirector) ;>;/%D81,6D1R foun! in the !atabase=71LE 48/4R1,T68ED1% foun! in the !atabase+ser ;>; with ;>;D=% an! ;>;O4ER pri-ilege foun! in passwor! filechannel OR%6D1;O61" starting to chec* !atafilesinput !atafile fnoK00001 nameK'"LOR%'LELOR%D%T%LOR'L102L;>;TE801/D=7channel OR%6D1;O61" !atafile chec*ing complete elapse! time" 00"00"01channel OR%6D1;O61" starting to chec* !atafilesinput !atafile fnoK0000A nameK'"LOR%'LELOR%D%T%LOR'L102L;>;%+B01/D=7channel OR%6D1;O61" !atafile chec*ing complete elapse! time" 00"00"00channel OR%6D1;O61" starting to chec* !atafilesinput !atafile fnoK00002 nameK'"LOR%'LELOR%D%T%LOR'L102L+,DOT=;01/D=7channel OR%6D1;O61" !atafile chec*ing complete elapse! time" 00"00"00channel OR%6D1;O61" starting to chec* !atafilesinput !atafile fnoK0000N nameK'"LOR%'LELOR%D%T%LOR'L102LEB%84LE01/D=7channel OR%6D1;O61" !atafile chec*ing complete elapse! time" 00"00"00channel OR%6D1;O61" starting to chec* !atafilesinput !atafile fnoK0001N nameK'"LOR%'LELOR%D%T%LOR'L102LL8T6B%'T01/D=7channel OR%6D1;O61" !atafile chec*ing complete elapse! time" 00"00"00channel OR%6D1;O61" starting to chec* !atafilesinput !atafile fnoK00009 nameK'"LOR%'LELOR%D%T%LOR'L102L+;ER;01/D=7channel OR%6D1;O61" !atafile chec*ing complete elapse! time" 00"00"01channel OR%6D1;O61" starting to chec* !atafilesinput !atafile fnoK0001D nameK'"LOR%'LELOR%D%T%LOR'L102LL8T6RE701/D=7channel OR%6D1;O61" !atafile chec*ing complete elapse! time" 00"00"00Run ;QL script '"LOR%'LELR4TRE4O;LR4TRE4O;/TB4 on the target platform to create !atabaseE!it init/ora file '"LOR%'LEL1,1T6R4TRE4O;/OR%/ This 471LE will be use! to create the !atabase on the target platformRun R8%, script '"LOR%'LELR4TRE4O;LR4TRE4O;/',F on target platform to con-ert !atafilesTo recompile all 4L/;QL mo!ules run utlirp/sWl an! utlrp/sWl on the target platformTo change the internal !atabase i!entifier use D=,E31D +tilit)7inishe! bac*up at 1P#%4R#0DR8%,@####### Oracle#generate! script CR4TRE4O;/TB4E containing comman!s nee!e!## to recreate !atabase on target platform before !atafile con-ersion/ ## This file can then be e!ite! on the target to place !atafiles in ## appropriate fol!ers####### The following comman!s will create a new control file an! use it## to open the !atabase/## Data use! b) Reco-er) 8anager will be lost/## The contents of online logs will be lost an! all bac*ups will## be in-ali!ate!/ +se this onl) if online logs are !amage!/## %fter mounting the create! controlfile the following ;QL## statement will place the !atabase in the appropriate## protection mo!e"##%LTER D%T%=%;E ;ET ;T%,D=> D%T%=%;E TO 8%B181ME 4ER7OR8%,'E;T%RT+4 ,O8O+,T 471LEK0'"LOR%'LEL1,1T6R4TRE4O;/OR%0'RE%TE 'O,TROL71LE RE+;E ;ET D%T%=%;E 2R4TRE4O;2 RE;ETLO:;%R'$1FELO:8%BLO:71LE; 1D8%BLO:8E8=ER; A8%BD%T%71LE; 1008%B1,;T%,'E; G8%BLO:$1;TOR> 2P2LO:71LE:RO+4 1 0'"LOR%'LELR4TRE4O;0;1ME N08:RO+4 2 0'"LOR%'LELR4TRE4O;0;1ME N08:RO+4 A 0'"LOR%'LELR4TRE4O;0;1ME N08D%T%71LE0'"LOR%'LELR4TRE4O;L;>;TE801/D=700'"LOR%'LELR4TRE4O;L+,DOT=;01/D=700'"LOR%'LELR4TRE4O;L;>;%+B01/D=700'"LOR%'LELR4TRE4O;L+;ER;01/D=700'"LOR%'LELR4TRE4O;LEB%84LE01/D=700'"LOR%'LELR4TRE4O;LL8T6B%'T01/D=700'"LOR%'LELR4TRE4O;LL8T6RE701/D=70'$%R%'TER ;ET %LA2+T7G?## Database can now be opene! (eroing the online logs/%LTER D%T%=%;E O4E, RE;ETLO:;?## 'omman!s to a!! tempfiles to temporar) tablespaces/## Online tempfiles ha-e complete space information/## Other tempfiles ma) reWuire a!Rustment/%LTER T%=LE;4%'E TE84 %DD TE8471LE 0'"LOR%'LELR4TRE4O;0 ;1ME 202AJN1DG%+TOEBTE,D O, ,EBT DNNAD08%B;1ME A2JDJ8?## En! of tempfile a!!itions/##set echo offprompt XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXprompt * >our !atabase has been create! successfull)Tprompt * There are man) things to thin* about for the new !atabase/ $ereprompt * is a chec*list to help )ou sta) on trac*"prompt * 1/ >ou ma) want to re!efine the location of the !irector) obRects/prompt * 2/ >ou ma) want to change the internal !atabase i!entifier CD=1DE prompt *or the global !atabase name for this !atabase/ +se the prompt *,E3D=1D +tilit) Cni!E/prompt XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;$+TDO3, 188ED1%TE ;T%RT+4 +4:R%DE 471LEK0'"LOR%'LEL1,1T6R4TRE4O;/OR%0YY 5/r!bms/a!min/utlirp/sWl ;$+TDO3, 188ED1%TE ;T%RT+4 471LEK0'"LOR%'LEL1,1T6R4TRE4O;/OR%0## The following step will recompile all 4L/;QL mo!ules/## 1t ma) ta*e ser-eral hours to complete/YY 5/r!bms/a!min/utlrp/sWl set fee!bac* D?####### Oracle#generate! script CR4TRE4O;/',FE containing comman!s nee!e! to## con-ert all !atafiles on the target platform/ This file can be e!ite!## to place !atafiles in appropriate fol!ers on the target#####R+, U'O,FERT D%T%71LE 0'"LOR%'LELOR%D%T%LOR'L102L;>;TE801/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0'"LOR%'LELR4TRE4O;L;>;TE801/D=70?'O,FERT D%T%71LE 0'"LOR%'LELOR%D%T%LOR'L102L;>;%+B01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0'"LOR%'LELR4TRE4O;L;>;%+B01/D=70?'O,FERT D%T%71LE 0'"LOR%'LELOR%D%T%LOR'L102L+,DOT=;01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0'"LOR%'LELR4TRE4O;L+,DOT=;01/D=70?'O,FERT D%T%71LE 0'"LOR%'LELOR%D%T%LOR'L102LEB%84LE01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0'"LOR%'LELR4TRE4O;LEB%84LE01/D=70?'O,FERT D%T%71LE 0'"LOR%'LELOR%D%T%LOR'L102LL8T6B%'T01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0'"LOR%'LELR4TRE4O;LL8T6B%'T01/D=70?'O,FERT D%T%71LE 0'"LOR%'LELOR%D%T%LOR'L102L+;ER;01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0'"LOR%'LELR4TRE4O;L+;ER;01/D=70?'O,FERT D%T%71LE 0'"LOR%'LELOR%D%T%LOR'L102LL8T6RE701/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0'"LOR%'LELR4TRE4O;LL8T6RE701/D=70?V####### Oracle#generate! initiali(ation parameter file C1,1T6R4TRE4O;/OR%E ## for use !uring !atabase creation an! con-ersion on target platform#####S 4lease change the -alues of the following parameters"control6filesK 2'"LOR%'LELR4TRE4O;2!b6reco-er)6file6!estK 2'"LOR%'LELflash6reco-er)6area2!b6reco-er)6file6!est6si(eK 219J9GAD9Gau!it6file6!estK 2'"LOR%'LEL%D+842bac*groun!6!ump6!est K 2'"LOR%'LEL=D+842user6!ump6!est K 2'"LOR%'LEL+D+842core6!ump6!est K 2'"LOR%'LEL'D+842!b6nameK 2R4TRE4O;2S 4lease re-iew the -alues of the following parameters"66share!6pool6si(e K N9N2NPN266large6pool6si(eK 91P9A0966Ra-a6pool6si(e K 91P9A0966streams6pool6si(eK 91P9A0966!b6cache6si(eK 9D1AJA99remote6login6passwor!fileK 2EB'L+;1FE2!b6!omainK 22!ispatchersK 2C4ROTO'OLKT'4E C;ERF1'EKorcl102BD=E2S The -alues of the following parameters are from source !atabase"processesK 1N0sga6ma.6si(e K 1A921JJ2Gsga6target K 11J990N12!b6bloc*6si(eK G1P2compatible K 210/2/0/1/02!b6file6multibloc*6rea!6countK 1Dun!o6managementK 2%+TO2un!o6tablespaceK 2+,DOT=;12share!6ser-ers K 2ma.6share!6ser-ers K NRob6Wueue6processesK 10open6cursors K A00pga6aggregate6target K AANN99A2/* || Listing 1/J" 4reparing a !atabase for transport when con-ersion will||occur on the source platform*/####### R8%, session that con-erts !atabase at source an! prepares for transport## to target platform#####'"L31,DO3;Ls)stemA2@rman target /Reco-er) 8anager" Release 10/2/0/1/0 # 4ro!uction on ;un %pr 1D 19"1D"AG 200D'op)right CcE 1PG2 200N Oracle/%ll rights reser-e!/connecte! to target !atabase" OR'L102 CD=1DKA090A19PG2ER8%,@ R+, U2@ 'O,FERT D%T%=%;EA@ ,E3 D%T%=%;E 0rptrepos09@ TR%,;4ORT ;'R14T 0c"LoracleLrptreposLrptrepos/sWl0N@ TO 4L%T7OR8 0Linu. 1% CA2#bitE0D@ !b6file6name6con-ert 0c"LoracleLora!ataLorcl1020 0c"LoracleLrptrepos0?J@ V;tarting con-ert at 1D#%4R#0Dusing target !atabase control file instea! of reco-er) catalogallocate! channel" OR%6D1;O61channel OR%6D1;O61" si!K1NA !e-t)peKD1;OE.ternal table $R/BT6E84LO>EE64%>'$E'O; foun! in the !atabaseE.ternal table $R/BT6E84LO>EE6;E'+RED foun! in the !atabaseE.ternal table ;$/BT681D3E;T6;%LE; foun! in the !atabaseE.ternal table ;$/;%LE;6TR%,;%'T1O,;6EBT foun! in the !atabaseDirector) ;>;/TTB4ORT; foun! in the !atabaseDirector) ;>;/7T46;E'+RED foun! in the !atabaseDirector) ;>;/EBTER,%L6D1R foun! in the !atabaseDirector) ;>;/D%T%64+846D1R foun! in the !atabaseDirector) ;>;/;+=D1R foun! in the !atabaseDirector) ;>;/B8LD1R foun! in the !atabaseDirector) ;>;/8ED1%6D1R foun! in the !atabaseDirector) ;>;/LO:671LE6D1R foun! in the !atabaseDirector) ;>;/D%T%671LE6D1R foun! in the !atabaseDirector) ;>;/3ORO6D1R foun! in the !atabaseDirector) ;>;/%D81,6D1R foun! in the !atabase=71LE 48/4R1,T68ED1% foun! in the !atabase+ser ;>; with ;>;D=% an! ;>;O4ER pri-ilege foun! in passwor! filechannel OR%6D1;O61" starting !atafile con-ersioninput !atafile fnoK00001 nameK'"LOR%'LELOR%D%T%LOR'L102L;>;TE801/D=7con-erte! !atafileK'"LOR%'LELR4TRE4O;L;>;TE801/D=7channel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"01"2Dchannel OR%6D1;O61" starting !atafile con-ersioninput !atafile fnoK0000A nameK'"LOR%'LELOR%D%T%LOR'L102L;>;%+B01/D=7con-erte! !atafileK'"LOR%'LELR4TRE4O;L;>;%+B01/D=7channel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"9Nchannel OR%6D1;O61" starting !atafile con-ersioninput !atafile fnoK00002 nameK'"LOR%'LELOR%D%T%LOR'L102L+,DOT=;01/D=7con-erte! !atafileK'"LOR%'LELR4TRE4O;L+,DOT=;01/D=7channel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"2Nchannel OR%6D1;O61" starting !atafile con-ersioninput !atafile fnoK0000N nameK'"LOR%'LELOR%D%T%LOR'L102LEB%84LE01/D=7con-erte! !atafileK'"LOR%'LELR4TRE4O;LEB%84LE01/D=7channel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"2Dchannel OR%6D1;O61" starting !atafile con-ersioninput !atafile fnoK0001N nameK'"LOR%'LELOR%D%T%LOR'L102LL8T6B%'T01/D=7con-erte! !atafileK'"LOR%'LELR4TRE4O;LL8T6B%'T01/D=7channel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"0Achannel OR%6D1;O61" starting !atafile con-ersioninput !atafile fnoK00009 nameK'"LOR%'LELOR%D%T%LOR'L102L+;ER;01/D=7con-erte! !atafileK'"LOR%'LELR4TRE4O;L+;ER;01/D=7channel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"0Achannel OR%6D1;O61" starting !atafile con-ersioninput !atafile fnoK0001D nameK'"LOR%'LELOR%D%T%LOR'L102LL8T6RE701/D=7con-erte! !atafileK'"LOR%'LELR4TRE4O;LL8T6RE701/D=7channel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"02Run ;QL script '"LOR%'LELR4TRE4O;LR4TRE4O;/;QL on the target platform to create !atabaseE!it init/ora file '"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL1,1T600$:L4,96160/OR%/ This 471LE will be use! to create the !atabase on the target platformTo recompile all 4L/;QL mo!ules run utlirp/sWl an! utlrp/sWl on the target platformTo change the internal !atabase i!entifier use D=,E31D +tilit)7inishe! bac*up at 1D#%4R#0D####### Oracle#generate! script CR4TRE4O;/;QLE containing comman!s nee!e!## to recreate !atabase on target platform without an) con-ersion/ This ## file can then be e!ite! on the target to place !atafiles in appropriate## fol!ers####### The following comman!s will create a new control file an! use it## to open the !atabase/## Data use! b) Reco-er) 8anager will be lost/## The contents of online logs will be lost an! all bac*ups will## be in-ali!ate!/ +se this onl) if online logs are !amage!/## %fter mounting the create! controlfile the following ;QL## statement will place the !atabase in the appropriate## protection mo!e"##%LTER D%T%=%;E ;ET ;T%,D=> D%T%=%;E TO 8%B181ME 4ER7OR8%,'E;T%RT+4 ,O8O+,T 471LEK0'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL1,1T600$:L4,96160/OR%0'RE%TE 'O,TROL71LE RE+;E ;ET D%T%=%;E 2R4TRE4O;2 RE;ETLO:;%R'$1FELO:8%BLO:71LE; 1D8%BLO:8E8=ER; A8%BD%T%71LE; 1008%B1,;T%,'E; G8%BLO:$1;TOR> 2P2LO:71LE:RO+4 1 0'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL%R'$6D#R4TRE4O;61D#A090A19PG26;#AG6T#16%#NJG99NG0D600$:L4,90;1ME N08:RO+4 2 0'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL%R'$6D#R4TRE4O;61D#A090A19PG26;#AP6T#16%#NJG99NG0D600$:L4,90;1ME N08:RO+4 A 0'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL%R'$6D#R4TRE4O;61D#A090A19PG26;#906T#16%#NJG99NG0D600$:L4,90;1ME N08D%T%71LE0'"LOR%'LELR4TRE4O;L;>;TE801/D=700'"LOR%'LELR4TRE4O;L+,DOT=;01/D=700'"LOR%'LELR4TRE4O;L;>;%+B01/D=700'"LOR%'LELR4TRE4O;L+;ER;01/D=700'"LOR%'LELR4TRE4O;LEB%84LE01/D=700'"LOR%'LELR4TRE4O;LL8T6B%'T01/D=700'"LOR%'LELR4TRE4O;LL8T6RE701/D=70'$%R%'TER ;ET %LA2+T7G?## Database can now be opene! (eroing the online logs/%LTER D%T%=%;E O4E, RE;ETLO:;?## 'omman!s to a!! tempfiles to temporar) tablespaces/## Online tempfiles ha-e complete space information/## Other tempfiles ma) reWuire a!Rustment/%LTER T%=LE;4%'E TE84 %DD TE8471LE 0'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;ELD%T%6D#R4TRE4O;61#A090A19PG26T;#TE8467,O#1600$:L4,90 ;1ME 202AJN1DG %+TOEBTE,D O, ,EBT DNNAD0 8%B;1ME A2JDJ8?## En! of tempfile a!!itions/##set echo offprompt XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXprompt * >our !atabase has been create! successfull)Tprompt * There are man) things to thin* about for the new !atabase/ $ereprompt * is a chec*list to help )ou sta) on trac*"prompt * 1/ >ou ma) want to re!efine the location of the !irector) obRects/prompt * 2/ >ou ma) want to change the internal !atabase i!entifier CD=1DE prompt *or the global !atabase name for this !atabase/ +se the prompt *,E3D=1D +tilit) Cni!E/prompt XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;$+TDO3, 188ED1%TE ;T%RT+4 +4:R%DE 471LEK0'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL1,1T600$:L4,96160/OR%0YY 5/r!bms/a!min/utlirp/sWl ;$+TDO3, 188ED1%TE ;T%RT+4 471LEK0'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL1,1T600$:L4,96160/OR%0## The following step will recompile all 4L/;QL mo!ules/## 1t ma) ta*e se-eral hours to complete/YY 5/r!bms/a!min/utlrp/sWl set fee!bac* D?####### Oracle#generate! initiali(ation parameter file C1,1T600$:L4,96160/OR%E ## for use !uring !atabase creation on target platform without an) con-ersion#####S 4lease change the -alues of the following parameters"control6filesK 2'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL'76D#R4TRE4O;61D#A090A19PG2600$:L4,92!b6reco-er)6file6!estK 2'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;ELflash6reco-er)6area2!b6reco-er)6file6!est6si(eK 219J9GAD9Gau!it6file6!estK 2'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL%D+842bac*groun!6!ump6!est K 2'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL=D+842user6!ump6!est K 2'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL+D+842core6!ump6!est K 2'"LOR%'LEL4ROD+'TL10/2/0LD=61LD%T%=%;EL'D+842!b6nameK 2R4TRE4O;2S 4lease re-iew the -alues of the following parameters"66share!6pool6si(e K NGJ202ND66large6pool6si(eK 91P9A0966Ra-a6pool6si(e K 91P9A0966streams6pool6si(eK 91P9A0966!b6cache6si(eK 91P9A090remote6login6passwor!fileK 2EB'L+;1FE2!b6!omainK 22!ispatchersK 2C4ROTO'OLKT'4E C;ERF1'EKorcl102BD=E2S The -alues of the following parameters are from source !atabase"processesK 1N0sga6ma.6si(e K 1A921JJ2Gsga6target K 11J990N12!b6bloc*6si(eK G1P2compatible K 210/2/0/1/02!b6file6multibloc*6rea!6countK 1Dun!o6managementK 2%+TO2un!o6tablespaceK 2+,DOT=;12share!6ser-ers K 2ma.6share!6ser-ers K NRob6Wueue6processesK 10open6cursors K A00pga6aggregate6target K AANN99A2/* || Listing 1/G" 'ompleting the transport of the !atabase on the target||platform/ ,ote that this e.ample con-erts the !atafiles||on the target an! that the scripts generate! on the ||source platform were e!ite! to reflect the appropriate ||!irectories an! file names on the target platform*/####### 'ompletion of transfer to target !atabase"## 1/E 'op) con-erte! !atafiles to target platform## 2/E E!it con-ersion scripts to reflect file locations on target ser-er## A/E Run script to create control files on target ser-er## A/E Run con-ersion scripts to con-ert all !atafiles on target ser-er## 9/E Open !atabase in RE;ETLO:; mo!e## N/E =ring all !atafiles into RE%D 3R1TE mo!e on target ser-er#####SSSSSS E!ite! R8%, script to complete !atafile con-ersionSSSSSR+, U'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/;>;TE801/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/s)stem01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/;>;%+B01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/s)sau.01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/+,DOT=;01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/s)sau.01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/EB%84LE01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/e.ample01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/L8T6B%'T01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/lmt6.act01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/+;ER;01/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/users01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/L8T6RE701/D=70 7RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE0 7OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/lmt6ref01/!bf0?VSSSSSS E!ite! 471LE for use !uring creation of new !atabaseSSSSSS 4lease change the -alues of the following parameters"control6filesK 2/u01/app/oracle/ora!ata/R4TRE4O;/control01/ctl2!b6reco-er)6file6!estK 2/u01/app/oracle/flash6reco-er)6area2!b6reco-er)6file6!est6si(eK 219J9GAD9Gau!it6file6!estK 2/u01/app/oracle/a!min/R4TRE4O;/a!ump2bac*groun!6!ump6!est K 2/u01/app/oracle/a!min/R4TRE4O;/b!ump2user6!ump6!est K 2/u01/app/oracle/a!min/R4TRE4O;/u!ump2core6!ump6!est K 2/u01/app/oracle/a!min/R4TRE4O;/c!ump2!b6nameK 2R4TRE4O;2S 4lease re-iew the -alues of the following parameters"66share!6pool6si(e K N9N2NPN266large6pool6si(eK 91P9A0966Ra-a6pool6si(e K 91P9A0966streams6pool6si(eK 91P9A0966!b6cache6si(eK 9D1AJA99remote6login6passwor!fileK 2EB'L+;1FE2!b6!omainK 22S The -alues of the following parameters are from source !atabase"processesK 1N0sga6ma.6si(e K 1A921JJ2Gsga6target K 11J990N12!b6bloc*6si(eK G1P2compatible K 210/2/0/1/02!b6file6multibloc*6rea!6countK 1Dun!o6managementK 2%+TO2un!o6tablespaceK 2+,DOT=;12share!6ser-ers K 2ma.6share!6ser-ers K NRob6Wueue6processesK 10open6cursors K A00pga6aggregate6target K AANN99A2/*|| ;cript" R4TRE4O;/TB4|| E!ite! control file creation script to create !atabase on || target platform*/## The following comman!s will create a new control file an! use it## to open the !atabase/## Data use! b) Reco-er) 8anager will be lost/## The contents of online logs will be lost an! all bac*ups will## be in-ali!ate!/ +se this onl) if online logs are !amage!/## %fter mounting the create! controlfile the following ;QL## statement will place the !atabase in the appropriate## protection mo!e"##%LTER D%T%=%;E ;ET ;T%,D=> D%T%=%;E TO 8%B181ME 4ER7OR8%,'E;T%RT+4 ,O8O+,T 471LEK0/u01/app/oracle/ora!ata/R4TRE4O;/1,1T6R4TRE4O;/OR%0'RE%TE 'O,TROL71LE RE+;E ;ET D%T%=%;E 2R4TRE4O;2 RE;ETLO:;%R'$1FELO:8%BLO:71LE; 1D8%BLO:8E8=ER; A8%BD%T%71LE; 1008%B1,;T%,'E; G8%BLO:$1;TOR> 2P2LO:71LE:RO+4 1 0/u01/app/oracle/ora!ata/R4TRE4O;/re!o01/log0;1ME N08:RO+4 2 0/u01/app/oracle/ora!ata/R4TRE4O;/re!o02/log0;1ME N08:RO+4 A 0/u01/app/oracle/ora!ata/R4TRE4O;/re!o0A/log0;1ME N08D%T%71LE0/u01/app/oracle/ora!ata/R4TRE4O;/;>;TE801/D=700/u01/app/oracle/ora!ata/R4TRE4O;/+,DOT=;01/D=700/u01/app/oracle/ora!ata/R4TRE4O;/;>;%+B01/D=700/u01/app/oracle/ora!ata/R4TRE4O;/+;ER;01/D=700/u01/app/oracle/ora!ata/R4TRE4O;/EB%84LE01/D=700/u01/app/oracle/ora!ata/R4TRE4O;/L8T6B%'T01/D=700/u01/app/oracle/ora!ata/R4TRE4O;/L8T6RE701/D=70'$%R%'TER ;ET %LA2+T7G?####### ,ow perform con-ersion of !atafiles -ia R8%,"#####;%+B01/D=707RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE07OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/s)sau.01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/+,DOT=;01/D=707RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE07OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/s)sau.01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/EB%84LE01/D=707RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE07OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/e.ample01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/L8T6B%'T01/D=707RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE07OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/lmt6.act01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/+;ER;01/D=707RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE07OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/users01/!bf0?'O,FERT D%T%71LE 0/u01/app/oracle/ora!ata/R4TRE4O;/L8T6RE701/D=707RO8 4L%T7OR8 08icrosoft 3in!ows 1% CA2#bitE07OR8%T 0/u01/app/oracle/ora!ata/R4TRE4O;/lmt6ref01/!bf0?V2@ A@ 9@ N@ D@ J@ G@ P@ 10@ 11@ 12@ 1A@ 19@ 1N@ 1D@ 1J@ 1G@ 1P@ 20@ 21@ 22@ 2A@ 29@ 2N@ 2D@;tarting bac*up at 1P#%4R#0Dusing target !atabase control file instea! of reco-er) catalogallocate! channel" OR%6D1;O61channel OR%6D1;O61" si!K1NN !e-t)peKD1;Ochannel OR%6D1;O61" starting !atafile con-ersioninput filenameK/u01/app/oracle/ora!ata/R4TRE4O;/;>;TE801/D=7con-erte! !atafileK/u01/app/oracle/ora!ata/R4TRE4O;/s)stem01/!bfchannel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"09"1P7inishe! bac*up at 1P#%4R#0D ;tarting bac*up at 1P#%4R#0Dusing channel OR%6D1;O61channel OR%6D1;O61" starting !atafile con-ersioninput filenameK/u01/app/oracle/ora!ata/R4TRE4O;/;>;%+B01/D=7con-erte! !atafileK/u01/app/oracle/ora!ata/R4TRE4O;/s)sau.01/!bfchannel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"0A"0J7inishe! bac*up at 1P#%4R#0D using channel OR%6D1;O61channel OR%6D1;O61" starting !atafile con-ersioninput filenameK/u01/app/oracle/ora!ata/R4TRE4O;/+,DOT=;01/D=7con-erte! !atafileK/u01/app/oracle/ora!ata/R4TRE4O;/un!otbs01/!bfchannel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"NP7inishe! bac*up at 1P#%4R#0D ;tarting bac*up at 1P#%4R#0Dusing channel OR%6D1;O61channel OR%6D1;O61" starting !atafile con-ersioninput filenameK/u01/app/oracle/ora!ata/R4TRE4O;/EB%84LE01/D=7con-erte! !atafileK/u01/app/oracle/ora!ata/R4TRE4O;/e.ample01/!bfchannel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"NN7inishe! bac*up at 1P#%4R#0D ;tarting bac*up at 1P#%4R#0Dusing channel OR%6D1;O61channel OR%6D1;O61" starting !atafile con-ersioninput filenameK/u01/app/oracle/ora!ata/R4TRE4O;/L8T6B%'T01/D=7con-erte! !atafileK/u01/app/oracle/ora!ata/R4TRE4O;/lmt6.act01/!bfchannel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"0G7inishe! bac*up at 1P#%4R#0D ;tarting bac*up at 1P#%4R#0Dusing channel OR%6D1;O61channel OR%6D1;O61" starting !atafile con-ersioninput filenameK/u01/app/oracle/ora!ata/R4TRE4O;/+;ER;01/D=7con-erte! !atafileK/u01/app/oracle/ora!ata/R4TRE4O;/users01/!bfchannel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"0G7inishe! bac*up at 1P#%4R#0D ;tarting bac*up at 1P#%4R#0Dusing channel OR%6D1;O61channel OR%6D1;O61" starting !atafile con-ersioninput filenameK/u01/app/oracle/ora!ata/R4TRE4O;/L8T6RE701/D=7con-erte! !atafileK/u01/app/oracle/ora!ata/R4TRE4O;/lmt6ref01/!bfchannel OR%6D1;O61" !atafile con-ersion complete elapse! time" 00"00"0A7inishe! bac*up at 1P#%4R#0D R8%,@/* || Listing 1/P" Opening the !atabase an! recompiling all 4L/;QL un!er the new 'ompleting the con-ersion of the !atabase*/;QL@ alter !atabase open resetlogs? Database altere!/;QL@ %LTER T%=LE;4%'E TE84%DD TE8471LE 0/u01/app/oracle/ora!ata/R4TRE4O;/temp01/tmp0;1ME 202AJN1DG%+TOEBTE,D O,,EBT DNNAD08%B;1ME A2JDJ8?2A9ND Tablespace altere!/ ;QL@ shut!own imme!iate?Database close!/Database !ismounte!/OR%'LE instance shut !own/;QL@ ;T%RT+4 +4:R%DE 471LEK0'"LOR%'LEL1,1T6R4TRE4O;/OR%0;QL@ YY 5/r!bms/a!min/utlirp/sWl ZZZ Results e!ite! for bre-it) @@@;QL@ DO'DO'@SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSDO'@SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSDO'@ utlirp/sWl complete! successfull)/ %ll 4L/;QL obRects in theDO'@ !atabase ha-e been in-ali!ate!/DO'@DO'@ ;hut !own an! restart the !atabase in normal mo!e an! run utlrp/sWl toDO'@ recompile in-ali! obRects/DO'@SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSDO'@SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS;QL@ shut!own imme!iate?Database close!/Database !ismounte!/OR%'LE instance shut !own/;QL@ ;T%RT+4 471LEK0/u01/app/oracle/ora!ata/R4TRE4O;/1,1T6R4TRE4O;/OR%0OR%'LE instance starte!/ Total ;)stem :lobal %rea1A921JJ2G b)tes7i.e! ;i(e121G19G b)tesFariable ;i(eGAGGGN90 b)tesDatabase =uffers 9D1AJA99 b)tesRe!o =uffers2PJADPD b)tesDatabase mounte!/Database opene!/;QL@ YY 5/r!bms/a!min/utlrp/sWl T18E;T%84################################################################################'O846T18E;T%84 +TLR46=:,200D#09#1P 20"NA"29ZZZ Results e!ite! for bre-it) @@@T18E;T%84################################################################################'O846T18E;T%84 +TLR46E,D200D#09#1P 21"1G"29