NonStop Server Guide for BEA WebLogic Server 8.1

Sample Application
HP NonStop Server Guide for BEA WebLogic Server 8.1529891-001
10-6
Running MedRec in Another Location
2. Copy the medrec_sqlmx or medrec_sqlmx2 directory from the installed
WebLogic Server samples to the directory you just created. For example:
ksh [148] export WL_HOME=/usr/bea/weblogic81
ksh [150] cp -rp $WL_HOME/samples/domains/medrec_sqlmx/* $MYMEDREC
3. Remove files that might be left over after MedRec was run in the installed
WebLogic Server location. These files might interfere with the operation of your
private copy of MedRec. The cleanMedRec_sqlmx.sh script is supplied to do
this. For example:
ksh [153] cd $MYMEDREC
ksh [154] ./cleanMedRec_sqlmx.sh
4. Set and export shell variables with values for your private copy of MedRec and run
the alterMedRec_sqlmx.sh script, which changes files to use these values. For
example:
ksh [156] export NEW_PORT=20011
ksh [157] export NEW_SPORT=20012
ksh [158] export NEW_XARES=medrec-2
ksh [160]$ ./alterMedRec_sqlmx.sh * db/*
NEW_PORT=20011
NEW_SPORT=20012
NEW_XARES=medrec-2
Old string = 7001
New string = 20011
Changing config.xml
Changing startMedRecServer_sqlmx.sh
Old string = 7002
New string = 20012
Changing config.xml
Old string = TMF_RM=medrec$
New string = TMF_RM=medrec-2
Changing db/create_medrecdb.sh
5. Run MedRec with the same commands used earlier (see Running MedRec
Application in the Installed WebLogic Server Location). Values that should be
unique are reported so you can check your changes.
ksh [165] cd $MYMEDREC
ksh [166] . ./startMedRecServer_sqlmx.sh
6. Control returns to the shell at this point. If the values reported in Step 5 are not
those you want, you should edit config.xml, startMedRecServer_sqlmx.sh
or create_medrecdb.sh before MedRec starts. For example, you may want to
change the subvolume used for NonStop SQL/MP tables.
7. Run the commands shown in the output of Step 5, to start MedRec as shown
earlier:
db/create_medrecdb.sh -m $PWD
. . . .
. ./startMedRecServer_sqlmx.sh
If you change values as shown in Step 6, the output in this step shows the users
new value.