2009年4月16日星期四

asmcmd cp的问题

在oracle11g以后,asmcmd中新增了cp这个命令,今天有机会用了一下,开始的时候报错:
export ORACLE_SID=+ASM
asmcmd进入

ASMCMD> cp spfilecrdb11gstd.ora /tmp
source +data/CRDB11GSTD/spfilecrdb11gstd.ora
target /tmp
ASMCMD-08015: can not create file->'/tmp'
ORA-15056: additional error message
ORA-27038: created file already exists
Additional information: 1
ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 142
ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute)
ASMCMD-08016: copy source->'+data/CRDB11GSTD/spfilecrdb11gstd.ora' and target->'/tmp' failed
ASMCMD>

为啥子呢?查了n多的文档,没有问题啊
后来发现是我的问题:

ASMCMD> cp spfilecrdb11gstd.ora /tmp/spfile2
source +data/CRDB11GSTD/spfilecrdb11gstd.ora
target /tmp/spfile2
copying file(s)...
file, /tmp/spfile2, copy committed.

没有指明具体的文件名字。
记录一下。

没有评论:

发表评论