Time of Update: 2013-12-29
oracle中,使用wm_concat(column)函數,可以進列欄位值合并,合并的欄位預設通過逗號分隔,也可自行指定。如:wm_concat(col1);replace(wm_concat(col1),',','|');
Time of Update: 2013-12-29
GoldenGate 常見錯誤分析10、OGG-01027長事務)樣本25:WARNING OGG-01027 Long Running Transaction: XID 84.242063, Items 0, Extract YX_EXT1, Redo Thread 1, SCN 2372132775890 10219859973074), Redo Seq #5688, Redo RBA 19599771可以通過下面的命令尋找更詳細的資訊:樣本26:GGSCI> send
Time of Update: 2013-12-29
Oracle 12C資料庫除了可以使用DBCA刪除掉以外,我們還可以使用drop database命令將其刪除。這種刪除方法非常簡單,不過必須滿足以下2點要求:1、資料庫必須處於mount狀態,不允許為open狀態;2、資料庫必須處於restricted受限制模式下。[oracle@rhel6u4 ~]$ sqlplus / as sysdbaSQL*Plus: Release 12.1.0.1.0 Production on Thu Jun 27 23:56:36 2013Copyright
Time of Update: 2013-12-29
oracle資料庫的許可權系統分為系統許可權與對象許可權。 系統許可權( database system privilege )可以讓使用者執行特定的命令集。例如,create table許可權允許使用者建立表,grant any privilege 許可權允許使用者授予任何系統許可權。 對象許可權( database object privilege
Time of Update: 2013-12-29
一、Nullable 在設計表時,有時會允許某列可以使用Null值預設)。650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131229/211U45539-0.png" title="null.png" alt="110227268.png" />CREATE TABLE [dbo].[EmpTable2]([EmpID] [varchar](10) NOT NULL,[DepID] [nvarchar](10)
Time of Update: 2013-12-29
必須明白的sql知識一,兩表外串連查詢現有兩個表A,B內容如下mysql> select * from A;+------+------+| id | Col1 |+------+------+| 1 | AA || 2 | BB || 3 | CC |+------+------+3 rows in set (0.00 sec)mysql> select * from B;+------+------+| id | Col2 |+------+
Time of Update: 2013-12-29
一、概述MySQL有三種鎖的層級:頁級、表級、行級。MyISAM和MEMORY儲存引擎採用的是表級鎖table-level locking);BDB儲存引擎採用的是頁面鎖page-level locking),但也支援表級鎖;InnoDB儲存引擎既支援行級鎖row-level
Time of Update: 2013-12-29
一、概述1. 為何需要資料壓縮 SQL Server的效能主要取決於磁碟I/O效率,提高I/O效率某種程式上就意味著提高效能。SQL Server 2008提供了資料壓縮功能來提高磁碟I/O。 資料壓縮意味著減小資料的有磁碟佔用量,所以資料壓縮可以用在表,叢集索引,非叢集索引,視圖索引或是分區表,分區索引上。2.
Time of Update: 2013-12-29
一、安全性使用者名稱密碼)在redis-conf中找到requirepass,修改為requirepass******即可使用密碼有2中方式1、進入redis-cli然後auth******2、redis-cli-a******二、主從複製1、Master可以擁有多個Slave2、slave可以聯機同一個master,還可以串連slave3、主從複製不會阻塞master,同步資料時,master可以繼續處理請求4、提高系統伸縮性配置slave的redis-conf,找到位置:650) this.
Time of Update: 2013-12-29
原SQL如下:SELECT o.order_id FROM orders o JOIN shipping_orders so ON so.order_id = o.order_id JOIN shippings s ON s.shipping_no = so.shipping_no WHERE o.payment_method = 'COD'AND o.status IN(3, 4, 6
Time of Update: 2013-12-29
C:\Users\Administrator>emctl status dbconsoleEnvironment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database uniquename.C:\Users\Administrator>emctl stop dbconsoleEnvironment variable ORACLE_UNQNAME not defined. Please
Time of Update: 2013-12-29
選擇和最佳化索引理解B樹索引(BANLANCE)1建表createtablecust(cust_idnumber,last_namevarchar2(30),first_namevarchar2(30));2確定多個SQL查詢會頻繁在where子句使用last_name列,建立下列索引:createindexindex_idx1oncust(last_name);插入資料insertintocustvalues(7,'ACER','SCOTT');insertintocustvalues(4,'
Time of Update: 2013-12-29
資料庫恢複方案http://netkiller.github.io/journal/db.restore.htmlMr. Neo Chen(netkiller), 陳景峰(BG7NYT)中國廣東省深圳市龍華新區民治街道溪山美地518131+86 13113668890+86 755 29812080<netkiller@msn.com>$Id$著作權 2011, 2012, 2013
Time of Update: 2013-12-29
今天偶然發現主從同步竟然出現錯誤資訊。650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131229/20333140S-0.jpg" title="QQ圖片20130929160030.jpg" alt="160108925.jpg" />按照此方法進行修複問題http://jxzhfei.blog.51cto.com/1382161/1293846mysql> stop slave;Query OK, 0
Time of Update: 2013-12-29
眾所周知,myisam是表級鎖!能夠提供非常快速的查詢,但是更新一多,myisam表級鎖導致查詢極其緩慢!而有的應用苦於需要使用fulltext,不能更改儲存引擎,這個時候,只能最佳化myisam表級鎖!幾個方向僅供參考:1.減少sql查詢時間(把大sql拆分)2.如果在從機,可以設定更新優先順序: 三種方法: 2.1 --low-priority-updates啟動參數,降低update的優先順序,提升select的優先順序 2.2 set
Time of Update: 2013-12-29
10.1做了HUGE TABLE SPLITE TO PARTITION TABLE的動作。過程順利。起來以後進入生產環節,發現部分報表程式變慢。分析過程發現SESSION數很高,ACTIVE SESSION也是會不是沖高。之後發現INDEX的DEGREE參數為32,結果造成INDEX的並發過大,導致ACTIVE SESSION狂飆。後將DEGREE下降到8,一切歸於平靜。DBA_INDEXES
Time of Update: 2013-12-29
工作拓撲:650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131229/201Z26336-0.jpg" title="mysql-master-salve-proxy.jpg" width="400" height="354" border="0" hspace="0" vspace="0" style="width:400px;height:354px;" alt="110018378.jpg" />MySQL
Time of Update: 2013-12-29
650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131229/2021045S2-0.gif" alt="t_0022.gif" />介面中忘記Interface已經比較過分了,還有更過分的錯誤啊!我運行程式的時候,經常會出現這麼個錯誤,我還鬱悶了好久呢!650) this.width=650;" src="http://www.bkjia.com/uploads/allimg/131229/2021042151-1.
Time of Update: 2013-12-29
如果大家用到INFOBRIGHT,對這個字眼就不陌生了。 目前有4種格式。1. binary.2. txt_variable3. mysql4. infobright 代表什麼意思呢,我來詳細解釋下。BINARY 代表位元據。 也就是說,未經處理資料是以特定格式的二進位來儲存。 具體格式,可以參見官方的白皮書,很容易下載到。 TXT_VARIABLE 代表
Time of Update: 2013-12-29
今天用xtrabackup工具完整備份mysql資料庫的時候出現“./ib_logfile0 is of different”錯誤,具體的日誌資訊如下: 650) this.width=650;" border="0" src="http://www.bkjia.com/uploads/allimg/131229/20003MW6-0.jpg" alt="" />