18.5、Restoring Control Files
18.5.1、Restore Lost Copy of a Multiplexed Control File
18.5.1.1、Copying a Multiplexed Control File to a Nondefault Location
假设丢失控制文件的磁盘和文件系统不能再关联,那么必须修改CONTROL_FILES初始化...
分类:
数据库 时间:
2014-06-20 13:22:46
阅读次数:
259
【题目】
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
【题意】
给定一个已排序的数组(不存在重复元素),将它转换成一棵平衡二叉搜索树。
【思路】
由于平衡二叉树要求左右子树的高度差绝对值相遇等于1,也就是说左右子树尽可能包含相同数目节点。
则使用二分法来解本题即可。...
分类:
其他好文 时间:
2014-06-20 11:03:31
阅读次数:
246
【题目】
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
【题意】
判断二叉树是否是平衡二叉树
【思路】
平衡二...
分类:
其他好文 时间:
2014-06-20 11:02:54
阅读次数:
173
数据库修复工具 - 仅限 *.mdb 格式的Access 数据库
引言:
Access数据库操作有一严重Bug,当数据库文件内容增加时,其文件容量随之增加,但当删除数据库内容时,其数据库容量不会相应减少
e.g 当xfile文件中的某张表xxtable需要删除时,执行sql语句 delete * from xxtable
若 原文件容量为20M,但执行上条语句后文件大小还是20M,Access数据库文件大小并没有根据内容自动变小。shit!
该工具的出现用以解决该问题...
分类:
数据库 时间:
2014-06-20 10:35:30
阅读次数:
248
1、
??
Recover Binary Search Tree
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...
分类:
其他好文 时间:
2014-06-20 10:13:49
阅读次数:
243
【题目】
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ 9 20
/ 15 7
return its b...
分类:
其他好文 时间:
2014-06-20 09:42:30
阅读次数:
224
Given an array where elements are sorted in
ascending order, convert it to a height balanced BST./** * Definition for binary
tree * public class TreeN...
分类:
其他好文 时间:
2014-06-11 21:58:10
阅读次数:
300
Incomputer science, aheapis a
specializedtree-baseddata structurethat satisfies theheap property:If A is a
parentnodeof B then the key of node A is or...
分类:
其他好文 时间:
2014-06-11 09:23:53
阅读次数:
376
【题目】
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
【题意】
将一个有序链表转换成平衡二叉树
【思路】
思路跟Convert Sorted Array to Binary Search Tree完全一样...
分类:
其他好文 时间:
2014-06-07 16:20:05
阅读次数:
287
18.4、Restoring Datafiles and Archived Redo Logs
如果介质失败损坏一个或多个数据文件,恢复损坏的文件前必须还原数据文件。如果还原的位置不是原始位置,必须在控制文件显示数据文件的新位置。
在裸设备上还原数据文件的过程和在文件系统上是相同的。
模拟1、在testtbs01中创建表,插入数据,然后切换日志,备份归档日志,testtbs01的某个数据文件...
分类:
数据库 时间:
2014-06-07 16:14:03
阅读次数:
269