Oracle Active Data Guard調整案例[2]客戶的Oracle 11gR2 Active Data Guard環境,主要資料庫的standby_file_management=AUTO,備用資料庫的standby_file_management=MANUAL,導致在主要資料庫為資料表空間添加的資料檔案操作沒有同步到備用資料庫,在$ORACLE_HOME/dbs目錄下也沒有建立類似UNNAMED00003的檔案,備用資料庫有如下的警示日誌:Tue Sep 02 17:37:36
Oracle 11gR2 Active Data Guard調整案例[1]客戶的環境是Oracle RAC Database 11.2.0.3 for Linux x86_64bit+Oracle Database 11.2.0.3 for Linux x86_64bit(ADG備庫),RAC使用的是ASM,備庫使用的是檔案系統。客戶在RAC主庫為SYSTEM資料表空間添加了一個資料檔案,由於指令碼有問題該資料檔案被放在了node 1的本地檔案系統上,導致node
Oracle not exists的等價寫法not exists可以改為left join + is null,可以看到改寫前後執行計畫一樣,消耗資源一樣,說明完全等價。SQL> drop table test purge;SQL> drop table test1 purge;SQL> create table test as select * from dba_objects;SQL> create table test1 as select * from
查看錶空間使用的兩條常用SQL,資料表空間兩條sql1. 查看錶空間大小:SELECT tablespace_name, SUM(bytes)/1024/1024 total FROM DBA_FREE_SPACE GROUP BY tablespace_name ORDER BY 2 DESC;SQL> SELECT tablespace_name, SUM(bytes)/1024/1024 || 'MB' total FROM DBA_FREE_SPACE GROUP BY
Left Join,leftjoin開發有個語句執行了超過2個小時沒有結果,詢問我到底為什麼執行這麼久。語句格式如下select * from tgt1 a left join tgt2 b on a.id=b.id and a.id>=6 order by a.id;這個是典型的理解錯誤,本意是要對a表進行過濾後進行[]left join]的,我們來看看到底什麼是真正的[left join]。[gpadmin@mdw ~]$ psql bigdatagppsql (8.2.
Alex 的 Hadoop 菜鳥教程: 第7課 Sqoop2 匯出教程,hadoopsqoop2承接上節課,現在說說匯出教程檢查串連先看看有沒有可用的connection 串連,如果沒有就要根據上節課的方法建立一個sqoop:000> show connector --all1 connector(s) to show: Connector with id 1: Name: generic-jdbc-connector Class:
Oracle自增ID實現,Oracle增ID實現首先,建立一張表:create table test( id number(32) not null primary key, name varchar2(32));然後,自訂一個序列(sequence)CREATE SEQUENCE test_sequenceINCREMENT BY 1 -- 每次加幾個START WITH 1 -- 從1開始計數NOMAXVALUE -- 不設定最大值NOCYCLE --
oracle啟動報錯ORA-00845: MEMORY_TARGET not supported on this system解決辦法,memorytargetoracle啟動報錯ORA-00845: MEMORY_TARGET not supported on this system原因可能:ORACLE MEMORY_TARGET參數設定超過了oracle伺服器本身記憶體、或超過了現在伺服器空閑記憶體(就是oracle啟動時無法擷取設定的記憶體) eg: oracle
關於環境變數 ORACLE_SID 簡單談下,環境變數oracle_sid[oracle10g@lixora ~]$ export ORACLE_SID=12323[oracle10g@lixora ~]$ !sqlsqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 6 02:24:04 2014Copyright (c) 1982, 2005, Oracle. All rights
mysql如何做order by,mysqlorderbyORDER BY ClausesIn general, the optimizer will skip the sort procedure for the ORDER BY clause if it sees that the rowswill be in order anyway. But let's examine some exceptional situations.For the query:SELECT column1