maximizing windows 2003 server network throughput

I was using that setting on a heavy stressed RAC database.

TcpWindowSize, set to 64k if your have Gb network

\Parameters\TcpWindowSize 65535

Tcp1323Opts, allow scaling on high speed network

\Tcp1323Opts 1

MaxHashTableSize, maximize tcp control blocks

\Parameters\MaxHashTableSize 65536

MaxUserPort, maximizes open port if you have plenty of memory

\Parameters\MaxUserPort   65534

how to do file house-keeping on windows 2003

Without “Forfiles” command, you maybe write a script with few hundred line, finally windows come with this handy command.

This will delete .ARC files in d:\oraarch directory older than 10 days.

Forfiles -p d:\oraarch -s -m *.arc -d -10 -c "cmd /c del /q @path"

howto: create a windows PE CD

1. First of all, download windows AIK from Microsoft

2. Mount it or burn it to a DVD

3. Install AIK on your windows XP/Vista

4. Open windows PE command prompt from start menu

C:\Program Files\Windows AIK\Tools\PETools>copype.cmd x86 z:\pe
C:\Program Files\Windows AIK\Tools\PETools>oscdimg.exe -bz:\pe\ -n -o z:\pe\iso\ z:\pe\pe.iso

Useful link:

enable 4gb memory for vista 32bit

To force this new addressing method, you have to tell Vista to boot using this new parameter.  Vista no longer uses a BOOT.INI file as previous versions of Windows did, so you must modify the boot file using a built-in Vista tool called BCDedit.

  1. Open a command prompt (Press Window key + R to open the Run dialog, and then type cmd).
  2. Press Ctrl + Shift + Enter to execute (this allows you to run cmd in administrative mode if you haven’t already setup up a permanent admin mode).
  3. Type BCDedit /set PAE forceenable.

This PAE flag (Physical Address Extension) tells the Vista core to use an additional 4 bits of addressing, which in theory allows the OS to see all of the RAM you have available.  We’re not out of the woods yet, because once you reboot you may find that Vista still doesn’t see all of your RAM.  You can turn PAE off again by typing BCDedit /set PAE forcedisable or BCDedit /set PAE default.

How to change the listening port for Remote Desktop

This article was previously published under Q306759


This article describes how to change the port that Remote Desktop listens on.

Note The Remote Desktop Connection Client for the Mac supports only port 3389. 3389 is the default port.


You can use the Remote Desktop feature in Microsoft Windows XP Professional to connect to your computer from another remote computer.

Warning The Remote Assistance feature in Microsoft Windows XP may not work correctly if you change the listening port.

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

307711 ( Remote Assistance invitation file does not contain correct port number

To change the port that Remote Desktop listens on, follow these steps.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 ( How to back up and restore the registry in Windows
1. Start Registry Editor.
2. Locate and then click the following registry subkey:

3. On the Edit menu, click Modify, and then click Decimal.
4. Type the new port number, and then click OK.
5. Quit Registry Editor.

Enable MySQL support in PHP5/Win32/Apache2

There have one stupid thing where is nobody know. After you set the ext path and un-comment the modules in c:\windows\php.ini , you should also copy libmysql into windows directory. Otherwise you will get this message in apache log.

PHP Warning:  PHP Startup: Unable to load dynamic library ‘c:\\php\\ext\\php_mysqli.dll’ – The specified module could not be found.\r\n in Unknown on line 0