Name

ALTER DATABASE

Synopsis

This command is analogous to the SQL ALTER DATABASE command. It is used to mount and open a database from the RMAN prompt. This command can be executed from within the RUN command or directly from the RMAN prompt.

Syntax

{ ALTER DATABASE { MOUNT | OPEN [RESETLOGS] }
| { MOUNT | OPEN [RESETLOGS] DATABASE };

Keywords

MOUNT

Mounts the database without opening it.

OPEN

Opens the database.

RESETLOGS

Resets the online redo logs to start at sequence number 1. If the RMAN ALTER DATABASE command is used, the target database is automatically reset within the catalog. If you use the SQL*Plus command, you must execute the RMAN RESET DATABASE command in order to reset the target database within the catalog.

Get Oracle RMAN Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.