Skip to content

Instantly share code, notes, and snippets.

ADMIN_USER=weblogic
ADMIN_PWD=welcome1
username=weblogic
password=welcome1
EBSDB_PWD=apps
NM_USER=weblogic
NM_PWD=welcome1
@MaheshwarReddyGade
MaheshwarReddyGade / MS.sh
Last active April 20, 2023 17:04
managed server
#replace EBS Asserter public ip with actual value.
docker run -d --name asrPOCserver1 --link wlsadmin:wlsadmin --network=SampleNET -p 7003:7003 -p 30018:7018 -v /u01/oracle/properties/domain.properties:/u01/oracle/properties -e MS_NAME=asrPOCserver1 wls:12.2.1.3.0 /u01/oracle/Middleware/domains/asr_domain/bin/startManagedWebLogic.sh asrPOCserver1 http://<EBS Asserter Public IP Address>:7001 -Dweblogic.management.allowPasswordEcho=true
@MaheshwarReddyGade
MaheshwarReddyGade / admin.sh
Created March 20, 2020 18:46
ADMIN Server:
docker run -d --name ebsasserter --hostname wlsadmin --network=SampleNET -v /u01/oracle/properties/domain.properties:/u01/oracle/properties -p 7001:7001 -p 30012:7012 wls:12.2.1.3.0
@MaheshwarReddyGade
MaheshwarReddyGade / asserterprofileupdate.sql
Created March 18, 2020 04:35
ebs asserter profile options
Declare
value Boolean;
val varchar2(500);
pnm varchar2(500);
prev_val varchar2(500);
post_val varchar2(500);
Begin
select profile_option_name into pnm from fnd_profile_options_tl where USER_PROFILE_OPTION_NAME='Application Authenticate Agent';
DBMS_OUTPUT.PUT_LINE('Profile name to be updated: ' || pnm);
select fnd_profile.value(pnm) into prev_val from dual;
@MaheshwarReddyGade
MaheshwarReddyGade / installdocker.sh
Last active May 10, 2020 08:27
install docker oel 7
# as root user
cd /etc/yum.repos.d/
wget http://yum.oracle.com/public-yum-ol7.repo
cat public-yum-ol7.repo
yum install docker-engine -y
systemctl start docker
systemctl enable docker
systemctl status docker
sudo usermod -a -G docker oracle
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
~
-->
<weblogic-web-app>
<context-root>/ebs</context-root>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
[before-wdt-command]
RUN mkdir -p /u01/oracle/Middleware/domains/asr_domain/
COPY --chown=oracle:oinstall files/* /u01/oracle/Middleware/domains/asr_domain/
[final-build-commands]
CMD ["/u01/oracle/Middleware/domains/asr_domain/bin/startWebLogic.sh"]
[after-jdk-install]
COPY --chown=oracle:oinstall files/* /u01/oracle/Middleware/domains/asr_domain/
ENV JAVA_HOME=/u01/jdk \
PATH=$PATH:$JAVA_HOME/bin
RUN $JAVA_HOME/bin/keytool -importcert -noprompt -keystore /u01/jdk/jre/lib/security/cacerts -storepass changeit -alias idcs_int -file /u01/oracle/Middleware/domains/asr_domain/idcs-3.cer \
@MaheshwarReddyGade
MaheshwarReddyGade / bridge.properties
Last active March 18, 2020 13:31
bridge.properties
app.url=http://ebsasserter.omcs.tech:30018/ebs
app.serverid=*************************************************************
ebs.url.homepage=http://ebspoc.omcs.tech:8000/OA_HTML/OA.jsp?OAFunc=OANEWHOMEPAGE
ebs.ds.name=ebsdbDS
ebs.user.identifier=email
ebs.jit.provisioning=false
idcs.iss.url=https://identity.oraclecloud.com
idcs.aud.url=https://idcs-<************************>.identity.oraclecloud.com
wallet.path=/u01/oracle/Middleware/domains/asr_domain/cwallet.sso
post.logout.url=http://ebsasserter.omcs.tech:30018/ebs
@MaheshwarReddyGade
MaheshwarReddyGade / imagetoolcmd
Created March 14, 2020 12:35
imagetool command
[oracle@ebsasserter]$cd /u01/install/projects/tools/imagetool/bin
. ./setup.sh
export JAVA_HOME=/u01/install/software/jdk1.8.0_211
export PATH=$JAVA_HOME/bin:$PATH
imagetool create --tag wls:12.2.1.3.0 --latestPSU --version 12.2.1.3.0 --jdkVersion=8u211 --wdtModel=/u01/install/software/sample.yaml --wdtVariables=/u01/oracle/properties/domain.properties --wdtArchive /u01/install/software/archive.zip --wdtDomainHome /u01/oracle/Middleware/domains/asr_domain --wdtVersion 1.7.0 --chown oracle:oinstall --additionalBuildCommands=/u01/install/projects/tools/imagetool/bin/buildargs --additionalBuildFiles=/u01/install/software/wlsdeploy/applications/ebs/cwallet.sso,/u01/install/software/wlsdeploy/applications/ebs/idcs-1.cer,/u01/install/software/wlsdeploy/applications/ebs/idcs-2.cer,/u01/install/software/wlsdeploy/applications/ebs/idcs-3.cer --user username@****.com --password ******* --opatchBugNumber=28186730_13.9.4.2.2
domainInfo:
AdminUserName: '@@PROP:ADMIN_USER@@'
AdminPassword: '@@PROP:ADMIN_PWD@@'
domainLibraries: [ wlsdeploy/domainLibraries/fndext.jar ]
topology:
Name: asr_domain
ProductionModeEnabled: false
Cluster:
AsrPOC_Cluster:
DefaultLoadAlgorithm: 'round-robin'