Remember to Rollback when you want to unlock later :)
Blog from a software professional, Passionate to work in latest cutting edge technologies in order to get better results in business.
Monday, April 22, 2013
Oracle: How to lock a table with select command
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
Thanks & Regards
|
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
Tuesday, October 30, 2012
SQL to list the number of database files in Oracle Database
Hi there,
Found this interesting query which will list you all the DB files holding your database:
select name, bytes
from (select name, bytes
from v$datafile
union all
select name, bytes
from v$tempfile
union all
select lf.member "name", l.bytes
from v$logfile lf
, v$log l
where lf.group# = l.group#) used
, (select sum(bytes) as poo
from dba_free_space) free
/
Hope it helps,
Regards
Fauzi
Thursday, October 11, 2012
How to select distinct Columns from DataTable C#
Following is the code helpful to filter distinct columns from a DataTable
DataTable distinctDT = dtSOURCE.DefaultView.ToTable("TAB_NAME", true, "YourCOLUMN");
Time to rush back to Visual Studio Bye J


