RMAN备份中Create catalog时候 ORA-00955及RMAN-06433,RMAN-06429,ORA-01658处理

RMAN备份测试时候,其中遇到很多常见的问题,逐个解决。

SQL> show parameter db_name

NAME TYPE
------------------------------------ ----------------------
VALUE
------------------------------
db_name string
rman

SQL>
SQL> create tablespace rman_ts
2 datafile 'D:oracleoradata man man_ts.dbf'
3 size 200m extent management local uniform size 5m ;

已建立表格空間.


SQL>
SQL> create user rman identified by rman
2 default tablespace rman_ts
3 temporary tablespace temp ;

已建立使用者.

SQL> grant resource , connect , recovery_catalog_owner to rman ;

順利授權.

SQL> exit
已切斷與 Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production 的連線

C:>rman catalog rman/rman@rman_test msglog=rman.log
RMAN> create catalog ;
RMAN> exit

C:>rman target sys/oracle@test catalog rman/rman@rman_test

Recovery Manager: 版本 9.2.0.1.0 - Production

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

已連線到目標資料庫: TEST (DBID=1926579826)
已連線至復原目錄資料庫
未安裝復原目錄

RMAN> create catalog tablespace rman_ts

來源檔案中發生錯誤: krmk.pc, 行: 6702
SQL 敘述句的文字有誤: ??
復原目錄資料庫 ORACLE 發生錯誤: ORA-00955: 此一名稱已被一個現有物件使用

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06433: error installing recovery catalog

RMAN> register database;

未安裝復原目錄
未安裝復原目錄
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 07/20/2007 16:18:10
RMAN-06429: RCVCAT database is not compatible with this version of RMAN

RMAN> drop catalog;

復原目錄擁有者為 RMAN
請再次輸入 DROP CATALOG 命令, 確認除去目錄

RMAN> drop catalog ;

已捨棄復原目錄

RMAN> create catalog ;

來源檔案中發生錯誤: krmk.pc, 行: 6702
SQL 敘述句的文字有誤: 鉧
復原目錄資料庫 ORACLE 發生錯誤: ORA-01658: 無法建立表格空間 RMAN_TS 中區段的 INI
TIAL 擴充區塊

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06433: error installing recovery catalog

不行,加大RMAN_TS表空间到600M,还是不行。

只有删除用户RMAN, 重新建立。

C:>sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on 星期五 7月 20 16:59:41 2007

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

連線到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL>
SQL>
SQL> drop user rman cascade;

已刪除使用者.

SQL> create user rman identified by rman
2 default tablespace rman_ts
3 temporary tablespace temp ;

已建立使用者.

SQL> grant resource , connect , recovery_catalog_owner to rman ;

順利授權.

SQL>
SQL> exit
已切斷與 Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production 的連線

C:>rman target sys/oracle@test catalog rman/rman@rman_test

Recovery Manager: 版本 9.2.0.1.0 - Production

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

已連線到目標資料庫: TEST (DBID=1926579826)
已連線至復原目錄資料庫
未安裝復原目錄

RMAN> create catalog tablespace rman_ts

已建立復原目錄

RMAN> register database ;

在復原目錄註冊的資料庫
啟動復原目錄的完整再同步
完整再同步完成

RMAN>

-----------------------------------------------------------------------------------------------------

以上问题总结一下:

1. 如果原来创建过CATALOG,删除没有删干净,可能导致ORA-00955错误,直接解决方式是 RMAN > DROP CATALOG ; 然后CREATE CAGALOG .

2. 如果题是RMAN_TS (RMAN用户默认表空间)不足或INIT不足等,第一个是可能RMAN_TS的确太少,第二个是删除RMAN用户,释放空间,重新建立RMAN用户及CREATE CATLOG .

---------------------------------------------------------------------------------------------------------

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

转载于:http://blog.itpub.net/35489/viewspace-84808/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值