Top Weblogic Tasks You can Automate Now



Similar documents
WebLogic Server Administration

Learn Oracle WebLogic Server 12c Administration For Middleware Administrators

This training is targeted at System Administrators and developers wanting to understand more about administering a WebLogic instance.

AGENDA. Introduction About Weblogic Server Weblogic Server Administration Top Ten Concepts Q & A

WebLogic Server System Administration Top Ten Fundamentals Concepts Session ID# 11579

Weblogic Server Administration Top Ten Concepts. Mrityunjay Kant, AST Corporation Scott Brinker, College of American Pathologist

Oracle WebLogic Server 11g: Administration Essentials

WEBLOGIC ADMINISTRATION

WebLogic Server Foundation Topology, Configuration and Administration

Install and Configure Fusion Applications - DBA perspective. Masthan Babu Phani Kottapalli AST Corporation August 14, 2014

Head in the Clouds Feet On the Ground

WebLogic Server 11g Administration Handbook

5 Days Course on Oracle WebLogic Server 11g: Administration Essentials

Oracle WebLogic Foundation of Oracle Fusion Middleware. Lawrence Manickam Toyork Systems Inc

Robert Honeyman

ASTCORPORATION. Head in the Clouds Feet On the Ground A Guide to Choosing Cloud Options RECOGNIZED. PREFERRED. SPECIALIZED.

MagDiSoft Web Solutions Office No. 102, Bramha Majestic, NIBM Road Kondhwa, Pune Tel: /

Oracle E-Business Suite Single Sign On Using Oracle Access Manager

CHAPTER 1 - JAVA EE OVERVIEW FOR ADMINISTRATORS

Oracle WebLogic Server 11g Administration

Oracle Fusion Middleware

Understanding the WebLogic Scripting Tool c (12.1.3)

Oracle Exam 1z0-102 Oracle Weblogic Server 11g: System Administration I Version: 9.0 [ Total Questions: 111 ]

Oracle Service Bus: - When to use, where to use and when not to use

1z0-102 Q&A. DEMO Version

Oracle Fusion Middleware

1Z Oracle Weblogic Server 11g: System Administration I. Version: Demo. Page <<1/7>>

Contents 1 Overview 2 Introduction to WLS Management Services iii

A Beginners Guide to Fusion Middleware

Coherence Managed Servers

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

Sample copy. Introduction To WebLogic Server Property of Web 10.3 Age Solutions Inc.

Oracle WebLogic Server: Remote Monitoring and Management

Oracle IDM Integration with E-Business Suite & Middleware Technologies

WebLogic Server: Installation and Configuration

<Insert Picture Here> Managing WebLogic Server Lifecycle

Introduction to WebSphere Administration

WebLogic Server Admin

Who are We Specialized. Recognized. Preferred. The right partner makes all the difference.

Maximum Availability Architecture. Oracle Best Practices For High Availability. Backup and Recovery Scenarios for Oracle WebLogic Server: 10.

Code:1Z Titre: Oracle WebLogic. Version: Demo. Server 12c Essentials.

No.1 IT Online training institute from Hyderabad URL: sriramtechnologies.com

Basic TCP/IP networking knowledge of client/server concepts Basic Linux commands and desktop navigation (if don't know we will cover it )

Oracle WebLogic Server 11g: Administration Essentials

BEAWebLogic. Server. Configuring and Managing WebLogic Server

WebCenter Forms Recognition Learn Sets to the Rescue! August 14, 2014

About Node Manager and the WebLogic Scripting Tool

Management. Oracle Fusion Middleware. 11 g Architecture and. Oracle Press ORACLE. Stephen Lee Gangadhar Konduri. Mc Grauu Hill.

APAC WebLogic Suite Workshop Oracle Parcel Service Overview. Jeffrey West Application Grid Product Management

Oracle WebLogic Server

An Oracle White Paper Sep Embedding Oracle WebLogic Server

OBIEE Deployment & Change Mgmt Best Practices

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

Oracle WebLogic Server

Oracle Fusion Middleware

KillTest. 半 年 免 费 更 新 服 务

Application Servers - BEA WebLogic. Installing the Application Server

JBS-102: Jboss Application Server Administration. Course Length: 4 days

FioranoMQ 9. High Availability Guide

Configuring Log Files and Filtering Log Messages for Oracle WebLogic Server c (12.1.3)

Oracle Exam 1z0-599 Oracle WebLogic Server 12c Essentials Version: 6.4 [ Total Questions: 91 ]

Deploying for Success on the Cloud: EBS on Amazon VPC Session ID#11312

Automating Management for Weblogic Server on JRockit-VE. Marius Sandu-Popa

WEBLOGIC SERVER MANAGEMENT PACK ENTERPRISE EDITION

Oracle Managed File Getting Started - Transfer FTP Server to File Table of Contents

WebLogic on Oracle Database Appliance: Combining High Availability and Simplicity

all you need to know about Node Manager for by Jacco H. Landlust zaterdag 8 december 12

Oracle Data Integrator 11g New Features & OBIEE Integration. Presented by: Arun K. Chaturvedi Business Intelligence Consultant/Architect

WASv6_Scheduler.ppt Page 1 of 18

Don t get it right, just get it written.

Operations and Monitoring with Spring

WebLogic Server - OGG Domain under Windows7 Startup and Shutdown Admin Server and Managed Servers

Qualogy M. Schildmeijer. Whitepaper Oracle Exalogic FMW Optimization

Glassfish Architecture.

G-Cloud Framework. Service Definition. Oracle Fusion Middleware Design and Implementation

Oracle Communications WebRTC Session Controller: Basic Admin. Student Guide

Oracle Call Center Applications Setup

Oracle Policy Automation (OPA) Making Policies Work For You..

<Insert Picture Here> WebLogic High Availability Infrastructure WebLogic Server 11gR1 Labs

JBoss AS Administration Console User Guide. by Shelly McGowan and Ian Springer

ORACLE DATA SHEET KEY FEATURES AND BENEFITS ORACLE WEBLOGIC SERVER STANDARD EDITION

Monitoring Oracle Fusion Middleware


NetIQ AppManager for WebLogic Server UNIX. Management Guide

Oracle WebLogic Server

12 Things about Oracle WebLogic Server

Maximum Availability Architecture

Monitoring Oracle WebLogic Server with SNMP 12c (12.2.1)

Chapter 1 - Web Server Management and Cluster Topology

Configuring SSL in OBIEE 11g

Consolidate Your Middleware to the #1 Application Server: Oracle WebLogic Suite Chuk Munn Lee Oracle

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

Automatic Service Migration in WebLogic Server An Oracle White Paper July 2008

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

WebSphere Server Administration Course

Oracle Fusion Middleware

Oracle Service Bus Examples and Tutorials

Deploying to WebSphere Process Server and WebSphere Enterprise Service Bus

Transcription:

Top Weblogic Tasks You can Automate Now Session ID#: 10506 Prepared by: Mrityunjay Kant Practice Manager, SOA & Integration Services AST Corporation @MrityunjayKant REMINDER Check in on the COLLABORATE mobile app

Specialized. Recognized. Preferred. OUR SERVICES ORACLE PARTNERSHIP ORACLE SPECIALIZED Enterprise Resource Planning Business Intelligence EPM-Hyperion Middleware CRM Managed Services Education / Oracle University Project Advisory Services Oracle Platinum Partner Pillar Partner SOA Business Intelligence Hyperion Oracle University Approved Education Center Oracle University Reseller Oracle Accelerator Implementer Oracle Managed Cloud Services Implementer Oracle Cloud Marketplace Small Business Strategy Council Advanced Partner Support EBS Financial Management EBS Human Capital Management EBS Supply Chain Management BI Applications BI Foundation Service Oriented Architecture Public Sector Utilities Travel & Transportation Education & Research Application Development Framework 11g WebCenter Content 11g Access Management Suite Plus 11g Hyperion Planning 11 Essbase 11 Database 11g Hyperion Financial Management 11 3 Time Oracle Excellence Award Winner 2014 Chicago Tribune Top 100 Workplaces 2014, 2013, 2012 Inc. 5000 Fastest Growing Companies 2014, 2012 Best & Brightest Companies to Work For 2011 Inc. Top Small Company Workplaces

Agenda About Weblogic Server Weblogic tasks you can Automate Now Weblogic Cluster Administration Q&A * All code/scripts in this presentation are available as part of white paper

Weblogic Server Introduction #1 in worldwide Application Server Software The Foundation for Oracle Applications and Middleware Technologies Platform The Foundation for Cloud Applications and Application Infrastructure Consolidation Supported features such as Java EE Standards Scalability/Clustering Monitoring & Management Enterprise Security Enterprise Messaging Linear Scalability Coherence etc Latest Version 12.1.3

What is Weblogic Scripting (WLST)? Scripting Interface to Weblogic server Based on Java Scripting Interpreter - Jython Provides repeatable process for propagating configuration changes across environments Quickly allow environments to be replicated and migrated Can be in either online or offline operation

Interaction Modes Interactive Script Enter a command and view response at a command-line prompt In online mode shell maintains a persistent connection to a WLS instance Text file with a.py extension Executed using Jython commands for running scripts Invoke a series of WLST commands without requiring your input Embedded Instantiate WLST interpreter in your Java code Execute WLST command from a Java program

Connection Modes Offline Analogous to the Configuration Wizard Read and write access to the configuration data that is persisted in the domains configuration directory or domain template JAR Intended to create domain or modify a non-running domain Used during WLS install to create samples domain Online Analogous to the Administration Console JMX client Interacts with server s MBeans Intended as runtime management tool: configuration, management, deployment and monitoring

WLST Offline Can/Can t Do Can Do Create/modify templates Create domains Extend domains Access and modify configurations for offline domain Can t Do View runtime performance data Modify security data Do not use Offline mode to manage configuration of an active domain. Offline edits are ignored by running servers and can be overwritten by other JMX client such as WLST Online and Administration Console

WLST Online Can/Can t Do Can Do Change Configuration View runtime data Deploy applications Start/stop servers Can t Do Create a domain (must be offline mode)

Invoking WLST (Online) Ensure you have the Weblogic server installed! Remember all commands are case sensitive Set the run env with following script: WL_HOME\server\bin\setWLSEnv Enter following command to run WLST: java weblogic.wlst Starts in offline mode Connect to domain wls:/(offline)> connect('username','password','t3s://localhost:7002')

Traversing Mbean Trees Simpler than JMX no need to know JMX object name Mbeans are hierarchical, similar to a file system, with DomainMBean at top of tree Use commands similar to Unix to traverse cd(), ls() Syntax is same as WLST offline Domain MBean (root) - - - MBean Type (ServerMBean) - - - MBean Instance (ManagedServer1) - - - MBean attributes & Operations (AutoRestart) - - - MBean Instance (ManagedServer2)

Available Mbean Trees domainconfig Configuration hierarchy of the entire domain; represents configuration MBeans in RuntimeMBeanServer domainruntime Hierarchy of runtime Mbeans for entire domain; read only serverconfig Configuration hierarchy (configuration Mbeans) of the server you are connected to; read only serverruntime hierarchy of runtime Mbeans of the server you are connected to; read only

Available Mbean Trees edit jndi custom Writable domain configuration with pending changes; represents configuration MBeans in EditMBeanServer Read-only JNDI tree for the server you are connected to List of custom MBeans Can be hierarchical/grouped if MBeans use namespaces correctly

Switching Between Trees Use appropriate command to move to a different tree domainconfig() serverconfig() domainruntime() serverruntime() edit() jndi() custom() When returning to a tree, you return to the same place where you left, except custom and jndi (return to root)

Changing Configuration (Online) Step Change to the edit tree Get an edit lock Syntax wls:/wl_server/domainconfig> edit() wls:/wl_server/edit> startedit() Make Changes wls:/wl_server/edit!> cmo.createserver(managedserver1 ) wls:/wl_server/edit!> cd('/servers/managedserver1') wls:/wl_server/edit!> cmo.setlistenport(8001) wls:/wl_server/edit!> cmo.setlistenaddress( my-address ) Save and implicitly validate your changes Activate/distribute, release lock wls:/wl_server/edit!>save() wls:/wl_server/edit!> activate()

Current Management Object CMO variable current management object Java bean that serves as proxy for direct access to the WLS MBean Makes it easy to interact with Mbean get and set attributes, other commands Always set to the current WLST path Only available for WLS MBeans, not custom MBeans Example: wls:/mydomain/edit> cmo.setadministrationport(9091) (This example changes the Administration port in Domain MBean)

Start/Stop Server Invoke WLST java weblogic.wlst Connect to Node Manager nmconnect('weblogic', 'welcome1', 'localhost', '5556', 'mydomain', /usr/oracle/wls/user_projects/domai ns/mydomain', plain') Start Server (can be admin or managed server) nmstart( servername ) Stop Server nmkill( servername ) Server Status nmserverstatus( servername )

Server Lifecycle commands using WLST You can also manage server lifecycle through WLST without using node manager commands startserver start the Administration server start Start a managed server instance or cluster using Node Manager suspend Suspend a running server resume - Resume a suspended server shutdown Gracefully shutdown a running server instance or cluster migrate Migrate services to a target server within a cluster

Product Demo

Scripting Basics Each Script has 4 basic parts Import Section Global Variables Definitions class/functions Main program Data Types Base Datatypes integer, float, long, char, str, bool Collection Types list, dictionary, tuple, sequences, maps etc Object types Python objects and Java package objects The help() command gives info on any built-in functions

Automated start Admin Server Create a domain.properties file Create a Start_Admin.py script file Execute the script from command line or shell/batch script * All code/scripts in this presentation are available as part of white paper

Send Email on Server state Ready to use script, just change Admin email Does not need cron job for scheduling! Admin server need not be running for this script to run More reliable than just checking serer logs Bonus Script send email on application status! * All code/scripts in this presentation are available as part of white paper

Create a Data Source Can create multiple data sources with one script Properties file contains all details for data sources Can be used for creation of a new environment Execute using following command: java weblogic.wlst createmultipledatasource.py

Start/Stop Data Source To shutdown a data source: connect( weblogic,welcome1,'t3://localhost:7001') domainruntime() cd( ServerRuntimes/AdminServer/JDBCServiceRuntime/AdminServer/ JDBCDataSourceRuntimeMBeans/TestDS ) objectarray = jarray.array([], java.lang.object) stringarray = jarray.array([], java.lang.string) invoke( shutdown, objectarray, stringarray) exit() Replace shutdown with start to start the data soruce.

Forcibly Rotate Server Logs Comes handy if the log file is too big Can be run anytime as needed Ability to adjust max log file size Recommend setting correct log configuration to allow auto rotate

Deploy Apps Allow deployment of apps using script Can recursively pick apps form a dir and deploy List of applications specified in property file Easy setup of a new env! Can also be used to un-deploy applications. Change the deploy command to undeploy

Creating Users and Groups Can create multiple users and groups with one script Properties file contains all details for users and groups Can be used for creation of a new environment Execute using following command: java weblogic.wlst createusersngroups.py

Disable/Enable Admin Console Provides additional security Prevents unauthorized access May be required by policy or for audit compliance Disable Admin console connect("weblogic","welcome1","t3://localhost:7001") edit() startedit() cmo.setconsoleenabled(false) save() activate() disconnect() exit() To enable console, replace false with true in above step

Advanced Weblogic Concepts - Clusters

What is a Cluster? Multiple Servers running together as one unit Can be on same or different machines Appears to clients as a single unit Is part of Domain

Why Cluster? Scalability High-Availability Application Fail over Load Balancing Whole server migration!

What can be clustered? Servlets JSPs EJBs Remote Method Invocation (RMI) objects Java Messaging Service (JMS) destinations Web Services (if cluster aware) These cannot be clustered: File services including file shares Time services

Dynamic Clusters Server instances that can be scaled at runtime Meets peak application needs Can be destroyed when not needed Uses a template to create and spawn new servers automatically

Clustering Best Practices Plan for clusters from Day 1 High Availability Scalability Zero downtime upgrades! Use scripts to monitor managed server states Keep log rotation in check Configure In-Memory Replication HTTP Session state management Ask developers to design idempotent services for clusters Use Weblogic Clustering API Don t put cluster nodes in DMZ Web and Application Nodes Use logical DNS names instead of IP addresses Load test cluster capacity before Production

Resources WLST Basics https://docs.oracle.com/middleware/1213/wls/wlstg/toc.htm WLST Command Reference https://docs.oracle.com/middleware/1213/wls/wlstc/reference. htm#wlstc119 Weblogic Administration https://docs.oracle.com/middleware/1213/wls/wlach/core/inde x.html WLST Sample Scripts https://docs.oracle.com/middleware/1213/wls/wlstg/intro.ht m#wlstg112 WL_HOME\wlserver\common\templates\scripts\wlst

Thank You! Mrityunjay Kant mkant@astcorporation.com

Please complete the session evaluation We appreciate your feedback and insight You may complete the session evaluation either on paper or online via the mobile app