to52016 發表在 痞客邦 留言(0) 人氣(80)
to52016 發表在 痞客邦 留言(0) 人氣(151)
總結:
无论是单列唯一索引或复合唯一索引,对于可以为null的列或复合null值,Oracle不会为其存储索引值。
故在基于单列创建B树唯一索引或多列创建B树复合唯一索引的情形下,
当列上允许为null值时
where子句使用了基于is null的情形,其执行计划走全表扫描。
where子句使用了基于is not null的情形,其执行计划走索引扫描(索引范围扫描或索引全扫描)。
当列上不允许为null值时,存在非null约束
where子句使用了基于is null的情行,其执行计划走索引扫描。
where子句使用了基于is not null的情形,其执行计划也是走索引扫描。
注:此在Oracle 10g R2(linux)下的情形,不同的优化器版本可能会有偏差
to52016 發表在 痞客邦 留言(0) 人氣(43)
參考:http://wenku.baidu.com/view/1a83208c8bd63186bcebbc8a.html
to52016 發表在 痞客邦 留言(0) 人氣(85)
測試 partition table與沒有partition的table 效能的差異,由於partition table有許多類型
to52016 發表在 痞客邦 留言(0) 人氣(2,406)

oracle冷備份操作如下:
1.shutdown資料庫
2.將重要文件備份到指定位置(datafile,controlfile,online log,archive log)
3.startup資料庫
to52016 發表在 痞客邦 留言(0) 人氣(4,959)

在此先不使用內部的參數,純粹exp table。內部參數可由 exp help=y 獲得
流程如下:
to52016 發表在 痞客邦 留言(0) 人氣(139)

SQLLDR 的使用方法是如何將檔案資料快速上載到 Oracle 資料庫的 Table 中
STEP 1 先建立需要上載的檔案 salary.txt,檔案內容如:
100,abc,5000to52016 發表在 痞客邦 留言(0) 人氣(319)
參考:http://tomkuo139.blogspot.tw/2009/08/oracle-select-sql-tuning.html
參考:http://nathanmint.pixnet.net/blog/post/167287665-sql---%E5%9F%B7%E8%A1%8C%E6%95%88%E8%83%BD%26%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A0%85%EF%BC%9B%E5%BC%95%E7%94%A8%E6%96%87%E7%AB%A0
to52016 發表在 痞客邦 留言(0) 人氣(535)
http://blog.roodo.com/mywork/archives/1684525.html
有關scn值就是記錄在這個table裡
SQL> desc flashback_transaction_query;
Name Type Nullable Default Comments
---------------- -------------- -------- ------- -----------------------------------------
XID RAW(8) Y Transaction identifier
START_SCN NUMBER Y Transaction start SCN
START_TIMESTAMP DATE Y Transaction start timestamp
COMMIT_SCN NUMBER Y Transaction commit SCN
COMMIT_TIMESTAMP DATE Y Transaction commit timestamp
LOGON_USER VARCHAR2(30) Y Logon user for transaction
UNDO_CHANGE# NUMBER Y 1-based undo change number
OPERATION VARCHAR2(32) Y forward operation for this undo
TABLE_NAME VARCHAR2(256) Y table name to which this undo applies
TABLE_OWNER VARCHAR2(32) Y owner of table to which this undo applies
ROW_ID VARCHAR2(19) Y rowid to which this undo applies
UNDO_SQL VARCHAR2(4000) Y SQL corresponding to this undo
|
to52016 發表在 痞客邦 留言(0) 人氣(23)