Produced by Araxis Merge on 9/15/2018 10:47:17 PM Eastern Daylight 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 | MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_devops\src\main\mhvdbs | install.sh | Thu Aug 23 21:39:10 2018 UTC |
| 2 | MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_devops\src\main\mhvdbs | install.sh | Sat Sep 15 20:11:15 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 330 |
| Changed | 1 | 2 |
| 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 | # Note tha t if you c hange the ORACLE_HOM E or ORACL E_BASE in the respon se files | |
| 4 | # then you will also need to u pdate this script | |
| 5 | ||
| 6 | echo 'INST ALLER: Sta rting up' | |
| 7 | # set vari ables | |
| 8 | ORACLE_USE R="oracle" | |
| 9 | DBA_GROUP= "dba" | |
| 10 | SID="orcl" | |
| 11 | ORACLE_ROO T="/u01" | |
| 12 | PASSWORD=" AI " | |
| 13 | ORACLE_BAS E="$ORACLE _ROOT/app/ $ORACLE_US ER" | |
| 14 | ORACLE_HOM E="$ORACLE _BASE/prod uct/11.2.0 /dbhome_1" | |
| 15 | DATA_LOCAT ION="$ORAC LE_BASE/or adata" | |
| 16 | INVENTORY_ LOCATION=" $ORACLE_RO OT/app/ora Inventory" | |
| 17 | ||
| 18 | # add a ne w swapfile of 3G and attach it | |
| 19 | # total sw ap approx 4G | |
| 20 | dd if=/dev /zero of=/ swapfile b s=1024 cou nt=3072000 | |
| 21 | chmod 600 /swapfile | |
| 22 | mkswap /sw apfile | |
| 23 | swapon /sw apfile | |
| 24 | echo "/swa pfile swap swap defa ults 0 0" >> /etc/fs tab | |
| 25 | ||
| 26 | echo 'INST ALLER: Exp anded swap ' | |
| 27 | ||
| 28 | # convert into Oracl e Linux 7 | |
| 29 | #curl -O h ttps://lin ux.oracle. com/switch /centos2ol .sh | |
| 30 | #sh centos 2ol.sh | |
| 31 | #rm /home/ vagrant/ce ntos2ol | |
| 32 | # | |
| 33 | #echo 'INS TALLER: No w running Oracle Lin ux 6' | |
| 34 | # | |
| 35 | # install required l ibraries | |
| 36 | #yum insta ll -y nano | |
| 37 | #yum insta ll -y liba io | |
| 38 | #yum insta ll -y liba io-devel | |
| 39 | #yum insta ll -y kern el-headers | |
| 40 | #yum insta ll -y kern el-devel | |
| 41 | #yum insta ll zip unz ip -y | |
| 42 | # | |
| 43 | # get up t o date | |
| 44 | #yum upgra de -y | |
| 45 | #yum updat e -y | |
| 46 | # | |
| 47 | #echo 'INS TALLER: Sy stem updat ed' | |
| 48 | # | |
| 49 | # fix loca le warning | |
| 50 | #yum reins tall -y gl ibc-common | |
| 51 | #echo LANG =en_US.utf -8 >> /etc /environme nt | |
| 52 | #echo LC_A LL=en_US.u tf-8 >> /e tc/environ ment | |
| 53 | ||
| 54 | echo 'INST ALLER: Loc ale set' | |
| 55 | ||
| 56 | # install Oracle Dat abase prer eq package s | |
| 57 | #mgj yum i nstall -y oracle-rdb ms-server- 12cR1-prei nstall | |
| 58 | yum instal l -y oracl e-rdbms-se rver-11gR2 -preinstal l | |
| 59 | ||
| 60 | echo 'INST ALLER: Ora cle preins tall compl ete' | |
| 61 | ||
| 62 | # create d irectories | |
| 63 | if [ ! -d "/u01" ]; then | |
| 64 | mk dir /u01 | |
| 65 | fi | |
| 66 | ||
| 67 | if [ ! -d "/u01/app" ]; then | |
| 68 | mk dir /u01/a pp | |
| 69 | fi | |
| 70 | ||
| 71 | if [ ! -d "/u01/app/ oracle" ]; then | |
| 72 | mk dir /u01/a pp/oracle | |
| 73 | fi | |
| 74 | ||
| 75 | if [ ! -d "/u01/app/ oraInvento ry" ]; the n | |
| 76 | mk dir /u01/a pp/oraInve ntory | |
| 77 | fi | |
| 78 | ||
| 79 | if [ ! -d "/u01/tmp" ]; then | |
| 80 | mk dir /u01/t mp | |
| 81 | fi | |
| 82 | ||
| 83 | chown orac le:oinstal l -R /u01 | |
| 84 | ||
| 85 | echo 'INST ALLER: Ora cle direct ories crea ted' | |
| 86 | ||
| 87 | # set envi ronment va riables | |
| 88 | echo "expo rt ORACLE_ BASE=/u01/ app/oracle " >> /home /oracle/.b ashrc \ | |
| 89 | && echo " export ORA CLE_HOME=/ u01/app/or acle/produ ct/11.2.0/ dbhome_1" >> /home/o racle/.bas hrc \ | |
| 90 | && echo " export ORA CLE_SID=or cl" >> /ho me/oracle/ .bashrc \ | |
| 91 | && echo " export PAT H=\$PATH:\ $ORACLE_HO ME/bin" >> /home/ora cle/.bashr c | |
| 92 | ||
| 93 | ||
| 94 | echo 'INST ALLER: Env ironment v ariables s et' | |
| 95 | ||
| 96 | # install Oracle | |
| 97 | ||
| 98 | echo 'INST ALLER: Unz ip Oracle installer. ..' | |
| 99 | ||
| 100 | /bin/unzip -q /insta lls/linux. x64_11gR2_ database_1 of2.zip -d /u01/tmp | |
| 101 | /bin/unzip -q /insta lls/linux. x64_11gR2_ database_2 of2.zip -d /u01/tmp | |
| 102 | ||
| 103 | #su -l ora cle -c "ye s | /vagra nt/databas e/runInsta ller -sile nt -showPr ogress -ig norePrereq -waitforc ompletion -responseF ile $ORACL E_ROOT/tmp /db_instal l_my.rsp" | |
| 104 | su -l orac le -c "yes | /u01/tm p/database /runInstal ler -silen t -waitfor completion -ignorePr ereq -resp onseFile / vagrant/or acle/templ ates/db_in stall_my.r sp" | |
| 105 | /u01/app/o raInventor y/orainstR oot.sh | |
| 106 | /u01/app/o racle/prod uct/11.2.0 /dbhome_1/ root.sh | |
| 107 | ||
| 108 | echo 'INST ALLER: Ora cle instal led' | |
| 109 | ||
| 110 | ### this b ug is spec ific to 12 c...we are running 1 1g so I co mmented it out - mgj | |
| 111 | # To worka round an i nstaller b ug, we nee d to ensur e a missin g library is in plac e, then re build and relink | |
| 112 | # The actu al Oracle installati on appears to work, however th e logs sho w this: | |
| 113 | # INFO: /u sr/bin/ld: cannot fi nd -ljavav m12 | |
| 114 | # Which th en causes a compilat ion failur e and the oracle bin ary (and s everal oth ers) end u p being 0 bytes | |
| 115 | # Ref: htt p://ruleof tech.com/2 016/proble ms-with-in stalling-o racle-db-1 2c-ee-ora- 12547-tns- lost-conta ct | |
| 116 | # Optional ly: | |
| 117 | # make -kf ins_repor ts60w.mk i nstall (on CCMgr ser ver) | |
| 118 | # make -kf ins_forms 60w.instal l (on Form s/Web serv er) | |
| 119 | # And then to fix th e error on relinking , reinstal l Perl: | |
| 120 | # Ref: htt ps://dbaso lved.com/2 015/08/24/ issue-with -perl-in-o racle_home -during-in stalls/ | |
| 121 | ||
| 122 | ##ORACLE_H OME=/u01/a pp/oracle/ product/11 .2.0/dbhom e_1 | |
| 123 | ||
| 124 | # Reinstal l Perl | |
| 125 | ##wget htt p://www.cp an.org/src /5.0/perl- 5.14.4.tar .gz -P /tm p/ | |
| 126 | ##tar -xzf /tmp/perl -5.14.4.ta r.gz -C /t mp/ | |
| 127 | ##cd /tmp/ perl-5.14. 4 | |
| 128 | ##./Config ure -des - Dprefix=$O RACLE_HOME /perl | |
| 129 | ##make | |
| 130 | ##make ins tall | |
| 131 | ##chown or acle:oinst all $ORACL E_HOME/per l | |
| 132 | ||
| 133 | # Recompil e and reli nk | |
| 134 | ##su -l or acle -c "m v $ORACLE_ HOME/rdbms /lib/confi g.o $ORACL E_HOME/rdb ms/lib/con fig.o.bad" | |
| 135 | ##su -l or acle -c "c p $ORACLE_ HOME/javav m/jdk/jdk6 /lib/libja vavm12.a $ ORACLE_HOM E/lib/" | |
| 136 | ##su -l or acle -c "c hown oracl e:oinstall $ORACLE_H OME/lib/li bjavavm12. a" | |
| 137 | ##su -l or acle -c "m ake -f $OR ACLE_HOME/ rdbms/lib/ ins_rdbms. mk install " | |
| 138 | ##su -l or acle -c "m ake -f $OR ACLE_HOME/ network/li b/ins_net_ server.mk install" | |
| 139 | ##su -l or acle -c "m ake -kf $O RACLE_HOME /sqlplus/l ib/ins_sql plus.mk in stall" | |
| 140 | ##su -l or acle -c "$ ORACLE_HOM E/bin/reli nk all" | |
| 141 | ||
| 142 | ##echo 'IN STALLER: O racle inst allation f ixed and r elinked' | |
| 143 | ||
| 144 | # create l istener vi a netca | |
| 145 | su -l orac le -c "net ca -silent -response File /vagr ant/oracle /templates /netca.rsp " | |
| 146 | echo 'INST ALLER: Lis tener crea ted' | |
| 147 | ||
| 148 | # create d atabase | |
| 149 | su -l orac le -c "dbc a -silent -createDat abase -res ponseFile /vagrant/o racle/temp lates/dbca .rsp" | |
| 150 | echo 'INST ALLER: Dat abase crea ted' | |
| 151 | ||
| 152 | sed '$s/N/ Y/' /etc/o ratab | su do tee /et c/oratab > /dev/null | |
| 153 | echo 'INST ALLER: Ora tab config ured' | |
| 154 | ||
| 155 | # configur e systemd to start o racle inst ance on st artup | |
| 156 | sudo cp /v agrant/scr ipts/oracl e-rdbms.se rvice /etc /systemd/s ystem/ | |
| 157 | sudo syste mctl daemo n-reload | |
| 158 | sudo syste mctl enabl e oracle-r dbms | |
| 159 | sudo syste mctl start oracle-rd bms | |
| 160 | echo "INST ALLER: Cre ated and e nabled ora cle-rdbms systemd's service" | |
| 161 | ||
| 162 | # remove O racle inst aller dire ctory | |
| 163 | /bin/rm -r f /u01/tmp | |
| 164 | echo "INST ALLER: Ins taller dir ectory rem oved" | |
| 165 | ||
| 166 | echo 'INST ALLER: Ins tallation complete' |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.