Time of Update: 2014-01-14
PostgreSQL 和Oracle 都提供了 row_number() over() 這樣的語句來進行對應的欄位排名, 很是方便。 MySQL卻沒有提供這樣的文法。 最近由於從Oracle 遷移到MySQL的需求越來越多,所以這樣的轉化在所難免。 下面我在MySQL裡面來實現這樣的做法。這次我提供的表結構如下, Table "ytt.t1" Column | Type | Modifiers--------+------
Time of Update: 2014-01-14
更多博文請關註:沒有傘的孩子必須努力奔跑 (www.xuchanggang.cn) 一.Xtrabackup概述: Xtrabackup是由percona提供的mysqlDatabase
Time of Update: 2014-02-11
去查看最新的slow log,發現沒有最新的記錄,上去檢查slow log是否開啟了。mysql> show variables like '%slow%';+---------------------+------------------------------------------+| Variable_name | Value
Time of Update: 2014-02-09
通過cmd的命令視窗串連mysql,只需要在命令列中輸入 mysql -uroot -p123456 .它會出現這樣的提示:“mysql不是內部或外部命令”。解決辦法是在環境變數的path路徑下加入 C:\Program Files\MySQL\MySQL Server 5.6\bin。如:將mysql配置到環境變數後,在cmd的命令視窗輸入 “mysql -uroot
Time of Update: 2014-02-08
Sesame資料庫利用Java API查詢資料與修改資料。1. 查詢資料擷取查詢資料(通過SPARQL)public static void testQuery() {try { RepositoryConnection con = repo.getConnection(); try { String queryString = "PREFIX rk:<http://rk.com/test/> " + "SELECT ?s ?o "
Time of Update: 2014-02-08
說起DBA,全稱是Database Administrator,不是Doctor of Business
Time of Update: 2014-02-08
手動備份歸檔日誌1、database01[oraprod@db01 scripts ]$ pwd/usr/tivoli/scripts[oraprod@db01 scripts ]$ ls1.txt
Time of Update: 2014-02-08
主機重啟--導致RAC無法啟動:1:儲存亂了順序。ocr voting /etc/udev/rules.d/60-raw.rules 檢查 CSS 日誌2.檢查私網是否有問題。ping cluvfy RAC 訪問時常中斷:local_listener ip 情況 有時重啟是crs 服務,或者重啟 HACMP 就可以解決問題3.ASM磁碟的許可權的不正確(oracle:dba)導致 ASM 進程無法掛起。原因 : /etc/rc.
Time of Update: 2014-02-08
本文摘自作者《網站資料分析:資料驅動的網站管理、最佳化和運營
Time of Update: 2014-02-08
crs_stat -tName Type Target State Host ------------------------------------------------------------ora.DATA.dg ora....up.type ONLINE ONLINE node1 ora....ER.lsnr ora....er.type ONLINE ONLINE node1
Time of Update: 2014-01-19
http://www.infoq.com/cn/news/2014/01/neo4j-2近日,Neo Technology發布了Neo4j 2.0 GA版,帶有一個全新的圖瀏覽器、結點標籤、一個可選的模式以及改進的Cypher。Neo4j
Time of Update: 2014-01-15
oracle用戶端的安裝是非常簡單的,關鍵在tns配置,我這裡使用的rpm安裝包,oracle本身就不是開源,那使用rpm安裝時最簡單的。,先下載下面三個檔案,注意版本最好一致。 oracle-instantclient-basic-10.2.0.4-1.i386.rpm
Time of Update: 2014-01-15
MySQL不像Oracle本身就支援表的線上重定義,但我們可以通過開源軟體percona-toolkit中的工具pt-online-schema-change進行線上重定義。官方文檔:http://www.percona.com/doc/percona-toolkit/2.2/pt-online-schema-change.html#pt-online-schema-changept-online-schema-change包含在percona-toolkit中,所以我們得先下載安裝:wget
Time of Update: 2014-01-13
sp.param_value nvarchar2(200); select sp.param_code, to_number(sp.param_value), sp.param_value,length(param_value) from sys_service_param sp where sp.param_type_code = 'bank' and sp.param_value = to_char(0.78,'0.00')
Time of Update: 2014-01-13
Applies to: Oracle Database - Enterprise Edition - Version 8.0.3.0 and laterOracle Net Services - Version 9.2.0.1 and laterInformation in this document applies to any platform.GoalDiscuss what can be expected when implementing Dead Connection
Time of Update: 2014-01-13
發現根本沒有找到要執行的語句,後來從中發現了這個功能是在完成的。本來是分鐘運行一次,但是發現已經很久沒運行了,手動運行了一下是正常的,為什麼突然不工作了?而且發現所有的都沒有正常工作。我查了一下的發現記錄竟然停在“月號”,而系統現在的時間是月號。原來這台機器被改過時間運行到月號,今天又改回到正常時間了。:由於之前計算的下次已耗用時間是在月號,而當前系統修改到正常時間後是月號,所以不會運行。用下面的代碼查看了下次已耗用時間: schedule_idname
Time of Update: 2014-01-13
http://blog.csdn.net/chszs一、概述Apache CouchDB和CouchBase兩個NoSQL資料庫,都是開源、免費的NoSQL文檔型資料庫,都使用了JSON作為其文檔格式。Apache CouchDB和CouchBase的相似性極高,但也有不少不同之處。基本上CouchBase結合了Apache CouchDB和MemBase兩種資料庫的功能特性而構建的。CouchDB的面向文檔的資料模型、索引和查詢功能與MemBase分布式索引值資料模型相結合、高效能、易於擴充、
Time of Update: 2014-01-13
while(rs.next()){ count++;
Time of Update: 2014-01-10
現象:purge recyclebin之後dba_segments仍然有BIN$段。如下,執行了purge recyclebin之後:SQL> select segment_name,SEGMENT_TYPE from dba_segments where tablespace_name like 'USERS' and owner='ZHOU186' 2 ;SEGMENT_NAME SEGMENT_TYPE------------------------------------
Time of Update: 2014-01-10
http://www.infoq.com/cn/news/2014/01/12-free-and-open-source-nosqlNaresh