The OS is NT.

Thank you for your suggestion. It works. But......

Is there any way that I can force an application to use a specific TNSNAMES file if there are more than one Oracle HOMEs exist?