免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2221 | 回复: 8
打印 上一主题 下一主题

急:怎样定时备份ORALCE数据库(没有磁带机)? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-01-06 16:11 |只看该作者 |倒序浏览
怎样定时备份ORALCE数据库(没有磁带机)?

论坛徽章:
0
2 [报告]
发表于 2004-01-06 16:30 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

export or create a standby database on another server

论坛徽章:
0
3 [报告]
发表于 2004-01-06 16:43 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

先谢谢你,现在只有一台服务器,我通常备份数据库的方法是:将数据实例下的所有文件全部都拷贝下来,但数据库服务器需要在凌晨或是在没人用的时候才能停下来,你说怎么办?

论坛徽章:
0
4 [报告]
发表于 2004-01-06 17:17 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

很多方法啊,没有磁带即可以备份到硬盘或者磁带库,没有差别啊
你所用的是冷备份吧
如果不能冷备份,用热备啊
热备份必须要开archive log mode
如果没有开
startup mount;
alter database archivelog ;
alter database open;
有两种方法,一种用rman,一种不用rman
不用rman的大致为:
备份datafile
1。alter tablespace tbls begin backup
2. cp file under tablespace tbls
3. alter tablespace tbls begin backup
重复所有的tablespace,以前好像有人写过脚本实现备份的
备份controlfile
alter database backup controlfile to trace;
or
alter database backup controlfile to ‘new fielname’;

备份archive log file,手动

用rman 备份,要新建catalog database
让后建立target database 和catalog database 之间的连接
然后用rman的命令


full backup script
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup full  format ‘/u01/oradata/backup/full%u_%s_%p’ database
include current controlfile;
sql ‘alter system archive log current’;
backup fileaperset 3 format ‘/u01/oradata/backup/arch%u_%s_%p’
archivelog all delete input;
release channel c1;
release channel c2;
release channel c3;
}

level 0 backup script
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup incremental level 0b format ‘/u01/oradata/backup/db0%u_%s_%p’
database skip readonly;
sql ‘alter system archive log current’;
backup fileaperset 3 format ‘/u01/oradata/backup/arch%u_%s_%p’
archivelog all delete input;
release channel c1;
release channel c2;
release channel c3;
}

level 1 backup script
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup incremental level 1 format ‘/u01/oradata/backup/db1%u_%s_%p’
database skip readonly;
sql ‘alter system archive log current’;
backup fileaperset 3 format ‘/u01/oradata/backup/arch%u_%s_%p’
archivelog all delete input;
release channel c1;
release channel c2;
release channel c3;
}

论坛徽章:
0
5 [报告]
发表于 2004-01-06 17:18 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

中间可以穿插exp逻辑备份,如果数据量不大的话

论坛徽章:
0
6 [报告]
发表于 2004-01-06 17:20 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

也有第三方的备份工具
我在hp-ux上面用data protector(原来叫omniback)
不过要花钱

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2004-01-06 19:53 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

使用计划任务或者cron来定时关数据库做拷贝就好了呀

不过,不用磁带的话,这么做的成本就比较高了

论坛徽章:
0
8 [报告]
发表于 2004-01-07 09:56 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

RMAN-10035: exception raised in RPC: ORA-19550: 无法在使用调度程序时使用备份/恢
复功能
ORA-06512: 在"SYS.DBMS_BACKUP_RESTORE", line 1496
RMAN-10031: ORA-19550 occurred during call to DBMS_BACKUP_RESTORE.CFILEUSECURREN
T
RMAN-03006: non-retryable error occurred during execution of command: allocate
RMAN-12004: unhandled exception during command execution on channel rb
RMAN-10035: exception raised in RPC: ORA-19550: 无法在使用调度程序时使用备份/恢
复功能
ORA-06512: 在"SYS.DBMS_BACKUP_RESTORE", line 137
RMAN-10031: ORA-19550 occurred during call to DBMS_BACKUP_RESTORE.DEVICEALLOCATE

论坛徽章:
0
9 [报告]
发表于 2004-01-07 10:29 |只看该作者

急:怎样定时备份ORALCE数据库(没有磁带机)?

我是用oms的,这样就不用执行这些脚本了,按照向导来创建作业,进行rman备份,把作业定时执行不是一样的吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP