Thursday, April 25, 2013

Oracle : SQL to find in Top Activity in EM

Hello,
 
The following SQL from default schema is useful to create TOP activity in Server,

select * from sh.sales,sh.customers, sh.channels

Note: Only for testing server :)
 
It was helpful to find it in Enterprise Manager.
 

 

Tuesday, April 23, 2013

Oracle: To Know Current System Change No.

 To Know Current System Change No. :
 
 select Current_scn from v$database;


Monday, April 22, 2013

Oracle: How to lock a table with select command

How to lock a table with select command:
 
SQL: select * from scott.dept for update;

Remember to Rollback when you want to unlock later :)

Oracle: Best Practice for TABLES & INDEXES Tablespace

Tip of the day: Best Practice (for realtime):

Create tablespaces for TABLES, and separate tablespaces

for INDEXES for better performance and management.

Tuesday, February 12, 2013

Oracle 8i : DB Links script with credentials

The Following script is very much helpful to generate script for DB Links created in the server.

 

SELECT 'create '||DECODE(U.NAME,'PUBLIC','public ')||'database link '||CHR(10)

||DECODE(U.NAME,'PUBLIC',Null, U.NAME||'.')|| L.NAME||chr(10)

||'connect to ' || L.USERID || ' identified by '

||L.PASSWORD||' using ''' || L.host || ''''

||chr(10)||';' TEXT

FROM sys.link$ L, sys.user$ U

WHERE L.OWNER# = U.USER#;

 

Thursday, December 20, 2012

http://www.google.com/search?q=kuwait+weather&sourceid=ie7&rls=com.microsoft:en-us:IE-SearchBox&ie=&oe=

 

 

 

Thanks & Regards


Varusai Fauzi Mohammed

|Kuwait Oil Company (KOC) |

|Systems Analyst | Research & Technology |

|Email: FVARUSAI@kockw.com | Web: www.kockw.com |

|Tel: +965 238 72496 | Fax: +965  23982370 |

|P.O Box 9758 | Ahmadi | Postal Code 61008 | Kuwait |

  Please consider the environment before printing

 

 

Monday, November 5, 2012

Oracle: syntax to Alter materialized view

Alter materialized view MV_NAME

refresh complete

start with trunc(sysdate)+17/24

next trunc(sysdate) - to_number(to_char(sysdate - 1, 'd')) + 5;

 

 

Thanks & Regards

Fauzi