1.首先使用RMAN做一次备份(必需有次备份)
rman target /
backup database;
or
backup database root;
backup pluggable database pdb;
2.在pdb中创建test用户并授权
sqlplus / as sysdba
alter session set container=pdb;
cr...
分类:
数据库 时间:
2014-06-11 00:37:06
阅读次数:
403
只需要冲定义该对象的
to_yaml_properties 方法, 只返回要序列化的字段就可以了
class A
attr_reader :a
attr_reader :b
def initialize(x,y)
@a = x
@b = y
end
end
a = A.new(1,3)
p a.to_yaml # => "--- !ruby/object:A...
分类:
其他好文 时间:
2014-06-10 15:54:19
阅读次数:
172
问题:
给定一个有序链表,生成对应的平衡二叉搜索树。
分析
见Convert
Sorted Array to Binary Search Tree
实现:
TreeNode *buildTree(ListNode* head, ListNode *end){
if(head == NULL || head == end)
return NULL;
...
分类:
其他好文 时间:
2014-06-10 07:17:29
阅读次数:
264
1.泛型算法:
大多数算法定义在头文件algorithm中,标准库还在头文件numeric中定义了一组数值泛型算法
举例:
find函数用于找出容器中一个特定的值,有三个参数
int val = 10;//val为我们需要查找的值
auto result = find(vec.begin(), vec.end(), val):
cout
find将前两个表示范围的迭代器内的元素与va...
分类:
编程语言 时间:
2014-06-09 23:35:41
阅读次数:
279
自定义TabBarController Push下一级Controller时 会报这样的错误:Unbalanced calls to begin/end appearance transitions for .
网上的一些回答,都说是动画引起的,解决方法就是,加一个BOOL型的变量,检查是否在做动画。但是,这并没有解决我的问题!
所以真正的答案是...
分类:
移动开发 时间:
2014-06-09 23:20:54
阅读次数:
343
建议删除一些不必要的垃圾文件:把你不清楚的文件夹都删除掉就行了,既节省空间又能保证软件稳定性,你知道的比如Camera、Ringtones、Recorder、Photo、
Music、Backup、Video保留我就是只保留了这7个与个人相关的文件夹,其余的文件全部都删除掉了,放心,很安全莫名其妙的...
分类:
移动开发 时间:
2014-06-09 19:04:43
阅读次数:
323
主席树 又称函数式线段树,又称可持久化线段树……缺点是内存有点儿大…… 1 type
node1=record 2 l,r,sum:longint; 3 end; 4 node2=record 5 x,idx:longint; 6 end; 7
va...
分类:
其他好文 时间:
2014-06-08 20:44:49
阅读次数:
256
堆排序
// 测试堆排序
// @start:调整的起点
// @end:调整的终点,在堆排序的过程中,不断地减小调整区间,end参数起作用
void SiftDown(int arr[], int start, int end)
{
int i = start;
int j = 2*i + 1; // j记录的是i结点的左孩子
int temp = arr[i];
...
分类:
其他好文 时间:
2014-06-08 16:19:45
阅读次数:
187
1、首先加入ASI开源库
2、
WebImageView.h
#import
#import "ASIHTTPRequest.h"
@interface WebImageView : UIImageView
- (void)setImageURL:(NSURL *)url;
@end
WebImageView.m
#import "WebImageView.h"
#import "ASIHTTPRequest.h"
...
分类:
移动开发 时间:
2014-06-08 10:54:39
阅读次数:
217
freemarker自定义标签
1、错误描述
freemarker.core.ParseException: Unexpected end of file reached.
at freemarker.core.FMParser.generateParseException(FMParser.java:4702)
at freemarker.core.FMParser.jj_co...
分类:
其他好文 时间:
2014-06-08 10:00:35
阅读次数:
226