1. 即使在建立Mysql時url中加入了autoReconnect=true參數,一但這個串連兩次訪問資料庫的時間超出了伺服器端wait_timeout的時間限制,還是會CommunicationsException: The last packet successfully received from the server was xxx milliseconds ago. 2. 伺服器端的參數可以用 show global variables like
在Oracle 11g R2 的clusterware 和asm環境下,我們出於升級或者遷移資料的目的,會運行Oracle 10g的rdbms環境。在使用10g 的rdbms 建立資料庫時,需要事先做一些調整,否則會出現這樣那樣的問題。錯誤一:在選定ASM 儲存時,dbca 不能啟動已經配置好的asm 執行個體;具體錯誤資訊如下:"DBCA could not startup the ASM instance configured on this node. To proceed with
Redis的主從複製功能非常強大,一個master可以擁有多個slave,而一個slave又可以擁有多個slave,如此下去,形成了強大的多級伺服器叢集架構。下面我示範下怎樣在多台伺服器上進行Redis資料主從複製。這裡我假設有兩台伺服器,一台是Windows作業系統(區域網路IP:192.168.3.82),一台是Linux作業系統(區域網路IP:192.168.3.90),在兩個作業系統都安裝redis,Windows作業系統使用cygwin工具進行安裝,命令為:$ tar xzf
1.分析表與索引(analyze 不會重建索引)analyze table tablename compute statistics 等同於 analyze table tablename compute statistics for table for all indexes for all columnsfor table 的統計資訊存在於視圖:user_tables 、all_tables、dba_tablesfor all indexes 的統計資訊存在於視圖:
1.記憶體減小導致Oracle啟動不了 Last login: Sun Nov 4 15:09:06 2012 from 192.168.5.222 [oracle@h1 ~]$ sqlplus "/as SYSDBA" SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 4 15:26:59 2012 Copyright (c) 1982, 2009, Oracle. All rights
login as: rootroot@192.168.88.xx's password:Last unsuccessful login: Tue May 15 22:15:03 BEIST 2012 on ssh from 192.168.88.xxLast login: Thu Aug 23 01:27:54 BEIST 2012 on ssh from 192.168.88.xx*********************************************************
不小心把資料庫密碼忘掉了,這個時候我們只需要在資料庫的設定檔裡面添加skip-grant-tables然後重新啟動服務,再登入資料庫就不要我們輸入密碼了這個時候我成功登入資料,可是不小心又把所有的使用者給刪除了又無法登陸了,這個時候我又改動設定檔可以登入了想再資料庫裡面添加使用者,可是執行了添加使用者的命令後就提示我如下:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so
下面來講講SQLite在micro上的移植。步驟:一、編譯適用於arm的資料庫1、下載SQLite源碼包。網址:http://www.sqlite.org/2、解壓源碼包。[root@localhost sql]# tar -zxvf SQLite.tar.gz3、進入該目錄。[root@localhost sql]# cd SQLite4、建立一個build目錄,並進入。PS:此目錄用於交叉編譯。[root@localhost build]# mkdir
最近一周在複習索引相關的東西,除了回顧concept,還在MOS上看到了一篇比較好的文檔。分享給大家。文檔編號:[ID 30405.1]This article is only concerned with B*tree indexes which are currently the most commonly used. The theory of B*tree indexes is beyond the scope of this article; for more information
1. 建立兩個外部檔案分別為1.txt,2.txt其中分別只有一條資料。2.建立一個邏輯目錄並進行適當授權:SQL>create directory ztj1_dir as 'c:\ztj1\';目錄已建立然後在實體路徑上手工建立實際的目錄,如:在c:\盤下建立ztj目錄檔案夾。SQL>grant read on directory ztj1_dir to scott授權成功SQL>grant write on directory ztj1_dir to