Welcome to the Oracle community forum, and interact with 2 million technical staff to access the configuration reproduction database. The following example demonstrates the command line configuration. This can also be done using the Enterprise Manager. Before we configure to reproduce the database, we need to take care of the following prerequisites. FlashRecoveryArea first, we need to configure a FlashRecover
Welcome to the Oracle Community Forum, interact with 2 million technical staff> go to configuration reproduction database. The following example demonstrates the command line configuration. This can also be done using the Enterprise Manager. Before we configure to reproduce the database, we need to take care of the following prerequisites. Flash Recovery Area first, we need to configure a Flash Recover
Welcome to the Oracle community forum and interact with 2 million technical staff> enter
Configure to reproduce the database
The following example demonstrates the command line configuration. This can also be done using the Enterprise Manager.
Before we configure to reproduce the database, we need to take care of the following prerequisites.
Flash Recovery Area
First, we need to configure a Flash Recovery Area (FRA ). In 10 Gb, this is a new thing. FRA is only a disk location for restoring related files. For recreating a database, a new background process named Recovery Writer (RVWR) is periodically written to the disk before the database from the SGA recreates the cached image, and serves as the re-occurrence log in FRA. The re-log is automatically managed by the Oracle database in FRA.
The cost of log reproduction is measured by space and performance. Space is a factor in the database write density. A 24-hour operation, writing 5% of data blocks as a log reproduction method will inevitably result in a 5% increase in the overall disk space. Because blocks are written at regular intervals rather than part of transactions, the impact on performance is negligible.
To configure FRA, you need to set the following initialization parameters:
Alter system set db_recovery_file_dest =
'C: \ oracle \ product \ 10.2.0 \ flash_recovery_area 'scope = both;
Alter system set db_recovery_file_dest_size = 10G scope = both; |
Archive
Next, we need to configure the archive. Again, we need to use FRA as our document log destination. Similar to traditional restoration, recreating a database requires archiving to restore committed transactions forward, after the time point before which the re-storage of the re-stored log is expected.
To minimize the configuration archive, run the following command in sequence:
|
SQL> startup mount
ORACLE instance started.
.
.
.
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 2
Next log sequence to archive 4
Current log sequence 4 |
Reproduce Database
After these prerequisites are configured, we are ready to configure and reproduce the database.
First, we need to set the reproduction and persistence goal. This initialization parameter is calculated in minutes, which indicates the time before which the database can be returned. The value determines the number and time range of logs to be reproduced in FRA. The following example sets it to 24 hours. It is important to understand that the retention period is not guaranteed. If FRA requires space, the records generated before the target retention time are automatically deleted. We will see later that we ensure that the log reproduction method is maintained in FRA. With the retention period settings, You can activate the replay database.
|
SQL> startup mount;
ORACLE instance started.
.
.
.
Database mounted.
SQL> alter system set db_flashback_retention_target = 1440 scope = both;
System altered.
SQL> alter database flashback on;
Database altered.
SQL> alter database open;
Database altered.
SQL> select flashback_on from v $ database;
FLASHBACK_ON
------------------
YES |
[1] [2] [3] [4]