<Insert Picture Here> Grid Control 11g Housekeeping Ralf Durben
Grid Control Architektur 10.2.0.5 Überall nutzbar HTTP/S HTML Konsole HTTP/S Oracle Application Server NET Mobiles Device HTTP/S Firewall Portale HTTP/S Open Repository
Grid Control Architektur 11.1 Überall nutzbar HTTP/S HTML Konsole HTTP/S Weblogic Server NET Mobiles Device HTTP/S Firewall Portale HTTP/S Open Repository
Agenda Regelmäßiges Housekeeping Stetig wachsende Log- und Tracedateien im Zaum halten Wartungsarbeiten Starten / Stoppen / Konfigurieren von Komponenten OMS Agent Troubleshooting Eingeübte Verfahrensweisen in Problemfällen Upload der Agenten funktioniert nicht mehr Agenten lassen sich nicht mehr starten Hochverfügbarkeit Multi-OMS Umgebungen Sicherheit Verschlüsselung
Agenda Regelmäßiges Housekeeping Stetig wachsende Log- und Tracedateien im Zaum halten Wartungsarbeiten Starten / Stoppen / Konfigurieren von Komponenten OMS Agent Troubleshooting Eingeübte Verfahrensweisen in Problemfällen Upload der Agenten funktioniert nicht mehr Agenten lassen sich nicht mehr starten Hochverfügbarkeit Multi-OMS Umgebungen Sicherheit Verschlüsselung
Regelmäßiges Housekeeping Stetig wachsende Log- und Tracedateien im Zaum halten Agent Keine Änderungen OMS Bereich Application Server Weblogic überschreibt zyklisch Zyklus einstellbar Kein stetiges Wachstum Bereich Applikation Neue Verzeichnisstruktur Stetiges Wachstum wie in Vorgängerversionen Regelmäßiges Löschen per Job
Regelmäßiges Housekeeping Logs Löschen in GC 10.2.0.5 find /oracle/installations/oms10g/apache/apache/logs -name "access_log*" -mtime +14 -exec rm -f {} \; find /oracle/installations/oms10g/apache/apache/logs -name "em_access_log*" -mtime +14 -exec rm -f {} \; find /oracle/installations/oms10g/apache/apache/logs -name "error_log*" -mtime +14 -exec rm -f {} \; find /oracle/installations/oms10g/webcache/logs -mtime +14 -exec rm -f {} \; rm -f /oracle/installations/oms10g/sysman/log/emoms.log.* rm -f /oracle/installations/oms10g/sysman/log/emoms.trc.* echo >/oracle/installations/oms10g/apache/apache/logs/ssl_request_log echo >/oracle/installations/oms10g/apache/apache/logs/ssl_engine_log echo >/oracle/installations/oms10g/apache/apache/logs/error_log rm -f /oracle/installations/oms10g/j2ee/oc4j_em/log/oc4j_em_default_island_1/*.log rm -f /oracle/installations/oms10g/sysman/recv/errors/* rm -f /oracle/installations/agent10g/sysman/log/emagent.trc.* rm -f /oracle/installations/agent10g/sysman/log/emagentfetchlet.* rm -f /oracle/installations/agent10g/sysman/log/emagent_perl.trc
Regelmäßiges Housekeeping Logs Löschen in GC 11.1 - Unterschiede find /oracle/installations/gc_inst/user_projects/domains/gcdomain/servers/emgc_oms1/ data/ldap/log -name "Embedded*" -mtime +14 -exec rm -f {} \; find /oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1 -name "access_log*" -mtime +14 -exec rm -f {} \; find /oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1 -name "em_upload_https_access_log*" -mtime +14 -exec rm -f {} \; find /oracle/installations/oms10g/apache/apache/logs -name "error_log*" -mtime +14 -exec rm -f {} \; find /oracle/installations/oms10g/webcache/logs -mtime +14 -exec rm -f {} \; rm -f /oracle/installations/gc_inst/em/emgc_oms1/sysman/log/emoms.log.* rm -f /oracle/installations/gc_inst/em/emgc_oms1/sysman/log/emoms.trc.* echo >/oracle/installations/oms10g/apache/apache/logs/ssl_request_log echo >/oracle/installations/oms10g/apache/apache/logs/ssl_engine_log echo >/oracle/installations/oms10g/apache/apache/logs/error_log rm -f /oracle/installations/oms10g/j2ee/oc4j_em/log/oc4j_em_default_island_1/*.log rm -f /oracle/installations/gc_inst/em/emgc_oms1/sysman/recv/errors/* rm -f /oracle/installations/agent11g/sysman/log/emagent.trc.* rm -f /oracle/installations/agent11g/sysman/log/emagentfetchlet.* rm -f /oracle/installations/agent11g/sysman/log/emagent_perl.trc
Regelmäßiges Housekeeping Logs Löschen in GC 11.1 Hinzu kommen echo >/oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1/ohs1-*.log echo >/oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1/mod_wl_ohs.log echo >/oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1/ohs1.log
Regelmäßiges Housekeeping Logs Löschen in GC 11.1 - Gesamtskript find /oracle/installations/gc_inst/user_projects/domains/gcdomain/servers/emgc_oms1/ data/ldap/log -name "Embedded*" -mtime +14 -exec rm -f {} \; find /oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1 -name "access_log*" -mtime +14 -exec rm -f {} \; find /oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1 -name "em_upload_https_access_log*" -mtime +14 -exec rm -f {} \; echo >/oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1/ohs1-*.log echo >/oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1/mod_wl_ohs.log echo >/oracle/installations/gc_inst/webtierih1/diagnostics/logs/ohs/ohs1/ohs1.log rm -f /oracle/installations/gc_inst/em/emgc_oms1/sysman/log/emoms.log.* rm -f /oracle/installations/gc_inst/em/emgc_oms1/sysman/log/emoms.trc.* rm -f /oracle/installations/gc_inst/em/emgc_oms1/sysman/recv/errors/* rm -f /oracle/installations/agent11g/sysman/log/emagent.trc.* rm -f /oracle/installations/agent11g/sysman/log/emagentfetchlet.* rm -f /oracle/installations/agent11g/sysman/log/emagent_perl.trc
Agenda Regelmäßiges Housekeeping Stetig wachsende Log- und Tracedateien im Zaum halten Wartungsarbeiten Starten / Stoppen / Konfigurieren von Komponenten OMS Agent Troubleshooting Eingeübte Verfahrensweisen in Problemfällen Upload der Agenten funktioniert nicht mehr Agenten lassen sich nicht mehr starten Hochverfügbarkeit Multi-OMS Umgebungen Sicherheit Verschlüsselung
Wartungsarbeiten Utilities Keine Änderungen OMS Emca EM Configuration Assistant Emctl EM Control Emcli EM Command Line Interface Agent Emctl EM Control
Wartungsarbeiten Agent Keine Änderungen
Wartungsarbeiten OMS Kein OPMNCTL Weblogic Server startet beim Booten des Servers Grid Control startet beim Booten des Servers Sonst wie gehabt: emctl start oms
Installationsinformationen 11.1: setupinfo.txt more $MW_HOME/oms11g/install/setupinfo.txt This information is also available at: /opt/oracle/product/mw/oms11g/install/setupinfo.txt See below for information pertaining to your Enterprise Manager installation: Use the following URL to access: 1. Enterprise Manager Grid Control URL: https://sccloud037.de.oracle.com:7799/em 2. Admin Server URL: https://sccloud037.de.oracle.com:7101/console The following details need to be provided during the additional OMS install: 1. Admin Server Hostname: sccloud037.de.oracle.com 2. Admin Server Port: 7101 NOTE: An encryption key has been generated to encrypt sensitive data in the Management Repository. If this key is lost, all encrypted data in the Repository becom es unusable. Please run following command to backup the Management Service configuration including the emkey and keep the backup on another system: emctl exportconfig oms -dir <backup location>
Portbelegung 10.2.0.5: portlist.ini more $OMS_HOME/install/portlist.ini ;OracleAS Components reserve the following ports at install time. ;As a post-installation step, you can reconfigure a component to use a different port. ;Those changes will not be visible in this file. [System] Host Name = gridcontrol.de.oracle.com [Ports] Oracle HTTP Server port = 7777 Oracle HTTP Server Listen port = 7778 Oracle HTTP Server SSL port = 8250 Oracle HTTP Server Listen (SSL) port = 4444 Oracle Notification Server Request port = 6003 Oracle Notification Server Local port = 6101 Oracle Notification Server Remote port = 6200 ASG port = 7890 Oracle HTTP Server Diagnostic port = 7200 Application Server Control RMI port = 1850 Log Loader port = 44000
Portbelegung 10.2.0.5: portlist.ini Java Object Cache port = 7000 DCM Discovery port = 7100 Oracle Management Agent Port = 1157 Application Server Control port = 1156 Web Cache HTTP Listen port = 7777 Web Cache HTTP Listen (SSL) port = 8250 Web Cache Administration port = 9400 Web Cache Invalidation port = 9401 Web Cache Statistics port = 9402 Enterprise Manager Central Console Port = 4889 Enterprise Manager Central Console Secure Port = 1159
Portbelegung 11.1: staticports.ini more $MW_HOME/.gcinstall_temp/staticports.ini Enterprise Manager Upload Http Port=4889 Enterprise Manager Upload Http SSL Port=4900 Enterprise Manager Central Console Http SSL Port=7799 Node Manager Http SSL Port=7403 Managed Server Http Port=7202 Enterprise Manager Central Console Http Port=7788 Oracle Management Agent Port=3872 Admin Server Http SSL Port=7101 Managed Server Http SSL Port=7301
Portbelegung 11.1: emgc.properties more $MW_HOME/../gc_inst/em/EMGC_OMS1/emgc.properties #Wed Apr 21 11:52:44 CEST 2010 oracle.sysman.emsdk.svlt.consoleservername=sccloud037.de.oracle.com\:4889_manage ment_service EM_INSTANCE_HOME=/opt/oracle/product/gc_inst/em/EMGC_OMS1 EM_REPOS_CONNECTDESCRIPTOR=(DESCRIPTION\=(ADDRESS_LIST\=(ADDRESS\=(PROTOCOL\=TCP )(HOST\=sccloud037.de.oracle.com)(PORT\=1521)))(CONNECT_DATA\=(SID\=emrep))) EM_NODEMGR_HOME=/opt/oracle/product/mw/wlserver_10.3/common/emnodemanager NM_USER=nodemanager OPMN_LOCAL_PORT=0 WEBTIER_ORACLE_HOME=/opt/oracle/product/mw/oms11g/../Oracle_WT MSPORT=7202 OHS_PROXY_PORT=0 AS_HTTPS_PORT=7101 MW_HOME=/opt/oracle/product/mw EM_CONSOLE_HTTPS_PORT=7799 OHS_COMP_NAME=ohs1 EM_DOMAIN_HOME=/opt/oracle/product/gc_inst/user_projects/domains/GCDomain oracle.sysman.emrep.repositorymode=repository EM_UPLOAD_HTTP_PORT=4889 EM_WEBTIER_INSTHOME=/opt/oracle/product/gc_inst/WebTierIH1
Portbelegung 11.1: emgc.properties EM_DOMAIN_NAME=GCDomain EM_REPOS_USER=SYSMAN IS_ADMIN_HOST=true EM_NODEMGR_PORT=7403 AS_PORT=0 WEBTIER_INSTANCE_NAME=instance1 OMSNAME=EMGC_OMS1 EM_INSTANCE_HOST=sccloud037.de.oracle.com AS_USERNAME=weblogic AS_HOST=sccloud037.de.oracle.com ADMIN_SERVER_NAME=EMGC_ADMINSERVER EM_UPLOAD_HTTPS_PORT=4900 ORACLE_HOME=/opt/oracle/product/mw/oms11g MS_HTTPS_PORT=7301 OPMN_REMOTE_PORT=0 EM_CONSOLE_HTTP_PORT=7788
Konfiguration OMS Nicht mehr ueber emoms.properties #NOTE #---- #1. EMOMS(LOGGING).PROPERTIES FILE HAS BEEN REMOVED #2. OMS PROPERTIES / LOGGING PROPERTIES SHOULD BE MODIFIED USING EMCTL GET/SET/DELETE/LIST PROPERTY COMMANDS #3. The USAGE OF EMCTL GET/SET/DELETE/LIST PROPERTY IS PROVIDED BELOW, BUT # FOR LATEST UPDATED COMMANDS PLEASE CHECK EMCTL HELP MESSAGE
Konfiguration OMS Anzeige der Properties./emctl list properties Oracle Enterprise Manager 11g Release 1 Grid Control Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved. SYSMAN password: LargeRepository=false em.ip.ui.enable=true em.oms.dumpmodules=omsthread,repos emconfigmbeanport=0 em_email_address= em_email_gateway= em_from_email_address= em_oob_crash=false :
Konfiguration OMS Property setzen emctl set property [-sysman_pwd "sysman password"] -name <property name> -value <property value> [-module <emoms logging> (default emoms)] Kein Neustarten des OMS notwendig Property löschen emctl delete property [-sysman_pwd "sysman password"] -name <property name> Einzelnes Property anzeigen emctl get property [-sysman_pwd "sysman password"] -name <property name> Alle Properties anzeigen emctl list properties [-sysman_pwd "sysman password"] [-module <emoms logging>]
Agenda Regelmäßiges Housekeeping Stetig wachsende Log- und Tracedateien im Zaum halten Wartungsarbeiten Starten / Stoppen / Konfigurieren von Komponenten OMS Agent Troubleshooting Eingeübte Verfahrensweisen in Problemfällen Upload der Agenten funktioniert nicht mehr Agenten lassen sich nicht mehr starten Hochverfügbarkeit Multi-OMS Umgebungen Sicherheit Verschlüsselung
Troubleshooting Agent Keine Änderungen
Troubleshooting OMS Neue Verzeichnisstruktur: ORACLE_BASE/gc_inst/em/EMGC_OMS1/sysman statt ORACLE_BASE/oms10g/sysman Kein OPMNCTL Weblogic Server muss nicht durchgebootet werden, bei Problemen mit OMS
Agenda Regelmäßiges Housekeeping Stetig wachsende Log- und Tracedateien im Zaum halten Wartungsarbeiten Starten / Stoppen / Konfigurieren von Komponenten OMS Agent Troubleshooting Eingeübte Verfahrensweisen in Problemfällen Upload der Agenten funktioniert nicht mehr Agenten lassen sich nicht mehr starten Hochverfügbarkeit Multi-OMS Umgebungen Sicherheit Verschlüsselung
Multi-OMS Umgebungen Im Prinzip keine Veränderungen Loadbalancer verteilt Daten von Agenten auf die OMS Neues Verzeichnis für Shared Storage: ORACLE_BASE/gc_inst/em/EMGC_OMS1/sysman/recv
Agenda Regelmäßiges Housekeeping Stetig wachsende Log- und Tracedateien im Zaum halten Wartungsarbeiten Starten / Stoppen / Konfigurieren von Komponenten OMS Agent Troubleshooting Eingeübte Verfahrensweisen in Problemfällen Upload der Agenten funktioniert nicht mehr Agenten lassen sich nicht mehr starten Hochverfügbarkeit Multi-OMS Umgebungen Sicherheit Verschlüsselung
Sicherheit Credentials im Repository sind verschlüsselt Schlüssel sollte aus dem Repository entfernt werden 10.2.0.5 Schlüssel liegt im Repository, bis alle OMS installiert sind Sollte entfernt werden emctl config emkey remove_from_repos 11.1 Schlüssel ist nach der Installation aus dem Repository entfernt Schlüsseldatei als Backup sichern und verschieben MW_HOME/oms11g/sysman/config/emkey.ora emctl exportconfig oms dir <verzeichnis>
Informationen Tipps in der DBA Community http://www.oracle.com/global/de/community/dbadmin/index.html Handbücher unter http://download.oracle.com/docs/cd/e11857_01/index.htm
F A &Fragen A n t w o r t e n