create table t(student_id number,course varchar2(10),score number);insert into t values(1,'语文',80);insert into t values(1,'数学',85);insert into t value...
分类:
数据库 时间:
2014-10-28 11:59:57
阅读次数:
153
几个常用用例:1.导出整个数据库mysqldump-u用户名-p数据库名>导出的文件名mysqldump-uwcnc-psmgp_apps_wcnc>wcnc.sql2.导出一个表mysqldump-u用户名-p数据库名表名>导出的文件名mysqldump-uwcnc-psmgp_apps_wcnc...
分类:
数据库 时间:
2014-10-28 11:52:17
阅读次数:
155
springmvc 文件上传、下载、预览。以二进制形式存放到数据库。数据库中的关于传入附件的字段我写了2个:一个存放内容accessory,一个存放文件的后缀filetype上传:首先需要2个必须的jar:commons.io-1.4.0.jarcommons.fileupload-1.2.0.ja...
分类:
数据库 时间:
2014-10-28 11:45:24
阅读次数:
167
转载:http://www.cnblogs.com/lyhabc/p/3322437.html挺好用的SQLSERVER数据库自动备份工具SQLBackupAndFTP(功能全面)这个工具主要就是自动备份数据库,一键还原数据库,发送备份数据库日志报告到邮箱,自动压缩备份好的数据库定期执行数据库备份任...
分类:
数据库 时间:
2014-10-28 11:42:51
阅读次数:
188
配置11gR2RAC需要安装OracleGridInfrastructure软件、Oracle数据库软件,其中Grid软件等同于Oracle10g的Clusterware集群件。Oracle建议以不同的用户分别安装GridInfrastructure软件、Oracle数据库软件,我们这里以grid用...
分类:
数据库 时间:
2014-10-28 11:41:35
阅读次数:
224
System lockShow processlist在Show processlist输出中的Status项:5.1手册中没有的或者翻译有问题的,都附带5.5原文说明:After createThis occurs when the thread creates a table (includin...
分类:
数据库 时间:
2014-10-28 11:35:55
阅读次数:
206
如何最大限制利用cpu?如何最快速的扫描完大表。如果大表有主键,count(*)就会走主键,oracle只需要扫描主键就能完成。
假设这个表没有主键,那么count(*)的时候只能走全表扫描,数据就非常慢。这里用full(a)强制走全表来模拟。
--找100G以上的分区表
SQL> @getsegsize_big
Enter value for tablespace_name:
Enter v...
分类:
数据库 时间:
2014-10-28 10:25:54
阅读次数:
194
1.查询哪些数据库对象使用了某个表SELECT b.[name], a.[definition]FROM sys.all_sql_modules a, sysobjects bWHERE a.[object_id] = id AND definition LIKE '%表名%'2.查询表的某一列,将...
分类:
数据库 时间:
2014-10-28 09:20:31
阅读次数:
213
C:\Program Files (x86)\SQLIO>sqlio -?sqlio v1.5.SG-?: invalid optionUsage: sqlio [options] [...] [options] may include any of the following: ...
分类:
数据库 时间:
2014-10-28 09:17:26
阅读次数:
336
上一篇博客讲了可以使用慢查询日志定位耗时sql,使用explain命令查看mysql的执行计划,以及使用profiling工具查看语句执行真正耗时的地方,当定位了耗时之后怎样优化呢?这篇博客会介绍mysql中最简单快速的优化方法——添加索引。一、索引的添加 ...
分类:
数据库 时间:
2014-10-28 09:13:29
阅读次数:
247
1. Set password for SYS in password file:orapwd file=$ORACLE_HOME/dbs/orapw2. Drop repos data copied from the original database ( you may need to unlo...
分类:
数据库 时间:
2014-10-28 07:03:56
阅读次数:
193
环境:centos6.5mysql5.6gearman简介:Gearman是一个支持分布式的任务分发框架。设计简洁,获得了非常广泛的支持。一个典型的Gearman应用包括以下这些部分:GearmanJobServer:Gearman核心程序,以守护进程形式运行在后台GearmanClient:可以理解为任务的收件员,比如我要在后..
分类:
数据库 时间:
2014-10-28 02:16:06
阅读次数:
345
./sqlmap.py-u‘目标网址‘./sqlmap.py-u‘目标网址‘--dbs-v0显示数据库./sqlmap.py-u‘目标网址‘-D数据库--tables查表./sqlmap.py-u‘目标网址‘-D数据库-T表--columns列./sqlmap.py-u‘目标网址‘-D数据库-T表--columns--dump导出注入分法不同,种类不同,来个简单的分类:1.get型:s..
分类:
数据库 时间:
2014-10-28 02:09:05
阅读次数:
331
In the software development, we usually are faced with a common question of exporting or importing data from database. So in this blog we will together study the mongoddb export and mongodb import.
...
分类:
数据库 时间:
2014-10-28 02:07:13
阅读次数:
176
in last blog,we talked about how to export data from mongo database. now in this blog, on the contrary, we focus on how to import data to database.
before doing our experiment, we delete the user co...
分类:
数据库 时间:
2014-10-28 02:05:37
阅读次数:
252
坑这绝对是我碰计算机以来遇到的第一大坑!症状:在Linux主机上远程登录,执行一个简单的Oracle的JDBC连接程序(jar包),结果硬生生的卡在了连接建立验证阶段,然后等上几分钟后因为连接超时,连接被远端的Oracle服务器reset,于是报了connection reset exception...
分类:
数据库 时间:
2014-10-28 02:03:27
阅读次数:
177
Geodatabase以层次结构的数据对象来组织地理数据。 这些数据对象存储在要素类(Feature Classes)、对象类(0bject classes)和数据集(Feature datasets)中。 Object Class可以理解为是一个在Geodatabase中储存非空间数据的表...
分类:
数据库 时间:
2014-10-28 02:00:48
阅读次数:
248