Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Cloning with SSO

One time setup per E-Business environment.


1. Check if managed server is setup for eag. I have created entries for all current ebs environments,
but they are not started until you follow steps below.
Go to “oamd” environment in Apex
Login to “Weblogic Console for EAG” with weblogic user and weblogic(eag) password
Environment  Servers  Check if a managed server with name “eag_<ebs env> is setup.
Note down the “Listen Port” value

2. Add an entry to managed server start/stop list


Login to usncx242 as oamdmgr user
cd bin
vi mslist
Add an entry for the ebs env.

3. Start managed server


Login to usncx242 as oamdmgr user
cd bin
./start_eag_ms.sh [ebs enbv]

4. Create deployment directory for eag


cd /mnt/oraoamd/product/fmw/appsutil/accessgate/
mkdir <ebs env> (Example: mkdir pch12). This should always be in lower case
cd <ebs env>
unzip /mnt/oraoamd/software/p17602754_R12_GENERIC.zip

5. Register the new ebiz env with OAM


On usncv095 as oamdmgr
cd bin
./oam_rreg.sh <ebiz env>
Note: This might take 5 minutes to run

6. If new managed server was setup, add entries to reverse proxy server
Login to usncv096 as oamdmgr
cd /mnt/oraoamd/instance/web1/config/OHS/ohs1
make a backup of mod_wl_ohs.conf
cp -p mod_wl_ohs.conf mod_wl_ohs.conf.bkp.2014<MM><DD>
vi mod_wl_ohs.conf
If the ebs environment does not exist, add the following at the end of file, just above
</VirtualHost>
<Location /ebsauth_[ebs env]>
WLProxySSL ON
WLProxySSLPassThrough ON
SetHandler weblogic-handler
WebLogicHost usncx242.diebold.com
WebLogicPort [port captured in step 1 above]
7. Change flag in apex database to SSO
Login to usncx010 as oemora
sqlplus "/ as sysdba"
update dbddba.ebiz_env
set sso='Y'
where env = '&ebs_env';
commit;
8. Generate Unix files on apex
9. Copy to Hamilton if required.

Manual SSO Clone steps


See “E-Business Cloning script.docx” for detailed description on how the current clones automatically
handle the post clone steps. <Documentation Pending>

1. Create dbc file


On Main concurrent manager server as <env>mgr user
cd /mnt/oracle_stage_NAS/clones/scripts/ebiz/apps
./sso_oamd_create_dbc.sh
You will be prompted for the apps password

2. Redeploy datasource and accessgate application


On usncx242 as oamdmgr
cd bin
./oamd_ebs.sh <ebiz env> all

3. Set the following Oracle E-Business Suite profile options.


Profile Level Value
Application Authenticate Agent Site https://oamd.diebold.com/ebsauth_<ebiz env in
lower case>
Applications SSO Type Site SSWA w/SSO
Applications Single Sign On Hint Cookie Site <blank> (null)
Name Was: ORASSO_AUTH_HINT
Applications SSO Auto Link User Site Enabled
Was blank
Applications SSO Post Logout URL Pending

4. Register Instance (R12 only. Not required for 11i)


On Main concurrent manager server as <env>mgr user
cd /mnt/oracle_stage_NAS/clones/scripts/ebiz/apps
./sso_oamd_register_instance.sh

5. Register OID
On Main concurrent manager server as <env>mgr user
cd /mnt/oracle_stage_NAS/clones/scripts/ebiz/apps
./sso_oidd_register_oid.sh

Scripts :-

[]-->cat mslist
jedi
tst12
uat12
svc12
pch12
tst12
lion
icon
faro
agua
tst13
arch1
army
dev12

[]-->cat start_eag_ms.sh
if [ $# -ne 1 ]
then echo "Usage: start_eag_ms.sh [EBS sid]
Example start_eag_ms.sh svc12";exit 1
fi

echo "vnodeManagerPort=5556
vuserConfigFile='wlConfigFile'
vuserKeyFile='wlUserKeyFile'
vdomainName='eag'
vdomainDir='/mnt/oraoamd/product/fmw/user_projects/domains/eag'
vurl='t3://localhost:7041'
import time
from os import popen
class Namespace: pass
result=Namespace()
result.ErrorLevel=0
print('Starting E-Business Accessgate')
print('Connecting to Node Manager... ')
hideDumpStack('true')
connect(userConfigFile=vdomainDir+'/xxdbd/'+vuserConfigFile,userKeyFile=vdomainDir+'/xxdbd/'+vuserKeyFile,host='localhost',url=vurl)
try:
print('Starting managed server eag_$1')
start('eag_$1')
except:
print('Failed to start managed server eag_$1')
result.ErrorLevel=1

print('Startup Complete')
exit(exitcode=result.ErrorLevel) " > ~/bin/start_eag_ms.py
. ~/bin/setenv.sh
. $WL_TOP/server/bin/setWLSEnv.sh
java weblogic.WLST ~/bin/start_eag_ms.py
[]-->cat oam_rreg.sh
if [ $# -ne 1 ]
then
echo "Usage: $0 [ebs env]"; exit 1
fi
SID=`echo $1|tr [:upper:] [:lower:]`
RREG_HOME=/mnt/oraoamd/product/fmw/Oracle_IDM1/oam/server/rreg
TEMPLATE=$RREG_HOME/input/ebs.template.oam.conf
OUTFILE=$RREG_HOME/input/ebs.${SID}.oam.conf

if [ -f $OUTFILE ]
then echo "$OUTFILE already exists.
Hit Enter to Continue or Ctrl+C to exit";read x
fi

sed 's/xxxx/'$SID'/g' $TEMPLATE > $OUTFILE

cd /mnt/oraoamd/product/fmw/Oracle_IDM1/oam/server/rreg
(echo oamadmin; echo K3e9#u6cjyt8vf1W; echo n; echo y )| ./bin/oamreg.sh inband input/Diebold_webgate_usncv096.xml -
noprompt /mnt/oraoamd/product/fmw/Oracle_IDM1/oam/server/rreg/input/ebs.$SID.oam.conf

You might also like