Friday, 16 August 2013

Tuesday, 28 May 2013

Linux Command stack search

esc-p or !command or !?command

eg.
!ls
!?ls
esc-p followed by ls

Wednesday, 17 April 2013

DBMS_MVIEW.REFRESH - atomic_refresh

One of the thing that is not well documented about setting atomic_refresh => false
is it cause the refresh to truncate rather than delete from the Mview. The result can be a much quicker refresh.

Friday, 8 March 2013

How to change properties/attributes of partition table?


ALTER TABLE scott.part_table MODIFY DEFAULT ATTRIBUTES TABLESPACE NEW_TABLESPACE;

ALTER INDEX scott.local_index MODIFY DEFAULT ATTRIBUTES TABLESPACE NEW_TABLESPACE_IDX;

Tuesday, 7 August 2012

INTERFACE  FAILURE CALL

OdiStartScen "-SCEN_NAME=INTERFACE_FAILURE_DW_ACTION" "-GLOBAL.g_mod_name=<%=odiRef.getPrevStepLog("STEP_NAME")%>" "-GLOBAL.g_session_no=<%=odiRef.getPrevStepLog("SESS_NO")%>" "-GLOBAL.g_step_no=<%=odiRef.getPrevStepLog("NNO")%>" "-GLOBAL.g_extract_start_date=<%=odiRef.getSysDate("dd/MM/yyyy" )%>" "-GLOBAL.g_extract_end_date=<%=odiRef.getSysDate("dd/MM/yyyy" )%>"

Wednesday, 13 June 2012

11g incremental stats


BEGIN
  DBMS_STATS.SET_TABLE_PREFS ('SCHEMA', 'TABLE_NAME, 'INCREMENTAL','TRUE');

 --Gather Stats.
   DBMS_STATS.
   gather_table_stats (
      ownname            => 'SCHEMA',
      tabname            => 'TABLE_NAME',
      estimate_percent   => DBMS_STATS.AUTO_SAMPLE_SIZE,
      method_opt         => 'for all indexed columns size auto',
      DEGREE             => 4,
      CASCADE            => TRUE);

END;