原创 Improving SQL efficiency using CASE

Introduction Some time ago I wrote "The Power of Decode", a paper on using the DECODE function to improve report perfor

原创 Locks tree sessions

This script displays information on all database sessions with the username column displayed as a heirarchy if locks ar

原创 How to change SYSDATE's value to a static date without changing system date

First change the NLS_DATE_FORMAT to a recognizable full format: alter sessi

原创 display a history load for a hash_value

WITH p AS (SELECT   sysdate-5        /* start date                 */   bsn

原创 Check if index is fragmented (needs reorg or coalesce)

define owner='FRANCK' -- table owner define table='SALES' -- table name define index='SALES_TIME'

原创 creating recovery catalog

create a recovery catalog The simple steps to create a recovery catalog in

原创 Rename DB with NID

Rename Database 9i and above Check the Db name SQL> select name from v$data

原创 Creating a Data dictionary file to use with LogMi

Creating the Dictionary File To use LogMiner to analyze joedevo’s data, you must create a dictionary file before starti

原创 Sql tricks: multiple rows in one output value

Hi, I was asked once how to make an SQL that will return the following resu

原创 建立針對arm-linux的交叉編譯環境

交叉編譯環境介紹     交叉編譯是嵌入式開發過程中的一項重要技術,它的主要特徵是某機器中執行的程序代碼不是在本機編譯生成,而是由另一臺機器編譯生成,

原创 Trace event to check explain plan + bind variable peeking + hints + CBO environment

  Here is description and example about usefull event in 10g: ORA-10132 dum

原创 Script to see invalid object (and unusable indexes)

set linesize   145set pagesize  1000set trimout     onset trimspool   onSet

原创 Finding duplicate indexes

I've seen a note on deleting duplicate indexes! This should be done very ca

原创 v$datafile_header related mistake in 9i OCP book

hi as mentioned in oracle 9i DBA FUNDAMENTALS-2 book that when you put a tablespace in begin backup mode.the FUZZY colu

原创 常用網址

1.  http://www.embhelp.com/download/ 嵌入式系統文檔及程序下載 2.http://www.smartchaps.com/articles.html Articles, presentations, wh