11 2009 档案
摘要:Labels:MySQL,MySQL_Problem_Solving 今天一早突然系统突然报慢,查了一下是以下语句:6177700 username ip db——name Query 549 Copying to tmp table SELECT ....................原因如下:Copyingto tmp table on disk The tempor...
阅读全文
摘要:
google的app engine已经开放注册了,免费提供500M的空间,每个月500W的PV,搞个个人网站绰绰有余。只支持python。
阅读全文

摘要:1. Monitor:mysql -uroot -ppassword databaseName -e "show full processlist" | grep -v Sleepmysql -uroot -ppassword databaseName -e "show full processlist" | grep -v Sleep | sort -k6rn >sort.tmp //...
阅读全文
摘要:Software:SQL Server 2005 (win 2003)Oracle 10gR2 (Redhat AS 4 update 2)1. isntall 10201_client_win32.zip under D:\oracleif the D: drive is NTFS you have to give ALL rights to the user2. listener.ora an...
阅读全文
摘要:Oracle数据导出到MySql1. 使用默认的结束符号导入到MySql数据库中:LOAD DATA LOCAL INFILE 'd:\oracle.txt' IGNORE INTO TABLE alarmLog 此时Fields的结束符默认的就是'\t'制表符,而不是"\t"字符串.2. 当设定Fields结束符导入到MySql数据库中:LOAD DATA LOCAL INFILE 'd:\or...
阅读全文
摘要:
Table size 30G, Ram size 16G
Solutions:
1. Partition: split program_id into different partitions
2. Split tables: split table into smaller tables
3. select * from program_access_log where id between 1 and 500000 and program_id between 1 and 15000000;
阅读全文

摘要:--ref oracle占用的磁盘空间自动增长导致数据库当机源文档 <http://topic.csdn.net/u/20091013/12/01efb6a6-957e-495d-a7e8-1da5ec85e3af.html> 可能是日志文件或跟踪文件产生过多导到磁盘空间增长,可以到目录%ORACLE_BASE%\admin\%ORACLE_SID%下面找找,看看bdump,udump及cdump下面的文件--错误描述做一个大的update导致undo暴涨,具体:xxd@ETMCDB> update big_table set temporary = decode(tempo
阅读全文
摘要:Emacs for windows下载地址:http://ftp.gnu.org/pub/gnu/emacs/windows/Emacs是一款跨平台、完全免费并且开源的软件,可以移植到很多平台。在windows下安装也非常方便,就是简单地直接解压缩就可以了,注意解压缩的路径中不能含有“空格”。然后运行bin文件夹中runemacs.exe,这个是图形界面的。运行emacs....
阅读全文