zoukankan      html  css  js  c++  java
  • Standby异常解决

            依照计划,今天完成了将去年第四季度的数据转到了历史数据库。然后删除了生产库的数据,并删除了去年第四季度的tablespace.为了避免忘记在本年度第四季度来临时忘记建立tablespace,立刻建立了今天第四季度的tablespace.

            但是问题来了。发现standby数据库无法apply.因为standby在apply到删除Q4 tablespace之后,并未删除掉datafile,而在create 新的tablespace时,发现有数据文件存在,就失败了。

            立刻停止standby 的log  apply.sgutdown standby库,删除被删掉tablespace的数据文件。

            在主库,alter tablespace Q4 begin backup,将新建的datafile  copy到standby对应的位置。在主库alter database create standby controlfile as 'd:\standby.ctl';将新生的standby controlfile取代standby的控制文件。

            在standby,

            startup nomount;

            alter database mount standby database;

            alter database recover managed sandby database disconnect from session;

      搞定。

            

  • 相关阅读:
    获取指定字符传的长度或者高度
    检测身份证号码是否合法
    tabbar添加小红点
    单例的简单构造
    iOS程序内发短信
    多项式加法运算 使用链表实现
    链表的数组实现
    使用链表实现堆栈
    使用链表实现堆栈
    求最大子列和的几种方法
  • 原文地址:https://www.cnblogs.com/kevinsun/p/1443941.html
Copyright © 2011-2022 走看看