Setting environment variables for UNIX®

You can set the environment variables on the command line or in the profiles of the users.

Procedure

  1. Add CCM_HOME to the path for user ccm_root.
    $ su - ccm_root
    Password: *****
    $ vi .profile

    If the .profile file is not the correct file for your shell, use the correct file (for example, .cshrc or .login).

    Add the following lines, and then exit from user ccm_root:

    CCM_HOME=$CCM_HOME; export CCM_HOME
    PATH=$CCM_HOME/bin 
    export PATH
    $ exitCCM_HOME=$CCM_HOME; export CCM_HOME
    PATH=$CCM_HOME/bin 
    export PATH
    $ exit
    CCM_HOME=$CCM_HOME; export CCM_HOME
    export PATH
    $ exit
  2. Perform one of the following steps:
    • Add CCM_HOME to the path for user informix.

      $ su - informix
      Password:*****
      $ vi .profile

      If the .profile file is not the correct file for your shell, use the correct file.

      Add the following lines, and then exit from user informix:

      CCM_HOME=$CCM_HOME; export CCM_HOME PATH=$CCM_HOME/bin:$CCM_HOME/informix/bin export PATH $ exit

    • Set up a system identifier for the Oracle database.

      Oracle uses a system identifier to identify an Oracle database instance, which is known as the Oracle SID. Set the environment variable ORACLE_SID as the system identifier for an Oracle database. You need the ORACLE_SID for the server to be correctly identified in any Rational® Synergy command that uses the -server servername argument.


Feedback