WebLogic for DBAs 1.0h

download WebLogic for DBAs 1.0h

If you can't read please download the document

description

Slides from the presentation I first gave in Dublin on 21/3/12 at the OUG Ireland conference

Transcript of WebLogic for DBAs 1.0h

  • 1. WebLogic for DBAs Simon HaslamVeriton Limited1 (1.0)

2. Simon Haslam / Veriton Consultant & Oracle Partner, established for 15 years I mainly work on demanding web & contact-centre applications Architecture planning to installation Middle Admin ware to troubleshooting (and most thingsistrati on in between!)2 (1.0) 3. Agenda1. WebLogic Architecture and Components2. Installing WLS & Configuring a Domain3. Oracle Enterprise Manager 11g & 12c4. Managing WebLogic 4. Recap.HTTP(S) HTTP(S) used Web Serverto return HTML HTTP(S), AJP etcApplication Server e.g. SQL*NetDatabase etc4 (1.0) 5. Key WebLogic Terms Domain Grouping of config/resources for an environment Has one set of administrators/security privileges Can be in Production or Development mode Admin Server Only one per domain Runs the Admin Console Can be relocated for HA Managed Server The server(s)/JVM that run your app(s) Cluster(s) distribute your app over several MS Node Manager Small java program that (re)starts your servers (MS & AS)5 (1.0) 6. Example Architecture machinenode managerappmanagedrequests webserver server plug-inmanaged server admin console machineadminserver managedserverdomainnode managerEND6 (1.0) 7. Component Notes A domain only ever has one admin server it looks after the master config.xml The admin server doesnt actually need tobe running all the time Managed Server Independence the MS canstart up/run on its own AS primarily used for changing configurationor deploying apps You want Node Manager running all thetime to stop/start WebLogic servers7 (1.0) 8. Quick Demo WebLogic Console machines servers data sources deployed applications8 (1.0) 9. Typical Enterprise Application Load Balancers Web Server Web Server WebLogic WebLogic AppApp Managed Server Managed ServerCluster Oracle DatabaseWebWeb (RAC and/or DG)Services ServicesServices Layer9 (1.0) 10. Enterprise Manager GC/CC Actually a fairly straightforward java application Runs an Oracle Management Service (OMS) which OEM Agents (server processes running on remote machines you want to manage) connect to over HTTPS Has a web application that provides the main EM console10 (1.0) 11. EM Grid/Cloud Control (HA)Load Balancer Web Server Web Server OMS OMS1 2 WebLogic WebLogicEMGC_OMS1EMGC_OMS2 Managed Server Managed ServerRepository DatabaseMy My(DG and/or RAC)OracleOracleSupport Support Services Layer11 (1.0) 12. Agenda1. WebLogic Architecture and Components2. Installing WLS & Configuring a Domain3. Oracle Enterprise Manager 11g & 12c4. Managing WebLogic 13. Install Middleware Home binaries which may include various Oracle layered products (such as SOA Suite or Forms) read-only* Domain Home configuration and logs can live happily outside the middleware home: nice! one middleware home / WebLogic installation can be used to run several separate domains * a few parts of Oracle ignore this13 (1.0) 14. WebLogic Installation Steps 1. Install JVM (typically JRockit) 2. Install a Middleware Home and WebLogic 3. Configure a Domain Note: I usually install the JVM and use the generic .jar installer (i.e. same for all platforms) rather than using installer bundled with a JVM14 (1.0) 15. 1) Install JVM Sun HotSpot or JRockit (will converge), or JVM for your platform (e.g. IBM) JRockit specific: dont install demos & samples/source code Windows latest you probably dont want JRockit as the public JRE15 (1.0) 16. 2) Install WebLogic e.g. java -jar wls1036_generic.jar Only most relevant screens follow16 (1.0) 17. 17 (1.0) 18. 18 (1.0) 19. 3) Configure a Domain You use the config wizard to create domains $WL_HOME/common/bin/config.sh (.cmd) there are several other methods too Theres a good chance your app will configure a domain for you (though you may wish to standardise) Only most relevant screens follow19 (1.0) 20. 20 (1.0) 21. 21 (1.0) 22. 22 (1.0) 23. Agenda1. WebLogic Architecture and Components2. Installing WLS & Configuring a Domain3. Oracle Enterprise Manager 11g & 12c4. Managing WebLogic 24. OEM Grid Control 11g 11g GC was first OEM release to use WebLogic instead of OC4J You had to install WebLogic yourself first, then use SmartUpdate (BSU) to apply WDJ7 set of patches online or offline see http://www.veriton.co.uk/roller/fmw/entry/ offline_patching_of_weblogic_server If youre installing now youll probably go straight to EM 12c 24 (1.0) 25. 25 (1.0) 26. EM 12c most relevant screens26 (1.0) 27. 27 (1.0) 28. Note: this is the current list of plug-ins for 12.1 BP1 but will probably increase over time28 (1.0) 29. Configure29 (1.0) 30. 30 (1.0) 31. 32 bit Gotcha! If youre installing on Oracle Linux 5.7 see: https://forums.oracle.com/forums/thread.jspa? messageID=10220015 Need to lower memory usage in /oms/sysman/omsca/scripts/ wls/create_domain.py You wouldnt use 32 bit in production now but may do for laptop or lab VM31 (1.0) 32. Agenda1. WebLogic Architecture and Components2. Installing WLS & Configuring a Domain3. Oracle Enterprise Manager 11g & 12c4. Managing WebLogic 33. 33 (1.0) 34. Managing WebLogic Admin console is usually starting point Processes to check java for admin server & managed server java for nm Node manager (only use java version) Log files34 (1.0) 35. Log Files Managed server logs are under: DOMAIN_HOME/servers//logs Accessible through console too Diagnostics Console monitor35 (1.0) 36. Quick Demo Processes Log files36 (1.0) 37. WLST Exampledef create_ds(DS_NAME, DS_PARAMS, TARGETS, JNDI, DB_USER, DB_PASS,DB_SERVICE, DB_HOSTS, ONS_HOSTS): cd(/) cmo.createJDBCSystemResource(DS_NAME) cd(/JDBCSystemResources/+DS_NAME+/JDBCResource/+DS_NAME) cmo.setName(DS_NAME) cd(JDBCDataSourceParams/+DS_NAME) set(JNDINames,jarray.array([String(JNDI)], String)) ...etc...37 (1.0) 38. 38 (1.0) 39. WebLogic is a java application server typically delivers HTML over HTTP(S) All WLS processes run on a JVM Middleware home is static, domain home contains config and logs WLS Console is usually first point of contact (though dont forget about WLST for automation) OEM 12c runs on WebLogic but the installer now does the WLS set up work for you39 (1.0) 40. Thanks for listening! Twitter: @simon_haslam Oracle Fusion Middleware Admin blog:http://simonhaslam.co.uk40 (1.0)