一、创建一个目录
ASMCMD> mkdir test
ASMCMD> ls
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
TEMPFILE/
spfileracdb.ora
test/
二、复制磁盘文件
将ASM磁盘文件spfileracdb.or复制到test目录下:
ASMCMD> cp spfileracdb.ora test
source +DATA_DISK/RACDB/spfileracdb.ora
target +DATA_DISK/RACDB/test/spfileracdb.ora
copying file(s)...
file, +DATA_DISK/racdb/test/spfileracdb.ora, copy committed.
ASMCMD> cd test
ASMCMD> ls
spfileracdb.ora
将ASM磁盘文件UNDOTBS1.258.728340289文件复制到操作系统某目录下:
ASMCMD> cp UNDOTBS1.258.728340289 UNDOTBS1.dbf
source +DATA_DISK/RACDB/DATAFILE/UNDOTBS1.258.728340289
target UNDOTBS1.dbf
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
copying file(s)...
file, /u01/oracle/product/11.0.6/rac_db/dbs/UNDOTBS1.dbf, copy committed.
三、备份ASM的metadata
ASMCMD> md_backup -b /u01/oracle/datadisk.bak -g data_disk
Disk group to be backed up: DATA_DISK
这样就把ASM的metadata备份到了文件系统上,通过查看datadisk.bak文件可以得知metadata的组织信息。
为ASM磁盘文件设置别名
执行如下图所示的命令为ASM磁盘文件设置别名。
阅读(2598) | 评论(0) | 转发(0) |