oracle-rman-3

來源:互聯網
上載者:User

標籤:user   man   rman   pac   not   manager   exist   sel   ==   

 

http://blog.csdn.net/leshami/article/details/6032525  rman概述及體繫結構

http://blog.itpub.net/23513800/viewspace-664869/  rman協助命令

 

恢複目錄的建立

 

rc庫上操作192.168.3.222
sqlplus / as sysdba
create tablespace rmans;
create user rmans identified by 123456 default tablespace rmans QUOTA UNLIMITED ON rmans;
select * from dba_roles where role like ‘%CATA%‘;
select * from dba_sys_privs WHERE GRANTEE LIKE ‘%CATA%‘;
grant recovery_catalog_owner to rmans;

這是在rc庫上的重做操作(如果有問題,就重來一遍)
drop user rmans cascade;
drop tablespace rmans including contents;
create tablespace rmans;
create user rmans identified by 123456
default tablespace rmans
quota unlimited rmans;//這一行一定要加,否則會報第一個錯(無許可權的錯)
grant recovery_catalog_owner to rmans;
alter user rmans quota unlimited on rmans;//如果建立使用者時沒有加,就這樣加上去


目標庫上操作192.168.3.202
rman catalog [email protected]
create catalog;
connect target /    這條語句是在同一個會話中操作或者下面的語句(重新串連)都可以
rman target / catalog rmans
register database;



有兩個報錯需要處理一下
報錯一:
RMAN> create catalog;

error creating config_update
ORACLE error from recovery catalog database: ORA-01950: no privileges on tablespace ‘RMANS‘

ORACLE error from recovery catalog database: ORA-00942: table or view does not exist

只需要下面這條語句就可以了
alter user rmans quota unlimited on rmans;

報錯二:
RMAN> create catalog;

error creating db
ORACLE error from recovery catalog database: ORA-00955: name is already used by an existing object

ORACLE error from recovery catalog database: ORA-00942: table or view does not exist

在目標庫上丟棄重建就可以了
drop catalog;
drop catalog;
exit
rman catalog [email protected]
create catlog;


===================

RMAN> drop catalog;

recovery catalog owner is RMANS
enter DROP CATALOG command again to confirm catalog removal

RMAN> drop catalog;

recovery catalog dropped

RMAN> exit


Recovery Manager complete.
[[email protected] ~]$ rman catalog [email protected]

Recovery Manager: Release 11.2.0.4.0 - Production on Mon Aug 14 18:34:53 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

recovery catalog database Password:
connected to recovery catalog database

RMAN> create catalog;

recovery catalog created

RMAN> connect target /

connected to target database: KYC (DBID=111003738)

RMAN> register database;

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

RMAN>

oracle-rman-3

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.