{"id":93,"date":"2010-02-04T15:18:00","date_gmt":"2010-02-04T17:18:00","guid":{"rendered":"http:\/\/www.soudba.com.br\/?p=93"},"modified":"2010-02-04T15:18:00","modified_gmt":"2010-02-04T17:18:00","slug":"restaurar-um-datafile-para-outro-local","status":"publish","type":"post","link":"https:\/\/www.soudba.com.br\/?p=93","title":{"rendered":"Restaurar um datafile para outro local"},"content":{"rendered":"<p>RMAN&gt; RUN {<\/p>\n<p>2&gt; SET NEWNAME FOR DATAFILE &#8216;\/u02\/oracle\/banco\/logix\/dados07.dbf&#8217; TO &#8216;\/u03\/oracle\/banco\/logix\/dados07.dbf&#8217;;<\/p>\n<p>SET NEWNAME FOR DATAFILE &#8216;\/u02\/oracle\/banco\/logix\/tbsindxl01.dbf&#8217; TO &#8216;\/u03\/oracle\/banco\/logix\/tbsindxl01.dbf&#8217;;<\/p>\n<p>restore DATAFILE 32;<\/p>\n<p>restore DATAFILE 35;<\/p>\n<p>SWITCH DATAFILE ALL;<\/p>\n<p>}<\/p>\n<p>3&gt; 4&gt; 5&gt; 6&gt; 7&gt;<\/p>\n<p>executing command: SET NEWNAME<\/p>\n<p>using target database controlfile instead of recovery catalog<\/p>\n<p>executing command: SET NEWNAME<\/p>\n<p>Starting restore at 04-FEB-10<\/p>\n<p>allocated channel: ORA_DISK_1<\/p>\n<p>channel ORA_DISK_1: sid=14 devtype=DISK<\/p>\n<p>channel ORA_DISK_1: starting datafile backupset restore<\/p>\n<p>channel ORA_DISK_1: specifying datafile(s) to restore from backup set<\/p>\n<p>restoring datafile 00032 to \/u03\/oracle\/banco\/logix\/dados07.dbf<\/p>\n<p>channel ORA_DISK_1: restored backup piece 1<\/p>\n<p>piece handle=\/u03\/backup\/bkp_LOGIX_15973_1_20100203.bkp tag=FULLBACKUP params=NULL<\/p>\n<p>channel ORA_DISK_1: restore complete<\/p>\n<p>Finished restore at 04-FEB-10<\/p>\n<p>Starting restore at 04-FEB-10<\/p>\n<p>using channel ORA_DISK_1<\/p>\n<p>channel ORA_DISK_1: starting datafile backupset restore<\/p>\n<p>channel ORA_DISK_1: specifying datafile(s) to restore from backup set<\/p>\n<p>restoring datafile 00035 to \/u03\/oracle\/banco\/logix\/tbsindxl01.dbf<\/p>\n<p>channel ORA_DISK_1: restored backup piece 1<\/p>\n<p>piece handle=\/u03\/backup\/bkp_LOGIX_15976_1_20100203.bkp tag=FULLBACKUP params=NULL<\/p>\n<p>channel ORA_DISK_1: restore complete<\/p>\n<p>Finished restore at 04-FEB-10<\/p>\n<p>datafile 32 switched to datafile copy<\/p>\n<p>input datafilecopy recid=4668 stamp=710093659 filename=\/u03\/oracle\/banco\/logix\/dados07.dbf<\/p>\n<p>datafile 35 switched to datafile copy<\/p>\n<p>input datafilecopy recid=4669 stamp=710093659 filename=\/u03\/oracle\/banco\/logix\/tbsindxl01.dbf<\/p>\n<p>RMAN&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RMAN&gt; RUN { 2&gt; SET NEWNAME FOR DATAFILE &#8216;\/u02\/oracle\/banco\/logix\/dados07.dbf&#8217; TO &#8216;\/u03\/oracle\/banco\/logix\/dados07.dbf&#8217;; SET NEWNAME FOR DATAFILE &#8216;\/u02\/oracle\/banco\/logix\/tbsindxl01.dbf&#8217; TO &#8216;\/u03\/oracle\/banco\/logix\/tbsindxl01.dbf&#8217;; restore DATAFILE 32; restore DATAFILE 35; SWITCH DATAFILE ALL; } 3&gt; 4&gt; 5&gt; 6&gt; 7&gt; executing command: SET NEWNAME using target database &hellip; <a href=\"https:\/\/www.soudba.com.br\/?p=93\">Continue lendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[252,253,254,261],"tags":[],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-restore-datafile","category-restore-datafile-new-location","category-rman","category-rman-restore"],"_links":{"self":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":0,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soudba.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}