上篇日誌《Oracle子句GROUP BY CUBE》(見 )中的問題稍作變化,現在每個欄位有3個狀態,SQL該如何寫呢?這時CUBE的機制恐怕沒有辦法構成3的八次方行資料了,只能另尋辦法。以下代碼是以3列為例的一個比較囉嗦的方案,僅供參考。with base as(select 0 as a1, 0 as a2, 0 as a3 from dual union all select 1 as a1, 0 as a2, 0 as
系統在執行expdp匯出後,alert.log中報服務名修改資訊,具體如下: Wed Sep 05 02:09:29 2012ALTER SYSTEM SET service_names='SYS$SYS.KUPC$C_1_20120905020929.ZZBRAC3' SCOPE=MEMORY SID='zzbrac31';ALTER SYSTEM SET
備份控制檔案alter database backup controlfileto '/bk/ctl.bk'; SQL> alter system switch logfile;alter system switch logfile*ERROR at line 1:ORA-03113: end-of-file on communication channel SQL> conn /as sysdbaConnected to an idle
srvctl即Server Control,是Oracle提供的一個命令列工具,用以用於管理Oracle的RAC環境。srvctl在Oracle 9i中被引入,Oracle10g、11g對其功能進行了很大的增強和改進。下面介紹下此命令的簡單用法。一、 查看執行個體狀態(srvctl status)查詢所有執行個體和服務的狀態:[oracle@node-rac1 ~]$ srvctl status database -d racdbInstance racdb2 is running on
今天有同學在搭建主從環境的時候發現一個問題,簡單說明一下。感謝 @年代80s.現象:從庫上Slave_IO_Running停止,Last_Error顯示如下:bin/mysqlbinlog: Character set ‘#45′ is not a compiled character set and is not specified in the ‘/u01/dingqi.lxb/transfer2/master/share/mysql/charsets/Index.xml’
symantec NBU 備份Oracle 11g/user/openv/下的備份日誌報錯Recovery Manager: Release 11.2.0.3.0 - Production on Mon Sep 17 14:36:11 2012Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.connected to target database: testdb (DBID=123
今天在自己的環境中建立pfile報錯了。環境是:OS:11.2.0.2 RAC,OS:RHEL 5.6建立pfile,報ORA-01565這個是因為不能找到spfile。 [Oracle@11rac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.2.0 Production on Sun Oct 7 22:25:05 2012 Copyright (c) 1982, 2010, Oracle. All
本篇文章來簡單看下如何使用sql profile來綁定正確的執行計畫,10gR2出現這個功能還是蠻實用的,當然11g可以使用baseline,當然我覺得這兩種都挺好。我們可能經常會遇到一些大表比如上T的,走錯執行計畫,比如全表掃描,那系統基本處於Hang的狀態,那麼這時候收集統計資訊可能會很慢,即使你採樣的比例設定的很小。所以使用profile和baseline是個不錯的選擇。一,建立測試環境SQL> create table test (n number ); Table