|
19 | 19 | # of the arguments are passed down to the underlying python program:
|
20 | 20 | #
|
21 | 21 | # - -oracle_home The directory of the existing Oracle Home to use.
|
22 |
| -# This directory must exist and it is the caller^'s |
| 22 | +# This directory must exist and it is the caller's |
23 | 23 | # responsibility to verify that it does. This
|
24 | 24 | # argument is required.
|
25 | 25 | #
|
|
52 | 52 | usage() {
|
53 | 53 | echo ""
|
54 | 54 | echo "Usage: $1 [-help] [-use_encryption] [-run_rcu]"
|
55 |
| - echo " -oracle_home <oracle-home>" |
56 |
| - echo " [-domain_parent <domain-parent> | -domain_home <domain-home>]" |
57 |
| - echo " -domain_type <domain-type>" |
58 |
| - echo " [-java_home <java-home>]" |
59 |
| - echo " [-archive_file <archive-file>]" |
60 |
| - echo " [-model_file <model-file>]" |
61 |
| - echo " [-variable_file <variable-file>]" |
62 |
| - echo " [-wlst_path <wlst-path>]" |
63 |
| - echo " [-rcu_db <rcu-database>" |
64 |
| - echo " -rcu_prefix <rcu-prefix>" |
| 55 | + echo " -oracle_home <oracle_home>" |
| 56 | + echo " [-domain_parent <domain_parent> | -domain_home <domain_home>]" |
| 57 | + echo " -domain_type <domain_type>" |
| 58 | + echo " [-java_home <java_home>]" |
| 59 | + echo " [-archive_file <archive_file>]" |
| 60 | + echo " [-model_file <model_file>]" |
| 61 | + echo " [-variable_file <variable_file>]" |
| 62 | + echo " [-wlst_path <wlst_path>]" |
| 63 | + echo " [-rcu_db <rcu_database>" |
| 64 | + echo " -rcu_prefix <rcu_prefix>" |
65 | 65 | echo " ]"
|
66 | 66 | echo ""
|
67 | 67 | echo " where:"
|
68 |
| - echo " oracle-home - the existing Oracle Home directory for the domain." |
| 68 | + echo " oracle_home - the existing Oracle Home directory for the domain." |
69 | 69 | echo ""
|
70 |
| - echo " domain-parent - the parent directory where the domain should be created." |
| 70 | + echo " domain_parent - the parent directory where the domain should be created." |
71 | 71 | echo " The domain name from the model will be appended to this"
|
72 | 72 | echo " location to become the domain home."
|
73 | 73 | echo ""
|
74 |
| - echo " domain-home - the full directory where the domain should be created." |
| 74 | + echo " domain_home - the full directory where the domain should be created." |
75 | 75 | echo " This is used in cases where the domain name is different"
|
76 | 76 | echo " from the domain home directory name."
|
77 | 77 | echo ""
|
78 |
| - echo " domain-type - the type of domain (e.g., WLS, JRF). This controls" |
| 78 | + echo " domain_type - the type of domain (e.g., WLS, JRF). This controls" |
79 | 79 | echo " the domain templates and template resource targeting."
|
80 |
| - echo " Also used to locate wlst.cmd if wlst-path not specified." |
| 80 | + echo " Also used to locate wlst.cmd if -wlst_path not specified." |
81 | 81 | echo ""
|
82 |
| - echo " java-home - the Java Home to use for the new domain. If not" |
| 82 | + echo " java_home - the Java Home to use for the new domain. If not" |
83 | 83 | echo " specified, it defaults to the value of the JAVA_HOME"
|
84 | 84 | echo " environment variable."
|
85 | 85 | echo ""
|
86 |
| - echo " archive-file - the path to the archive file to use. If the -model_file" |
| 86 | + echo " archive_file - the path to the archive file to use. If the -model_file" |
87 | 87 | echo " argument is not specified, the model file in this archive"
|
88 | 88 | echo " will be used."
|
89 | 89 | echo ""
|
90 |
| - echo " model-file - the location of the model file to use." |
| 90 | + echo " model_file - the location of the model file to use." |
91 | 91 | echo ""
|
92 |
| - echo " variable-file - the location of the property file containing" |
| 92 | + echo " variable_file - the location of the property file containing" |
93 | 93 | echo " the variable values for all variables used in"
|
94 | 94 | echo " the model"
|
95 | 95 | echo ""
|
96 |
| - echo " wlst-path - the Oracle Home subdirectory of the wlst.cmd" |
| 96 | + echo " wlst_path - the Oracle Home subdirectory of the wlst.cmd" |
97 | 97 | echo " script to use (e.g., <ORACLE_HOME>/soa)."
|
98 | 98 | echo ""
|
99 |
| - echo " rcu-database - the RCU database connect string (if the domain" |
| 99 | + echo " rcu_database - the RCU database connect string (if the domain" |
100 | 100 | echo " type requires RCU)."
|
101 | 101 | echo ""
|
102 |
| - echo " rcu-prefix - the RCU prefix to use (if the domain type requires" |
| 102 | + echo " rcu_prefix - the RCU prefix to use (if the domain type requires" |
103 | 103 | echo " RCU)."
|
104 | 104 | echo ""
|
105 | 105 | echo " The -use_encryption switch tells the program that one or more of the"
|
|
208 | 208 | #
|
209 | 209 | # Validate the JVM version based on whether or not the user asked us to use encryption
|
210 | 210 | #
|
211 |
| -JVM_FULL_VERSION=`${JAVA_EXE} -fullversion 2>&1 | awk -F "\"" '{ print $2 }'` |
212 |
| -JVM_VERSION=`echo ${JVM_FULL_VERSION} | awk -F "." '{ print $2 }'` |
| 211 | +JVM_FULL_VERSION=`${JAVA_EXE} -fullversion 2>&1 | awk -F"\"" '{ print $2 }'` |
| 212 | +JVM_VERSION=`echo ${JVM_FULL_VERSION} | awk -F"." '{ print $2 }'` |
213 | 213 |
|
214 | 214 | if [ ${JVM_VERSION} -lt ${MIN_JDK_VERSION} ]; then
|
215 | 215 | if [ ${JVM_VERSION} -lt 7 ]; then
|
|
227 | 227 | # The underlying WLST script has other required arguments.
|
228 | 228 | #
|
229 | 229 | if [ "${ORACLE_HOME}" = "" ]; then
|
230 |
| - echo "Required argument ORACLE_HOME not provided" >&2 |
| 230 | + echo "Required argument -oracle_home not provided" >&2 |
231 | 231 | usage `basename $0`
|
232 | 232 | exit 99
|
233 | 233 | elif [ ! -d ${ORACLE_HOME} ]; then
|
234 |
| - echo "The specified ORACLE_HOME does not exist: ${ORACLE_HOME}" >&2 |
| 234 | + echo "The specified -oracle_home directory does not exist: ${ORACLE_HOME}" >&2 |
235 | 235 | exit 98
|
236 | 236 | fi
|
237 | 237 |
|
|
240 | 240 | #
|
241 | 241 | if [ "${WLST_PATH_DIR}" != "" ]; then
|
242 | 242 | if [ ! -d ${WLST_PATH_DIR} ]; then
|
243 |
| - echo "WLST_PATH_DIR specified does not exist: ${WLST_PATH_DIR}" >&2 |
| 243 | + echo "Specified -wlst_path directory does not exist: ${WLST_PATH_DIR}" >&2 |
244 | 244 | exit 98
|
245 | 245 | fi
|
246 | 246 | WLST=${WLST_PATH_DIR}/common/bin/wlst.sh
|
247 | 247 | if [ ! -x "${WLST}" ]; then
|
248 |
| - echo "WLST executable ${WLST} not found under specified WLST_PATH_DIR: ${WLST_PATH_DIR}" >&2 |
| 248 | + echo "WLST executable ${WLST} not found under -wlst_path directory: ${WLST_PATH_DIR}" >&2 |
249 | 249 | exit 98
|
250 | 250 | fi
|
251 | 251 | CLASSPATH=${WLSDEPLOY_HOME}/lib/weblogic-deploy-core.jar; export CLASSPATH
|
|
0 commit comments