Oracle 11g建立虛擬私有目錄RMAN-06004 ORA-00942錯誤的處理
一個網友在linux下的11.2.0.4 中建立RMAN的虛擬私有目錄報錯:
[oracle@jb ~]$ rman Recovery Manager: Release 11.2.0.4.0 - Production on Sun May 10 17:23:25 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. RMAN> connect catalog vpc1/vpc1@cs connected to recovery catalog database RMAN> create virtual catalog; found eligible base catalog owned by RMAN RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-06004: ORACLE error from recovery catalog database: ORA-00942: table or view does not exist
從上面資訊可以看到found eligible base catalog owned by RMAN,說明已經找到了合格的基本恢復目錄使用者,由於使用的基本恢復目錄使用者rman已經註冊了資料庫,於是新建一個基本恢復目錄使用者cat1,虛擬私有目錄使用者 virtcat
1.建立基本恢復目錄使用者cat1,虛擬私有目錄使用者virtcat
SQL> create user cat1 identified by cat1 2 default tablespace sysaux 3 quota unlimited on sysaux; User created. SQL> grant recovery_catalog_owner to cat1; Grant succeeded. SQL> create user virtcat identified by virtcat 2 default tablespace sysaux 3 quota unlimited on sysaux; User created. SQL> grant recovery_catalog_owner to virtcat; Grant succeeded.
2.建立基本恢復目錄
[oracle@jb ~]$ rman catalog cat1/cat1@cs Recovery Manager: Release 11.2.0.4.0 - Production on Sun May 10 17:24:50 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to recovery catalog database RMAN> create catalog; recovery catalog created RMAN> grant register database to virtcat; Grant succeeded.
3.建立虛擬私有恢復目錄
[oracle@jb cs]$ rman catalog virtcat/virtcat@cs Recovery Manager: Release 11.2.0.4.0 - Production on Sun May 10 17:25:40 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to recovery catalog database RMAN> create virtual catalog; found ineligible base catalog owned by RMAN found eligible base catalog owned by CAT1 created virtual catalog against base catalog owned by CAT1
4.在虛擬私有目錄中註冊目標資料庫
[oracle@jb cs]$ rman target sys/system@db catalog virtcat/virtcat@cs Recovery Manager: Release 11.2.0.4.0 - Production on Sun May 10 17:46:51 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: DB (DBID=1640573015) connected to recovery catalog database RMAN> register database; database registered in recovery catalog starting full resync of recovery catalog full resync complete
總結:在建立與使用虛擬私有恢復目錄時,基本恢復目錄中不能註冊目標資料庫,否則會出現RMAN-06004, ORA-00942錯誤資訊。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26015009/viewspace-1633550/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g RMAN虛擬私有目錄Oracle
- Oracle RAC 錯誤記錄以及處理方法Oracle
- 虛擬目錄定位
- oracle 11G RAC的建立(VM虛擬環境)Oracle
- Nginx虛擬目錄alias和root目錄Nginx
- Oracle異常錯誤處理Oracle
- ORACLE 異常錯誤處理Oracle
- Oracle錯誤處理思路(一)Oracle
- 在 Mac Catalina 的 root 目錄建立虛擬檔案Mac
- oracle ora-00054錯誤處理Oracle
- 虛擬機器部署 Sentinel 服務錯誤記錄虛擬機
- 修改Tomcat的網站根目錄與虛擬目錄Tomcat網站
- 目錄處理命令
- [php]修改站點的虛擬目錄PHP
- 錯誤處理
- oracle 11g 虛擬列Oracle
- ORA-00942錯誤分析
- oracle ORA-14452錯誤處理Oracle
- go的錯誤處理Go
- Ora-01555錯誤的模擬及處理
- js獲取網站根路徑(站點及虛擬目錄),獲得網站的根目錄或虛擬目錄的根地址JS網站
- 建立python虛擬環境virtualenv錯誤怎麼解決?Python
- Oracle 安裝目錄空間不夠處理Oracle
- tomcat虛擬目錄對映網路共享目錄的問題Tomcat
- Git對新增目錄的處理Git
- IIS虛擬目錄掛載檔案伺服器目錄伺服器
- PHP 錯誤處理PHP
- php錯誤處理PHP
- Go 錯誤處理Go
- Swift錯誤處理Swift
- Zabbix錯誤處理
- mysqldump錯誤處理MySql
- Oracle的home目錄空間佔用異常處理Oracle
- 總結:整理 oracle異常錯誤處理 .Oracle
- ORACLE ORA-03137錯誤處理Oracle
- oracle ORA-14452錯誤處理例程Oracle
- axios 的錯誤處理iOS
- COM的錯誤處理 (轉)