First we start up RMAN with a connection to the catalog and the target, making a note of the DBID in the banner:
First we start up RMAN with a connection to the catalog and the target, making a note of the DBID in the banner:
First we start up RMAN with a connection to the catalog and the target, making a note of the DBID in the banner:
Next we list and delete any backupsets recorded in the repository:C:>rman catalog=rman/rman@dba1 target=sys/password@w2k1 Recovery Manager: Release 9.2.0.1.0 - Production Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved. connected to target database: W2K1 (DBID=1487421514) connected to recovery catalog database RMAN>
Next we connect to the RMAN catalog owner using SQL*Plus and issue the following statement:RMAN> LIST BACKUP SUMMARY; RMAN> DELETE BACKUP DEVICE TYPE SBT; RMAN> DELETE BACKUP DEVICE TYPE DISK;
The resulting key and id can then be used to unregister the database:SQL> CONNECT rman/rman@dba1 Connected. SQL> SELECT db_key, db_id 2 FROM db 3 WHERE db_id = 1487421514; DB_KEY DB_ID ---------- ---------- 1 1487421514 1 row selected. SQL>
SQL> EXECUTE dbms_rcvcat.unregisterdatabase(1, 1487421514); PL/SQL procedure successfully completed. SQL>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/936/viewspace-60514/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/936/viewspace-60514/