SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Downloaden Sie, um offline zu lesen
sysco.no 
CON3633-Booting Weblogic 
Cato Aune 
Jon Petter Hjulstad 
SYSCO AS 
OOW September 29th, 2014
sysco.no 
Agenda 
•Aboutusand ourcompany 
•Whythispresentation? 
•Involvedcomponents 
•Howto 
•What are the options? 
•Our recommendations 
•Sample script –a walkthrough 
•Q&A 
Info
sysco.no 
Information about us 
•Jon Petter Hjulstad, DeptManager Middleware, Sysco 
•Cato Aune, Senior Consultant, Sysco 
•Middlewareconsultants–Oslo, Norway 
•Colleaguesin Lima, Peru 
•FocusingonBPM, SOA, WLS, EM, OVM 
•Blog: http://sysco.no/blogg/ 
Info
sysco.no 
Information about SYSCO 
•IT company established 2004 
•Continuous growth, over 100 employees 
•Operations, development, consulting in technology and economics 
•Competence in database technology, middleware 
•Special focus in the energy sector 
•Engineered Systems Partner of the YearNorway 2014 
•6 Locations in Norway, 1 in Peru 
Info
sysco.no 
Booting Oracle WebLogic 
●WebLogic -advanced and flexible 
oMakes it a bit complex 
oMany choices that has to be made 
●No out-of-the-box start scripts 
●Many resources on the Net 
oSome good 
oSome that might not fit your requirements 
oSome not so optimal
sysco.no 
Why automatic/scripted boot 
●No user intervention 
oNo one has to be present (physical or “virtual”) 
oLess error prone 
oDo it the same way every time 
●Makes it easier to start / stop single instances for the ops staff 
●Want services to be restarted automatically if needed 
●Use what is available in WLS
sysco.no 
Prereqs 
●WebLogicinstalled, domaincreated 
●Node Manager installedand configured 
onmEnroll 
onmGenBootStartupProps 
●For demo purposes 
oNot usingSSL (SecureListener=false in nodemanager.properties) 
oLittle errorhandling
sysco.no 
Sharing 
●Feel free to use the scripts “as is” or as a basis for your own enhancements to fit your requirements 
●All scripts, some more background information and suggestions for enhancement are in our blog http://sysco.no/blogg
sysco.no 
Components 
●Node Manager 
●WebLogic Scripting Tool (WLST) 
●Shell scripts
sysco.no 
Node Manager 
Node Manager is a WebLogic Server utility that enables you to 
●Start 
●Shut down 
●Restart 
Administration Server and Managed Server instances
sysco.no 
Node Manager 
BeforeWebLogic12.1.2 
●One Node Manager per server 
●Central Node Manager config 
From WebLogic12.1.2 
●One Node Manager per domain(default) 
●Node Manager configwithindomainhome
sysco.no 
Starting an Administration Server 
http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074930
sysco.no 
Starting a Managed Server 
http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074951
sysco.no 
Restarting an Administration Server 
http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074976
sysco.no 
Restarting a Managed Server 
http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074995
sysco.no 
WebLogic Scripting Tool (WLST) 
●WLST is based on Jython (Python) 
●Can do pretty much everything with WLST 
●Be sure to have correct path (source setDomainEnv.sh) 
●Recording option in Admin Console, might be used as starting point for automation
sysco.no 
Shell scripts called during boot 
●Start Node Manager 
oinit.d / xinit.d scripts for Linux 
oScript to create a Windows service 
●Start WebLogic 
oCustom bash/cmd script for starting the AdminServer and managed servers
sysco.no 
Different methods 
Start script 
Using WLST and Admin Server 
Using WLST and Node Manager 
Choose one method and stick with it
sysco.no 
Start scripts 
Generated when a domain is created 
<domain home>/startWebLogic.sh 
<domain home>/bin/startManagedWebLogic.sh 
Works well, but make sure to use nohupand put the process in the background 
$ nohupstartWeblogic.sh &
sysco.no 
Using WLST and Admin Server 
●Possible to start AdminServer 
oNot recommended with Fusion Middleware suite products 
●Connect to AdminServer to start managed servers 
oconnect(userConfigFile=userFile, userKeyFile=keyFile, url=adminUrl) 
ostart(...)
sysco.no 
Using WLST and Admin Server 
●Requires 
oRunning AdminServer 
oRunning Node Manager 
oAdminServer communicates with Node Manager 
●Node Manager sets the 
oJAVA_VENDOR, JAVA_HOME, JAVA_OPTIONS 
oSECURITY_POLICY,CLASSPATH, ADMIN_URL
sysco.no 
Using WLST and Node Manager 
●Connect to Node Manager 
onmConnect 
●Start AdminServerand managed servers 
onmStart 
●Does not set the variables with information from AdminServer. Possible to provide this information manually along with nmStart
sysco.no 
Starting from NodeManager 
nmConnect(userConfigFile=nmUserFile, 
userKeyFile=nmKeyFile, host=nmHost, 
port=nmPort, domainName=domain, 
domainDir=domainPath, nmType=nmType) 
nmStart('AdminServer') 
nmStart('ms1')
sysco.no 
Recommendations 
●It is recommended to always use Node Manager to start AdminServer and managed servers 
●It is recommended to let Node Manager use start script (StartScriptEnabled=true) 
●It is recommended to start from AdminServer to give server start arguments and SSL arguments to Node Manager
sysco.no 
Our approach 
●Enable start script in Node Manager (StartScriptEnabled=true in nodemanager.properties) 
●Connect to Node Manager and start AdminServer 
●Connect to AdminServer and start managed servers
sysco.no 
Put it together -wls.py 
import sys 
def startAdmin(): 
print 'Starting AdminServer' 
nmConnect(userConfigFile=nmUserFile, 
userKeyFile=nmKeyFile, host=nmHost, 
port=nmPort, domainName=domain, 
domainDir=domainPath, nmType=nmType) 
nmStart('AdminServer') 
nmDisconnect() 
return
sysco.no 
wls.py –Part II 
def stopAdmin(): 
print 'Stopping AdminServer' 
connect(userConfigFile=wlsUserFile, 
userKeyFile=wlsKeyFile, url=adminUrl) 
shutdown('AdminServer', force='true') 
return
sysco.no 
wls.py –Part III 
def startManaged(managed): 
print 'Starting ', managed 
connect(userConfigFile=wlsUserFile, 
userKeyFile=wlsKeyFile, url=adminUrl) 
start(managed) 
disconnect() 
return
sysco.no 
wls.py –Part IV 
defstopManaged(managed): 
print'Stopping ', managed 
connect(userConfigFile=wlsUserFile, 
userKeyFile=wlsKeyFile, url=adminUrl) 
shutdown(managed, force='true') 
disconnect() 
return
sysco.no 
wls.py –Part V 
if((len(sys.argv) < 2) | (len(sys.argv) > 3)): 
print' Wrongnumberofarguments' 
elif(sys.argv[1] == 'startadmin'): 
startAdmin() 
elif(sys.argv[1] == 'stopadmin'): 
stopAdmin() 
elif(sys.argv[1] == 'start'): 
startManaged(sys.argv[2]) 
elif(sys.argv[1] == 'stop'): 
stopManaged(sys.argv[2])
sysco.no 
startall.sh 
wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py startadmin 
wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py start ms1
sysco.no 
stopall.sh 
wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py stop ms1 
wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py stopadmin
sysco.no 
config.properties 
adminUrl=t3://wls12c.dev.sysco.no:7001 
nmHost=wls12c.dev.sysco.no 
nmPort=5556 
nmUserFile=/u01/app/oracle/config/nmUserFile 
nmKeyFile=/u01/app/oracle/config/nmKeyFile 
nmType=plain 
wlsUserFile=/u01/app/oracle/config/wlsUserFile 
wlsKeyFile=/u01/app/oracle/config/wlsKeyFile 
domain=mydomain 
domainPath=/u01/app/oracle/u_p/domains/mydomain
sysco.no 
Encrypt credentials in 11g 
Deprecated in 12c but still works 
For Node Manager: 
$ java weblogic.Admin 
-username nodemanager 
-userconfigfile /u01/app/oracle/config/nmUserFile-userkeyfile /u01/app/oracle/config/nmKeyFileSTOREUSERCONFIG
sysco.no 
Encrypt credentials in 11g 
Enter the password for user nodemanager: 
Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n y
sysco.no 
Encrypt credentials in 11g 
For WebLogic: 
$ javaweblogic.Admin 
-usernameweblogic 
-userconfigfile/u01/app/oracle/config/wlsUserFile-userkeyfile/u01/app/oracle/config/wlsKeyFileSTOREUSERCONFIG
sysco.no 
Encrypt credentials in 12c 
wls:/offline> nmConnect( 
‘nodemanager','welcome1','localhost',5556,'mydomain', 
'/u01/app/oracle/user_projects/domains/mydomain', 
'plain') 
Currentlyconnectedto Node Manager to monitor thedomainmydomain.
sysco.no 
Encrypt credentials in 12c -NM 
wls:/mydomain/serverConfig> storeUserConfig( 
'/u01/app/oracle/config/nmUserFile', 
'/u01/app/oracle/config/nmKeyFile', 
'true') 
Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n:y
sysco.no 
Encrypt credentials in 12c -WLS 
wls:/mydomain/serverConfig> storeUserConfig( 
'/u01/app/oracle/config/wlsUserFile', 
'/u01/app/oracle/config/wlsKeyFile', 
'false') 
Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n:y
sysco.no 
OS boot scripts -Linux 
/etc/init.d/nodemanager(dependsonnetwork) 
Script is availablein theOracle documentation, 
butyouhave to do somemodifications 
http://docs.oracle.com/middleware/1213/wls/NODEM/java_nodemgr.htm#BABJIDFD 
/etc/init.d/weblogic(dependsonnodemanager) 
# Required-Start: $nodemanager 
PROGRAM_START="$BOOT_HOME/startall.sh" 
PROGRAM_STOP="$BOOT_HOME/stopall.sh"
sysco.no 
Q&A
sysco.no 
Thanksfor attending! 
•Feelfreeto contactus! 
•https://twitter.com/jphjulstad 
•https://twitter.com/catoaune 
•Resources: 
•http://docs.oracle.com/middleware/1213/wls/index.html 
•http://sysco.no/blogg
sysco.no 
OS boot scripts -Windows 
Starting Node Manager as a Windows service is supported out-of-the- box. 
Follow the instructions in the documentation (or on the next slides) 
NB! 
-XrsJVM property for each Managed Server that will be under Node Manager control.
sysco.no 
Windows -Node Manager 
1. Log in to the machine with Administrator privileges. 
2. Open a DOS command prompt window. 
3. Change to the DOMAIN_HOMEbindirectory.
sysco.no 
Windows -Node Manager 
4. Enter the following command: 
installNodeMgrSvc.cmd 
5. After a few seconds, the following message is displayed: 
Oracle WebLogic <domain-name> NodeManager installed.

Weitere ähnliche Inhalte

Was ist angesagt?

2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会
2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会
2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会Miki Takata
 
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenOSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenNETWAYS
 
Beyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeWim Godden
 
Getting Up and Running with the Windows Module Pack
Getting Up and Running with the Windows Module PackGetting Up and Running with the Windows Module Pack
Getting Up and Running with the Windows Module PackHallie Exall
 
Ansible loves Python, Python Philadelphia meetup
Ansible loves Python, Python Philadelphia meetupAnsible loves Python, Python Philadelphia meetup
Ansible loves Python, Python Philadelphia meetupGreg DeKoenigsberg
 
Configurações distribuídas com Spring Cloud Config
Configurações distribuídas com Spring Cloud ConfigConfigurações distribuídas com Spring Cloud Config
Configurações distribuídas com Spring Cloud ConfigEmmanuel Neri
 
Node.js in action
Node.js in actionNode.js in action
Node.js in actionSimon Su
 
A 2-2 php on windows azure
A 2-2 php on windows azureA 2-2 php on windows azure
A 2-2 php on windows azureGoAzure
 
When dynamic becomes static: the next step in web caching techniques
When dynamic becomes static: the next step in web caching techniquesWhen dynamic becomes static: the next step in web caching techniques
When dynamic becomes static: the next step in web caching techniquesWim Godden
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalabilityWim Godden
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from githubAntony Gitomeh
 
Building cloud stack at scale
Building cloud stack at scaleBuilding cloud stack at scale
Building cloud stack at scaleShapeBlue
 
MySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployerMySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployerGiuseppe Maxia
 
How to build a High Performance PSGI/Plack Server
How to build a High Performance PSGI/Plack Server How to build a High Performance PSGI/Plack Server
How to build a High Performance PSGI/Plack Server Masahiro Nagano
 

Was ist angesagt? (20)

2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会
2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会
2011/1/27 Amazon Route53 使ってみた@第1回クラウド女子会
 
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenOSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
 
Beyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the code
 
Getting Up and Running with the Windows Module Pack
Getting Up and Running with the Windows Module PackGetting Up and Running with the Windows Module Pack
Getting Up and Running with the Windows Module Pack
 
Ansible loves Python, Python Philadelphia meetup
Ansible loves Python, Python Philadelphia meetupAnsible loves Python, Python Philadelphia meetup
Ansible loves Python, Python Philadelphia meetup
 
Configurações distribuídas com Spring Cloud Config
Configurações distribuídas com Spring Cloud ConfigConfigurações distribuídas com Spring Cloud Config
Configurações distribuídas com Spring Cloud Config
 
Node.js in action
Node.js in actionNode.js in action
Node.js in action
 
Tomcat ssl 設定
Tomcat ssl 設定Tomcat ssl 設定
Tomcat ssl 設定
 
A 2-2 php on windows azure
A 2-2 php on windows azureA 2-2 php on windows azure
A 2-2 php on windows azure
 
PHP on Windows Azure
PHP on Windows Azure PHP on Windows Azure
PHP on Windows Azure
 
Ansible - Crash course
Ansible - Crash courseAnsible - Crash course
Ansible - Crash course
 
When dynamic becomes static: the next step in web caching techniques
When dynamic becomes static: the next step in web caching techniquesWhen dynamic becomes static: the next step in web caching techniques
When dynamic becomes static: the next step in web caching techniques
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
Script it
Script itScript it
Script it
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from github
 
MySQL in your laptop
MySQL in your laptopMySQL in your laptop
MySQL in your laptop
 
Building cloud stack at scale
Building cloud stack at scaleBuilding cloud stack at scale
Building cloud stack at scale
 
Top Node.js Metrics to Watch
Top Node.js Metrics to WatchTop Node.js Metrics to Watch
Top Node.js Metrics to Watch
 
MySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployerMySQL NDB 8.0 clusters in your laptop with dbdeployer
MySQL NDB 8.0 clusters in your laptop with dbdeployer
 
How to build a High Performance PSGI/Plack Server
How to build a High Performance PSGI/Plack Server How to build a High Performance PSGI/Plack Server
How to build a High Performance PSGI/Plack Server
 

Andere mochten auch

"Research Data: Management, Access, Control" Symposium at the University at B...
"Research Data: Management, Access, Control" Symposium at the University at B..."Research Data: Management, Access, Control" Symposium at the University at B...
"Research Data: Management, Access, Control" Symposium at the University at B...Charles Lyons
 
Enzymes pre lab
Enzymes pre labEnzymes pre lab
Enzymes pre labD Sanders
 
Risk assessment and difficulties
Risk assessment and difficultiesRisk assessment and difficulties
Risk assessment and difficultiesStunnah
 
Lepp | Design - CMID Presentation Phase 2
Lepp | Design - CMID Presentation Phase 2Lepp | Design - CMID Presentation Phase 2
Lepp | Design - CMID Presentation Phase 2pjsteenbergen
 
The first hundred thousand users are always the hardest
The first hundred thousand users are always the hardestThe first hundred thousand users are always the hardest
The first hundred thousand users are always the hardestFakeSteve
 
Servicios publicos accesibles para todos-JC Valero
Servicios publicos accesibles para todos-JC ValeroServicios publicos accesibles para todos-JC Valero
Servicios publicos accesibles para todos-JC ValeroJCCM1925
 
Test Automation and Service Virtualization Services Offerings from Rational L...
Test Automation and Service Virtualization Services Offerings from Rational L...Test Automation and Service Virtualization Services Offerings from Rational L...
Test Automation and Service Virtualization Services Offerings from Rational L...IBM Rational software
 
French action topic 8
French action topic 8French action topic 8
French action topic 8as436525mhs
 
Turkish ExCo lecture 1
Turkish ExCo lecture 1Turkish ExCo lecture 1
Turkish ExCo lecture 1giskende
 
Preservation and Research Data at Binghamton University Libraries by Edward C...
Preservation and Research Data at Binghamton University Libraries by Edward C...Preservation and Research Data at Binghamton University Libraries by Edward C...
Preservation and Research Data at Binghamton University Libraries by Edward C...Charles Lyons
 
бібліотека +читач
бібліотека +читачбібліотека +читач
бібліотека +читачМарина Жук
 
真6 -祖父的小提琴
真6 -祖父的小提琴真6 -祖父的小提琴
真6 -祖父的小提琴childrenmeeting
 

Andere mochten auch (20)

"Research Data: Management, Access, Control" Symposium at the University at B...
"Research Data: Management, Access, Control" Symposium at the University at B..."Research Data: Management, Access, Control" Symposium at the University at B...
"Research Data: Management, Access, Control" Symposium at the University at B...
 
Weather french2
Weather french2Weather french2
Weather french2
 
Ny under oslo presentasjon
Ny under oslo presentasjonNy under oslo presentasjon
Ny under oslo presentasjon
 
Ceu in 2051
Ceu in 2051Ceu in 2051
Ceu in 2051
 
Enzymes pre lab
Enzymes pre labEnzymes pre lab
Enzymes pre lab
 
Risk assessment and difficulties
Risk assessment and difficultiesRisk assessment and difficulties
Risk assessment and difficulties
 
Lepp | Design - CMID Presentation Phase 2
Lepp | Design - CMID Presentation Phase 2Lepp | Design - CMID Presentation Phase 2
Lepp | Design - CMID Presentation Phase 2
 
The first hundred thousand users are always the hardest
The first hundred thousand users are always the hardestThe first hundred thousand users are always the hardest
The first hundred thousand users are always the hardest
 
Servicios publicos accesibles para todos-JC Valero
Servicios publicos accesibles para todos-JC ValeroServicios publicos accesibles para todos-JC Valero
Servicios publicos accesibles para todos-JC Valero
 
Proposal HunianOnline
Proposal HunianOnlineProposal HunianOnline
Proposal HunianOnline
 
Scifood lecture
Scifood lectureScifood lecture
Scifood lecture
 
真10 -誠實的亞伯
真10 -誠實的亞伯真10 -誠實的亞伯
真10 -誠實的亞伯
 
Test Automation and Service Virtualization Services Offerings from Rational L...
Test Automation and Service Virtualization Services Offerings from Rational L...Test Automation and Service Virtualization Services Offerings from Rational L...
Test Automation and Service Virtualization Services Offerings from Rational L...
 
French action topic 8
French action topic 8French action topic 8
French action topic 8
 
Turkish ExCo lecture 1
Turkish ExCo lecture 1Turkish ExCo lecture 1
Turkish ExCo lecture 1
 
Preservation and Research Data at Binghamton University Libraries by Edward C...
Preservation and Research Data at Binghamton University Libraries by Edward C...Preservation and Research Data at Binghamton University Libraries by Edward C...
Preservation and Research Data at Binghamton University Libraries by Edward C...
 
Health concerns
Health concernsHealth concerns
Health concerns
 
Dez1
Dez1Dez1
Dez1
 
бібліотека +читач
бібліотека +читачбібліотека +читач
бібліотека +читач
 
真6 -祖父的小提琴
真6 -祖父的小提琴真6 -祖父的小提琴
真6 -祖父的小提琴
 

Ähnlich wie Booting Weblogic - OOW14

Philly security shell meetup
Philly security shell meetupPhilly security shell meetup
Philly security shell meetupNicole Johnson
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administratorsSharon James
 
Swift configurator installation-manual
Swift configurator installation-manualSwift configurator installation-manual
Swift configurator installation-manualPramod Sharma
 
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesDeploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesFIWARE
 
Managing Oracle Enterprise Manager Cloud Control 12c with Oracle Clusterware
Managing Oracle Enterprise Manager Cloud Control 12c with Oracle ClusterwareManaging Oracle Enterprise Manager Cloud Control 12c with Oracle Clusterware
Managing Oracle Enterprise Manager Cloud Control 12c with Oracle ClusterwareLeighton Nelson
 
Pyramid Deployment and Maintenance
Pyramid Deployment and MaintenancePyramid Deployment and Maintenance
Pyramid Deployment and MaintenanceJazkarta, Inc.
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltStack
 
Ansible Automation to Rule Them All
Ansible Automation to Rule Them AllAnsible Automation to Rule Them All
Ansible Automation to Rule Them AllTim Fairweather
 
Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OSJulian Dunn
 
One Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cOne Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cJosh Turner
 
Single Sign On Across Drupal 8 - DrupalCon Global 2020
Single Sign On Across Drupal 8 - DrupalCon Global 2020Single Sign On Across Drupal 8 - DrupalCon Global 2020
Single Sign On Across Drupal 8 - DrupalCon Global 2020Iwantha Lekamge
 
Automating complex infrastructures with Puppet
Automating complex infrastructures with PuppetAutomating complex infrastructures with Puppet
Automating complex infrastructures with PuppetKris Buytaert
 

Ähnlich wie Booting Weblogic - OOW14 (20)

Philly security shell meetup
Philly security shell meetupPhilly security shell meetup
Philly security shell meetup
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
 
Swift configurator installation-manual
Swift configurator installation-manualSwift configurator installation-manual
Swift configurator installation-manual
 
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesDeploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab Facilities
 
Deploy MediaWiki usgin Fiware Lab Facilities
Deploy MediaWiki usgin Fiware Lab FacilitiesDeploy MediaWiki usgin Fiware Lab Facilities
Deploy MediaWiki usgin Fiware Lab Facilities
 
Managing Oracle Enterprise Manager Cloud Control 12c with Oracle Clusterware
Managing Oracle Enterprise Manager Cloud Control 12c with Oracle ClusterwareManaging Oracle Enterprise Manager Cloud Control 12c with Oracle Clusterware
Managing Oracle Enterprise Manager Cloud Control 12c with Oracle Clusterware
 
Pyramid Deployment and Maintenance
Pyramid Deployment and MaintenancePyramid Deployment and Maintenance
Pyramid Deployment and Maintenance
 
How to configure esx to pass an audit
How to configure esx to pass an auditHow to configure esx to pass an audit
How to configure esx to pass an audit
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
 
Ansible Automation to Rule Them All
Ansible Automation to Rule Them AllAnsible Automation to Rule Them All
Ansible Automation to Rule Them All
 
Installation
InstallationInstallation
Installation
 
I hunt sys admins 2.0
I hunt sys admins 2.0I hunt sys admins 2.0
I hunt sys admins 2.0
 
Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OS
 
Oracle WebLogic
Oracle WebLogicOracle WebLogic
Oracle WebLogic
 
One Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cOne Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12c
 
Docker, c'est bonheur !
Docker, c'est bonheur !Docker, c'est bonheur !
Docker, c'est bonheur !
 
MySQL NoSQL APIs
MySQL NoSQL APIsMySQL NoSQL APIs
MySQL NoSQL APIs
 
Single Sign On Across Drupal 8 - DrupalCon Global 2020
Single Sign On Across Drupal 8 - DrupalCon Global 2020Single Sign On Across Drupal 8 - DrupalCon Global 2020
Single Sign On Across Drupal 8 - DrupalCon Global 2020
 
Freeradius edir
Freeradius edirFreeradius edir
Freeradius edir
 
Automating complex infrastructures with Puppet
Automating complex infrastructures with PuppetAutomating complex infrastructures with Puppet
Automating complex infrastructures with Puppet
 

Mehr von Jon Petter Hjulstad

OUGN 2018 - Chatbot and the need to integrate
OUGN 2018 - Chatbot and the need to integrateOUGN 2018 - Chatbot and the need to integrate
OUGN 2018 - Chatbot and the need to integrateJon Petter Hjulstad
 
Status Quo on the automation support in SOA Suite OGhTech17
Status Quo on the automation support in SOA Suite OGhTech17Status Quo on the automation support in SOA Suite OGhTech17
Status Quo on the automation support in SOA Suite OGhTech17Jon Petter Hjulstad
 
REST - Why, When and How? at AMIS25
REST - Why, When and How? at AMIS25REST - Why, When and How? at AMIS25
REST - Why, When and How? at AMIS25Jon Petter Hjulstad
 
OUGN 2016: Experiences with REST support on OSB/SOA Suite
OUGN 2016: Experiences with REST support on OSB/SOA SuiteOUGN 2016: Experiences with REST support on OSB/SOA Suite
OUGN 2016: Experiences with REST support on OSB/SOA SuiteJon Petter Hjulstad
 
Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?
Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?
Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?Jon Petter Hjulstad
 
Presentation BPM Methodology and Pitfalls
Presentation BPM Methodology and PitfallsPresentation BPM Methodology and Pitfalls
Presentation BPM Methodology and PitfallsJon Petter Hjulstad
 
Configuration / Patching of EM 12c
Configuration / Patching of EM 12cConfiguration / Patching of EM 12c
Configuration / Patching of EM 12cJon Petter Hjulstad
 
SOA Suite Administration from OUGN 2014
SOA Suite Administration from OUGN 2014SOA Suite Administration from OUGN 2014
SOA Suite Administration from OUGN 2014Jon Petter Hjulstad
 
Weblogic 12c experiences - migrations from iAS-platform
Weblogic 12c experiences - migrations from iAS-platformWeblogic 12c experiences - migrations from iAS-platform
Weblogic 12c experiences - migrations from iAS-platformJon Petter Hjulstad
 

Mehr von Jon Petter Hjulstad (12)

OUGN 2018 - Chatbot and the need to integrate
OUGN 2018 - Chatbot and the need to integrateOUGN 2018 - Chatbot and the need to integrate
OUGN 2018 - Chatbot and the need to integrate
 
Status Quo on the automation support in SOA Suite OGhTech17
Status Quo on the automation support in SOA Suite OGhTech17Status Quo on the automation support in SOA Suite OGhTech17
Status Quo on the automation support in SOA Suite OGhTech17
 
SOA 12c upgrade OGh-Tech-2017
SOA 12c upgrade OGh-Tech-2017SOA 12c upgrade OGh-Tech-2017
SOA 12c upgrade OGh-Tech-2017
 
REST - Why, When and How? at AMIS25
REST - Why, When and How? at AMIS25REST - Why, When and How? at AMIS25
REST - Why, When and How? at AMIS25
 
OUGN 2016: Experiences with REST support on OSB/SOA Suite
OUGN 2016: Experiences with REST support on OSB/SOA SuiteOUGN 2016: Experiences with REST support on OSB/SOA Suite
OUGN 2016: Experiences with REST support on OSB/SOA Suite
 
Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?
Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?
Sysco Oracle Tour 2016 - What's new in FMW 12.2.1?
 
Ougn15 acm
Ougn15 acmOugn15 acm
Ougn15 acm
 
Presentation BPM Methodology and Pitfalls
Presentation BPM Methodology and PitfallsPresentation BPM Methodology and Pitfalls
Presentation BPM Methodology and Pitfalls
 
Configuration / Patching of EM 12c
Configuration / Patching of EM 12cConfiguration / Patching of EM 12c
Configuration / Patching of EM 12c
 
Installation of EM 12c
Installation of EM 12cInstallation of EM 12c
Installation of EM 12c
 
SOA Suite Administration from OUGN 2014
SOA Suite Administration from OUGN 2014SOA Suite Administration from OUGN 2014
SOA Suite Administration from OUGN 2014
 
Weblogic 12c experiences - migrations from iAS-platform
Weblogic 12c experiences - migrations from iAS-platformWeblogic 12c experiences - migrations from iAS-platform
Weblogic 12c experiences - migrations from iAS-platform
 

Kürzlich hochgeladen

Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...BabaJohn3
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxStephen266013
 
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptxChapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptxkusamee0
 
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...varanasisatyanvesh
 
What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationmuqadasqasim10
 
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样yhavx
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchersdarmandersingh4580
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancingmohamed Elzalabany
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesBoston Institute of Analytics
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeBoston Institute of Analytics
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjadimosmejiaslendon
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样jk0tkvfv
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...siskavia95
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives23050636
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...mikehavy0
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...ThinkInnovation
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshareraiaryan448
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token PredictionNABLAS株式会社
 

Kürzlich hochgeladen (20)

Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
 
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptxChapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
 
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
 
What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic information
 
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting Techniques
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 

Booting Weblogic - OOW14

  • 1. sysco.no CON3633-Booting Weblogic Cato Aune Jon Petter Hjulstad SYSCO AS OOW September 29th, 2014
  • 2. sysco.no Agenda •Aboutusand ourcompany •Whythispresentation? •Involvedcomponents •Howto •What are the options? •Our recommendations •Sample script –a walkthrough •Q&A Info
  • 3. sysco.no Information about us •Jon Petter Hjulstad, DeptManager Middleware, Sysco •Cato Aune, Senior Consultant, Sysco •Middlewareconsultants–Oslo, Norway •Colleaguesin Lima, Peru •FocusingonBPM, SOA, WLS, EM, OVM •Blog: http://sysco.no/blogg/ Info
  • 4. sysco.no Information about SYSCO •IT company established 2004 •Continuous growth, over 100 employees •Operations, development, consulting in technology and economics •Competence in database technology, middleware •Special focus in the energy sector •Engineered Systems Partner of the YearNorway 2014 •6 Locations in Norway, 1 in Peru Info
  • 5. sysco.no Booting Oracle WebLogic ●WebLogic -advanced and flexible oMakes it a bit complex oMany choices that has to be made ●No out-of-the-box start scripts ●Many resources on the Net oSome good oSome that might not fit your requirements oSome not so optimal
  • 6. sysco.no Why automatic/scripted boot ●No user intervention oNo one has to be present (physical or “virtual”) oLess error prone oDo it the same way every time ●Makes it easier to start / stop single instances for the ops staff ●Want services to be restarted automatically if needed ●Use what is available in WLS
  • 7. sysco.no Prereqs ●WebLogicinstalled, domaincreated ●Node Manager installedand configured onmEnroll onmGenBootStartupProps ●For demo purposes oNot usingSSL (SecureListener=false in nodemanager.properties) oLittle errorhandling
  • 8. sysco.no Sharing ●Feel free to use the scripts “as is” or as a basis for your own enhancements to fit your requirements ●All scripts, some more background information and suggestions for enhancement are in our blog http://sysco.no/blogg
  • 9. sysco.no Components ●Node Manager ●WebLogic Scripting Tool (WLST) ●Shell scripts
  • 10. sysco.no Node Manager Node Manager is a WebLogic Server utility that enables you to ●Start ●Shut down ●Restart Administration Server and Managed Server instances
  • 11. sysco.no Node Manager BeforeWebLogic12.1.2 ●One Node Manager per server ●Central Node Manager config From WebLogic12.1.2 ●One Node Manager per domain(default) ●Node Manager configwithindomainhome
  • 12. sysco.no Starting an Administration Server http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074930
  • 13. sysco.no Starting a Managed Server http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074951
  • 14. sysco.no Restarting an Administration Server http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074976
  • 15. sysco.no Restarting a Managed Server http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#i1074995
  • 16. sysco.no WebLogic Scripting Tool (WLST) ●WLST is based on Jython (Python) ●Can do pretty much everything with WLST ●Be sure to have correct path (source setDomainEnv.sh) ●Recording option in Admin Console, might be used as starting point for automation
  • 17. sysco.no Shell scripts called during boot ●Start Node Manager oinit.d / xinit.d scripts for Linux oScript to create a Windows service ●Start WebLogic oCustom bash/cmd script for starting the AdminServer and managed servers
  • 18. sysco.no Different methods Start script Using WLST and Admin Server Using WLST and Node Manager Choose one method and stick with it
  • 19. sysco.no Start scripts Generated when a domain is created <domain home>/startWebLogic.sh <domain home>/bin/startManagedWebLogic.sh Works well, but make sure to use nohupand put the process in the background $ nohupstartWeblogic.sh &
  • 20. sysco.no Using WLST and Admin Server ●Possible to start AdminServer oNot recommended with Fusion Middleware suite products ●Connect to AdminServer to start managed servers oconnect(userConfigFile=userFile, userKeyFile=keyFile, url=adminUrl) ostart(...)
  • 21. sysco.no Using WLST and Admin Server ●Requires oRunning AdminServer oRunning Node Manager oAdminServer communicates with Node Manager ●Node Manager sets the oJAVA_VENDOR, JAVA_HOME, JAVA_OPTIONS oSECURITY_POLICY,CLASSPATH, ADMIN_URL
  • 22. sysco.no Using WLST and Node Manager ●Connect to Node Manager onmConnect ●Start AdminServerand managed servers onmStart ●Does not set the variables with information from AdminServer. Possible to provide this information manually along with nmStart
  • 23. sysco.no Starting from NodeManager nmConnect(userConfigFile=nmUserFile, userKeyFile=nmKeyFile, host=nmHost, port=nmPort, domainName=domain, domainDir=domainPath, nmType=nmType) nmStart('AdminServer') nmStart('ms1')
  • 24. sysco.no Recommendations ●It is recommended to always use Node Manager to start AdminServer and managed servers ●It is recommended to let Node Manager use start script (StartScriptEnabled=true) ●It is recommended to start from AdminServer to give server start arguments and SSL arguments to Node Manager
  • 25. sysco.no Our approach ●Enable start script in Node Manager (StartScriptEnabled=true in nodemanager.properties) ●Connect to Node Manager and start AdminServer ●Connect to AdminServer and start managed servers
  • 26. sysco.no Put it together -wls.py import sys def startAdmin(): print 'Starting AdminServer' nmConnect(userConfigFile=nmUserFile, userKeyFile=nmKeyFile, host=nmHost, port=nmPort, domainName=domain, domainDir=domainPath, nmType=nmType) nmStart('AdminServer') nmDisconnect() return
  • 27. sysco.no wls.py –Part II def stopAdmin(): print 'Stopping AdminServer' connect(userConfigFile=wlsUserFile, userKeyFile=wlsKeyFile, url=adminUrl) shutdown('AdminServer', force='true') return
  • 28. sysco.no wls.py –Part III def startManaged(managed): print 'Starting ', managed connect(userConfigFile=wlsUserFile, userKeyFile=wlsKeyFile, url=adminUrl) start(managed) disconnect() return
  • 29. sysco.no wls.py –Part IV defstopManaged(managed): print'Stopping ', managed connect(userConfigFile=wlsUserFile, userKeyFile=wlsKeyFile, url=adminUrl) shutdown(managed, force='true') disconnect() return
  • 30. sysco.no wls.py –Part V if((len(sys.argv) < 2) | (len(sys.argv) > 3)): print' Wrongnumberofarguments' elif(sys.argv[1] == 'startadmin'): startAdmin() elif(sys.argv[1] == 'stopadmin'): stopAdmin() elif(sys.argv[1] == 'start'): startManaged(sys.argv[2]) elif(sys.argv[1] == 'stop'): stopManaged(sys.argv[2])
  • 31. sysco.no startall.sh wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py startadmin wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py start ms1
  • 32. sysco.no stopall.sh wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py stop ms1 wlst.sh -loadPropertiesconfig.properties- skipWLSModuleScanningwls.py stopadmin
  • 33. sysco.no config.properties adminUrl=t3://wls12c.dev.sysco.no:7001 nmHost=wls12c.dev.sysco.no nmPort=5556 nmUserFile=/u01/app/oracle/config/nmUserFile nmKeyFile=/u01/app/oracle/config/nmKeyFile nmType=plain wlsUserFile=/u01/app/oracle/config/wlsUserFile wlsKeyFile=/u01/app/oracle/config/wlsKeyFile domain=mydomain domainPath=/u01/app/oracle/u_p/domains/mydomain
  • 34. sysco.no Encrypt credentials in 11g Deprecated in 12c but still works For Node Manager: $ java weblogic.Admin -username nodemanager -userconfigfile /u01/app/oracle/config/nmUserFile-userkeyfile /u01/app/oracle/config/nmKeyFileSTOREUSERCONFIG
  • 35. sysco.no Encrypt credentials in 11g Enter the password for user nodemanager: Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n y
  • 36. sysco.no Encrypt credentials in 11g For WebLogic: $ javaweblogic.Admin -usernameweblogic -userconfigfile/u01/app/oracle/config/wlsUserFile-userkeyfile/u01/app/oracle/config/wlsKeyFileSTOREUSERCONFIG
  • 37. sysco.no Encrypt credentials in 12c wls:/offline> nmConnect( ‘nodemanager','welcome1','localhost',5556,'mydomain', '/u01/app/oracle/user_projects/domains/mydomain', 'plain') Currentlyconnectedto Node Manager to monitor thedomainmydomain.
  • 38. sysco.no Encrypt credentials in 12c -NM wls:/mydomain/serverConfig> storeUserConfig( '/u01/app/oracle/config/nmUserFile', '/u01/app/oracle/config/nmKeyFile', 'true') Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n:y
  • 39. sysco.no Encrypt credentials in 12c -WLS wls:/mydomain/serverConfig> storeUserConfig( '/u01/app/oracle/config/wlsUserFile', '/u01/app/oracle/config/wlsKeyFile', 'false') Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n:y
  • 40. sysco.no OS boot scripts -Linux /etc/init.d/nodemanager(dependsonnetwork) Script is availablein theOracle documentation, butyouhave to do somemodifications http://docs.oracle.com/middleware/1213/wls/NODEM/java_nodemgr.htm#BABJIDFD /etc/init.d/weblogic(dependsonnodemanager) # Required-Start: $nodemanager PROGRAM_START="$BOOT_HOME/startall.sh" PROGRAM_STOP="$BOOT_HOME/stopall.sh"
  • 42. sysco.no Thanksfor attending! •Feelfreeto contactus! •https://twitter.com/jphjulstad •https://twitter.com/catoaune •Resources: •http://docs.oracle.com/middleware/1213/wls/index.html •http://sysco.no/blogg
  • 43. sysco.no OS boot scripts -Windows Starting Node Manager as a Windows service is supported out-of-the- box. Follow the instructions in the documentation (or on the next slides) NB! -XrsJVM property for each Managed Server that will be under Node Manager control.
  • 44. sysco.no Windows -Node Manager 1. Log in to the machine with Administrator privileges. 2. Open a DOS command prompt window. 3. Change to the DOMAIN_HOMEbindirectory.
  • 45. sysco.no Windows -Node Manager 4. Enter the following command: installNodeMgrSvc.cmd 5. After a few seconds, the following message is displayed: Oracle WebLogic <domain-name> NodeManager installed.