Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1210418
  • 博文数量: 1211
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 14340
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-09 11:20
文章分类

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-16 19:17:19

1、创建rman用户及相应的tablespace
SQL> conn as sysdba
已连接。
SQL> set wrap off
SQL> set linesize 1000
SQL> set timing on
SQL> select * from v$version;

BANNER
-------------------------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
PL/SQL Release 9.2.0.4.0 - Production
CORE    9.2.0.3.0       Production
TNS for Linux: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production


1、创建rman用户及相应的tablespace
SQL> conn as sysdba
已连接。
SQL> set wrap off
SQL> set linesize 1000
SQL> set timing on
SQL> select * from v$version;

BANNER
-------------------------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
PL/SQL Release 9.2.0.4.0 - Production
CORE    9.2.0.3.0       Production
TNS for Linux: Version 9.2.0.4.0 - Production
NLSRTL Version 9.2.0.4.0 - Production

已用时间:  00: 00: 00.01
SQL> create tablespace ts_backup
  2  datafile '/u01//oradata/test/ts_backup01.dbf' size 50m;

表空间已创建。

已用时间:  00: 00: 11.07
SQL> create user rman
  2  identified by rman
  3  default tablespace ts_backup
  4  temporary tablespace temp;

用户已创建

已用时间:  00: 00: 00.02
SQL> grant connect,resource,recovery_catalog_owner to rman;

授权成功。

已用时间:  00: 00: 00.02
SQL>

2、telnet到catalog
Red Hat Linux release 9 (Shrike)
Kernel 2.4.20-8 on an i686
login:
Password:
Last login: Thu Jun 23 15:49:04 on :0
-bash: ss#: command not found
[@Harrison ]$ rman

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

RMAN> connect catalog rman/rman

connected to recovery catalog database
recovery catalog is not installed

RMAN> create catalog tablespace ts_backup/*创建恢复目录模式对象*/

recovery catalog created

RMAN> exit


Recovery Manager complete.
[@Harrison ]$ rman target catalog

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: GLEDESON (DBID=2735459423)
connected to recovery catalog database

RMAN> register database;/*使用恢复目录注册数据库*/

database registered in recovery catalog
starting full resync of recovery catalog
full resync complete

RMAN>

阅读(607) | 评论(0) | 转发(0) |
0

上一篇:热备份原理分析

下一篇:数据库恢复实例

给主人留下些什么吧!~~