title: Can SQL*Plus read environment variables from the machine is it running on?
body: <p>I'm aware that the database engine itself is (often) on another machine and that SQL*Plus has no direct way of reading <em>those</em> environment variables, but I'm in a tricky situation where I merely need the environment variables from the machine the client itself is running on.</p>
  
  <p>Is there a way to cheat these values into the SQL*Plus client from within a single script that will be run in SQL*Plus? The script consists of a single begin/end PL/SQL block, but if I need to use SQL*Plus directives of the set/define/variable sort that shouldn't be a problem either.</p>
  
  <p>What I can't do is alter the way that the SQL*Plus executable itself is started (I don't have access to pass the values in as arguments).</p>
  
  <p>Is there any way to accomplish this?</p>
  
  <p>Note: <code>dbms_system.get_env()</code> seems to retrieve environment variables from the server itself, which is what I do not want.</p>