I recently posted a useful oraenv
for Windows utility. This has been updated so that you can run it in batch files by passing the desired Oracle SID on the command line. Details at http://qdosmsq.dunbar-it.co.uk/blog/2016/08/oraenv-for-windows/
This page looks best with JavaScript enabled
Oraenv for Windows - Updated
WRITTEN BY
Norman Dunbar
Oracle DBA & developer. (Retired). Now a published book author!