Setting Environment Variables on the Command Line

Many tasks in this guide require setting environment variables on the command line in UNIX or Windows. The syntax varies by the operating system and shell type, but always includes the database name and code environment.

The code environment value is two digits for the current Oracle Clinical major or minor release, without the point (.). For example, by default the code environment for Oracle Clinical 5.1 is 51 and the code environment for Oracle Clinical 5.2 is 52.

The syntax is:

  • For UNIX servers, C shell:

    opa_setup database_name code_environment
    
  • For UNIX servers, Bourne shell:

    p1 = database_name
    p2 = code_environment
    . opa_setup
    
  • For Window servers:

    set p1=database_name
    set p2= code_environment
    opa_setup