环境: OS: CentOS 6.5 X64 DB: oracle 10.2.0.5故障:之前由于错误激活备库主写导致主备日志同步,重建备库1.关闭备库,删除数据文件及控制文件,redo文件rm -rf *.log rm -rf *.ctl rm -rf *.dbf2.主库备库channel OR....
分类:
其他好文 时间:
2014-09-13 19:56:45
阅读次数:
398
使用perl来监控ORACLEDATAGUARD脚本#!/usr/bin/perl
usestrict;
usewarnings;
useDBI;#LoadtheDBImodule
my$ZabbixServer="192.168.3.24";
my$ZabbixPort="10051";
my$HOSTNAME="ora2";
my$SenderCMD="/usr/local/zabbix/bin/zabbix_sender";
my$Primtns="test_st";
my$Stan..
分类:
数据库 时间:
2014-09-12 15:23:34
阅读次数:
269
DG在线日志组大小修改环境(单实例,Centos 6.5 X64,oracle 10.2.0.5,filesystem存储)REDO ONLINE LOGselect * from v$logfile where type='STANDBY'; #查询为standby log 三组STANDBY L...
分类:
其他好文 时间:
2014-09-12 01:04:12
阅读次数:
328
setnx("Lock:{$key}", self::$expire))) { break; } if($acquired = (self::recover($key))) { ...
分类:
其他好文 时间:
2014-09-06 17:20:43
阅读次数:
294
今天来模拟一个非归档模式下恢复OFFLINE数据文件的场景,主要有2种情况:
一种是在线日志没有被覆盖,另一种是在线日志被覆盖。
第一种情况比较简单,数据库自身就能处理,而第二种情况稍显复杂,但也并不难,下面开始整个过程:
一、在线日志没有被覆盖的场景
--切换数据库到非归档模式
SQL> archive log list
Database log mode...
分类:
其他好文 时间:
2014-09-05 16:16:04
阅读次数:
317
数据库没有备份的情况下,数据库所在服务器由于意外断电,导致服务器启动之后,Oracle数据库startup报错.1. 数据库没开归档模式2. 无备份解决方案:1234567891011121314151617181920212223SQL>startup mountSQL>recover datab...
分类:
数据库 时间:
2014-09-02 15:27:54
阅读次数:
266
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight forward. Could you devis...
分类:
其他好文 时间:
2014-08-29 21:28:08
阅读次数:
313
LeetCode: Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure....
分类:
其他好文 时间:
2014-08-28 23:58:36
阅读次数:
385
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2014-08-28 19:33:55
阅读次数:
266
panic 抛出异常 recover 捕获异常 捕获后会返回外层函数继续执行 defer 函数退出之前执行 func panicOut() { print(5) panic("error") print(6) } func recoverHere() { print(3) defer func(){ err := recover(...
分类:
编程语言 时间:
2014-08-28 16:23:10
阅读次数:
208