排序
Oracle索引技術(shù)之如何建立最佳索引
1、明確地創(chuàng)建索引 create index index_name on table_name(field_name) tablespace tablespace_name pctfree 5 initrans 2 maxtrans 255 - storage ( minextents 1 maxextents 16382 pctincrea...
Oracle的NLS_COMP和NLS_SORT參數(shù)
NLS_COMP和NLS_SORT參數(shù) Oracle默認(rèn)是采用binary進(jìn)行排序,這對于例如中文的排序來說,是不恰當(dāng)?shù)摹?使用這兩個參數(shù)可以指定排序的方法,比如拼音或是,要注意可能會引起性能問題。 解決方法是...
MySQL清空緩存的命令
作為測試的我,為了排除緩存的影響,清楚緩存是常用的事情,所以清空緩存的命令還是必須要常記的,下面是我從其他網(wǎng)站手機(jī)的FLUSH的參數(shù) flush_option 可以是下列任何東西: HOSTS 這個用的最多...
Oracle數(shù)據(jù)庫查詢會話及死鎖的解決
--查看會話數(shù) select count(*) from v$session; --查看進(jìn)程數(shù) select count(*) from v$process; --查看數(shù)據(jù)庫的并發(fā)連接數(shù) select * from v$session where status=ACTIVE; - --查看當(dāng)前數(shù)據(jù)庫建...
Fedora 17源碼安裝mysql-5.1.58
1.Fedora17系統(tǒng)和mysql-5.1.58.tar.gz下載 linux系統(tǒng)RedHat Fedora17 Gonme 系統(tǒng)下載地址:http://download.fedoraproject.org/pub/fedora/linux/releases/17/Live/i686/Fedora-17-i686-Live-De...
MySQL 利用binlog增量備份+還原實例
一,什么是增量備份 - 增量備份,就是將新增加的數(shù)據(jù)進(jìn)行備份。假如你一個數(shù)據(jù)庫,有10G的數(shù)據(jù),每天會增加10M的數(shù)據(jù),數(shù)據(jù)庫每天都要備份一次,這么多數(shù)據(jù)是不是都要備份呢?還是只要備份增加...
SQL Server 2012 SEQUENCE 對象
Oracle中有sequence的功能,SQL Server類似的功能使用Identity列實現(xiàn),但是有很大的局限性。在2012中,微軟終于增加了 sequence 對象,功能和性能都有了很大的提高。 我們可以在SSMS中創(chuàng)建也可...
MySQL異地增量備份
MySQL異地增量備份: 1.#!/bin/sh 2. 3.#MySQL Info 4.sqluser=root 5.sqlpsw=root 6. 7./usr/bin/mysqladmin -u$sqluser -p$sqlpsw flush-logs --default-character-set=GBK 8. 9.DATADIR=/data...
SQL Server訪問Exchange數(shù)據(jù)
看到網(wǎng)上有人在尋找SQL Server存儲Email數(shù)據(jù),其實SQL Server提供了OLE DB Provider可以訪問Exchange. Microsoft OLE DB Provider for Exchange 以表格形式公開存儲在 Microsoft Exchange 2000 ...
MySQL數(shù)據(jù)庫的基本操作命令
一、查看數(shù)據(jù)庫版本 sql- status; 1、net start mysql //啟動mysql服務(wù) 2、net stop mysql //停止mysql服務(wù) 3、mysql -h主機(jī)地址 -u用戶名 -p用戶密碼 //進(jìn)入mysql數(shù)據(jù)庫 4、quit //退出mysql操...