Manually Log Shipping has to be done when the missing logs are very less in standby database.
Find the archives which are missing by issuing the following command. This would give the gap sequences,
SQL> select * from v$archive_gap
Or you can use the v$managed_standby view,
SQL> select sequence#,process,status from v$managed_standby;
Now, Copy the logs to the standby site from the primary site
Using the below command,
$ scp log_file_name_n.arc oracle@standby:/log/file/location/log_file_name_n.arc
Cancel the managed recovery process:
SQL> alter database recover managed standby database cancel
At standby site,register the logfiles at the standby site which are missing.Use this below command,
SQL> alter database register logfile '/log/file/location/log_file_name_n.arc'
Now apply would take place and your standby will become sync with the primary.
After performing the recovery ,start managed recovery process:
SQL> alter database recover managed standby database disconnect from session
Find the archives which are missing by issuing the following command. This would give the gap sequences,
SQL> select * from v$archive_gap
Or you can use the v$managed_standby view,
SQL> select sequence#,process,status from v$managed_standby;
Now, Copy the logs to the standby site from the primary site
Using the below command,
$ scp log_file_name_n.arc oracle@standby:/log/file/location/log_file_name_n.arc
Cancel the managed recovery process:
SQL> alter database recover managed standby database cancel
At standby site,register the logfiles at the standby site which are missing.Use this below command,
SQL> alter database register logfile '/log/file/location/log_file_name_n.arc'
Now apply would take place and your standby will become sync with the primary.
After performing the recovery ,start managed recovery process:
SQL> alter database recover managed standby database disconnect from session