<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DBAlife &#187; rman</title>
	<atom:link href="http://www.dbalife.com/archives/tag/rman/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dbalife.com</link>
	<description>网站系统架构实践</description>
	<lastBuildDate>Wed, 27 Jul 2011 09:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>RMAN TAG参数的禁区</title>
		<link>http://www.dbalife.com/archives/192.html</link>
		<comments>http://www.dbalife.com/archives/192.html#comments</comments>
		<pubDate>Thu, 13 Nov 2008 03:31:43 +0000</pubDate>
		<dc:creator>skywalker</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库管理]]></category>
		<category><![CDATA[01009]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[rman]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://www.dbalife.com/archives/rman-tag%e5%8f%82%e6%95%b0%e7%9a%84%e7%a6%81%e5%8c%ba/</guid>
		<description><![CDATA[RMAN具有非常丰富的命令，为这些命令服务的保留字有几十上百个，如allocate、rsync、show、backup等等。 在书写RMAN脚本时，需要特别小心不要用到保留字，否则会导致RMAN-01007错误 以TAG参数为例： 当tag为backup时，报错 RMAN&#62; run{ 2&#62; backup tablespace user 3&#62; tag backup RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-00558: error encountered while parsing input commands RMAN-01009: syntax error: found "backup": expecting one of: "double-quoted-string, equal, identifier, single-quoted-string" RMAN-01007: at line 3 column 5 file: standard input 当tag为backup1时，正常运行 RMAN&#62; run [...]
Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/271.html' rel='bookmark' title='compatible参数'>compatible参数</a></li>
<li><a href='http://www.dbalife.com/archives/58.html' rel='bookmark' title='打包安装oracle'>打包安装oracle</a></li>
<li><a href='http://www.dbalife.com/archives/125.html' rel='bookmark' title='Listerner.ora写法问题导致的监听器启动失败'>Listerner.ora写法问题导致的监听器启动失败</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>RMAN具有非常丰富的命令，为这些命令服务的保留字有几十上百个，如allocate、rsync、show、backup等等。</p>
<p>在书写RMAN脚本时，需要特别小心<span style="font-weight: bold;">不要用到保留字</span>，否则会导致RMAN-01007错误</p>
<p>以TAG参数为例：</p>
<div style="margin-left: 40px;"><span style="font-weight: bold;">当tag为backup时，报错</span></div>
<div style="margin-left: 40px;">RMAN&gt; run{<br />
2&gt; backup tablespace user<br />
3&gt; tag backup</div>
<p>RMAN-00571: ===========================================================<br />
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============<br />
RMAN-00571: ===========================================================<br />
RMAN-00558: error encountered while parsing input commands<br />
RMAN-01009: syntax error: found "backup": expecting one of: "double-quoted-string, equal, identifier, single-quoted-string"<br />
RMAN-01007: at line 3 column 5 file: standard input</p>
<div style="margin-left: 40px;"><span style="font-weight: bold;">当tag为backup1时，正常运行</span></div>
<div style="margin-left: 40px;">RMAN&gt; run {                    <br />
2&gt; backup tablespace users<br />
3&gt; tag backup1;<br />
4&gt; }</div>
<p>Starting backup at 13-NOV-08<br />
using channel ORA_DISK_1<br />
channel ORA_DISK_1: starting full datafile backupset<br />
channel ORA_DISK_1: specifying datafile(s) in backupset<br />
input datafile fno=00004 name=/opt/u01/oracle/oradata/mydb/users01.dbf<br />
channel ORA_DISK_1: starting piece 1 at 13-NOV-08<br />
channel ORA_DISK_1: finished piece 1 at 13-NOV-08<br />
piece handle=/oracle/flash_recovery_area/MYDB/backupset/o1_mf_nnndf_BACKUP1_4kq7rcpv_.bkp tag=BACKUP1 comment=NONE<br />
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01<br />
Finished backup at 13-NOV-08</p>
<p>Starting Control File and SPFILE Autobackup at 13-NOV-08<br />
piece handle=/oracle/flash_recovery_area/MYDB/autobackup/o1_mf_s_670678156_4kq7rfb5_.bkp comment=NONE<br />
Finished Control File and SPFILE Autobackup at 13-NOV-08</p>
<p>RMAN&gt;</p>
<div class="flockcredit" style="text-align: right; color: #CCC; font-size: x-small;">Blogged with the <a style="color: #999; font-weight: bold;" title="Flock Browser" href="http://www.flock.com/blogged-with-flock" target="_new">Flock Browser</a></div>
<p><!-- technorati tags begin --></p>
<p style="font-size:10px;text-align:right;">Tags: <a rel="tag" href="http://technorati.com/tag/rman">rman</a>, <a rel="tag" href="http://technorati.com/tag/tag">tag</a>, <a rel="tag" href="http://technorati.com/tag/%E4%BF%9D%E7%95%99%E5%AD%97">保留字</a></p>
<p><!-- technorati tags end --></p>
<p>Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/271.html' rel='bookmark' title='compatible参数'>compatible参数</a></li>
<li><a href='http://www.dbalife.com/archives/58.html' rel='bookmark' title='打包安装oracle'>打包安装oracle</a></li>
<li><a href='http://www.dbalife.com/archives/125.html' rel='bookmark' title='Listerner.ora写法问题导致的监听器启动失败'>Listerner.ora写法问题导致的监听器启动失败</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dbalife.com/archives/192.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

