rman入门实践!
2004-08-31 16:03
405 查看
环境:win2k server; oracle 817, legato networker
1 将target数据库置于归档模式
更改init.ora
2 建catalog库
3 在target,catalog上分别建表空间,用户,分配权限
SQL> create tablespace rman_ts datafile d:/oracle/oradata/rman/rman_ts.dbf" size 20M;
SQL> create user rman identified by rman default tablespace rman_ts temporary tablespace temp quota unlimited on rman_ts;
SQL> grant recovery_catalog_owner to rman;
SQL> grant connect, resource to rman;
4 在catalog端创建恢复目录
C:/>rman catalog rman/rman
RMAN>create catalog tablespace rman_ts;
5 在恢复目录中注册
C:/>rman target internal/oracle@his catalog rman/rman@rman
RMAN> register database;
6 全备脚本
RMAN> run {
2> # backup the complete database to disk
3> allocate channel dev1 type disk;
4> backup
5> full
6> tag full_db_backup
7> format "/oracle/backups/db_t%t_s%s_p%p"
8> (database);
9> release channel dev1;
10> }
引用:http://oraasp.vicp.net/article/article.aspx?ID=107
1 将target数据库置于归档模式
更改init.ora
2 建catalog库
3 在target,catalog上分别建表空间,用户,分配权限
SQL> create tablespace rman_ts datafile d:/oracle/oradata/rman/rman_ts.dbf" size 20M;
SQL> create user rman identified by rman default tablespace rman_ts temporary tablespace temp quota unlimited on rman_ts;
SQL> grant recovery_catalog_owner to rman;
SQL> grant connect, resource to rman;
4 在catalog端创建恢复目录
C:/>rman catalog rman/rman
RMAN>create catalog tablespace rman_ts;
5 在恢复目录中注册
C:/>rman target internal/oracle@his catalog rman/rman@rman
RMAN> register database;
6 全备脚本
RMAN> run {
2> # backup the complete database to disk
3> allocate channel dev1 type disk;
4> backup
5> full
6> tag full_db_backup
7> format "/oracle/backups/db_t%t_s%s_p%p"
8> (database);
9> release channel dev1;
10> }
引用:http://oraasp.vicp.net/article/article.aspx?ID=107
相关文章推荐
- rman入门实践!
- Docker 入门到实践笔记1
- 《Python编程从入门到实践》_第九章_类
- Python数据挖掘入门与实践(二)——scikit-learn数据的预处理转换器以及流水线
- python编程:从入门到实践学习笔记(二)
- Hadoop入门实践之从WordCount程序说起
- git入门与实践(一)
- 分布式计算开源框架Hadoop入门实践(一)
- cordava打包入门实践总结
- CodeIgniter 入门实践(新闻系统)
- Python编程从入门到实践:习题5-3~5-7
- MongoDB 极简实践入门
- WinPcap编程入门实践
- Oracle RMAN快速入门指南
- RMAN 初学者入门
- python编程 从入门到实践 第五章 条件判断语句
- ActiveMQ从入门到实践
- Python编程从入门到实践:习题6-4~6-6
- [置顶] python爬虫实践——零基础快速入门(一)
- docker实践入门之五