中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 数据库开发 > 数据库综合
rman入门实践!
作者:未知 时间:2004-08-31 12:12 出处:Blog 责编:chinaitpower
              摘要:暂无

环境:win2k server; oracle 817

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

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有