Running Oracle VM Templates on Oracle Enterprise Linux guide (Part 5 of 6)
In the last part, we fully configured our Database. This time we are going to install Tools on the other Oracle Linux image, and will actually be starting up Peoplesoft! We will have our Application Server, Web Server and Process Scheduler running in no time! All thats left is getting the application designer to talk to the machine.
Index of my blog series.
- Prerequisites before starting the guide.
- Installing Virtualbox and Converting the OVM Templates.
- Installing Oracle Linux for OVM. (Based on this blog from Hakan Biroglu)
- Installing and configurating the HCM database.
- Installing and configuring PeopleTools. (application server, web server and process scheduler)
- Installing and configuring PeopleTools on your windows client.
Now that we have configured the database, we are going to configure the tools server. Add the TOOLS.vdi and System.vdi (in that order) to our machine.
We need to set the IP-Address of this machine too, since the database machine has the 192.168.56.50 IP, this machine gets 192.168.56.51. (as configured in the hosts file)
After setting the IP, deactivate and activate both eth0 and eth1 to make sure our internet connection is working again. Since we set our hcmdb91 machine’s host name in the installation. We need to change this now. Edit the /etc/sysconfig/network file. Change the hostname from hcmdb91.example.com to hcmpt91.example.com. Save and exit.
vi /etc/sysconfig/network
Next, change the hosts file.
vi /etc/hosts
Make sure it looks like the one below.
127.0.0.1 hcmpt91.example.com hcmpt91 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.56.50 hcmdb91 hcmdb91.example.com 192.168.56.51 hcmpt91 hcmpt91.example.com
Save and exit the file. We now need to set some peoplesoft environment variables to psadm2’s .bash_profile.
vi /home/psadm2/.bash_profile
add this to the bottom of the file;
# psft env vars export PS_APP_HOME=/opt/oracle/psft/pt/apptools export PS_CFG_HOME=/home/psadm2/psft/pt/8.52/HCM export ORACLE_BASE=/opt/oracle/psft/pt/oracle-client export ORACLE_HOME=$ORACLE_BASE/11.2.0.x export ORACLE_SID=HCM export TUXDIR=/opt/oracle/psft/pt/bea/tuxedo export LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH:$ORACLE_HOME/lib . /opt/oracle/psft/pt/tools/psconfig.sh export PATH=$TUXDIR/bin:$PATH:$ORACLE_HOME/bin export LANG=C
it will look like the picture below.
Next we are going to make a temporary folder where we can mount the system disk. We also need to copy some files from the system disk so we can do the installation.
mkdir /tmp/sdc2 mount /dev/sdc2 /tmp/sdc2 cp -R -p /tmp/sdc2/opt/oracle /opt/
Since we copied the hcmdb machine, there are already some files in the /opt/oracle/psft/vm folder. We will overwrite them. Give a Y to each overwrite,
Now we need to edit the /etc/fstab file, to mount our tools disk when we start the machine. Add the following line to the end of the file.
/dev/sdb1 /opt/oracle/psft/pt ext3 defaults 1 3
It will look like this.
Now we will create the PS_CFG_HOME directory, and mount the tools disk.
mkdir -p /home/psadm2/psft/pt/8.52/HCM chown -R psadm2:oracle /home/psadm2/psft mount /opt/oracle/psft/pt
CD into the /opt/oracle/psft/vm directory, and export the appinst user group. After doing this, start the Tools configuration script by using ./oraclevm-template.sh
cd /opt/oracle/psft/vm export DECOUPLE_USR_GROUP=appinst ./oraclevm-template.sh
During the configuration, we will need to answer several questions. They are visible in the screenshots below, in the red boxes. I’ve posted the full ouput of the script below, and made my answers bold.
[root@hcmpt91 ~]# cd /opt/oracle/psft/vm [root@hcmpt91 vm]# export DECOUPLE_USR_GROUP=appinst [root@hcmpt91 vm]# ./oraclevm-template.sh
Creating
No
Current
Current
Setting
./oraclevm-template.sh: line 403: ovm_set_password: command not found
./oraclevm-template.sh: line 404: ovm_configure_network: command not found
Do you wish to configure the VM for Demo Purposes [y/n]:y
Do you wish to configure a Decoupled Application Home [y/n]:y
Default
Do you wish to setup PeopleSoft Application Server on this VM [y|n]: y
CreateVirtualEnvironment
Enter the name of the database [HCM91]:HCM
Enter the hostname for the database server [hcmpt91.example.com]:hcmdb91
Enter the port number for the database host [1521]:
Are you happy with your answers [y|n] : y
WARN: An
If this VM is connecting to a PeopleSoft database created from an Oracle VM template
some additional setup may be required. We can automate these steps for you. If you
are connecting to a Database that has been used before you may wish to skip this step.
Do you want this additional setup to be performed? [y|n]: y
ChangeDBUserProfiles
Running
Running
Copying application server configuration files…
Copying [/opt/oracle/psft/pt/tools/appserv/small.cfx] to [/home/psadm2/psft/pt/8.52/HCM/appserv/APPDOM/psappsrv.cfg]
Stripping Annotations…
Copying [/opt/oracle/psft/pt/tools/appserv/small.cfx] to [/home/psadm2/psft/pt/8.52/HCM/appserv/APPDOM/psappsrv.cfx]
Copying Jolt repository file…
Domain created.
Performing load prechecks …
Loading validation table…
setting DBName=HCM
setting DBType=ORACLE
setting UserId=PS
setting UserPswd=PS
setting ConnectId=people
setting ConnectPswd=peop1e
setting ServerName=____
setting Port=7000
setting Port=9000
setting Listener Port=9100
setting Domain ID=APPDOM
setting Add to PATH=.
New CFG file written with modified Startup parameters
Log Directory entry not found in configuration file.
Setting Log Directory to the default… [PS_SERVDIR/LOGS]
Spawning disabled for server PSAPPSRV.
WARNING: PSSAMSRV is configured with Min instance set to 1. To avoid loss of service, configure Min instance to atleast 2.
Configuration file successfully created.
CFG setting changes completed, loading configuration…
Domain configuration complete.
Created
Performing load prechecks …
Loading validation table…
WARNING: PSSAMSRV and PSQRYSRV are configured with Min instance set to 1. To avoid loss of service, configure Min instance to atleast 2.
Loading new configuration…
Domain configuration complete.
Domain
Starting
Archived a copy of the domain configuration to /home/psadm2/psft/pt/8.52/HCM/appserv/APPDOM/Archive/psappsrv.cfg
Attempting to boot bulletin board…
tmadmin – Copyright (c) 2007-2008 Oracle.
Portions * Copyright 1986-1997 RSA Data Security, Inc.
All Rights Reserved.
Distributed under license by Oracle.
Tuxedo is a registered trademark.
No bulletin board exists. Entering boot mode.
> INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level 043
Booting admin processes …
exec BBL -A :
process id=4091 … Started.
1 process started.
Attaching to active bulletin board.
> Attempting to boot …
INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level 043
Booting server processes …
exec PSWATCHSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -ID 95518 -D APPDOM -S PSWATCHSRV :
process id=4095 … Started.
exec PSAPPSRV -o ./LOGS/stdout -e ./LOGS/stderr -s@psappsrv.lst — -D APPDOM -S PSAPPSRV :
process id=4096 … Started.
exec PSAPPSRV -o ./LOGS/stdout -e ./LOGS/stderr -s@psappsrv.lst — -D APPDOM -S PSAPPSRV :
process id=4102 … Started.
exec PSQRYSRV -o ./LOGS/stdout -e ./LOGS/stderr -s@psqrysrv.lst — -D APPDOM -S PSQRYSRV :
process id=4108 … Started.
exec PSSAMSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -D APPDOM -S PSSAMSRV :
process id=4112 … Started.
exec PSANALYTICSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -D APPDOM -S PSANALYTICSRV :
process id=4115 … Started.
exec PSANALYTICSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -D APPDOM -S PSANALYTICSRV :
process id=4118 … Started.
exec PSANALYTICSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -D APPDOM -S PSANALYTICSRV :
process id=4121 … Started.
exec PSBRKHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSBRKHND_dflt:BrkProcess — -D APPDOM -S PSBRKHND_dflt :
process id=4124 … Started.
exec PSBRKDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSBRKDSP_dflt:Dispatch — -D APPDOM -S PSBRKDSP_dflt :
process id=4127 … Started.
exec PSPUBHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSPUBHND_dflt:PubConProcess — -D APPDOM -S PSPUBHND_dflt :
process id=4130 … Started.
exec PSPUBDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSPUBDSP_dflt:Dispatch — -D APPDOM -S PSPUBDSP_dflt :
process id=4134 … Started.
exec PSSUBHND -o ./LOGS/stdout -e ./LOGS/stderr -s PSSUBHND_dflt:SubConProcess — -D APPDOM -S PSSUBHND_dflt :
process id=4146 … Started.
exec PSSUBDSP -o ./LOGS/stdout -e ./LOGS/stderr -s PSSUBDSP_dflt:Dispatch — -D APPDOM -S PSSUBDSP_dflt :
process id=4149 … Started.
exec PSMONITORSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -ID 95518 -D APPDOM -S PSMONITORSRV :
process id=4152 … Started.
exec JSL -o ./LOGS/stdout -e ./LOGS/stderr -A — -n //hcmpt91.example.com:9000 -m 5 -M 7 -I 5 -j ANY -x 40 -S 10 -c 1000000 -w JSH :
process id=4156 … Started.
exec JREPSVR -o ./LOGS/stdout -e ./LOGS/stderr -A — -W -P /home/psadm2/psft/pt/8.52/HCM/appserv/APPDOM/jrepository :
process id=4162 … Started.
17 processes started.
Domain
Creating Process Scheduler Server for Database PRCSDOM…
Copying Process Scheduler Server configuration file(s)…
Stripping Annotations…
Process Scheduler Server configuration created.
Loading validation table…
setting DBName=HCM
setting DBType=ORACLE
setting UserId=PS
setting UserPswd=PS
setting ConnectId=people
setting ConnectPswd=peop1e
setting ServerName=hcmdb91
setting PrcsServerName=PRCS5568
setting Log/Output Directory=%PS_SERVDIR%/log_output
setting Add to PATH=.
setting SQRBIN=%PS_HOME%/bin/sqr/%PS_DB%/bin
New CFG file written with modified Startup parameters
Log Directory entry not found in configuration file.
Setting Log Directory to the default… [PS_SERVDIR/LOGS]
Spawning enabled for server PSDSTSRV.
WARNING: PSDSTSRV is configured with Min instance set to 1. To avoid loss of service, configure Min instance to atleast 2.
Configuration file successfully created.
CFG setting changes completed, loading configuration…
Process Scheduler Server configuration complete.
Created
Loading validation table…
Log Directory entry not found in configuration file.
Setting Log Directory to the default… [PS_SERVDIR/LOGS]
Spawning enabled for server PSDSTSRV.
WARNING: PSDSTSRV is configured with Min instance set to 1. To avoid loss of service, configure Min instance to atleast 2.
Configuration file successfully created.
CFG setting changes completed, loading configuration…
Domain configuration complete.
Process Scheduler Server configuration complete.
Domain
Starting
Archived a copy of the domain configuration to /home/psadm2/psft/pt/8.52/HCM/appserv/prcs/PRCSDOM/Archive/psprcs.cfg
Attempting to boot bulletin board…
tmadmin – Copyright (c) 2007-2008 Oracle.
Portions * Copyright 1986-1997 RSA Data Security, Inc.
All Rights Reserved.
Distributed under license by Oracle.
Tuxedo is a registered trademark.
No bulletin board exists. Entering boot mode.
> INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level 043
Booting admin processes …
exec BBL -A :
process id=4413 … Started.
1 process started.
Attaching to active bulletin board.
> Attempting to boot …
INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level 043
Booting server processes …
exec PSMSTPRC -o ./LOGS/stdout -e ./LOGS/stderr -A — -CD HCM -PS PRCS5568 -A start -S PSMSTPRC :
process id=4417 … Started.
exec PSAESRV -o ./LOGS/stdout -e ./LOGS/stderr — -CD HCM -S PSAESRV :
process id=4423 … Started.
exec PSAESRV -o ./LOGS/stdout -e ./LOGS/stderr — -CD HCM -S PSAESRV :
process id=4427 … Started.
exec PSAESRV -o ./LOGS/stdout -e ./LOGS/stderr — -CD HCM -S PSAESRV :
process id=4431 … Started.
exec PSDSTSRV -o ./LOGS/stdout -e ./LOGS/stderr -p 1,600:1,1 -sPostReport — -CD HCM -PS PRCS5568 -A start -S PSDSTSRV :
process id=4435 … Started.
exec PSPRCSRV -o ./LOGS/stdout -e ./LOGS/stderr -sInitiateRequest — -CD HCM -PS PRCS5568 -A start -S PSPRCSRV :
process id=4440 … Started.
exec PSMONITORSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -ID 150720 -PS PRCS5568 -S PSMONITORSRV :
process id=4448 … Started.
7 processes started.
Domain
Setting
Extracting Micro Focus Server Express 5.1 WP4 and LMF …
Installing
This script will install Micro Focus Server Express 5.1 on this computer.
——————————————————————————–
Before installing and using this software product you must
agree to be bound by the terms and conditions of the end user
license agreement (“License Agreement”) which accompanies this product.
Please take this time to read the License Agreement. If you are not in
agreement with the terms and conditions of the License Agreement, please
return the product to your Account Representative and your money will
be refunded. If you require a replacement copy of the License
Agreement, please contact your Account Representative before proceeding
with the install process.
Do you agree to the terms of the License Agreement? (y/n): y
——————————————————————————–
This product is protected using the Micro Focus License Management
Facility (LMF). Please refer to the Development System Licensing Guide
for information relating to the installation of the licensing system
and licenses.
Empty database created ok
LMF installation complete
——————————————————————————–
Installation completed successfully.
The COBOL system is ready to use.
Installing
A 30 day evaluation license has been installed for the Micro Focus
Server Express 5.1 COBOL Compiler and Runtime. Please contact Micro Focus
or Oracle Sales for a full license if you intend to use this product
beyond the 30 day evalutation period.
Starting
MF-LMF:Sun Jul 29 17:30:06 2012: LMF Starting
Compiling & Linking COBOL sources …
Compiling
Linking
MF-LMF:Sun Jul 29 17:30:07 2012: LMF Closing Down
Do you wish to setup PeopleSoft Pure Internet Architecture on this VM [y|n]: y
CreateVirtualEnvironment
Enter the Authentication Domain for PIA []:example.com
Domain
Setting temporary directory /home/psadm2/psft/pt/8.52/HCM/tmp/IA.4920
Executing setup.linux LAX_VM /opt/oracle/psft/pt/tools/jre/bin/java -i silent -DRES_FILE_PATH=/home/psadm2/psft/pt/8.52/HCM/tmp/install.properties -DCOMP_NAME=hcmpt91.example.com -DPS_UMASK=0022
Preparing to install…
Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…
Launching installer…
Preparing SILENT Mode Installation…
===============================================================================
PeopleSoft Internet Architecture (created with InstallAnywhere)
——————————————————————————-
===============================================================================
Installing…
————-
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]
Installation Complete.
Enter the connect string for the AppServer domain. This is the host:port on
which the Application Server domain will listen for incoming connections.
You may provide failover and load balancing rules using the format described
in the PeopleBooks. Hit Enter to use the default [hcmpt91.example.com:9000]:
Are you happy with your answers [y|n] : y
Updated
Ownership
********************WARNING******************************************************
Hard limit value of the file descriptors on this system is set to 1024
In order to run the server process with 4096 file descriptors,
increase the hard limit on the system equal or higher than the number
MAX_FILE_DESCRIPTORS in setenv.sh
*********************************************************************************
Attempting to start WebLogic Server PIA
No activity will be logged to this window.
Server activity will be logged to /home/psadm2/psft/pt/8.52/HCM/webserv/peoplesoft/servers/PIA/logs/PIA_*
PID for WebLogic Server PIA is: 5470
PIA
You are running both AppBatch and PeopleSoft Internet Architecture in the
same VM. This means that some additional automated setup can be done.
Report Nodes, integrations etc. can be created due to the presence of
multiple tiers in the same host.
Note: you may not wish to do this if connecting to an existing database
This is a step typically taken in demo environment with a clean database
Do you wish for this additional setup to be performed [y|n]: y
User
SetupPRCSReportNodes
Running
Process
SetupIntegrationBroker
Running
Updated
Integration
Stopping
Stopping
Shutdown will wait for each process to complete current job…
Shutting down all admin and server processes in /home/psadm2/psft/pt/8.52/HCM/appserv/prcs/PRCSDOM/PSTUXCFG
Shutting down server processes …
Server Id = 1 Group Id = MONITOR Machine = hcmpt91.example.com: shutdown succeeded
Server Id = 101 Group Id = BASE Machine = hcmpt91.example.com: shutdown succeeded
Server Id = 103 Group Id = BASE Machine = hcmpt91.example.com: shutdown succeeded
Server Id = 3 Group Id = AESRV Machine = hcmpt91.example.com: shutdown succeeded
Server Id = 2 Group Id = AESRV Machine = hcmpt91.example.com: shutdown succeeded
Server Id = 1 Group Id = AESRV Machine = hcmpt91.example.com: shutdown succeeded
Server Id = 102 Group Id = BASE Machine = hcmpt91.example.com: shutdown succeeded
Shutting down admin processes …
Server Id = 0 Group Id = hcmpt91.example.com Machine = hcmpt91.example.com: shutdown succeeded
8 processes stopped.
Starting
Attempting to boot bulletin board…
tmadmin – Copyright (c) 2007-2008 Oracle.
Portions * Copyright 1986-1997 RSA Data Security, Inc.
All Rights Reserved.
Distributed under license by Oracle.
Tuxedo is a registered trademark.
No bulletin board exists. Entering boot mode.
> INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level 043
Booting admin processes …
exec BBL -A :
process id=6233 … Started.
1 process started.
Attaching to active bulletin board.
> Attempting to boot …
INFO: Oracle Tuxedo, Version 10.3.0.0, 64-bit, Patch Level 043
Booting server processes …
exec PSMSTPRC -o ./LOGS/stdout -e ./LOGS/stderr -A — -CD HCM -PS PRCS5568 -A start -S PSMSTPRC :
process id=6237 … Started.
exec PSAESRV -o ./LOGS/stdout -e ./LOGS/stderr — -CD HCM -S PSAESRV :
process id=6242 … Started.
exec PSAESRV -o ./LOGS/stdout -e ./LOGS/stderr — -CD HCM -S PSAESRV :
process id=6247 … Started.
exec PSAESRV -o ./LOGS/stdout -e ./LOGS/stderr — -CD HCM -S PSAESRV :
process id=6251 … Started.
exec PSDSTSRV -o ./LOGS/stdout -e ./LOGS/stderr -p 1,600:1,1 -sPostReport — -CD HCM -PS PRCS5568 -A start -S PSDSTSRV :
process id=6255 … Started.
exec PSPRCSRV -o ./LOGS/stdout -e ./LOGS/stderr -sInitiateRequest — -CD HCM -PS PRCS5568 -A start -S PSPRCSRV :
process id=6260 … Started.
exec PSMONITORSRV -o ./LOGS/stdout -e ./LOGS/stderr -A — -ID 150720 -PS PRCS5568 -S PSMONITORSRV :
process id=6268 … Started.
7 processes started.
Domain
Enabling App-Batch-PIA Service
ovm_configure_post
[root@hcmpt91 vm]#
Now we are done! Go to http://hcmpt91.example.com:8000 in our browser, and follow the link to the peoplesoft login page. When we can login with the PS/PS user, we are finished!
Viewed 1144 times by 354 visitors
5 Responses (last comment shown first)
Unfortunately I continued prior to getting this update and got several errors when calling the ./oraclevm-template.sh script. It was asking for the “Remote Application Home directory:” I just hit enter. This gave me an error, but the process seemed to continue as you describe above. The only questions I did not get were the ones asking me if I wanted to automate steps since I was installing from a VM and the License Agreement question, however, it did not finish with PIA starting and when I tried to access http://hcmpt91.example.com:9000/ (also tried 8000 per your thread) I got a page not found message.
After that I tried to start over with a new .bash_profile:
# psft env vars
export PS_APP_HOME=/opt/oracle/psft/pt/apptools
export PS_CFG_HOME=/home/psadm2/psft/pt/8.52/HCM
export ORACLE_BASE=/opt/oracle/psft/pt/oracle-client
export ORACLE_HOME=$ORACLE_BASE/11.2.0.x
export ORACLE_SID=HCM
, but I got the same ERROR, at the same step:
ERROR: Unable
Enter the full path of the remote Application Home directory: I entered “/opt/oracle/psft/ps/apptools” since this was PS_APP_HOME. This gave me:
ERROR: Unable
WARN: An
WARN: Failed
And several other errors:
CMDTUX_CAT:1685: ERROR Application Initialization failure
tmboot: CMDTUX_CAT:827: ERROR Fatal error encountered, initiating user error handler
exec tmshutdown -qy
No bulletin board exists. Entering boot mode.
COBOL Environment already exists. Please remove it before running this script.
ovm_set_password: command not found
ovm_configure_network: command not found
Then I tried to do it one more time, hoping to enter the proper Application Home directory, however I got the message: “AppBatch environment already exists. Please remove it before running this script”.
Any suggestions on how to clean this up?
Wijnand Gritter Reply:
September 12th, 2012 at 5:33 am
use “cd /opt/oracle/psft/vm”, then use the ./template-cleanup.sh command to clean up. Then run the ./oraclevm-template.sh again. Note, for this script to work, both virtual machines should be up and running. Since the Application VM we are running now will connect with the Database VM.
In the .bash_profile, is this supposed to say FSCM912, or HCM91?
# psft env vars
export PS_APP_HOME=/opt/oracle/psft/pt/apptools
export PS_CFG_HOME=/home/psadm2/psft/pt/8.52/FSCM912
export ORACLE_BASE=/opt/oracle/psft/pt/oracle-client
export ORACLE_HOME=$ORACLE_BASE/11.2.0.x
export ORACLE_SID=FSCM912
Wijnand Gritter Reply:
September 11th, 2012 at 1:45 pm
This should be HCM instead of FSCM912 / HCM91
Looks like it still is not working. I got the following error when rerunning the script:
….
exec JSL -o ./LOGS/stdout -e ./LOGS/stderr -A — -n //hcmdb91.local.com:9000 -m 5 -M 7 -I 5 -j ANY -x 40 -S 10 -c 1000000 -w JSH :
Failed.
tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler
exec tmshutdown -qy
ERROR: Domain
Creating Process Scheduler Server for Database PRCSDOM…
Copying Process Scheduler Server configuration file(s)…
Stripping Annotations…
Process Scheduler Server configuration created.
Loading validation table…
setting DBName=HCM
setting DBType=ORACLE
…
The process continued and when I attempted to access the PIA environment I get this error:
CHECK APPSERVER LOGS. THE SITE BOOTED WITH INTERNAL DEFAULT SETTINGS, BECAUSE OF: java.lang.NullPointerException
We’ve detected that your operating system is not supported by this website. For best results, use one of the following operating systems:
I eventually attempted to create another VM using all three .vdi images, however, it won’t let me do this as it says these .vdi are already in use.
[Reply to this comment]