问题1::dmap未启动[-7170]错误
SQL> backup database backupset '/data/bak/BACKUP_FILE';
backup database backupset '/data/bak/BACKUP_FILE';
[-7170]:bakres连接DMAP失败.
解决方法:手动启动dmap进程
切换到bin目录下启动dmap服务:
[dmdba@host bin]$ ./dmap
dmap V8
dmap is ready
再次执行备份
SQL> backup database backupset '/data/bak/BACKUP_FILE';
操作已执行
问题2::备份报错 [-7103]:创建命名管道失败
冷备前停止数据库服务:
[dmdba@dmdb bin]$ ./DmServiceDMSERVER stop
Stopping DmServiceDMSERVER: [ OK ]
[dmdba@dmdb backup]$ dmrman
RMAN> BACKUP DATABASE'/dm8/data/DAMENG/dm.ini' full backupset '/dm8/backup/dbfull_bak';
BACKUP DATABASE '/dm8/data/DAMENG/dm.ini' full backupset '/dm8/backup/dbfull_bak';
Database mode = 0, oguid = 0
EP[0]'s cur_lsn[57529]
BACKUP DATABASE [DAMENG],execute......
os_pipe2_create_server_with_name, name:[/DM_PIPE_DMRMAN-24724_2_RD], error:[13]
CMD END.CODE:[-7103],DESC:[创建命名管道失败]
[-7103]:创建命名管道失败
解决方法:
退出后执行,必须在bin目录下执行方可
[dmdba@dmdb ~]$ /dm8/bin/dmrman
RMAN> BACKUP DATABASE'/dm8/data/DAMENG/dm.ini' full backupset '/dm8/backup/dbfull1_bak';
BACKUP DATABASE '/dm8/data/DAMENG/dm.ini' full backupset '/dm8/backup/dbfull1_bak';
Database mode = 0, oguid = 0
EP[0]'s cur_lsn[57529]
BACKUP DATABASE [DAMENG],execute......
CMD CHECK LSN......
BACKUP DATABASE [DAMENG],collect dbf......
CMD CHECK ......
DBF BACKUP SUBS......
CMD END.CODE:[0]
backup successfully!
time used: 00:00:01.086