Modify the default Oracle WebLogic Server configuration files

Previous Topic

Next Topic

Book Contents

Modify the default Oracle WebLogic Server configuration files

Perform these steps using the non-privileged user account on the application server.

  1. Navigate to the Oracle WebLogic Server domain bin directory, for example:

    $ cd /u01/app/oracle/product/Middleware12c/user_projects/domains/empirica/bin

  2. Edit the setDomainEnv.sh file:
    1. Using a text editor, open the setDomainEnv.sh file.
    2. At the end of the file, add the following lines:

      # Local Customization

      export TZ=UTC

      export LANG=en_US.UTF-8

      export DISPLAY=localhost:99.0

      Note: If you do not use the UTC time zone, edit the text accordingly.

    3. Save and close the file.
  3. Make the edits below in setStartupEnv.sh:
    1. Using a text editor, open the file.
    2. Search for lines containing the following text:

      com.oracle.db.jdbc7-dms.jar

    3. Use the hash character (#) to comment out each line, and then replace each line as follows:

      if [ "${PRE_CLASSPATH}" != "" ] ; then

      #PRE_CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}${COMMON_COMPONENTS_HOME}/modules/features/com.oracle.db.jdbc7-dms.jar"

      PRE_CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}${ORACLE_HOME}/jdbc/lib/ojdbc8.jar"

      export PRE_CLASSPATH

      else

      #PRE_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/features/com.oracle.db.jdbc7-dms.jar"

      PRE_CLASSPATH="${ORACLE_HOME}/jdbc/lib/ojdbc8.jar"

      export PRE_CLASSPATH

      fi

    4. Search for lines containing the following text:

      java.awt.headless=true

    5. Use the hash character (#) to comment out each line, and then replace each line with a copy of the original, but without -Djava.awt.headless=true. For example:

      #EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dem.oracle.home=/scratch/u01/app/oracle/product/Middleware12c/em -DINSTANCE_HOME=/scratch/u01/app/oracle/product/Middleware12c/user_projects/domains/empirica -Djava.awt.headless=true -Doracle.sysman.util.logging.mode=dual_mode"

      EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dem.oracle.home=/u01/app/oracle/product/Middleware12c/em -DINSTANCE_HOME=/u01/app/oracle/product/Middleware12c/user_projects/domains/empirica -Doracle.sysman.util.logging.mode=dual_mode"

    6. Save and close the file.
Send Feedback