We have an sql build script, with oracle 10.2. At the end of the script we have this:
@$ORACLE_HOME/rdbms/admin/utlrp.sql
Which works on Linux but not on Windows. So we created a second file with this line:
@%ORACLE_HOME%/rdbms/admin/utlrp.sql
Surely there is a better way. How can I refer to an environment variable in a cross-platform way? Or alternatively, is it possible to do OS detection in the sql file to guard each of the statements with an IF clause?