ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 关于rman备份

关于rman备份

原创 Linux操作系统 作者:jennifer1314 时间:2012-09-17 14:17:41 0 删除 编辑
1.catalog数据库

oracle@server ~]$ sqlplus / as sysdba

SQL> select name from v$datafile;

SQL> create tablespace rman datafile '/oracle/oradata/orcl/rman01.dbf' size 20m;

Tablespace created.

SQL> create user rman identified by rman default tablespace rman quota unlimited on rman;

User created.

SQL> grant recovery_catalog_owner to rman;

Grant succeeded.

SQL> select * from dba_sys_privs where grantee='connect';

no rows selected

SQL> select * from dba_sys_privs where grantee='CONNECT';

SQL> grant connect to rman;

SQL> grant resource to rman;

SQL> exit

[oracle@server ~]$ rman target/

Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 16 14:51:27 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to target database: ORCL (DBID=1268348214)

RMAN> connect catalog rman/rman

connected to recovery catalog database

RMAN> create catalog;

recovery catalog created

RMAN> register database;

database registered in recovery catalog

starting full resync of recovery catalog

full resync complete

RMAN>

注这里必须先连接target database 再连接catalog database

[oracle@server ~]$ rman target/ catalog rman/rman

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27875814/viewspace-743772/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2012-09-17

  • 博文量
    1
  • 访问量
    795