[Dg] command in several ways dg application of standby redo log

Application start standby redo log
operation on the standby database, the main use of the second command
# Apply the Foreground the Session Never Returns an until the redo Cancel..
The SQL> the ALTER DATABASE DATABASE the RECOVER the MANAGED the STANDBY;
 
. # Control Apply the redo Background The IS returned to the session Once The . the apply Process iS Started
SQL> the ALTER DATABASE RECOVER the MANAGED STANDBY DATABASE DISCONNECT the FROM SESSION;
 
· If you want to cancel the application log
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE cANCEL ;

· to create application logs delay, then
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE cANCEL ;
the SQL> the ALTER DATABASE the RECOVER the MANAGED the STANDBY the DISCONNECT the FROM DATABASE the SESSION the DELAY 30;
 
the SQL> the ALTER DATABASE DATABASE the RECOVER the MANAGED the STANDBY the CANCEL;
SQL> the ALTER DATABASE RECOVER the MANAGED STANDBY DATABASE NODELAY DISCONNECT the FROM SESSION;

· If you want real-time application log, then
the ALTER DATABASE RECOVER the MANAGED STANDBY DATABASE the USING CURRENT LOGFILE;
 
1) Start Redo Apply
 
     before starting the log application services in the physical Standby database, make sure the physical Standby the database is up, load, and then use the alter database recover managed standby database SQL statement starts Redo Apply. You can explicitly specify Redo Apply runs as a foreground session or a background process, and start real-time applications.
 
a) Execute the following SQL statement to start Redo Apply at the front desk.
 
 SQL> alter database recover managed standby database ;
 
if you start a foreground session, control is not returned to the command prompt.
 
b) execute the following SQL statement row start Redo Apply in the background.
 
 SQL> alter database recover managed standby database disconnect from session;
 
above statement begins a separate server process and returns immediately control to the user, when the recovery process is running in the background, execution recover the statement window can continue to perform other work, DISCONNECT FROM SESSION option indicates that Redo Apply runs in the background session. Above two methods will only occur when the log switch before application log.
 
c) execute the following SQL statement starts Redo start real-time applications in the foreground:
 
SQL> the ALTER Database Recover a using Database Managed STANDBY Current logfile;
 
real-time applications contain USING CURRENT LOGFILE clause indicates Redo when received on the application
 
d) execute the following SQL statement started in the background Redo real-time applications:
 
SQL> the ALTER Database Recover a using Database Managed STANDBY Current logfile disconnect from the session;
 
2) stop Redo apply
 
execute the following SQL statement to stop Redo apply;
 
SQL> Database Recover the ALTER Managed Database STANDBY the Cancel;
 

Guess you like

Origin blog.csdn.net/viviliving/article/details/93635572