<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《非归档异常数据库rman备份》的评论</title>
	<atom:link href="https://www.xifenfei.com/2013/03/%e9%9d%9e%e5%bd%92%e6%a1%a3%e5%bc%82%e5%b8%b8%e6%95%b0%e6%8d%ae%e5%ba%93rman%e5%a4%87%e4%bb%bd.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2013/03/%e9%9d%9e%e5%bd%92%e6%a1%a3%e5%bc%82%e5%b8%b8%e6%95%b0%e6%8d%ae%e5%ba%93rman%e5%a4%87%e4%bb%bd.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2013/03/%e9%9d%9e%e5%bd%92%e6%a1%a3%e5%bc%82%e5%b8%b8%e6%95%b0%e6%8d%ae%e5%ba%93rman%e5%a4%87%e4%bb%bd.html/comment-page-1#comment-1381</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Tue, 16 Apr 2013 13:34:03 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=4210#comment-1381</guid>
		<description><![CDATA[更正数据库非归档，正常关闭，可以使用rman备份
[shell]
RMAN&gt; alter database open;

database opened

RMAN&gt; shutdown immediate

database closed
database dismounted
Oracle instance shut down

RMAN&gt; startup mount;

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area    2488635392 bytes

Fixed Size                     2230912 bytes
Variable Size                553649536 bytes
Database Buffers            1895825408 bytes
Redo Buffers                  36929536 bytes

RMAN&gt; backup datafile 2;

Starting backup at 16-APR-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=105 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00002 name=/data/oracle/oradata/test/sysaux01.dbf
channel ORA_DISK_1: starting piece 1 at 16-APR-13
channel ORA_DISK_1: finished piece 1 at 16-APR-13
piece handle=/data/o1_mf_nnndf_TAG20130416T213329_8ptns948_.bkp tag=TAG20130416T213329 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-APR-13

[/shell]
数据库非归档，非正常关闭，启动到mount不能备份
[shell]
RMAN&gt; shutdown abort

Oracle instance shut down

RMAN&gt; startup mount

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area    2488635392 bytes

Fixed Size                     2230912 bytes
Variable Size                553649536 bytes
Database Buffers            1895825408 bytes
Redo Buffers                  36929536 bytes

RMAN&gt;  backup datafile 2;

Starting backup at 16-APR-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=105 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/16/2013 21:29:25
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
[/shell]]]></description>
		<content:encoded><![CDATA[<p>更正数据库非归档，正常关闭，可以使用rman备份</p>
<pre class="brush: bash; title: ; notranslate">
RMAN&gt; alter database open;

database opened

RMAN&gt; shutdown immediate

database closed
database dismounted
Oracle instance shut down

RMAN&gt; startup mount;

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area    2488635392 bytes

Fixed Size                     2230912 bytes
Variable Size                553649536 bytes
Database Buffers            1895825408 bytes
Redo Buffers                  36929536 bytes

RMAN&gt; backup datafile 2;

Starting backup at 16-APR-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=105 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00002 name=/data/oracle/oradata/test/sysaux01.dbf
channel ORA_DISK_1: starting piece 1 at 16-APR-13
channel ORA_DISK_1: finished piece 1 at 16-APR-13
piece handle=/data/o1_mf_nnndf_TAG20130416T213329_8ptns948_.bkp tag=TAG20130416T213329 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-APR-13

</pre>
<p>数据库非归档，非正常关闭，启动到mount不能备份</p>
<pre class="brush: bash; title: ; notranslate">
RMAN&gt; shutdown abort

Oracle instance shut down

RMAN&gt; startup mount

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area    2488635392 bytes

Fixed Size                     2230912 bytes
Variable Size                553649536 bytes
Database Buffers            1895825408 bytes
Redo Buffers                  36929536 bytes

RMAN&gt;  backup datafile 2;

Starting backup at 16-APR-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=105 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/16/2013 21:29:25
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：digdeep</title>
		<link>https://www.xifenfei.com/2013/03/%e9%9d%9e%e5%bd%92%e6%a1%a3%e5%bc%82%e5%b8%b8%e6%95%b0%e6%8d%ae%e5%ba%93rman%e5%a4%87%e4%bb%bd.html/comment-page-1#comment-1326</link>
		<dc:creator><![CDATA[digdeep]]></dc:creator>
		<pubDate>Tue, 19 Mar 2013 06:14:22 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=4210#comment-1326</guid>
		<description><![CDATA[这个很牛逼。尽然可以欺骗rman.]]></description>
		<content:encoded><![CDATA[<p>这个很牛逼。尽然可以欺骗rman.</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2013/03/%e9%9d%9e%e5%bd%92%e6%a1%a3%e5%bc%82%e5%b8%b8%e6%95%b0%e6%8d%ae%e5%ba%93rman%e5%a4%87%e4%bb%bd.html/comment-page-1#comment-1322</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Sat, 16 Mar 2013 15:54:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=4210#comment-1322</guid>
		<description><![CDATA[使用dbms_backup_restore.copydatafile命令
[sql]
select &#039;declare   full_name varchar2(256);   recid     number;   stamp     
number; begin   sys.dbms_backup_restore.copydatafile(&#039;
&#124;&#124;file#&#124;&#124;&#039;,&#039;&#039;&#039;&#124;&#124;&#039;/u01/oracle/oradata/&#039;&#124;&#124;file#&#124;&#124;&#039;_&#039;
&#124;&#124;SUBSTR(NAME,INSTR(NAME,&#039;/&#039;,-1)+1)&#124;&#124;&#039;&#039;&#039;,full_name, recid, 
stamp);end;&#039; from v$datafile;
[/sql]]]></description>
		<content:encoded><![CDATA[<p>使用dbms_backup_restore.copydatafile命令</p>
<pre class="brush: sql; title: ; notranslate">
select 'declare   full_name varchar2(256);   recid     number;   stamp     
number; begin   sys.dbms_backup_restore.copydatafile('
||file#||','''||'/u01/oracle/oradata/'||file#||'_'
||SUBSTR(NAME,INSTR(NAME,'/',-1)+1)||''',full_name, recid, 
stamp);end;' from v$datafile;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2013/03/%e9%9d%9e%e5%bd%92%e6%a1%a3%e5%bc%82%e5%b8%b8%e6%95%b0%e6%8d%ae%e5%ba%93rman%e5%a4%87%e4%bb%bd.html/comment-page-1#comment-1321</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Sat, 16 Mar 2013 15:52:27 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=4210#comment-1321</guid>
		<description><![CDATA[非归档模式下，dbms_backup_restore包也不能实现backup/copy类似功能
[sql]
SQL&gt; declare   
full_name 
varchar2(256);  
 recid     number;  
 stamp     number; 
begin   sys.dbms_backup_restore.copydatafile(1,
&#039;/u01/oracle/oradata/1_system01.dbf&#039;,full_name, recid, stamp);end;
 /

*
ERROR at line 1:
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
ORA-19600: input file is datafile 1 ()
ORA-19601: output file is datafile-copy 0 (/u01/oracle/oradata/1_system01.dbf)
ORA-06512: at &quot;SYS.X$DBMS_BACKUP_RESTORE&quot;, line 1778
ORA-06512: at &quot;SYS.X$DBMS_BACKUP_RESTORE&quot;, line 1728
ORA-06512: at line 1


SQL&gt; archive log list;
Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            /u01/oracle/oradata/ora11g/archivelog
Oldest online log sequence     1
Current log sequence           1
[/sql]]]></description>
		<content:encoded><![CDATA[<p>非归档模式下，dbms_backup_restore包也不能实现backup/copy类似功能</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; declare   
full_name 
varchar2(256);  
 recid     number;  
 stamp     number; 
begin   sys.dbms_backup_restore.copydatafile(1,
'/u01/oracle/oradata/1_system01.dbf',full_name, recid, stamp);end;
 /

*
ERROR at line 1:
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
ORA-19600: input file is datafile 1 ()
ORA-19601: output file is datafile-copy 0 (/u01/oracle/oradata/1_system01.dbf)
ORA-06512: at &quot;SYS.X$DBMS_BACKUP_RESTORE&quot;, line 1778
ORA-06512: at &quot;SYS.X$DBMS_BACKUP_RESTORE&quot;, line 1728
ORA-06512: at line 1


SQL&gt; archive log list;
Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            /u01/oracle/oradata/ora11g/archivelog
Oldest online log sequence     1
Current log sequence           1
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
