做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 msglog=rman.log
RMAN> create catalog ;
RMAN> exit
C:>rman target catalog
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 catalog
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/,如需转载,请注明出处,否则将追究法律责任。