Modify the default Oracle WebLogic Server configuration files

Previous Topic

Next Topic

Book Contents

Modify the default Oracle WebLogic Server configuration files

Note: Oracle recommends using WebLogic 12.1.3 and Java 1.8. If you are upgrading from Signal 8.0 and you have decided to not use WebLogic 12.1.3 with Java 1.8, skip this section.

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/fmw12c/user_projects/domains/empirica/bin

    Note: The example command is for Oracle WebLogic Server 12c. If you use Oracle WebLogic Server 11g, the path to the WebLogic default bin directory might differ as follows: /u01/app/oracle/Middleware/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:
    • For WebLogic 11g, edit the setDomainEnv.sh file.
    • For WebLogic 12c, edit the setStartupEnv.sh file.
    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/ojdbc7.jar"

      export PRE_CLASSPATH

      else

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

      PRE_CLASSPATH="${ORACLE_HOME}/jdbc/lib/ojdbc7.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=/scratch/u01/app/oracle/product/Middleware12c/em -DINSTANCE_HOME=/scratch/u01/app/oracle/product/Middleware12c/user_projects/domains/empirica -Doracle.sysman.util.logging.mode=dual_mode"

    6. Save and close the file.
Send Feedback