This article gives the steps in performing a RMAN recovery of a database in 12c. This procedure was performed on a OEL 7.2 and assumes that a full backup has already successfully completed.
- Logon to your database server as the Oracle software owner.
mylinux# su – oracle
Password:
Last login: Sun Sep 18 13:45:52 UTC 2016 on pts/1
mylinux#
- Start RMAN and connect to target database.
mylinux# rman
Recovery Manager: Release 12.1.0.2.0 – Production on Mon Sep 19 13:46:06 2016
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
RMAN> connect target /
connected to target database: ORCL (DBID=3153769526)
RMAN>
- Issue a startup mount command, do not open the database.
RMAN> startup mount;
- Use the SHOW command to determine channels to use, or the CONFIGURE command to create channel.
RMAN> show all;
- Issue the RESTORE command.
RMAN> restore database;
- Issue the RECOVER command.
RMAN> recover database;
- Issue the database OPEN command.
RMAN> alter database open;
- This completes the recovery of Oracle 12c database.
Larry Catt
OCP