{"id":210,"date":"2008-12-10T13:34:28","date_gmt":"2008-12-10T12:34:28","guid":{"rendered":"http:\/\/www.askthegerman.com\/?p=210"},"modified":"2023-02-13T07:36:24","modified_gmt":"2023-02-13T06:36:24","slug":"transportable-tablespaces","status":"publish","type":"post","link":"https:\/\/www.askthegerman.com\/?p=210","title":{"rendered":"Transportable Tablespaces"},"content":{"rendered":"<p>Since Oracle Version 10G ist is possible to transfer tablespaces no longer only between platforms of the same architecture. Now in 10G it also possible to transport from any platform to any platform, provided the platforms belong to the list below:<\/p>\n<p><em><font face=\"Courier\">SQL&gt;&nbsp; select * from v$transportable_platform;<\/font><\/em><\/p>\n<p><em><font face=\"Courier\">&nbsp;&nbsp; PLATFORM_ID PLATFORM_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDIAN_FORMAT<br \/>\n&nbsp;&nbsp;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 Solaris[tm] OE (32-bit)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Big<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 Solaris[tm] OE (64-bit)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Big<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 Microsoft Windows NT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Little<br \/>\n&nbsp;&nbsp;&nbs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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Little<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15 HP Open VMS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Little<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8 Microsoft Windows IA (64-bit)&nbsp;&nbsp;&nbsp; Little<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9 IBM zSeries Based Linux&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Big<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13 Linux 64-bit for AMD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Little<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16 Apple Mac OS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Big<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12 Microsoft Windows 64-bit for AMD Little<\/font><\/em><\/p>\n<p><strong><span>But be aware that depending on which plattforms we deal with there might be some converting necessary or not<font face=\"courier\">!<\/font><\/span><\/strong><\/p>\n<p>To help you with that, I have carried together the little cook book about &#8220;How to do&#8221; below:<\/p>\n<p><u>1. Set the tablespace to READ ONLY<\/u><\/p>\n<p><em>SQL&gt; alter tablespace USERS read only;<br \/>\nTablespace altered.<\/em>&nbsp;<\/p>\n<p>2. Export metadata<\/p>\n<p><em>exp userid=\\&#8217;\/ as sysdba\\&#8217; transport_tablespace=y<br \/>\ntablespaces=users<br \/>\nfile=users_tts.dmp log=exp_users_tts.log<br \/>\nstatistics=none<\/em><\/p>\n<p><u>3. Converting tablespace if necessary<\/u><\/p>\n<p>Depending on we have to convert the file between <strong>endianness Little<\/strong> and <strong>endianness Big<\/strong> (forward or backward) we can do that with RMAN:<\/p>\n<p><em>rman target=\/<\/em><\/p>\n<p><em>Recovery Manager: Release 10.2.0.3.0 &#8211; Production on Wed Dec 10 13:10:57 2008<br \/>\nconnected to target database: orav10 (DBID=1953618181)<\/em><\/p>\n<p><em>RMAN&gt; convert tablespace &#8216;USERS&#8217;<br \/>\n2&gt;&nbsp; to platform=&#8221;Linux IA (32-bit)&#8221;<br \/>\n3&gt;&nbsp; db_file_name_convert=&#8217;\/database\/orav10\/datafiles\/users.dbf&#8217;,<br \/>\n4&gt;&nbsp; &#8216;\/tmp\/users.dbf&#8217;;<\/em><\/p>\n<p><u>4. Move datafiles and export dump file<\/u><\/p>\n<p><em>$ftp users_tts.dmp<\/em><\/p>\n<p>and <em>\/database\/orav10\/datafiles\/users.dbf<\/em> (no conversion)<br \/>\nor <em>\/tmp\/users.dbf<\/em> (converted file if conversion had been required)<\/p>\n<p><u>5. Import metadata<\/u><\/p>\n<p><em>imp userid=\\&#8217;\/ as sysdba\\&#8217; TRANSPORT_TABLESPACE=Y<br \/>\ndatafiles=<\/em><em>\/database\/orav10\/datafiles\/users.dbf<br \/>\n(or <\/em><em>\/tmp\/users.dbf )<br \/>\nfile=users_tts.dmp log=imp_users_tts.log<\/em><\/p>\n<p><u>6. Set the tablespace to READ WRITE<\/u><\/p>\n<p><em>SQL&gt; alter tablespace USERS read write;<br \/>\nTablespace altered.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since Oracle Version 10G ist is possible to transfer tablespaces no longer only between platforms of the same architecture. Now in 10G it also possible to transport from any platform to any platform, provided the platforms belong to the list below: SQL&gt;&nbsp; select * from v$transportable_platform; &nbsp;&nbsp; PLATFORM_ID PLATFORM_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENDIAN_FORMAT &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 Solaris[tm] OE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,5,166,31,15,16],"tags":[196,195,194,197,198,257,199,43,193],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-operatingsystem","category-oracle","category-osx-operatingsystem","category-tipsntricks","category-unix","category-windows","tag-converting","tag-endianness-big","tag-endianness-little","tag-exp","tag-imp","tag-oracle","tag-plattform","tag-rman","tag-transportable-tablespaces"],"_links":{"self":[{"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":9,"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/360"}],"wp:attachment":[{"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.askthegerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}