asmcmd的cp命令小bug

yangtingkun發表於2008-09-09

11g開始,asmcmd增加了新的cp命令,使得使用者可以在ASM和作業系統之間複製檔案。

 

 

不過新功能總是會存在bug的,比如在複製線上重做日誌的時候,出現了下面的問題:

bash-3.00$ asmcmd
ASMCMD> ls
DATA/
ASMCMD> cd DATA
ASMCMD> ls
RACTEST/
ASMCMD> cd RACTEST
ASMCMD> ls
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
TEMPFILE/
spfileractest.ora
ASMCMD> ls ONLINELOG
group_1.257.664395353
group_2.258.664395353
group_3.265.664398827
group_4.266.664398827
ASMCMD> cd ONLINELOG
ASMCMD> cp group_1.257.664395353 /data/redo01.log
source +DATA/RACTEST/ONLINELOG/group_1.257.664395353
target /data/redo01.log
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
file, /data/redo01.log, copy committed.
ASMCMD> cp /data/redo01.log +DATA/RACTEST/redo01.log
source /data/redo01.log
target +DATA/RACTEST/redo01.log
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
file, +DATA/ractest/redo01.log, copy committed.

僅僅複製一個檔案,Oracle居然重複顯示copying file(s)資訊50多次。

檢查查詢了一下metalink,發現文件Bug No. 5996064描述的正是這個現象,Oracle似乎計劃在11.1.0.7中解決這個問題。

不過目前看,似乎這個問題對cp命令本身沒有影響。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-442692/,如需轉載,請註明出處,否則將追究法律責任。

相關文章