模拟数据文件丢失恢复,redolog、archivelog、controlfile文件未丢失的情况恢复。1、创建一个表空间、用户、分配权限、建表。a)createtablespaceHXW_WENdatafile‘D:\ORACLE\ORADATA\HXW168\HXW_WEN_D01.DBF‘size5Mautoextendonnext1Mmaxsize20M;b)createuserwenidentifiedbyzer..
分类:
数据库 时间:
2014-10-01 21:43:01
阅读次数:
358
---开启附加日志功能 SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination ...
分类:
其他好文 时间:
2014-10-01 21:00:31
阅读次数:
386
Ifyouhavelostorforgotroot
passwordofRHEL7,youcanfollowthissteptochangetoanewpassword,
thisisdifferentwiththeRHEL6single-usermode,1,pressebuttoninGRUB2bootscreen.2,attheendofLinuxlineaddinit=/bin/shandremove
‘rhgb‘and‘quiet‘3,Ctrl+xtobootthesystemwiththepara..
分类:
其他好文 时间:
2014-10-01 01:04:40
阅读次数:
369
ASM安全这个小节主要描写叙述与ASM相关的各种安全配置话题,像配置ASM须要的userids、groupids;ASM权限如SYSOPER,SYSDBA和新的SYSASM权限,最后还有ASM使用的ORACLEpassword文件,orapwd。一个ASM实例多个UNIX Userids假设使用一个...
分类:
数据库 时间:
2014-09-30 12:51:02
阅读次数:
324
本题是在中序遍历的基础上,找不合规范(不是递增)的树节点对,然后交换
首先看两种序列:
1. 1 3 2 4=>应该交换3和2
2. 4 3 2 1=>应交换4和1
这两种序列对应了不符合条件的BST的中序遍历序列的所有可能性---两个节点中序遍历相邻/不相邻
如果我们用一个数组swap保存所有中序遍历不递增的结果,那么这个数组只可能是2或者4的大小
而我们交换数组中节点对内容,只需交...
分类:
其他好文 时间:
2014-09-27 16:21:19
阅读次数:
151
OS5.0以后就开始可以使用ARC( Automatic Reference Counting:自动引用计数 )来代替之前的MRC(Manual Reference Counting:人工引用计数)。使用ARC会减少很多代码和忘了释放对象的苦恼。但是事情都有两面性。使用了ARC之后如果你想复用以前写过的使用MRC的类, 就会出报错。这时候怎么办?方法比较简单, 只需要做下面的一个步骤就可以解决:
...
分类:
移动开发 时间:
2014-09-24 19:41:27
阅读次数:
236
1.安装与配置 Setup oh-my-zshshould work with any recent release of Zsh. The minimum recommended version is 4.3.9. If not already installed, you can install Zsh using the command-line. The automatic...
分类:
其他好文 时间:
2014-09-22 16:22:53
阅读次数:
301
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-09-19 01:06:54
阅读次数:
301
一、创建数据库1、创建一个名为“test”的数据库db2 “create database test automatic storage yes on ‘/home/db2inst1/dbdata’ dbpath on ‘/home/db2inst1/dbctl’using codeset utf-...
分类:
数据库 时间:
2014-09-17 23:07:22
阅读次数:
1594
场景:某天执行了deletefromt1操作忘加where条件,我们需要通过昨天的全量备份+误操作之前的binlog增量备份,加以恢复。在通过mysqlbinlog解析时,需要用sed命令去过滤出t1表的insert、delete、update操作,如果binlog文件很多,并且默认是1G的大小,用这种方法费时费力,很麻..
分类:
其他好文 时间:
2014-09-16 02:46:00
阅读次数:
223