Sorting files using extra buffer

i want to sort a file which was 4gb of data.
my ram sixe was 2gb.

so, i want to sort that file using extra buffer , is it possible in unix?

if possible plz help me
thanks

AFAIK sort uses tmp files anyhow - why don't you just give it a shot ?
You also could split the large file into smaller chunks, sort those, and then merge ( sort -m ).

by referring SORT man page i find the below

-T, --temporary-directory=DIR               use DIR for temporaries, not $TMPDIR or /tmp; multiple options               specify multiple directories

can anyone please help me with a simple example, how to use this _T option with Sort

i am using oracle enterprise linux

thanks.........

Why don't you just give it a shot and report possible errors?