Verifying PATH and Environment for the Oracle login name

Before proceeding to install Oracle files, make sure the /usr/ccs/bin directory is in the PATH environment variable for the oracle login name.

About this task

To verify the PATH and environment:

Procedure

  1. Log in as oracle. Set and export the DISPLAY environment variable.

    If you are using the su command to become oracle, use a hyphen as the second argument so the oracle user login environment is loaded:

    # su - oracle
  2. Verify that the environment variable ORACLE_BASE has been set by entering the following command:
    $ env | grep ORA

    If the response does not include ORACLE_BASE=/opt/oracle, stop and make sure the .profile file was set for the oracle user, as described in Run the Oracle client configuration script.

  3. To verify the path, enter the following command:
    $ echo $PATH

    The output must show that /usr/ccs/bin is part of the search path. For example:

    /usr/bin:/opt/oracle/product/12.1.0/bin:/usr/ccs/bin
    1. If this directory is not in the path, add it by entering the following commands:
      $ PATH=$PATH:/usr/ccs/bin
      $ export PATH