using System;using System.Data;using System.Configuration;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Linq;u...
分类:
数据库 时间:
2015-03-12 16:52:30
阅读次数:
188
postgresql允许远程访问的配置修改
分类:
数据库 时间:
2015-03-12 16:52:05
阅读次数:
138
using System;using System.Collections.Generic;using System.Linq;using System.Text;//导命名空间using System.Data;using MySql.Data.MySqlClient;using System.C...
分类:
数据库 时间:
2015-03-12 16:48:40
阅读次数:
135
ORA-00932: inconsistent datatypes: expected NUMBER got CHAR00932. 00000 - "inconsistent datatypes: expected %s got %s"1 CASE XXXXX.FILE_TYPE 2 ...
分类:
数据库 时间:
2015-03-12 16:45:08
阅读次数:
4813
/********************************************************作者:版本:1.0创建时间:20020227修改时间:功能:小写金额转换成大写参数:n_LowerMoney 小写金额v_TransType 种类 -- 1: directly tran...
分类:
数据库 时间:
2015-03-12 16:45:57
阅读次数:
260
学习动态性能表第四篇-(1)-V$SQLTEXT 2007.5.29 本视图包括Shared pool中SQL语句的完整文本,一条SQL语句可能分成多个块被保存于多个记录内。 注:V$SQLAREA只包括头1000个字符。V$SQLTEXT中的常用列HASH_VALUE:SQL语句的Hash值A.....
分类:
数据库 时间:
2015-03-12 16:45:11
阅读次数:
138
函数返回类型描述例子结果string || stringtext字串连接'Post' || 'greSQL'PostgreSQLbit_length(string)int字串里二进制位的个数bit_length('jose')32char_length(string)int字串中的字符个数char_...
分类:
数据库 时间:
2015-03-12 16:44:21
阅读次数:
248
学习动态性能表第三篇-(1)-v$sq 2007.5.25V$SQL中存储具体的SQL语句。 一条语句可以映射多个cursor,因为对象所指的cursor可以有不同用户(如例1)。如果有多个cursor(子游标)存在,在V$SQLAREA为所有cursor提供集合信息。例1:这里介绍以下child....
分类:
数据库 时间:
2015-03-12 16:40:21
阅读次数:
172
yuminstallhttp://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpmyuminstallpostgresql-server发现如下问题:Error:Package:postgresql93-contrib-9.3.5-1PGDG.rhel6.i686(pgdg93)Requires:libcrypto.so.10(libcrypto.so.10)supostgresyuminstal..
分类:
数据库 时间:
2015-03-12 15:31:00
阅读次数:
494
1、安装从官方下载http://www.percona.com/downloads/XtraBackup/可选择编译版与二进制版,二进制版仍需安装依赖perl-DBD-MySQLyuminstallcmakegccgcc-c++libaiolibaio-develautomakeautoconfbzrbisonlibtoolncurses5-develyuminstallperl-DBD-MySQL编译安装cmake-DBUILD_CONFI..
分类:
数据库 时间:
2015-03-12 15:29:29
阅读次数:
237
环境:主库:192.168.1.1从库:192.168.1.2yuminstallwgetmv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backupwgethttp://mirrors.163.com/.help/CentOS6-Base-163.repomvCentOS6-Base-163.repo/etc/yum.repos.d/CentOS-Base.repoyumcleanallyummake..
分类:
数据库 时间:
2015-03-12 15:27:03
阅读次数:
213
#!/bin/envpythonimportparamiko,datetimehostname=‘X.X.X.X‘username=‘root‘password=‘xxxx‘port=22date=datetime.datetime.now().strftime(‘%Y-%m-%d‘)srcpath=‘/tmp/database_‘+date+‘_sql.gz‘despath=‘/data/yupptv-mysqlbackup/database_‘+date+‘_sql.gz‘printdespathdefs..
分类:
数据库 时间:
2015-03-12 15:25:27
阅读次数:
226
IwastryingtodropadatabaseinMySQLtodaybuteverytimeIdidIgottheerror:ERROR6(HY000):Errorondeleteof‘./database//db.opt‘(Errcode:13)ThiswasduetothefactpermissionsonthedatabasefolderwerenotallowingMySQLtodeletethefolder.Thereareacoupleofwaysyoucanfixthis,eitherth..
分类:
数据库 时间:
2015-03-12 15:24:43
阅读次数:
322
mysql双机主从集群架构,可以实现mysql数据库数据的安全性和高可用性。在每台mysql数据库服务器上安装一套mysql程序,数据库物理文件均在本机硬盘中,通过mysql主从复制架构,即时同步数据,如果主服务器mysql数据库宕机,另外一台备机可以通过手动切换暂时承担起全部功能,并..
分类:
数据库 时间:
2015-03-12 15:23:38
阅读次数:
208
1.出现Incorrectintegervalue:‘‘forcolumn‘id‘atrow1到mysqldmy.cnf修改修改成sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"2.Columncountdoesn‘tmatchvaluecountatrow1写的SQL语句里列的数目和后面的值的数目不一致insertinto表名(field1,field2,field3)values(‘a‘,..
分类:
数据库 时间:
2015-03-12 15:23:53
阅读次数:
193
网上下载了cactiez后,一键安装后感觉非常好用。不过添加了mysql监控却监控不了mysql都是空值。网上翻了下发现是有些参数没有改才这样的。现作记录首先进入cactiez服务器修改以下文件vim/var/www/html/scripts/ss_get_mysql_stats.php1.寻找以下参数,把用户名和密码都改为你想..
分类:
数据库 时间:
2015-03-12 15:20:26
阅读次数:
153
--MySQLdump10.15Distrib10.0.17-MariaDB,forLinux(x86_64)
--
--Host:localhostDatabase:HardSoft
--------------------------------------------------------
--Serverversion10.0.17-MariaDB
/*!40101SET@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT*/;
/*!40101SET@..
分类:
数据库 时间:
2015-03-12 15:17:30
阅读次数:
172