Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part Number B10770-01 |
|
|
View PDF |
unregister::=
Text description of unregister
To unregister a database from the recovery catalog.
See Also:
"DROP DATABASE" to learn how to delete a database and unregister it with one command. |
SET
DBID
to identify the database if RMAN is not connected to the target database and the database_name is not unique in the recovery catalog.In this example, you connect to the target database test1
and then unregister it:
rman TARGET SYS/oracle@test1 CATALOG rman/rman@catdb RMAN> UNREGISTER DATABASE NOPROMPT;
The following UNIX shell script unregisters database testdb
from the recovery catalog. Because multiple databases called testdb
are registered in the recovery catalog, and because RMAN is not connected to the target database (which has already been deleted from the file system), you must run SET
DBID
:
rman CATALOG rman/rman@catdb RMAN> RUN { SET DBID 1334531173; # specifies test database by DBID UNREGISTER DATABASE testdb NOPROMPT; }