Produced by Araxis Merge on 2/1/2019 4:22:45 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | VAP_P3 v3_3_0.zip\aws-scripts | provision.sh | Fri Jan 18 17:53:09 2019 UTC |
2 | VAP_P3 v3_3_0.zip\aws-scripts | provision.sh | Fri Jan 25 21:24:25 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 5 | 190 |
Changed | 4 | 10 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | #!/bin/sh | |
2 | ||
3 | echo "Inst alling Dep endencies" | |
4 | yum -y ins tall libai o initscri pts zip un zip vim bc net-tools openssl | |
5 | ||
6 | echo "Addi ng oracle user." | |
7 | groupadd d ba | |
8 | useradd or acle -g db a | |
9 | mkdir -p / u01/app | |
10 | chown -R o racle:dba /u01/app | |
11 | ||
12 | echo "Addi ng PII to dba gro up." | |
13 | usermod -a -G dba PII | |
14 | ||
15 | echo "Down loading in stallers.. ." | |
16 | SOFTWARE_D IR="/u01/p rovision/S oftware/va p" | |
17 | if [ ! -d $SOFTWARE_ DIR ]; the n | |
18 | mkdir -p $SOFTWARE _DIR | |
19 | curl htt ps://downl oads.vetse z.net/Down loads/jdk- 8u121-linu x-x64.tar. gz -o $SOF TWARE_DIR/ jdk-8u121- linux-x64. tar.gz | |
20 | curl htt ps://downl oads.vetse z.net/Down loads/fmw_ 12.2.1.2.0 _wls_Disk1 _1of1.zip -o $SOFTWA RE_DIR/fmw _12.2.1.2. 0_wls_Disk 1_1of1.zip | |
21 | curl htt ps://downl oads.vetse z.net/Down loads/orac le-xe-11.2 .0-1.0.x86 _64.rpm.zi p -o $SOFT WARE_DIR/o racle-xe-1 1.2.0-1.0. x86_64.rpm .zip | |
22 | fi | |
23 | ||
24 | echo "Inst alling JDK ." | |
25 | if [ ! -d /u01/app/o racle/java ]; then | |
26 | runuser -l oracle << STOP | |
27 | mkdir -p /u01/app/ oracle/jav a | |
28 | tar -C / u01/app/or acle/java -xzf /u01/ provision/ Software/v ap/jdk-8u1 21-linux-x 64.tar.gz | |
29 | pushd /u 01/app/ora cle/java | |
30 | ln -s jd k1.8.0_121 latest | |
31 | popd | |
32 | STOP | |
33 | else | |
34 | echo "JD K already installed! " | |
35 | fi | |
36 | ||
37 | echo "Inst aling webl ogic" | |
38 | if [ ! -d /u01/app/o racle/oraI nventory ] ; then | |
39 | runuser -l oracle << STOP | |
40 | echo " Creating o raInst.loc ." | |
41 | mkdir -p /u01/app/ oracle/ora Inventory | |
42 | cat << S TOP2 >/u01 /app/oracl e/oraInven tory/oraIn st.loc | |
43 | inventor y_loc=/u01 /app/oracl e/oraInven tory | |
44 | inst_gro up=dba | |
45 | STOP2 | |
46 | echo " Running We bLogic Ins taller." | |
47 | export J AVA_HOME=/ u01/app/or acle/java/ latest | |
48 | pushd /t mp | |
49 | unzip /u 01/provisi on/Softwar e/vap/fmw_ 12.2.1.2.0 _wls_Disk1 _1of1.zip | |
50 | /u01/app /oracle/ja va/latest/ bin/java - Djava.secu rity.egd=f ile:/dev/. /urandom - jar fmw_12 .2.1.2.0_w ls.jar -si lent -resp onseFile / u01/provis ion/wls.rs p -invPtrL oc /u01/ap p/oracle/o raInventor y/oraInst. loc | |
51 | echo " Configure WebLogic t o use /dev /urandom." | |
52 | cat << S TOP2 >>/u0 1/app/orac le/weblogi c/oracle_c ommon/comm on/bin/com mBaseEnv.s h | |
53 | # use /d ev/urandom to genera te random numbers to speed up weblogic. | |
54 | # change made here so that e verything we use in WL install ation | |
55 | # CAN be nefit. | |
56 | export J AVA_OPTION S="\\\$JAV A_OPTIONS -Djava.sec urity.egd= file:/dev/ ./urandom" | |
57 | export C ONFIG_JVM_ ARGS="\\\$ CONFIG_JVM _ARGS -Dja va.securit y.egd=file :/dev/./ur andom" | |
58 | STOP2 | |
59 | STOP | |
60 | else | |
61 | echo "We blogic is already in stalled!" | |
62 | fi | |
63 | ||
64 | echo "Inst alling Ora cle XE" | |
65 | unzip $SOF TWARE_DIR/ oracle-xe- 11.2.0-1.0 .x86_64.rp m.zip -d / tmp/XE | |
66 | pushd /tmp /XE/Disk1 | |
67 | rpm -ivh o racle-xe-1 1.2.0-1.0. x86_64.rpm >/tmp/XE/ install.lo g | |
68 | /etc/init. d/oracle-x e configur e response File=/u01/ provision/ xe.rsp >>/ tmp/XE/ins tall.log | |
69 | popd | |
70 | ||
71 | echo "Add Java, Orac le and Web Logic to p aths." | |
72 | tee -a ~ PII /.bash_pro file ~orac le/.bash_p rofile << STOP | |
73 | export JAV A_HOME=/u0 1/app/orac le/java/la test | |
74 | export WL_ HOME=/u01/ app/oracle /weblogic | |
75 | export PAT H=\$WL_HOM E/oracle_c ommon/comm on/bin:\$J AVA_HOME/b in:\$PATH | |
76 | . /u01/app /oracle/pr oduct/11.2 .0/xe/bin/ oracle_env .sh | |
77 | STOP | |
78 | tee -a ~ PII /.bashrc ~ oracle/.ba shrc << ST OP | |
79 | alias debu gwl='cd /u 01/app/dom ains/vap_d evl && ./s tartDomain Debug.sh' | |
80 | alias debu gwlm='cd / u01/app/do mains/vap_ devl && ./ startDomai nDebugWith Mocks.sh' | |
81 | alias stop wl='cd /u0 1/app/doma ins/vap_de vl && bin/ stopWebLog ic.sh' | |
82 | alias logw l='cd /u01 /app/domai ns/vap_dev l && tail -f servers /admin/log s/vap_devl .out' | |
83 | STOP | |
84 | ||
85 | echo "Give everyone in dba gro up write p ermission on /u01/ap p." | |
86 | chmod -R g +w /u01/ap p | |
87 | ||
88 | echo "Set up the VAP schema." | |
89 | echo " Lo g output c an be foun d in /tmp/ BuildDB.lo g." | |
90 | runuser -l oracle << STOP | |
91 | pushd /u01 /provision /DBScripts | |
92 | . ./BuildD B.sh &>/tm p/BuildDB. log | |
93 | popd | |
94 | STOP | |
95 | ||
96 | echo "Set up vap_dev l weblogic domain." | |
97 | runuser -l PII << STOP | |
98 | wlst.sh /u 01/provisi on/vap_dev l.py | |
99 | cp /u01/pr ovision/we blogic/* / u01/app/do mains/vap_ devl | |
100 | STOP |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.