写这个东西只是为了记录一下作为新手的自己经历,大家就不要吐得厉害哇,呵呵。。。。1、新建一个数据库名相同的数据库2、停止sql实例服务3、把数据库文件覆盖新的数据库文件4、启动实例服务5、执行以下语句alter 
database dbname set emergency--紧急模式goalter d...
                            
                            
                                分类:
其他好文   时间:
2014-05-19 17:36:08   
                                阅读次数:
224
                             
                    
                        
                            
                            
                                发生错误的代码:/*** 获取下载列表中的视频名称, * 若果存在添加的视频与它相同 * 
则提示用户该视频已经添加到下载列表 * 备注:添加的视频超过3时,程序会崩溃 * 抛出错误: android.dat...
                            
                            
                                分类:
移动开发   时间:
2014-05-19 16:49:38   
                                阅读次数:
2657
                             
                    
                        
                            
                            
                                为了解释本节的目的,首先想象一下,我们有包含了三个node的cluster,这个cluster有一个名称是blogs的index,这个index有两个primary 
shard。每个primary shard有两个replica。相对应的shard的数据备份不会在相同的node,因此,这个clust...
                            
                            
                                分类:
其他好文   时间:
2014-05-19 16:44:31   
                                阅读次数:
287
                             
                    
                        
                            
                            
                                当你index一个document的时候,这个document被存储在一个单独的primary 
shard上。ES是怎么知道一个document所属的shard的呢?当我们创建了一个新的document,ES是怎么知道这个document是应该存储在shard1上还是shard2上的呢?这个进程不能...
                            
                            
                                分类:
其他好文   时间:
2014-05-19 16:40:38   
                                阅读次数:
181
                             
                    
                        
                            
                            
                                http://searchoracle.techtarget.com/answer/Recover-database-using-backup-controlfile-until-cancel 
What is checked or what happens when we "run recover ...
                            
                            
                                分类:
数据库   时间:
2014-05-19 16:32:56   
                                阅读次数:
475
                             
                    
                        
                            
                            
                                一个文档可以从primary shard和任意一个相对应的replica 
shard中检索:就像上面图形中表示的,下面列出从primary shard或这replica 
shard检索document的步骤:1:客户端发送请求到node12:这个node使用document的_id判定documen...
                            
                            
                                分类:
其他好文   时间:
2014-05-19 15:30:30   
                                阅读次数:
251
                             
                    
                        
                            
                            
                                1      
HIVE入门操作
1.1      
连接环境
登陆成功显示如下:
输入 quit;
可退出hive环境
 
1.2      
查看数据库
show databases;
 
1.3      
创建数据库
create database mng;
 
1.4      
链接数据库
use mng;
成功显示如下:...
                            
                            
                                分类:
其他好文   时间:
2014-05-18 18:44:37   
                                阅读次数:
311
                             
                    
                        
                            
                            
                                MantisBT 在提交问题的时候,系统默认“分配”给备选账号,而不是姓名。这样在使用的时候非常不便。
可以通过修改配置文件来改变,找到MantisBT根目录下文件config_inc.php,用文本编辑器打开。代码如下:
<?php
	$g_hostname = 'XXX';
	$g_db_type = 'XXX';
	$g_database_name = 'XXX';
	$g_db...
                            
                            
                                分类:
其他好文   时间:
2014-05-18 18:42:37   
                                阅读次数:
303
                             
                    
                        
                            
                            
                                org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is o...
                            
                            
                                分类:
数据库   时间:
2014-05-18 06:19:21   
                                阅读次数:
547
                             
                    
                        
                            
                            
                                有时候数据库在占用时,想做一些操作,无法操作。可以尝试将数据库切换为单用户模式来操作。操作完之后再切换回多用户模式。命令如下:alter database 
数据库名 set Single_user --单用户alter database 数据库名 set multi_user --多用户或者sp_....
                            
                            
                                分类:
数据库   时间:
2014-05-17 18:27:33   
                                阅读次数:
645