暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
德哥RMAN讲座.doc
303
8页
6次
2021-02-22
5墨值下载
1. Create catalog
a) Createt tablespace to store catalog’s object ;
{ echo $ORACLE_SID (dgdemo)
create tablespace tbs_rman datafile '/u01/oradata/dgdemo/tbs_rman.dbs' size 300m;
}
-------------
如果表空间存在,就执行删除:
Drop tablespace tbs_rman including contents and datafiles;
b) Create rman user & grant privilege to it
{ create user rmanuser identified by rman default tablespace tbs_rman temporary tablespace
temp;
grant recovery_catalog_owner to rmanuser;
――
select * from
session_roles;
alter user rmanuser
quota
unlimited on tbs_rman;---
tbs_rman
权限
;
}
补充:
lsnrctl service;
查看目前监听的结果
c) Create catalog on rman
{ rman catalog rmanuser/rman
create catalog tablespace tbs_rman;
创建
catalog
表空间
}
2. Register database
$ rman catalog rmanuser/rman
----------
只有连接到
catalog
才可以
registerdatabase
RMAN> connect target sys/oracle;
RMAN> register database;
RMAN> List incarnation;
RMAN> report schema;
RMAN> list backup;
RMAN> list copy;
此时才能
Connect target sys/oracle@dgdemo
――
连接到
target
必须用
sys
用户
3. Backup database using catalog option
备份解说【
Full backup;
Incremental backup (0
级,
1
级别,
2
)
――
增量备份
Differential
&
cumulative
累积增量)
Backup tablespace;
Backup datafile
Backup controlfile & spfile;
Backup archivelog file;
Backup as copy;
a)
全库备份脚本:
Run{
Allocate channel d1 device type disk; ---
指定为磁盘备份
Backup as compressed backupset
――
指定为压缩备份
Format=’/u01/rmanbk/full_%d_%U’
Tag=’fullbak’
Channel=d1
of 8
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜