aix上oracle使用rman备份到nfs

环境:aix6、oracle10G

1、配置nfs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
nfs服务器上配置nfs
yum -y install nfs-utils
vim /etc/exports
增加一行
/data   *(rw,sync,no_root_squash,no_all_squash)
systemctl start nfs
systemctl status nfs
检查对外共享的目录。使用下列命令:
showmount -e localhost
 
aix上挂载磁盘
在AIX系统打开NFS保留端口,命令如下:
nfso -o nfs_use_reserved_ports=1
然后,将共享的/data目录挂载即可
mount 192.168.1.65:/data /data

2、rman配置备份路径(下面直接指定通道的时候就不用配置这项)

1
2
RMAN> configure channel 1 device type disk format '/rman/bak/%d_db_%u';
RMAN> configure channel 2 device type disk format '/rman/bak/%d_db_%u';

3、rman进行备份

1
2
3
4
5
6
7
RMAN> run {
   allocate channel c1 device type disk format '/rman/bak/disk1/%U';
   allocate channel c2 device type disk format '/rman/bak/disk2/%U';
   backup database;
   release channel c1;
   release channel c2;
   }

4、错误处理

报错

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 10/30/2020 14:02:03
ORA-19504: failed to create file "/rman/ibudb/arch_IBUDB_31_631980121.rman"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 3
在metalink上找到一个Doc,Note:424785.1。这个问题在10.2的版本中比较普遍。

直接执行

alter system set event='10298 trace name context forever,level 32'

再次备份即可

posted @   苍茫宇宙  阅读(445)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
点击右上角即可分享
微信分享提示