ORACLE备份恢复:Performing Time-Based Incomplete Recovery

本文详细介绍了在数据库遭遇部分故障后,如何通过时间基不完整恢复过程进行数据恢复。主要包括准备阶段、备份数据文件恢复、使用RECOVER DATABASE UNTIL TIME语句执行时间基恢复、应用redo日志及在线日志、以及最后以RESETLOGS模式打开数据库等关键步骤。

Performing Time-Based Incomplete Recovery

This section describes how to perform the time-based media recovery procedure in the following stages:

  1. Prepare for recovery by backing up the database and correct any media failures as described in "Preparing for Incomplete Recovery".
  2. Restore backup datafiles as described in "Restoring Datafiles Before Performing Incomplete Recovery". If you have a current control file, then do not restore a backup control file.
  3. Perform media recovery on the restored backup by using the following procedure.

To perform time-based recovery:

  1. Issue the RECOVER DATABASE UNTIL TIME statement to begin time-based recovery. The time is always specified using the following format, delimited by single quotation marks: 'YYYY-MM-DD:HH24:MI:SS'. The following statement recovers the database up to a specified time:
  2. RECOVER DATABASE UNTIL TIME '2000-12-31:12:47:30'

If a backup of the control file is being used with this incomplete recovery (that is, a control file backup or re-created control file was restored), then indicate this in the statement used to start recovery. The following statement recovers the database up to a specified time using a control file backup:

RECOVER DATABASE UNTIL TIME '2000-12-31:12:47:30' USING BACKUP CONTROLFILE

  1. Apply the necessary redo log files to recover the restored datafiles. Unless the application of files is automated, Oracle supplies the name it expects to find from LOG_ARCHIVE_DEST_1 and requests you to stop or proceed with applying the log file. If the control file is a backup, then you after the archived logs have been applied you must supply the names of the online logs in order to apply their changes.
  2. Apply redo logs until the last required redo log has been applied to the restored datafiles. Oracle automatically terminates the recovery when it reaches the correct time, and returns a message indicating whether recovery is successful.
  3. Open the database in RESETLOGS mode. You must always reset the online logs after incomplete recovery or recovery with a backup control file. For example, enter:
  4. ALTER DATABASE OPEN RESETLOGS;

See Also:

"Opening the Database After User-Managed Media Recovery"

代码下载链接: https://pan.quark.cn/s/a4b39357ea24 依据所提供的文件资料,可以归纳出以下关于“数字三角形 C++”的相关知识要点: ## 数字三角形问题概述 数字三角形问题是指在一个由数字构成的三角形中,寻找一条从顶部到底部的路径,使得该路径上数字的总和达到最大值。这个问题可以通过动态规划技术进行求解。 ### 问题定义 给定一个数字三角形,其结构如下所示: ``` 3 7 4 2 4 6 8 5 9 3 ``` 目标是从顶端出发到达最底端的一行,并找到一条路径,使得该路径上数字的累计值最大。例如,在上述示例中,路径 `3 → 7 → 4 → 9` 的总和为 23,这是所有可能路径中的最大数值。 ### 动态规划算法 #### 解决思路 1. **初始设定**:假定三角形的第0行为1个元素,第1行为2个元素,依此类推。 2. **递推关系式**:对于每一个位置 `(row, col)`,可以选择下一行的两个相邻元素之一进行相加,即 `tridata[row][col] += max(tridata[row+1][col], tridata[row+1][col+1])`。 3. **求解终点**:最终的最大值位于三角形的顶端位置,即 `tridata[0][0]`。 #### 算法步骤 1. **输入阶段**:读取用户输入的三角形高度 `n` 以及各节点的数值。 2. **计算环节**:从倒数第二行开始,逐行逐列更新每个节点的值。 3. **结果输出**:输出计算得出的最大路径和。 ### 示例代码解析 ```cpp int GetMax(int tridata[20][20], int &Num) { // 从倒数第二行开始...
内容概要:本文系统研究了同步电机与构网型变流器在低惯量电力系统中的频率稳定性问题,重点基于IEEE9节点系统构建混合拓扑结构,开展电磁暂态仿真分析。研究涵盖了构网型变流器的多种先进控制策略建模与对比,包括下垂控制、虚拟同步机控制(VSM)、匹配控制及可调度虚拟振荡器控制(dVOC),深入探讨其对系统频率响应特性的影响。同时,研究集成了基于KPCA的故障检测方法、储能系统以经济效益最大化为目标的运行优化策略,并结合Matlab/Simulink平台实现了完整的仿真验证体系,为高比例新能源接入下的电力系统稳定运行提供了理论支持与技术路径。; 适合人群:具备电力系统分析、自动控制理论及新能源并网技术背景的科研人员与工程技术人员,特别适用于从事微电网控制、变流器建模、频率稳定与低惯量系统研究的研究生、高校教师及电力领域研发工程师。; 使用场景及目标:①用于高校与科研机构中对构网型变流器控制策略的教学演示与仿真验证;②支撑低惯量电力系统中频率稳定问题的机理分析与解决方案设计;③为实际工程中储能配置、故障快速识别与优化运行提供仿真工具链与决策依据。; 阅读建议:建议结合文中提供的Matlab/Simulink代码资源进行动手实践,重点关注不同控制策略的模型搭建细节、参数 tuning 过程及仿真结果的动态对比分析,同时关注故障检测与储能优化模块的集成实现方式,推荐通过公众号“荔枝科研社”获取完整资料包与技术支持,以全面提升仿真复现与科研创新能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值