You are on page 1of 3

DROP DATABASE

Pgina 1 de 3

Hide Navigation Oracle Database Backup


Search

This Book
Entire
Library
Advanced Search
Reference
Home Master Index
Master Glossary Book
List Data Dictionary
SQL Keywords
Acronyms
Initialization
Parameters Error
Messages
Contents
Oracle Database
Backup and
Recovery Reference
Preface
About RMAN
Commands
RMAN
Commands
RMAN Subclauses
Recovery Catalog
Views
Deprecated RMAN
Syntax
RMAN
Compatibility
Categories
Installation
Getting Started
Administration
Application
Development
Grid Computing
High Availability
Data Warehousing
Content
Management and
Unstructured Data
Information
Integration
Security
Videos

and Recovery Reference


11g Release 1 (11.1)
B28273-03

Home Book Contents Index Master Contact


List
Index
Us
PDF Mobi ePub

Previous Next

DROP DATABASE
Purpose
Use the DROP DATABASE command to delete the target database and, if
RMAN is connected to a recovery catalog, unregister it. RMAN removes all
datafiles, online redo logs, and control files belonging to the target
database. By default, RMAN prompts for confirmation.

Prerequisites
Execute this command only at the RMAN prompt. You must be connected
to a target database. The target database must be mounted exclusive and
not open, and started in RESTRICT mode.

Syntax
dropDatabase::=

Description of the illustration dropdatabase.gif

Semantics
Syntax Element

Description

INCLUDING BACKUPS Deletes backup sets, proxy copies, image copies, and
archived redo logs associated with the target database
from all configured device types.
Note: If you have been using a recovery catalog but run
RMAN in NOCATALOG mode when you drop the
database, then RMAN will not delete any backups which

http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsynta019.htm

03/06/2014

DROP DATABASE

Hide Navigation

Pgina 2 de 3

Syntax Element

are known to the recovery catalog but no longer exist in


the target database control file.

Search

This Book
Entire
Library
Advanced Search
Reference
Home Master Index
Master Glossary Book
List Data Dictionary
SQL Keywords
Acronyms
Initialization
Parameters Error
Messages
Contents
Oracle Database
Backup and
Recovery Reference
Preface
About RMAN
Commands
RMAN
Commands
RMAN Subclauses
Recovery Catalog
Views
Deprecated RMAN
Syntax
RMAN
Compatibility
Categories
Installation
Getting Started
Administration
Application
Development
Grid Computing
High Availability
Data Warehousing
Content
Management and
Unstructured Data
Information
Integration
Security
Videos

Description

Does not prompt for confirmation before deleting the


database.

NOPROMPT

Example
Example 2-69 Deleting a Database
In this example, you want to delete a test database called test1 that is
registered in the recovery catalog. You start the RMAN client, connect to
database test1 as TARGET, and connect to the recovery catalog. You then
run the following commands to delete the target database files, as well as
all backups, copies, and archived logs associated with the database:
RMAN> CONNECT TARGET SYS@test1
target database Password: password
connected to target database: TEST1 (DBID=39525561)
RMAN> STARTUP FORCE MOUNT
RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
RMAN> DROP DATABASE INCLUDING BACKUPS NOPROMPT;

Need an example? Tell us more.

Reader Comment
Subject
From

Anonymous (or Sign In)

http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsynta019.htm

03/06/2014

DROP DATABASE

Hide Navigation
Search

This Book
Entire
Library
Advanced Search
Reference
Home Master Index
Master Glossary Book
List Data Dictionary
SQL Keywords
Acronyms
Initialization
Parameters Error
Messages

Pgina 3 de 3

Comments, corrections, and suggestions are forwarded to authors every


week. By submitting, you confirm you agree to the terms and conditions.
Use the OTN forums for product questions. For support or consulting, file
a service request through My Oracle Support.
Submit

Copyright 2004,

Previous Next 2008, Oracle. All rights reserved. Home Book Contents Index Master
List
Index
Legal Notices

Contents
Oracle Database
Backup and
Recovery Reference
Preface
About RMAN
Commands
RMAN
Commands
RMAN Subclauses
Recovery Catalog
Views
Deprecated RMAN
Syntax
RMAN
Compatibility
Categories
Installation
Getting Started
Administration
Application
Development
Grid Computing
High Availability
Data Warehousing
Content
Management and
Unstructured Data
Information
Integration
Security
Videos

http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsynta019.htm

03/06/2014

You might also like