[b]ORACLE VERSION[/b]:10203
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
[b]OS VERSION:[/b]LINUX 2.6.18-53.el5PAE #1 SMP
# uname -a
Linux mcprod 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST 2007 i686 i686 i386 GNU/Linux
[ora10g@mcprod ~]$ rman target / nocatalog
Recovery Manager: Release 10.2.0.3.0 - Production on Mon Jun 15 19:30:11 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: MCTEST (DBID=736228955)
using target database control file instead of recovery catalog
RMAN> copy datafile 3 to '/dev/raw/raw1';
Starting backup at 15-JUN-09
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=/oradata/mctest/sysaux01.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/15/2009 19:32:26
ORA-19504: failed to create file "/dev/raw/raw1"
ORA-27041: unable to open file
Linux Error: 16: Device or resource busy
Additional information: 1
用ddcopy测试
# dd if=/dev/zero of=/dev/raw/raw1 bs=1024 count=100
dd: opening `/dev/raw/raw1': Device or resource busy
# blockdev --getsize /dev/raw/raw1
/dev/raw/raw1: Device or resource busy
报“Device or resource busy”可以肯定的是创建raw设备时,出现问题。
解决办法:
1。将redhet4上的/usr/bin/raw,/etc/sysconfig/rawdevices,/etc/init.d/rawdevices这三个文件复制到centos5相应的目录下。注意其权限
# ls -rlt /usr/bin/raw
-rwxr-xr-x 1 root root 5656 Jul 27 2005 /usr/bin/raw
# ls -rlt /etc/init.d/rawdevices
-rwxr-xr-x 1 root root 2404 Oct 19 2004 /etc/init.d/rawdevices
# ls -lrt /etc/sysconfig/rawdevices
-rw-r--r-- 1 root root 287 Oct 19 2004 /etc/sysconfig/rawdevices
2。配置/etc/init.d/rawdevices文件
3。重启相关服务
# /etc/init.d/rawdevices restart
Assigning devices:
/dev/raw/raw5 --> /dev/hda15
/dev/raw/raw5: bound to major 3, minor 15
done
# /sbin/chkconfig rawdevices on
# reboot
未完待续
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
[b]OS VERSION:[/b]LINUX 2.6.18-53.el5PAE #1 SMP
# uname -a
Linux mcprod 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST 2007 i686 i686 i386 GNU/Linux
[ora10g@mcprod ~]$ rman target / nocatalog
Recovery Manager: Release 10.2.0.3.0 - Production on Mon Jun 15 19:30:11 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: MCTEST (DBID=736228955)
using target database control file instead of recovery catalog
RMAN> copy datafile 3 to '/dev/raw/raw1';
Starting backup at 15-JUN-09
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=/oradata/mctest/sysaux01.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/15/2009 19:32:26
ORA-19504: failed to create file "/dev/raw/raw1"
ORA-27041: unable to open file
Linux Error: 16: Device or resource busy
Additional information: 1
用ddcopy测试
# dd if=/dev/zero of=/dev/raw/raw1 bs=1024 count=100
dd: opening `/dev/raw/raw1': Device or resource busy
# blockdev --getsize /dev/raw/raw1
/dev/raw/raw1: Device or resource busy
报“Device or resource busy”可以肯定的是创建raw设备时,出现问题。
解决办法:
1。将redhet4上的/usr/bin/raw,/etc/sysconfig/rawdevices,/etc/init.d/rawdevices这三个文件复制到centos5相应的目录下。注意其权限
# ls -rlt /usr/bin/raw
-rwxr-xr-x 1 root root 5656 Jul 27 2005 /usr/bin/raw
# ls -rlt /etc/init.d/rawdevices
-rwxr-xr-x 1 root root 2404 Oct 19 2004 /etc/init.d/rawdevices
# ls -lrt /etc/sysconfig/rawdevices
-rw-r--r-- 1 root root 287 Oct 19 2004 /etc/sysconfig/rawdevices
2。配置/etc/init.d/rawdevices文件
3。重启相关服务
# /etc/init.d/rawdevices restart
Assigning devices:
/dev/raw/raw5 --> /dev/hda15
/dev/raw/raw5: bound to major 3, minor 15
done
# /sbin/chkconfig rawdevices on
# reboot
未完待续