Thursday, August 19, 2010

Oracle Tips: Writing to File

Need to have these executed before you can write to files on server

1. CREATE DIRECTORY utl_dir1 AS '<path>';
2. GRANT ALL ON DIRECTORY utl_dir1 TO <owner>;

The following code demonstrates how to write the contents of a table to a file.
Declare
f utl_file.file_type
indx number:=1;
f  := utl_file.fopen('UTL_DIR1',<file_name>,'W');

CURSOR <cursor_name>
  IS
    SELECT *
    FROM <table_name>;

BEGIN
indx:=1;
FOR <row_variable> IN <cursor_name>
LOOP
  utl_file.put_line(f,convert_row_to_delim_str(fxd_loan_row,','));
  indx:=indx+1;
END LOOP;

utl_file.fclose(f);

END
/

Oracle Tips: Speeding up Index Creation

3 Steps to create indexes faster

1. CREATE INDEX on <table_name>(<column1>, <column2>) UNUSABLE;
2. ALTER INDEX REBUILD parallel 16 NOLOGGING;
-- Does FFS rather than FTS when using Create statement
3. ALTER INDEX NOPARALLEL;


Monday, August 16, 2010

Microsoft Word Spell Check Issues

My Microsoft Office spell checks stopped to work. I tried all possible methods listed in Microsoft help - like Proofing options in Word, Set Proofing options and so on. But nothing worked except the one below.

1. Go to "Start"->"Run", then type "regedit" and follow the link as below:
"HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing
Tools\1.0\Override"

2. Remove Override folder.

3. Spell Check will work as its meant to.

Tuesday, July 06, 2010

Learning about Web Development

I would like to list the best sites that I am aware of to learn about Web development.

1. W3Schools
2. Web Development Notes
3. Java Script Kit
4. Entheos
5. Net Tuts+

Have fun learning

Monday, June 28, 2010

Test Your Network Speed

When you take a internet connection be in through a DSL or Cable or Satellite. It is important to check the speeds you get from time to time. Most of the ISPs (Internet Service Providers) play with the bandwidth available with them amongst its users. Hence we might not see what we were promised.

Here is a simple way to test it. Use Speedtest to check the speed from your PC/laptop to a nearby or far away server.