rman duplicate出現PLS-00201錯誤解決
點選(此處)摺疊或開啟
- RMAN> duplicate target database for standby from active database dorecover nofilenamecheck;
- Starting Duplicate Db at 30-JAN-18
- using channel ORA_AUX_DISK_1
- contents of Memory Script:
- {
- backup as copy reuse
- targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/orapworcl' auxiliary format
- '/u01/app/oracle/product/11.2.0/db_1/dbs/orapworcl' ;
- }
- executing Memory Script
- Starting backup at 30-JAN-18
- using channel ORA_DISK_1
- Finished backup at 30-JAN-18
- contents of Memory Script:
- {
- backup as copy current controlfile for standby auxiliary format '/u01/app/oracle/oradata/orcl/control01.ctl';
- restore clone primary controlfile to '/u01/app/oracle/fast_recovery_area/orcl/control02.ctl' from
- '/u01/app/oracle/oradata/orcl/control01.ctl';
- }
- executing Memory Script
- Starting backup at 30-JAN-18
- using channel ORA_DISK_1
- channel ORA_DISK_1: starting datafile copy
- copying standby control file
- output file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_orcl.f tag=TAG20180130T170732 RECID=2 STAMP=966791252
- channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
- Finished backup at 30-JAN-18
- Starting restore at 30-JAN-18
- using channel ORA_AUX_DISK_1
- DBGSQL: TARGET> begin :fhdbi := dbms_rcvcat.getDbid; end;
- DBGSQL: sqlcode = 6550
- DBGSQL: B :fhdbi = 32765
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of Duplicate Db command at 01/30/2018 17:07:35
- RMAN-05501: aborting duplication of target database
- RMAN-03015: error occurred in stored script Memory Script
- ORA-06550: line 1, column 17:
- PLS-00201: identifier 'DBMS_RCVCAT.GETDBID' must be declared
- ORA-06550: line 1, column 7:
- PL/SQL: Statement ignored
點選(此處)摺疊或開啟
- [oracle@hygzdb01-2-252 dbs]$ rman target sys/oracle@orcl auxiliary sys/oracle@orclst1 nocatalog
- Recovery Manager: Release 11.2.0.4.0 - Production on Tue Jan 30 17:09:12 2018
- Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1494309735)
- using target database control file instead of recovery catalog
- connected to auxiliary database: ORCL (not mounted)
- RMAN> duplicate target database for standby from active database dorecover nofilenamecheck;
- Starting Duplicate Db at 30-JAN-18
- allocated channel: ORA_AUX_DISK_1
- channel ORA_AUX_DISK_1: SID=126 device type=DISK
- contents of Memory Script:
- {
- backup as copy reuse
- targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/orapworcl' auxiliary format
- '/u01/app/oracle/product/11.2.0/db_1/dbs/orapworcl' ;
- }
- executing Memory Script
- Starting backup at 30-JAN-18
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=872 device type=DISK
- Finished backup at 30-JAN-18
- contents of Memory Script:
- {
- backup as copy current controlfile for standby auxiliary format '/u01/app/oracle/oradata/orcl/control01.ctl';
- restore clone primary controlfile to '/u01/app/oracle/fast_recovery_area/orcl/control02.ctl' from
- '/u01/app/oracle/oradata/orcl/control01.ctl';
- }
- executing Memory Script
- Starting backup at 30-JAN-18
- using channel ORA_DISK_1
- channel ORA_DISK_1: starting datafile copy
- copying standby control file
- output file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_orcl.f tag=TAG20180130T170920 RECID=3 STAMP=966791361
- channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
- Finished backup at 30-JAN-18
- Starting restore at 30-JAN-18
- using channel ORA_AUX_DISK_1
- channel ORA_AUX_DISK_1: copied control file copy
- Finished restore at 30-JAN-18
- contents of Memory Script:
- {
- sql clone 'alter database mount standby database';
- }
- executing Memory Script
- sql statement: alter database mount standby database
- contents of Memory Script:
- {
- set newname for tempfile 1 to
- "/u01/app/oracle/oradata/orcl/temp01.dbf";
- switch clone tempfile all;
- set newname for datafile 1 to
- "/u01/app/oracle/oradata/orcl/system01.dbf";
- set newname for datafile 2 to
- "/u01/app/oracle/oradata/orcl/sysaux01.dbf";
- set newname for datafile 3 to
- "/u01/app/oracle/oradata/orcl/undotbs01.dbf";
- set newname for datafile 4 to
- "/u01/app/oracle/oradata/orcl/users01.dbf";
- set newname for datafile 5 to
- "/u01/app/oracle/oradata/orcl/tbs_hygz01.dbf";
- set newname for datafile 6 to
- "/u01/app/oracle/oradata/orcl/tbs_hygz02.dbf";
- set newname for datafile 7 to
- "/u01/app/oracle/oradata/orcl/tbs_hygz03.dbf";
- set newname for datafile 8 to
- "/u01/app/oracle/oradata/orcl/tbs_hygz04.dbf";
- backup as copy reuse
- datafile 1 auxiliary format
- "/u01/app/oracle/oradata/orcl/system01.dbf" datafile
- 2 auxiliary format
- "/u01/app/oracle/oradata/orcl/sysaux01.dbf" datafile
- 3 auxiliary format
- "/u01/app/oracle/oradata/orcl/undotbs01.dbf" datafile
- 4 auxiliary format
- "/u01/app/oracle/oradata/orcl/users01.dbf" datafile
- 5 auxiliary format
- "/u01/app/oracle/oradata/orcl/tbs_hygz01.dbf" datafile
- 6 auxiliary format
- "/u01/app/oracle/oradata/orcl/tbs_hygz02.dbf" datafile
- 7 auxiliary format
- "/u01/app/oracle/oradata/orcl/tbs_hygz03.dbf" datafile
- 8 auxiliary format
- "/u01/app/oracle/oradata/orcl/tbs_hygz04.dbf" ;
- sql 'alter system archive log current';
- }
- executing Memory Script
- executing command: SET NEWNAME
- renamed tempfile 1 to /u01/app/oracle/oradata/orcl/temp01.dbf in control file
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- Starting backup at 30-JAN-18
- using channel ORA_DISK_1
- channel ORA_DISK_1: starting datafile copy
- input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
RMAN-554 RMAN-4005 PLS-201 RMAN-4015 when Connecting to Target Database (文件 ID 97294.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 9.0.1.0 to 11.2.0.4 [Release 9.0.1 to 11.2]Information in this document applies to any platform.
SYMPTOMS
You are attempting to connect to the target database in RMAN and
are receiving a "PLS-00201: identifier 'xxx...' must be declared"
error:
target database Password:
RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ========
RMAN-00571: ===============================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database: ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_BACKUP_RESTORE.SET_CHARSET' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
RMAN-04015: error setting target database character set to US7ASCII
Also, if you log into the target database as the user SYS and issue:
from dba_objects
where object_name like '%DBMS_BACKUP_RESTORE%';
you get 0 rows returned or the status is INVALID
CAUSE
The package identified in the PLS-00201 error was not successfully
created when catproc.sql was originally run on this database. As
a general rule, for any RMAN "PLS-00201: identifier 'xxx...' must
be declared" error, re-run catproc.sql.
主要是少了這個包DBMS_BACKUP_RESTORE
SOLUTION
Re-run catproc.sql. This will in turn call the dbmsbkrs.sql script
which creates the DBMS_BACKUP_RESTORE package.
NOTE : Keep inmind that running catproc.sql will invalidate all PL/SQL
and many other related objects.
Running catproc is recommended, as when the RMAN-packages are missing,
there could be others missing aswell.
If the problem has been identified as RMAN-only, than run :
@?/rdbms/admin/prvtrmns.plb
@?/rdbms/admin/dbmsbkrs.sql
@?/rdbms/admin/prvtbkrs.plb
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24486203/viewspace-2150717/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DG rman duplicate 複製庫錯誤
- RMAN備份時出現RMAN-06056: could not access datafile 6 錯誤,解決方法!!
- oracle rman備份時出現ORA-19502錯誤解決案例Oracle
- scp出現錯誤的解決辦法
- 編譯EJB出現錯誤的解決編譯
- ontape出現段錯誤(未解決篇)
- nginx出現403錯誤的解決方法Nginx
- exchange出現1025錯誤!(未解決)
- ant構建時出現錯誤解決方案
- Mysql出現連線錯誤解決辦法MySql
- duplicate standby database 報ORA-05507錯誤解決方法Database
- RMAN-600(8201)錯誤的解決
- 連線MySQL出現2013錯誤解決MySql
- 解決 Inkscape 報錯 Duplicate 問題
- RMAN-06026 錯誤分析與解決
- RMAN-06133 錯誤解決一例
- 解決Centos7 yum 出現could not retrieve mirrorlist 錯誤CentOS
- Nginx出現413 Request Entity Too Large錯誤解決方法Nginx
- 隨身碟出現防寫錯誤的解決方法
- apache出現 403 permission 和404 not fund錯誤(解決方法)Apache
- exp/imp出現錯誤通過expdp/impdp來解決
- sql出現結果集錯誤以及出現ora-600或者ora-7445錯誤的解決方法思路SQL
- 錯誤:duplicate column name: picstitle
- 真機除錯出現 application installation failed 錯誤 解決方案除錯APPAI
- rman backup database 出現 ORA-01422錯誤Database
- zt_RMAN-06026 錯誤分析與解決
- git add .出現錯誤LF will be replaced by CRLF in 解決辦法Git
- Python: 安裝 sklearn 包出現錯誤的解決方法Python
- ubuntu安裝軟體出現Unable to locate package錯誤解決UbuntuPackage
- php抓取https網址出現錯誤的解決方法PHPHTTP
- 【MySql】複製出現Slave_SQL_Running: No 錯誤解決MySql
- 伺服器出現 HTTP 錯誤程式碼,及解決方法伺服器HTTP
- RMAN-06014:RMAN-03002:錯誤解決方法
- RMAN刪除歸檔日誌出現RMAN-0813錯誤的處理
- win10 mstsc出現內部錯誤怎麼修復_win10 mstsc出現內部錯誤解決方法Win10
- ghost win10啟動出現錯誤怎麼解決_ghost win10啟動出現錯誤如何修復Win10
- Mac SSH 連線出現 Host key verification failed. 錯誤解決MacAI
- XP系統出現記憶體讀寫錯誤解決方法記憶體