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

  2. Open the setDomainEnv.sh file in a text editor.
  3. 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.

  4. Save and close the file.
  5. Open the setStartupEnv.sh file in a text editor.
  6. Search for lines that contain the following text:

    com.oracle.db.jdbc7-dms.jar

  7. 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

  8. Search for lines that contain the following text:

    java.awt.headless=true

  9. 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"

  10. Save and close the file.
Send Feedback