建索引时,我们为了建索引快,会加上并行,加上并行之后,此列索引就会是并行了。访问有并行度的索引时,CBO可能可能会考虑并行执行,这可能会引发一些问题,如在服务器资源紧张的时候用并行会引起更加严重的争用。当使用并行后,需要把并行度改回来。
SQL> drop table test purge;
SQL> create table test as select * from dba_objects...
分类:
数据库 时间:
2014-06-03 05:48:26
阅读次数:
375
#include
#include
#include
#include
using namespace std;
int pow(int x, int n)
{
int result = 1;
while (n > 0)
{
if (n % 2==1)
result *= x;...
分类:
其他好文 时间:
2014-06-03 05:08:33
阅读次数:
399
【题目】
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
【题意】
给定一个已排序的链表,删除其中的重复元素
【思路】
维护两个指针prev和cur, cur指针负责扫描链表,prev指向cur的前一...
分类:
其他好文 时间:
2014-06-03 04:05:39
阅读次数:
231
#include
__global__ void childKernel(int i)
{
int tid = blockIdx.x*blockDim.x+threadIdx.x;
printf("parent:%d,child:%d\n",i,tid);
for(int j=i;j<i+10;j++)
{
printf(",%d",j);
}
printf("\n");...
分类:
其他好文 时间:
2014-06-03 03:58:15
阅读次数:
206
ssh 免密码登录
1. ssh-keygen -t rsa
三次回车
2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
3. 验证 ssh localhost 如果不需要密码登录,表示设置成功
4. 面密码登录其他机器
ssh-copy-id -i hostname
注意:hostname必须在...
分类:
系统相关 时间:
2014-06-03 02:45:49
阅读次数:
353
Perl中一个很重要的模块就是DBI模块(Perl Database Interface,数据库接口)。DBI模块为很多不同的数据库提供了一个统一的接口。Perl通过此接口可以很容易对数据库进行操作。
下面说下Perl如何对MySQL数据库进行操作。
1. 首先要确保Perl及MySQL数据库已经安装。然后用cpan或者是ppm图形化界面来安装.
cpan> install...
分类:
数据库 时间:
2014-06-03 02:37:21
阅读次数:
284
2014-05-31 BaoXinjian In Capgemini1. XML
Publisher概念(1).数据逻辑(2).报表布局---->XML Publisher---->报表输出(3).翻译转化2. 开发Xml
publisher流程报表(1). 设计数据源文件---->注册数据源文件(...
分类:
其他好文 时间:
2014-05-31 19:36:44
阅读次数:
314
第一范式,第二范式,第三范式Posted on2012-05-09
16:30GISerYang阅读(6472) 评论(0)编辑收藏第一范式存在非主属性对码的部分依赖关系 R(A,B,C) AB是码 C是非主属性
B-->C B决定C C部分依赖于B第一范式定义:如果关系R 中所有属性的值域都是单纯...
分类:
其他好文 时间:
2014-05-31 19:34:54
阅读次数:
284
在使用ASP.NET框架开发:若要在Html网页中加入设置,但想通过程序动态加入:1、如果是ASP.NET4.0以前版本:使用HtmlMeta类加入设置://首先我们应该创立HtmlMeta类实体(命名空间:System.Web.UI.HtmlControls)HtmlMeta
meta1=new ...
分类:
Web程序 时间:
2014-05-31 19:34:17
阅读次数:
330
1.矩阵分解假设一个矩阵Data是m行n列,SVD(奇异值分解)将Data分解为U,E,VT
三个矩阵:Datam*n=Um*kEk*kVTk*nE是一个对角矩阵,对角元素为奇异值,对应Data的奇异值,即Data*DataT特征值的平方2.选取特征下面确定选取哪几维特征实现降维,去除噪声和冗余信息...
分类:
其他好文 时间:
2014-05-31 18:45:57
阅读次数:
327