In addition to this solution
You can create variable like ORACLE_SID in Env. variable if two different oracle products are installed.

Thanks
ejaz ahmed