在即时恢复数据库时,您可以直接使用该数据库。 然而,恢复过程会在后端运行,只有在数据库完全恢复后才可以使用所有文件。
注意:有关卷还原的更多信息,请参阅“如何在目标节点上还原卷”。
遵循这些步骤:
# df | grep ‘target_volume’
示例:# df | grep '/dev/sdb1'
#mount <nfs_session_path>:/nfs <session_location_on_local>
示例:#mount xxx.xxx.xxx.xxx:/nfs /CRE_ROOT
#. /d2drestorevol --command=restore --storage-path=<session_location_on_local> --node=<oracle_server> --rp=last --source-volume=<mount_point_for_oracle_data_volume> --target-volume=<restore_target_volume_name> --mount-target=<mount_point_for_oracle_data_volume> --quick-recovery
示例:#。 /d2drestorevol --command=restore --storage-path=/CRE_ROOT --node=rh63-v2 --rp=last --source-volume=/opt/oracle --target-volume=/dev/sdb1 --mount-target=/opt/oracle --quick-recovery
在还原作业启动后,您可以立即启动 Oracle 数据库。 您不必等待数据库恢复完成。
$sqlplus / as sysdba SQL>startup;
Oracle 数据库将打开,并且您可以执行常规数据库操作,如查询、插入、删除、更新数据等。
Oracle 数据库将立即恢复。
|
版权所有 © 2015 Arcserve。
保留所有权利。
|
|