SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
DBA darbu organizēšana
WebLogic Scripting
basics
Andrey Chervonets (Андрей Червонец)
● working with Oracle products since 2001
● Senior technical expert, DBA (Oracle, DB2, MySQL, ...)
● Certified on:
● Oracle Database Administrator (8i-11g)
● Oracle Application Server Administrator (9i/10g)
● Oracle WebLogic Administrator
● IBM DB2 Database Administrator
LinkedIn: http://www.linkedin.com/in/andreychervonets
MeetUp #11
24 of July 2014
Riga, Latvia
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Agenda
• WebLogic administration tools - overview
• What is WLST ?!
• What can I do with WLST ?!
• WLST scripting step by step.
• Q + A
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
DBA darbu organizēšanaWebLogic administrator tools
overview
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
WL admin. tools
• WL Console
• http://wlhost:7001/console/
• WL EM portal
• http://wlhost:7001/em/
• WL autodeployment (in non-PROD mode)
• WL admin java packages
– java weblogic.Admin HELP
– java weblogic.Admin help ALL
• WLST
– java weblogic.WLST
• console application
• scripts processing
Copyright © 2013 CoMinder Ltd., http://www.cominder.euCopyright © 2014, SIA CoMinder, http://www.cominder.eu
What is WLST?!
• WL MBeans Tree browsing and manipulating tool
• http://gerardnico.com/wiki/wlst/navigation
•
Copyright © 2013 CoMinder Ltd., http://www.cominder.euCopyright © 2014, SIA CoMinder, http://www.cominder.eu
WLST – What can I do?!
• Browse and discover:
• WL and Domain objects tree
• WL objects properties
• Start/Stop
• Backup, clone, configuration (domain templates, etc.)
• Depoly/Undeploy/other actions with VM and applications
• Monitoring
• VM (health) status
• Applications (health) status
• Statistic
• Anything else
Copyright © 2013 CoMinder Ltd., http://www.cominder.euCopyright © 2014, SIA CoMinder, http://www.cominder.eu
DBA darbu organizēšanaLinks and Notes
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Links: learn more about WLST
• Oracle documentation:
http://docs.oracle.com/cd/E17904_01/web.1111/e13728/understandwls.htm
http://docs.oracle.com/cd/E28280_01/web.1111/e13715/monitoring.htm
• WLST - Mbean Tree Navigation: http://gerardnico.com/wiki/wlst/navigation
• http://wlstbyexamples.blogspot.com/
• http://weblogic-wonders.com/weblogic/
• http://weblogiccommunity.com/
• https://pineapple.java.net/index.html
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
DBA darbu organizēšanaWL Scripting
step by step examples
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Start WLST
• Setup environment first:
. /u01/Middleware/wlserver_10.3/server/bin/setWLSEnv.sh
! make sure to load variables into current shell session!
• Start WLST in required mode:
a) Console mode:
java weblogic.WLST
b) Script mode:
java weblogic.WLST my_wlst_script.py 1>/tmp/wlst_script.out 2>&1
c) Importing WLST as a Jython Module:
http://docs.oracle.com/cd/E13222_01/wls/docs90/config_scripting/using_WLST.html#1081491
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
First steps
• Connect to server (2 options to specify user/pwd + 1 – WLST will ask):
connect([username, password],[url],[adminServerName], [timeout])
connect([userConfigFile,userKeyFile],[adminServerName], [timeout])
connect(url='t3://localhost:7001')
• Usefull command after connected / before exit:
startRecording(recordFilePath,[recordAll])
stopRecording()
redirect('my_wlst_protocol.log', 'false')
stopRedirect()
exit()
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Basic commands:
• Get help on any command or list of methods:
help()
• Usefull command after connected / before exit:
startRecording(recordFilePath,[recordAll])
stopRecording()
redirect(outputFile,[toStdOut])
stopRedirect()
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Getting help:
• Get help on any command or list of methods:
help()
wls:/offline> help('online')
wls:/offline> help('offline')
• What help show:
– Description of the action, references
– Syntax
– Usage Example
• Detailed java call stack on error: dumpStack()
• Print variables, expressions for debug: print
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Browsing:
• Set WL objects tree context before browse
serverConfig()
domainRuntime()
….
• Navigate and show context info like in files system:
cd('/')
cd('AppRuntimeStateRuntime/AppRuntimeStateRuntime')
ls()
or use context specific methods like:
listApplications()
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Do scripting:
• Save required set of commands in file:
redirect('owl_mon_serversapp_1.log', 'false')
connect(url='t3://localhost:7001')
domainRuntime()
cd('AppRuntimeStateRuntime/AppRuntimeStateRuntime')
ls()
disconnect()
stopRedirect()
exit()
• Execute the script:
java weblogic.WLST wlst_list_appruntime.py
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Use subroutines:
WLST – is really Python adopted for WL. So, use it's constructions:
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
Use loops and collections:
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
DBA darbu organizēšanaQ + A
Vai tas ir svārīgi?!
Copyright © 2014, SIA CoMinder, http://www.cominder.eu
DBA darbu organizēšana
Спасибо за внимание!
Paldies par uzmanību!
Thanks for attention!
Andrey Chervonets
e-mail: a.chervonets@cominder.eu
LinkedIn: http://www.linkedin.com/in/andreychervonets
web: http://www.cominder.eu
MeetUp #11
24 of July 2014
Riga, Latvia
Copyright © 2014, SIA CoMinder, http://www.cominder.eu

Contenu connexe

Tendances

Web sockets in java EE 7 - JavaOne 2013
Web sockets in java EE 7 - JavaOne 2013Web sockets in java EE 7 - JavaOne 2013
Web sockets in java EE 7 - JavaOne 2013Siva Arunachalam
 
Programming WebSockets - OSCON 2010
Programming WebSockets - OSCON 2010Programming WebSockets - OSCON 2010
Programming WebSockets - OSCON 2010sullis
 
MongoDB on Azure - Tips, Tricks and Examples
MongoDB on Azure - Tips, Tricks and ExamplesMongoDB on Azure - Tips, Tricks and Examples
MongoDB on Azure - Tips, Tricks and ExamplesMongoDB
 
Pushing the web — WebSockets
Pushing the web — WebSocketsPushing the web — WebSockets
Pushing the web — WebSocketsRoland M
 
VMware compute driver for OpenStack
VMware compute driver for OpenStackVMware compute driver for OpenStack
VMware compute driver for OpenStackopenstackindia
 
Turn you Java EE Monoliths into Microservices with WildFly Swarm
Turn you Java EE Monoliths into Microservices with WildFly SwarmTurn you Java EE Monoliths into Microservices with WildFly Swarm
Turn you Java EE Monoliths into Microservices with WildFly SwarmDimitris Andreadis
 
Infrastructure development on windows ldn cd meetup
Infrastructure development on windows   ldn cd meetup Infrastructure development on windows   ldn cd meetup
Infrastructure development on windows ldn cd meetup Owain Perry
 
Play framework productivity formula
Play framework   productivity formula Play framework   productivity formula
Play framework productivity formula Sorin Chiprian
 
232 deview2013 oss를활용한분산아키텍처구현
232 deview2013 oss를활용한분산아키텍처구현232 deview2013 oss를활용한분산아키텍처구현
232 deview2013 oss를활용한분산아키텍처구현NAVER D2
 
Build a Docker Swarm cluster on Azure
Build a Docker Swarm cluster on Azure Build a Docker Swarm cluster on Azure
Build a Docker Swarm cluster on Azure Julien Maitrehenry
 
lock, block & two smoking barrels
lock, block & two smoking barrelslock, block & two smoking barrels
lock, block & two smoking barrelsMark Broadbent
 
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
 
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using WebsocketsBuilding Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using WebsocketsNaresh Chintalcheru
 
Java on Azure JJUG Night Seminar 2016 0322
Java on Azure JJUG Night Seminar 2016 0322Java on Azure JJUG Night Seminar 2016 0322
Java on Azure JJUG Night Seminar 2016 0322Yoshio Terada
 

Tendances (20)

Web sockets in java EE 7 - JavaOne 2013
Web sockets in java EE 7 - JavaOne 2013Web sockets in java EE 7 - JavaOne 2013
Web sockets in java EE 7 - JavaOne 2013
 
Web Sockets in Java EE 7
Web Sockets in Java EE 7Web Sockets in Java EE 7
Web Sockets in Java EE 7
 
Programming WebSockets - OSCON 2010
Programming WebSockets - OSCON 2010Programming WebSockets - OSCON 2010
Programming WebSockets - OSCON 2010
 
MongoDB on Azure - Tips, Tricks and Examples
MongoDB on Azure - Tips, Tricks and ExamplesMongoDB on Azure - Tips, Tricks and Examples
MongoDB on Azure - Tips, Tricks and Examples
 
Pushing the web — WebSockets
Pushing the web — WebSocketsPushing the web — WebSockets
Pushing the web — WebSockets
 
Ansible
AnsibleAnsible
Ansible
 
VMware compute driver for OpenStack
VMware compute driver for OpenStackVMware compute driver for OpenStack
VMware compute driver for OpenStack
 
Turn you Java EE Monoliths into Microservices with WildFly Swarm
Turn you Java EE Monoliths into Microservices with WildFly SwarmTurn you Java EE Monoliths into Microservices with WildFly Swarm
Turn you Java EE Monoliths into Microservices with WildFly Swarm
 
Infrastructure development on windows ldn cd meetup
Infrastructure development on windows   ldn cd meetup Infrastructure development on windows   ldn cd meetup
Infrastructure development on windows ldn cd meetup
 
Play framework productivity formula
Play framework   productivity formula Play framework   productivity formula
Play framework productivity formula
 
232 deview2013 oss를활용한분산아키텍처구현
232 deview2013 oss를활용한분산아키텍처구현232 deview2013 oss를활용한분산아키텍처구현
232 deview2013 oss를활용한분산아키텍처구현
 
Build a Docker Swarm cluster on Azure
Build a Docker Swarm cluster on Azure Build a Docker Swarm cluster on Azure
Build a Docker Swarm cluster on Azure
 
Node.js
Node.jsNode.js
Node.js
 
lock, block & two smoking barrels
lock, block & two smoking barrelslock, block & two smoking barrels
lock, block & two smoking barrels
 
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
 
Tales from the OSGi trenches
Tales from the OSGi trenchesTales from the OSGi trenches
Tales from the OSGi trenches
 
Test like a_boss
Test like a_bossTest like a_boss
Test like a_boss
 
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using WebsocketsBuilding Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using Websockets
 
Java on Azure JJUG Night Seminar 2016 0322
Java on Azure JJUG Night Seminar 2016 0322Java on Azure JJUG Night Seminar 2016 0322
Java on Azure JJUG Night Seminar 2016 0322
 
Nginx Essential
Nginx EssentialNginx Essential
Nginx Essential
 

Similaire à Weblogic scripting LVOUG meetup #11

Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories. Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories. Andrejs Vorobjovs
 
WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!Maarten Smeets
 
Detailed Introduction To Docker
Detailed Introduction To DockerDetailed Introduction To Docker
Detailed Introduction To Dockernklmish
 
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...Frank Munz
 
12 Things About WebLogic 12.1.3 #oow2014 #otnla15
12 Things About WebLogic 12.1.3 #oow2014 #otnla1512 Things About WebLogic 12.1.3 #oow2014 #otnla15
12 Things About WebLogic 12.1.3 #oow2014 #otnla15Frank Munz
 
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptx
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptxThe Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptx
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptxlior mazor
 
WebLogic authentication debugging
WebLogic authentication debuggingWebLogic authentication debugging
WebLogic authentication debuggingMaarten Smeets
 
Developing Micro-Services for Cloud using Java
Developing Micro-Services for Cloud using JavaDeveloping Micro-Services for Cloud using Java
Developing Micro-Services for Cloud using JavaWSO2
 
V mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitV mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitsolarisyougood
 
WEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DEC
WEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DECWEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DEC
WEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DECncodeit123
 
Building Bizweb Microservices with Docker
Building Bizweb Microservices with DockerBuilding Bizweb Microservices with Docker
Building Bizweb Microservices with DockerKhôi Nguyễn Minh
 
Weblogic 101 for dba
Weblogic  101 for dbaWeblogic  101 for dba
Weblogic 101 for dbaOsama Mustafa
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC vipin kumar
 
Reactive summit 2020 microsoft orleans the easy way
Reactive summit 2020   microsoft orleans the easy wayReactive summit 2020   microsoft orleans the easy way
Reactive summit 2020 microsoft orleans the easy wayJohn Azariah
 
DevOPS training - Day 2/2
DevOPS training - Day 2/2DevOPS training - Day 2/2
DevOPS training - Day 2/2Vincent Mercier
 
Introduction to Containers - SQL Server and Docker
Introduction to Containers - SQL Server and DockerIntroduction to Containers - SQL Server and Docker
Introduction to Containers - SQL Server and DockerChris Taylor
 
Building APIs with NodeJS on Microsoft Azure Websites - Redmond
Building APIs with NodeJS on Microsoft Azure Websites - RedmondBuilding APIs with NodeJS on Microsoft Azure Websites - Redmond
Building APIs with NodeJS on Microsoft Azure Websites - RedmondRick G. Garibay
 

Similaire à Weblogic scripting LVOUG meetup #11 (20)

Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories. Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
 
WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!WebLogic Scripting Tool made Cool!
WebLogic Scripting Tool made Cool!
 
Detailed Introduction To Docker
Detailed Introduction To DockerDetailed Introduction To Docker
Detailed Introduction To Docker
 
Weblogic
WeblogicWeblogic
Weblogic
 
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
 
WebLogic FAQs
WebLogic FAQsWebLogic FAQs
WebLogic FAQs
 
12 Things About WebLogic 12.1.3 #oow2014 #otnla15
12 Things About WebLogic 12.1.3 #oow2014 #otnla1512 Things About WebLogic 12.1.3 #oow2014 #otnla15
12 Things About WebLogic 12.1.3 #oow2014 #otnla15
 
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptx
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptxThe Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptx
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptx
 
WebLogic authentication debugging
WebLogic authentication debuggingWebLogic authentication debugging
WebLogic authentication debugging
 
Developing Micro-Services for Cloud using Java
Developing Micro-Services for Cloud using JavaDeveloping Micro-Services for Cloud using Java
Developing Micro-Services for Cloud using Java
 
V mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitV mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kit
 
WEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DEC
WEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DECWEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DEC
WEBLOGIC ADMINISTRATION 11g NEW BATCH STARTS FROM 16 DEC
 
Building Bizweb Microservices with Docker
Building Bizweb Microservices with DockerBuilding Bizweb Microservices with Docker
Building Bizweb Microservices with Docker
 
Weblogic 101 for dba
Weblogic  101 for dbaWeblogic  101 for dba
Weblogic 101 for dba
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC
 
Reactive summit 2020 microsoft orleans the easy way
Reactive summit 2020   microsoft orleans the easy wayReactive summit 2020   microsoft orleans the easy way
Reactive summit 2020 microsoft orleans the easy way
 
DevOPS training - Day 2/2
DevOPS training - Day 2/2DevOPS training - Day 2/2
DevOPS training - Day 2/2
 
Introduction to Containers - SQL Server and Docker
Introduction to Containers - SQL Server and DockerIntroduction to Containers - SQL Server and Docker
Introduction to Containers - SQL Server and Docker
 
Building APIs with NodeJS on Microsoft Azure Websites - Redmond
Building APIs with NodeJS on Microsoft Azure Websites - RedmondBuilding APIs with NodeJS on Microsoft Azure Websites - Redmond
Building APIs with NodeJS on Microsoft Azure Websites - Redmond
 
WebLogic for DBAs
WebLogic for DBAsWebLogic for DBAs
WebLogic for DBAs
 

Plus de Andrejs Vorobjovs

Peteris Arajs - Where is my data
Peteris Arajs - Where is my dataPeteris Arajs - Where is my data
Peteris Arajs - Where is my dataAndrejs Vorobjovs
 
Maksims Greckis - Trace File Analyzer
Maksims Greckis - Trace File Analyzer  Maksims Greckis - Trace File Analyzer
Maksims Greckis - Trace File Analyzer Andrejs Vorobjovs
 
Aleksejs Nemirovskis - Manage your data using oracle BDA
Aleksejs Nemirovskis - Manage your data using oracle BDAAleksejs Nemirovskis - Manage your data using oracle BDA
Aleksejs Nemirovskis - Manage your data using oracle BDAAndrejs Vorobjovs
 
My two cents about Mysql backup
My two cents about Mysql backupMy two cents about Mysql backup
My two cents about Mysql backupAndrejs Vorobjovs
 
OTN tour 2015 press release in Russian
OTN tour 2015 press release in RussianOTN tour 2015 press release in Russian
OTN tour 2015 press release in RussianAndrejs Vorobjovs
 
OTN tour 2015 benchmarking oracle io performance with Orion by Alex Gorbachev
OTN tour 2015 benchmarking oracle io performance with Orion by Alex GorbachevOTN tour 2015 benchmarking oracle io performance with Orion by Alex Gorbachev
OTN tour 2015 benchmarking oracle io performance with Orion by Alex GorbachevAndrejs Vorobjovs
 
OTN tour 2015 Oracle Enterprise Manager 12c – Proof of Concept
OTN tour 2015 Oracle Enterprise Manager 12c – Proof of ConceptOTN tour 2015 Oracle Enterprise Manager 12c – Proof of Concept
OTN tour 2015 Oracle Enterprise Manager 12c – Proof of ConceptAndrejs Vorobjovs
 
OTN tour Oracle db Cloud by Alex Gorbachev
OTN tour Oracle db Cloud by Alex GorbachevOTN tour Oracle db Cloud by Alex Gorbachev
OTN tour Oracle db Cloud by Alex GorbachevAndrejs Vorobjovs
 
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...Andrejs Vorobjovs
 
OTN tour 2015 AWR data mining
OTN tour 2015 AWR data miningOTN tour 2015 AWR data mining
OTN tour 2015 AWR data miningAndrejs Vorobjovs
 
OTN tour 2015 opening speech
OTN tour 2015 opening speechOTN tour 2015 opening speech
OTN tour 2015 opening speechAndrejs Vorobjovs
 

Plus de Andrejs Vorobjovs (20)

Peteris Arajs - Where is my data
Peteris Arajs - Where is my dataPeteris Arajs - Where is my data
Peteris Arajs - Where is my data
 
Maksims Greckis - Trace File Analyzer
Maksims Greckis - Trace File Analyzer  Maksims Greckis - Trace File Analyzer
Maksims Greckis - Trace File Analyzer
 
Aleksejs Nemirovskis - Manage your data using oracle BDA
Aleksejs Nemirovskis - Manage your data using oracle BDAAleksejs Nemirovskis - Manage your data using oracle BDA
Aleksejs Nemirovskis - Manage your data using oracle BDA
 
LVOUG meetup #18
LVOUG meetup #18LVOUG meetup #18
LVOUG meetup #18
 
LVOUG meetup #17
LVOUG meetup #17LVOUG meetup #17
LVOUG meetup #17
 
My two cents about Mysql backup
My two cents about Mysql backupMy two cents about Mysql backup
My two cents about Mysql backup
 
LVOUG meetup #16
LVOUG meetup #16LVOUG meetup #16
LVOUG meetup #16
 
Top 15 MySQL parameters
Top 15 MySQL parameters Top 15 MySQL parameters
Top 15 MySQL parameters
 
Riga Dev Day vestule
Riga Dev Day vestuleRiga Dev Day vestule
Riga Dev Day vestule
 
Rdd2016 featured talks
Rdd2016 featured talksRdd2016 featured talks
Rdd2016 featured talks
 
Rdd2016 flyer
Rdd2016 flyerRdd2016 flyer
Rdd2016 flyer
 
meetup #15
meetup #15meetup #15
meetup #15
 
OTN tour 2015 press release in Russian
OTN tour 2015 press release in RussianOTN tour 2015 press release in Russian
OTN tour 2015 press release in Russian
 
OTN tour 2015, 100miles
OTN tour 2015, 100milesOTN tour 2015, 100miles
OTN tour 2015, 100miles
 
OTN tour 2015 benchmarking oracle io performance with Orion by Alex Gorbachev
OTN tour 2015 benchmarking oracle io performance with Orion by Alex GorbachevOTN tour 2015 benchmarking oracle io performance with Orion by Alex Gorbachev
OTN tour 2015 benchmarking oracle io performance with Orion by Alex Gorbachev
 
OTN tour 2015 Oracle Enterprise Manager 12c – Proof of Concept
OTN tour 2015 Oracle Enterprise Manager 12c – Proof of ConceptOTN tour 2015 Oracle Enterprise Manager 12c – Proof of Concept
OTN tour 2015 Oracle Enterprise Manager 12c – Proof of Concept
 
OTN tour Oracle db Cloud by Alex Gorbachev
OTN tour Oracle db Cloud by Alex GorbachevOTN tour Oracle db Cloud by Alex Gorbachev
OTN tour Oracle db Cloud by Alex Gorbachev
 
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
 
OTN tour 2015 AWR data mining
OTN tour 2015 AWR data miningOTN tour 2015 AWR data mining
OTN tour 2015 AWR data mining
 
OTN tour 2015 opening speech
OTN tour 2015 opening speechOTN tour 2015 opening speech
OTN tour 2015 opening speech
 

Dernier

How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPCeline George
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxryandux83rd
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 

Dernier (20)

Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERP
 
Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 

Weblogic scripting LVOUG meetup #11

  • 1. DBA darbu organizēšana WebLogic Scripting basics Andrey Chervonets (Андрей Червонец) ● working with Oracle products since 2001 ● Senior technical expert, DBA (Oracle, DB2, MySQL, ...) ● Certified on: ● Oracle Database Administrator (8i-11g) ● Oracle Application Server Administrator (9i/10g) ● Oracle WebLogic Administrator ● IBM DB2 Database Administrator LinkedIn: http://www.linkedin.com/in/andreychervonets MeetUp #11 24 of July 2014 Riga, Latvia Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 2. Agenda • WebLogic administration tools - overview • What is WLST ?! • What can I do with WLST ?! • WLST scripting step by step. • Q + A Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 3. DBA darbu organizēšanaWebLogic administrator tools overview Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 4. WL admin. tools • WL Console • http://wlhost:7001/console/ • WL EM portal • http://wlhost:7001/em/ • WL autodeployment (in non-PROD mode) • WL admin java packages – java weblogic.Admin HELP – java weblogic.Admin help ALL • WLST – java weblogic.WLST • console application • scripts processing Copyright © 2013 CoMinder Ltd., http://www.cominder.euCopyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 5. What is WLST?! • WL MBeans Tree browsing and manipulating tool • http://gerardnico.com/wiki/wlst/navigation • Copyright © 2013 CoMinder Ltd., http://www.cominder.euCopyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 6. WLST – What can I do?! • Browse and discover: • WL and Domain objects tree • WL objects properties • Start/Stop • Backup, clone, configuration (domain templates, etc.) • Depoly/Undeploy/other actions with VM and applications • Monitoring • VM (health) status • Applications (health) status • Statistic • Anything else Copyright © 2013 CoMinder Ltd., http://www.cominder.euCopyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 7. DBA darbu organizēšanaLinks and Notes Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 8. Links: learn more about WLST • Oracle documentation: http://docs.oracle.com/cd/E17904_01/web.1111/e13728/understandwls.htm http://docs.oracle.com/cd/E28280_01/web.1111/e13715/monitoring.htm • WLST - Mbean Tree Navigation: http://gerardnico.com/wiki/wlst/navigation • http://wlstbyexamples.blogspot.com/ • http://weblogic-wonders.com/weblogic/ • http://weblogiccommunity.com/ • https://pineapple.java.net/index.html Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 9. DBA darbu organizēšanaWL Scripting step by step examples Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 10. Start WLST • Setup environment first: . /u01/Middleware/wlserver_10.3/server/bin/setWLSEnv.sh ! make sure to load variables into current shell session! • Start WLST in required mode: a) Console mode: java weblogic.WLST b) Script mode: java weblogic.WLST my_wlst_script.py 1>/tmp/wlst_script.out 2>&1 c) Importing WLST as a Jython Module: http://docs.oracle.com/cd/E13222_01/wls/docs90/config_scripting/using_WLST.html#1081491 Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 11. First steps • Connect to server (2 options to specify user/pwd + 1 – WLST will ask): connect([username, password],[url],[adminServerName], [timeout]) connect([userConfigFile,userKeyFile],[adminServerName], [timeout]) connect(url='t3://localhost:7001') • Usefull command after connected / before exit: startRecording(recordFilePath,[recordAll]) stopRecording() redirect('my_wlst_protocol.log', 'false') stopRedirect() exit() Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 12. Basic commands: • Get help on any command or list of methods: help() • Usefull command after connected / before exit: startRecording(recordFilePath,[recordAll]) stopRecording() redirect(outputFile,[toStdOut]) stopRedirect() Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 13. Getting help: • Get help on any command or list of methods: help() wls:/offline> help('online') wls:/offline> help('offline') • What help show: – Description of the action, references – Syntax – Usage Example • Detailed java call stack on error: dumpStack() • Print variables, expressions for debug: print Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 14. Browsing: • Set WL objects tree context before browse serverConfig() domainRuntime() …. • Navigate and show context info like in files system: cd('/') cd('AppRuntimeStateRuntime/AppRuntimeStateRuntime') ls() or use context specific methods like: listApplications() Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 15. Do scripting: • Save required set of commands in file: redirect('owl_mon_serversapp_1.log', 'false') connect(url='t3://localhost:7001') domainRuntime() cd('AppRuntimeStateRuntime/AppRuntimeStateRuntime') ls() disconnect() stopRedirect() exit() • Execute the script: java weblogic.WLST wlst_list_appruntime.py Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 16. Use subroutines: WLST – is really Python adopted for WL. So, use it's constructions: Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 17. Use loops and collections: Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 18. DBA darbu organizēšanaQ + A Vai tas ir svārīgi?! Copyright © 2014, SIA CoMinder, http://www.cominder.eu
  • 19. DBA darbu organizēšana Спасибо за внимание! Paldies par uzmanību! Thanks for attention! Andrey Chervonets e-mail: a.chervonets@cominder.eu LinkedIn: http://www.linkedin.com/in/andreychervonets web: http://www.cominder.eu MeetUp #11 24 of July 2014 Riga, Latvia Copyright © 2014, SIA CoMinder, http://www.cominder.eu