<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Oracle ASM 11g: Does the ASMCMD cp Command Really Work?</title>
	<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work</link>
	<description>News and views from Pythian DBAs</description>
	<pubDate>Thu,  7 Aug 2008 21:08:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Axel Posada</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-229620</link>
		<dc:creator>Axel Posada</dc:creator>
		<pubDate>Fri, 04 Jul 2008 01:34:40 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-229620</guid>
		<description>What Types of Files Does ASM Support?


This chapter describes how to administer files when you use the Automatic Storage Management (ASM) storage option...

http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmfiles.htm

Regards,
Axel.</description>
		<content:encoded><![CDATA[<p>What Types of Files Does ASM Support?</p>
<p>This chapter describes how to administer files when you use the Automatic Storage Management (ASM) storage option&#8230;</p>
<p><a href="http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmfiles.htm" rel="nofollow">http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmfiles.htm</a></p>
<p>Regards,<br />
Axel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-229365</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Thu, 03 Jul 2008 15:31:40 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-229365</guid>
		<description>Axel, thanks for emphasizing that. I noticed it - &lt;i&gt;It seems I can’t put any file to ASM.&lt;/i&gt; It's probably documented somewhere. The rest of the blog is focused on supported file types.</description>
		<content:encoded><![CDATA[<p>Axel, thanks for emphasizing that. I noticed it - <i>It seems I can’t put any file to ASM.</i> It&#8217;s probably documented somewhere. The rest of the blog is focused on supported file types.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Posada</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-228935</link>
		<dc:creator>Axel Posada</dc:creator>
		<pubDate>Wed, 02 Jul 2008 23:52:30 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-228935</guid>
		<description>ASM only support native Oracle Files: Datafiles, Online Logs, Control Files, RMAN backups, block change tracking files, exports, Flashback Logs, Archive Logs, etc. ASM does not support other types of files (Oracle makes a header verification. If the files does not match with an Oracle File, the copy process doesn't work).  Sorry, my english.</description>
		<content:encoded><![CDATA[<p>ASM only support native Oracle Files: Datafiles, Online Logs, Control Files, RMAN backups, block change tracking files, exports, Flashback Logs, Archive Logs, etc. ASM does not support other types of files (Oracle makes a header verification. If the files does not match with an Oracle File, the copy process doesn&#8217;t work).  Sorry, my english.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #92: a Carnival of the Vanities for DBAs</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-178783</link>
		<dc:creator>Log Buffer #92: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 11 Apr 2008 16:44:06 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-178783</guid>
		<description>[...] into Oracle stuff, our Alex Gorbachev also pointed out something that doesn&#8217;t quite work: the ASMCMD cp command in ASM 11g. He sure gives it a try, but finally concludes: &#8220;I couldn’t make the cp command [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] into Oracle stuff, our Alex Gorbachev also pointed out something that doesn&#8217;t quite work: the ASMCMD cp command in ASM 11g. He sure gives it a try, but finally concludes: &#8220;I couldn’t make the cp command [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-178435</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Thu, 10 Apr 2008 21:33:54 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-178435</guid>
		<description>Thanks Dan.</description>
		<content:encoded><![CDATA[<p>Thanks Dan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Norris</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-178417</link>
		<dc:creator>Dan Norris</dc:creator>
		<pubDate>Thu, 10 Apr 2008 20:09:12 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-178417</guid>
		<description>I know that this feature is important and it seems that others have also experienced the same behavior (so it isn't something "wrong" with what you did). I'm hoping to get to test this myself as well. In the meantime, I've confirmed that ASM development is investigating and hopefully we'll hear something from them (here) soon.</description>
		<content:encoded><![CDATA[<p>I know that this feature is important and it seems that others have also experienced the same behavior (so it isn&#8217;t something &#8220;wrong&#8221; with what you did). I&#8217;m hoping to get to test this myself as well. In the meantime, I&#8217;ve confirmed that ASM development is investigating and hopefully we&#8217;ll hear something from them (here) soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177934</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Wed, 09 Apr 2008 12:53:15 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177934</guid>
		<description>Christian,
My DB was but I was working on the backup copy (except one last case - was just too lazy). XDB has to have database open because it implements FTP protocol inside the database (if I can put it this way... Marco will correct me if I'm wrong).
I'm pretty sure that Oracle doesn't automagically put datafiles into backup mode. It should have nothing to do with ASM copy.
I tested it with database instance down and cp works for datafile only still. It also works for datafile when DB is up:
&lt;pre&gt;RMAN&gt; catalog start with '+dg2';

using target database control file instead of recovery catalog
searching for all files that match the pattern +dg2

List of Files Unknown to the Database
=====================================
File Name: +dg2/spfiledb11g.ora
File Name: +dg2/controlfile1
File Name: +dg2/users.dbf.backup

Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done

List of Cataloged Files
=======================
File Name: +dg2/users.dbf.backup

List of Files Which Where Not Cataloged
=======================================
File Name: +dg2/spfiledb11g.ora
  RMAN-07517: Reason: The file header is corrupted
File Name: +dg2/controlfile1
  RMAN-07517: Reason: The file header is corrupted&lt;/pre&gt;

spfile seems to be copied fine as well:
&lt;pre&gt;SQL&gt; create pfile='/tmp/pfile' from spfile='+dg2/spfiledb11g.ora';

File created.&lt;/pre&gt;

Let's test with md5 checksum:
&lt;pre&gt;SQL&gt; alter database backup controlfile to '/tmp/ctl.bkp';

Database altered.

...

ASMCMD&gt; cp /tmp/ctl.bkp +dg2/ctl.bkp
source /tmp/ctl.bkp
target +dg2/ctl.bkp
copying file(s)...
file, +DG2/ctl.bkp, copy committed.

ASMCMD&gt; cp +dg2/ctl.bkp /tmp/ctl.bkp2
source +dg2/ctl.bkp
target /tmp/tl.bkp2
copying file(s)...
file, /tmp/tl.bkp2, copy committed.

...

[oracle@lh8 ~]$ md5sum /tmp/*bkp*
&lt;font color="red"&gt;f3bbed641957af225b6d94b5cbf9158d  /tmp/ctl.bkp
0615ba7790313e717a9cb396df56cc7e  /tmp/ctl.bkp2&lt;/font&gt;&lt;/pre&gt;

So cp definitely doesn't work for controlfiles. It seems to work for datafiles and spfiles at least. However, my trust to the ASMCMD cp command is hurt.</description>
		<content:encoded><![CDATA[<p>Christian,<br />
My DB was but I was working on the backup copy (except one last case - was just too lazy). XDB has to have database open because it implements FTP protocol inside the database (if I can put it this way&#8230; Marco will correct me if I&#8217;m wrong).<br />
I&#8217;m pretty sure that Oracle doesn&#8217;t automagically put datafiles into backup mode. It should have nothing to do with ASM copy.<br />
I tested it with database instance down and cp works for datafile only still. It also works for datafile when DB is up:</p>
<pre>RMAN> catalog start with '+dg2';

using target database control file instead of recovery catalog
searching for all files that match the pattern +dg2

List of Files Unknown to the Database
=====================================
File Name: +dg2/spfiledb11g.ora
File Name: +dg2/controlfile1
File Name: +dg2/users.dbf.backup

Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done

List of Cataloged Files
=======================
File Name: +dg2/users.dbf.backup

List of Files Which Where Not Cataloged
=======================================
File Name: +dg2/spfiledb11g.ora
  RMAN-07517: Reason: The file header is corrupted
File Name: +dg2/controlfile1
  RMAN-07517: Reason: The file header is corrupted</pre>
<p>spfile seems to be copied fine as well:</p>
<pre>SQL> create pfile='/tmp/pfile' from spfile='+dg2/spfiledb11g.ora';

File created.</pre>
<p>Let&#8217;s test with md5 checksum:</p>
<pre>SQL> alter database backup controlfile to '/tmp/ctl.bkp';

Database altered.

...

ASMCMD> cp /tmp/ctl.bkp +dg2/ctl.bkp
source /tmp/ctl.bkp
target +dg2/ctl.bkp
copying file(s)...
file, +DG2/ctl.bkp, copy committed.

ASMCMD> cp +dg2/ctl.bkp /tmp/ctl.bkp2
source +dg2/ctl.bkp
target /tmp/tl.bkp2
copying file(s)...
file, /tmp/tl.bkp2, copy committed.

...

[oracle@lh8 ~]$ md5sum /tmp/*bkp*
<font color="red">f3bbed641957af225b6d94b5cbf9158d  /tmp/ctl.bkp
0615ba7790313e717a9cb396df56cc7e  /tmp/ctl.bkp2</font></pre>
<p>So cp definitely doesn&#8217;t work for controlfiles. It seems to work for datafiles and spfiles at least. However, my trust to the ASMCMD cp command is hurt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177854</link>
		<dc:creator>Luca</dc:creator>
		<pubDate>Wed, 09 Apr 2008 08:30:53 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177854</guid>
		<description>I have tested cp using a DG with 1MB AU size.</description>
		<content:encoded><![CDATA[<p>I have tested cp using a DG with 1MB AU size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cristiancudizio</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177846</link>
		<dc:creator>cristiancudizio</dc:creator>
		<pubDate>Wed, 09 Apr 2008 07:55:34 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177846</guid>
		<description>Really i've not yet testet ASM 11g new cp command, but i can say that i've made test similar to your first test about a copy on a non-oracle file on ASM with XDB FTP with 10g and i've got same result. Oracle check the header of the file and allows only copy of Oracle files on ASM. 
My question is: your database was MOUNTED?, OPENED? On my test XDB FTP works only with database OPEN and i've tested with backup files o archived log files. I think that it does not work with CONTROL FILE because it is opened and locked by the instance. With datafiles may be that ORacle put them automatically on backup mode?

Regards,
 Cristian</description>
		<content:encoded><![CDATA[<p>Really i&#8217;ve not yet testet ASM 11g new cp command, but i can say that i&#8217;ve made test similar to your first test about a copy on a non-oracle file on ASM with XDB FTP with 10g and i&#8217;ve got same result. Oracle check the header of the file and allows only copy of Oracle files on ASM.<br />
My question is: your database was MOUNTED?, OPENED? On my test XDB FTP works only with database OPEN and i&#8217;ve tested with backup files o archived log files. I think that it does not work with CONTROL FILE because it is opened and locked by the instance. With datafiles may be that ORacle put them automatically on backup mode?</p>
<p>Regards,<br />
 Cristian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Norris</title>
		<link>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177786</link>
		<dc:creator>Dan Norris</dc:creator>
		<pubDate>Wed, 09 Apr 2008 04:44:46 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/910/oracle-asm-11g-does-the-asmcmd-cp-command-really-work#comment-177786</guid>
		<description>Definitely something to discuss with the (Oracle, and other) gurus next week at Collaborate. I haven't tried it myself, but agree that this is one of the most anticipated new features in ASMCMD, possibly ASM in general. For it to be so highly anticipated and not function as expected is certainly disappointing.

See you next week!</description>
		<content:encoded><![CDATA[<p>Definitely something to discuss with the (Oracle, and other) gurus next week at Collaborate. I haven&#8217;t tried it myself, but agree that this is one of the most anticipated new features in ASMCMD, possibly ASM in general. For it to be so highly anticipated and not function as expected is certainly disappointing.</p>
<p>See you next week!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
