Sei sulla pagina 1di 4

Table: Task List: Preparing for Manual Recovery

Task

Procedure

1 Either makes a new backup of the primary datafiles or access an old Creating the Standby
backup.

Datafiles

2 Connect to the primary database and create the standby control file.

Creating the Standby


Control File

3 Copy the backup datafiles and standby control file from the primary Transferring Files to
site to the standby site.

the Standby Site

4 If you want to create a Net8 connection to the standby database, Configuring


create a service name.

the

tnsnames.ora File on
the Primary Site

5 If you want to create a Net8 connection to the standby database, Configuring

the

configure the listener on the standby site so that it can receive listener.ora File on
requests for connections to the standby instance.

the Standby Site

6 Create the standby initialization parameter file on the standby site and Configuring
set the initialization parameters for the standby database. Optionally, Standby
set

DB_FILE_NAME_CONVERT

the
Database

and Initialization

LOG_FILE_NAME_CONVERT to automatically rename primary Parameter File


files in the standby control file.
7 Start the standby instance and mount the standby database.

Starting the Standby


Instance

8 While connected to the standby database, manually change the names Manually Renaming
of the primary datafiles and redo logs in the standby control file for Standby Files Not
all

files

not

automatically

renamed

using Captured

DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT Conversion


in step 6. If step 6 renamed all files, skip this step.

Parameters

by

6.1.3
Creating the Standby Database Files
You can create a standby database on the same host as your primary database or on a separate
host. If you create your standby database on the same host, follow the creation procedure
carefully when creating the standby database files so that you do not overwrite files on the
primary database.
The creation of the standby database files occurs in three stages:
1

Creating the Standby Datafiles

Creating the Standby Control File

Transferring Files to the Standby Site

Creating the Standby Datafiles


First, make backups of your primary database datafiles. You create the standby datafiles from
these backups.
You can use any backup of the primary database so long as you have archived redo logs to
completely recover the database. The backup can be old or new, consistent or inconsistent. Hot
backups have the advantage of allowing you to keep the database open while performing the
backup. Nevertheless, you may prefer to make a new closed, consistent backup to prevent the
application of a large number of archived redo logs.
To make a consistent, whole database backup to serve as the basis for the standby
database:
1

Start a SQL*Plus session on your primary database and enable archiving on the primary
location. For example, enter:

SQL>startup mount;

SQL>alter database archivelog;


SQL>alter database open;

Potrebbero piacerti anche