Weitere ähnliche Inhalte Ähnlich wie Automatisierte Oracle Middleware Installation (20) Mehr von OPITZ CONSULTING Deutschland (20) Automatisierte Oracle Middleware Installation1. Automatisierte Middleware Installation
Middleware Forms & Reports 11g R2
per Mausklick installieren
Borys Neselovskyi,
Senior Consultant
OPITZ CONSULTING Deutschland GmbH
DOAG Konferenz, Nürnberg, November 2012
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 1
2. Agenda
1. Einleitung
2. Installation planen und vorbereiten
3. JDK Installation
4. Oracle WebLogic Server Installation
5. Oracle Forms & Reports Services Installation
6. Oracle Forms & Reports Services Konfiguration
7. Konfiguration der Anwendung
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 2
3. 1 Einleitung
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 3
4. Projektdaten
Ausgangsposition
Rechenzentrum mit 100+ Oracle 10g Datenbanken und
40+ Oracle Applikationsserver Forms & Reports 10g
OS RHEL Linux x86-64 / Oracle Solaris 5.8
Die Applikationsserver sind identisch installiert
Anforderungen
Migration Oracle RDBMS nach 11.2
Migration Oracle Applikationsserver Forms & Reports nach 11.2
Evaluierung der automatisierten Installation bzw. Konfiguration
Erstellung des Konzepts
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 4
5. Motivation
Langweilige Tätigkeiten vermeiden
Aufwandsreduzierung
Homogene Umgebungen
Weniger Fehler
Schnellere Wiederherstellung
Schnelle Umsetzung, geringe Kosten
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 5
6. Folgende Themen …
… werden erläutert:
Methoden zur Automatisierung der Installation folgender Komponenten:
JDK / JRE, Oracle WebLogic
Oracle Forms & Reports Installation
Konfiguration automatisieren:
Konfiguration einer Domäne
Node Manager Konfiguration
Konfiguration von Forms & Reports Komponenten
Einrichten der Umgebung, Installation von Start-/Stop-Skripten
… werden nicht angesprochen:
automatisierte Installation des Betriebssystems
Integration einer Oracle Installation in das komplette
Systeminstallationsverfahren
Lizenzfragen
Sicherheitsaspekte
Performance Tuning
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 6
8. Ablauf der Installation
Installation des 64-Bit Oracle (Sun) JDK 1.6.0_34
Installation des WebLogic Server 10.3.6 64-Bit
Installation Fusion Middleware Forms & Reports 11.1.2.0
WebLogic FMW
Start JDK 1.6.0
10.3.6 11.1.2
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 8
9. Konfiguration
Erstellung einer Forms & Reports Domäne sowie einer
Oracle Instanz
Konfiguration der Umgebung
Konfiguration der Anwendung
Forms Konfiguration
Domäne erstellen Umgebung einrichten
Reports Konfiguration
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 9
10. Software herunterladen
Oracle Software Delivery Cloud
https://edelivery.oracle.com
Oracle Technology Network (OTN)
Oracle (Sun) JDK 1.6.0_34 64-Bit
http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-
1637591.html
Oracle WebLogic Server
http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-
097127.html
Fusion Middleware Oracle Forms & Report Services
http://www.oracle.com/technetwork/developer -tools/forms/downloads/index.html
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 10
11. Die Installation vorbereiten
Bereits erledigt – als Benutzer „root“:
Installation und Konfiguration des Betriebssystems
Installation aller notwendigen Betriebssystempakete (siehe Oracle
Dokumentation – „System- bzw. Softwarevoraussetzungen“)
Einrichtung der Umgebung:
Erstellen des Benutzer oracle
Erstellen der Gruppe oinstall
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 11
13. Die Installation vorbereiten
Verzeichnis /opt/oracle/oraInventory anlegen
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 13
14. Strategische Entscheidungen treffen
Die Verzeichnis-Struktur unter /opt/oracle/product anlegen
(als „oracle“)
Basisverzeichnis für die Oracle Middleware (MW_HOME) festlegen
Basisverzeichnis für die JVM Installationen festlegen
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 14
15. Strategische Entscheidungen treffen
den Ablageort für die Software auf einem zentralen Fileserver
definieren
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 15
16. Strategische Entscheidungen treffen…
Die Installationsmedien in die Verzeichnisse kopieren und nach
Bedarf auspacken:
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 16
17. Strategische Entscheidungen treffen…
Das zentrale Softwareverzeichnis auf allen zu installierenden
Maschinen als Mount Point /opt/Software zur Verfügung stellen:
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 17
18. 3 JDK Installation
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 18
19. Das JDK (Java Development Kit) 1.6
ist die Voraussetzung für den WebLogic Server 10.3.6,
wird unter der Benutzerkennung „oracle“
in das Verzeichnis /opt/oracle/product/JAVA
mittels des Shellskriptes jdk_install.sh
… installiert
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 19
20. Das Shellskript jdk_install.sh:
Das Kommando echo -e "n" unterdrückt die interaktive
Aufforderung "Press Enter to continue ..."
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 20
24. Der WebLogic Server 10.3.6
ist die Voraussetzung für Forms & Reports Installation,
wird unter der Benutzerkennung „oracle „
im silent-Modus mit der Verwendung von Response-
Datei wls_silent.xml
mittels Shellskripts wls_install.sh
in das Verzeichnis /opt/oracle/product/Middleware
… installiert
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 24
26. Die Response-Datei wls_silent.xml
Hinweis: Die Installation der Komponente:
WebLogic Server/Web 2.0 HTTP Pub-Sub Server
führt zu zusätzlichen Lizenzkosten!!!
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 26
27. Oracle Forms & Reports Services
5 Installation
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 27
28. Oracle Forms & Reports Services 11g Release 2
wird unter der Benutzerkennung „oracle“,
im silent-Modus mit der Verwendung von
Response-Datei fmw_install.rsp
mittels Shellskript fmw_install.sh
in das Verzeichnis /opt/oracle/product/Middleware
… installiert
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 28
30. Die Response-Datei fmw_install.rsp
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
SPECIFY_DOWNLOAD_LOCATION=false
SKIP_SOFTWARE_UPDATES=true
SOFTWARE_UPDATES_DOWNLOAD_LOCATION=
INSTALL AND CONFIGURE TYPE=false
INSTALL AND CONFIGURE LATER TYPE=true
ORACLE_HOME=/opt/oracle/product/Middleware/Oracle_FRHome1
MW_HOME=/opt/oracle/product/Midleware
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=<SECURE VALUE>
COLLECTOR_SUPPORTHUB_URL=
[SYSTEM]
[APPLICATIONS]
[RELATIONSHIPS]
Hinweis: die Beispiel-Response-Dateien befinden sich in
dem Softwareverzeichnis Disk1/stage/Response
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 30
31. Oracle Forms & Reports Services
6 Konfiguration
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 31
32. Topologie
Domain
Logisch zusammengehörende Gruppe von
WebLogic Server Instanzen
Administriert als Ganzes durch eine (zentrale) Konfiguration
In einer Domain befinden sich ein oder mehrere Server
Zentrale Konfigurationsdatei: config.xml
Server
Eine konfigurierte Instanz zum Hosten
von Anwendungen und Ressourcen
Servertypen: Administration Server / Managed Server
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 32
33. Topologie
Administration Server
zentraler Konfigurationsserver für eine Domain
ein Admin Server pro Domain
stellt Administrationskonsole zur Verfügung
ermöglicht zentrales Starten und Stoppen von Servern
ermöglicht das Migrieren von Servern und Services innerhalb einer
Domain
ermöglicht das Deployment von Anwendungen/Ressourcen innerhalb
einer Domain
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 33
34. Topologie
Managed Server
Hier laufen Anwendungen
Unabhängige Einheit innerhalb der Domäne
In einer Domain so viele Managed Server wie gewünscht
Hinzufügen individueller Server für zusätzliche Kapazität und
Isolieren von Anwendungen
Administrierbar über Administration Server
Hier laufen Java Komponenten der Oracle Fusion Middleware
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 34
35. Topologie
Node Manager
Prozess läuft auf physikalischem Server; ein Node Manager pro
physikalische Maschine
Ermöglicht nicht lokales (remote) Starten, Stoppen, Suspendieren
und Restarten von WebLogic Server Instanzen, die sich auf
physikalischer Maschine befinden
Unabhängig von Domain
Optional, aber obligatorisch für Start / Stop von Servern aus der
Administration Console heraus
Obligatorisch für gewisse Funktionalität wie Server Migration
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 35
37. Oracle Forms & Reports Services 11g Release 2
wird unter der Benutzerkennung „oracle“
im silent-Modus mit der Verwendung von Response-
Datei fmw_config.rsp
mittels Shellskript fmw_config.sh
… konfiguriert
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 37
39. Die Response-Datei fmw_config.rsp.template
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
CONFIGURE_FOR_DEVELOPMENT=false
CONFIGURE_FOR_DEPLOYMENT=true
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
MW_HOME=/opt/oracle/product/Middleware
WL_HOME=/opt/oracle/product/Middleware/wlserver_10.3
ORACLE_HOME=/opt/oracle/product/Middleware/Oracle_FRHome1
INSTANCE_HOME=/opt/oracle/product/Middleware/asinst_1
INSTANCE_NAME=asinst_1
CREATE_DOMAIN=true
DOMAIN_NAME=MyDomain
DOMAIN_LOCATION=/opt/oracle/product/Middleware/user_projects/domains
DOMAIN_HOSTNAME=#SERVERNAME#
ADMIN_USER_NAME=weblogic
ADMIN_PASSWORD=welcome1
ADMIN_CONFIRM_PASSWORD=welcome1
AUTOMATIC_PORT_DETECT=true
#STATICPORT INI FILE LOCATION=/opt/Software/FMW/staticports.ini
…
[SYSTEM]
[APPLICATIONS]
[RELATIONSHIPS]
CONFIGURE_FORMS=true
CONFIGURE_REPORTS=true
CONFIGURE_OHS=true
ENTERPRISE_MANAGEMENT=true
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 39
41. Die Installation prüfen
OPMN - gesteuerte Prozesse:
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 41
42. Die Installation prüfen
Im Browser:
Administration Server Console:
http://<Rechnername>:7001/console
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 42
43. Die Installation prüfen
Oracle Forms:
http://<Rechnername>:9001/forms/frmservlet
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 43
44. Die Installation prüfen
Startseite der Fusion Middleware:
http://<Rechnername>:7001
Oracle Reports:
http://<Rechnername>:9002/reports/rwservlet
Oracle HTTP Server:
http://<Rechnername>:8888
Fusion Middleware Control:
http://<Rechnername>:7001/em
Enterprise Manager Agent
http://<Rechnername>:5155/emd/main
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 44
45. Die Datei boot.properties
ermöglicht passwortlose Anmeldung am Admin Server
soll im Verzeichnis
$DOMAIN_HOME/servers/AdminServer/securiry
erstellt werden
username=weblogic
password=welcome1
Der Inhalt wird nach dem ersten Starten des Admin
Servers automatisch verschlüsselt:
password={AES}Ly8NHP5Pl1N19ByHkIETM0Qv7wWPO+3U0d846eN6Q6Y=
username={AES}TffohVHdY15woazKyPQyM3N0NeOlqbRnF4EC8jv7MHs=
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 45
46. Start-/Stop-Skripte
… sind im Verzeicnis /opt/oracle/etc abgelegt:
Das Skript fwm11gstartup.sh:
soll unter der Benutzerkennung oracle ausgeführt werden
startet bzw. fährt runter: die OPMN-gesteuerte Komponente, den Node
Manager, den Admin Server sowie zwei Managed Server: WLS_FORMS und
WLS_REPORTS
wird in den Start-/Stop-Mechanismus (sogenannte rc-Skripte) eingebunden
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 46
47. Das Skript fwm11gstartup.sh
case "$1" in
'start')
echo "Starte Oracle 11g Rel.2 Fusion Middleware Forms und Reports ..."
echo "Starte OPMN-gesteurte Komponente..."
$ORACLE_INSTANCE/bin/opmnctl startall
. $DOMAIN_HOME/bin/setDomainEnv.sh
echo "Starte Node Manager..."
java weblogic.WLST /opt/oracle/etc/nmstart.py
echo "Starte Admin Server, WLS_Forms und WLS_REPORTS"
java weblogic.WLST /opt/oracle/etc/startup.py
echo "Oracle 11g Rel.2 Middleware Forms und Reports ist gestartet"
;;
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 47
48. Das Skript fwm11gstartup.sh
'stop')
echo "Beende Oracle 11g Rel.2 Fusion Middleware Forms und Reports ..."
echo "Beende OPMN-gesteurte Komponente..."
$ORACLE_INSTANCE/bin/opmnctl stopall
. $DOMAIN_HOME/bin/setDomainEnv.sh
echo "Beende Admin Server, WLS_Forms und WLS_REPORTS"
java weblogic.WLST /opt/oracle/etc/shutdown.py
# Prozesse beenden...
sleep 5
for i in `ps -fuoracle | egrep 'JAVA|MW' | awk '{print $2}'`
do
kill -9 ${i}
done
echo "Oracle 11g Rel.2 Middleware Forms und Reports ist beendet"
;;
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 48
49. Das Python-Skript nmstart.py startet den Node Manager
startNodeManager(NodeManagerHome='/opt/oracle/product/Middleware/wls
erver_10.3/common/nodemanager',ListenPort='5556',ListenAddress='vSLL
GM125')
Das Python-Skript startup.py startet
Admin Server
WLS_FORMS und WLS_REPORTS
nmConnect('weblogic','welcome1','vSLLGM125','5556','MyDomain','/opt/oracle/
product/Middleware/user_projects/domains/MyDomain','ssl')
nmStart('AdminServer')
connect('weblogic','welcome1','t3://vSLLGM125:7001')
cd('Servers')
cd('WLS_FORMS')
start('WLS_FORMS')
cd('..')
cd('WLS_REPORTS')
start('WLS_REPORTS')
exit()
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 49
50. Das Python-Skript shutdown.py beendet
Node Manager
Admin Server
WLS_FORMS und WLS_REPORTS
connect('weblogic','welcome1','t3://vSLLGM125:7001')
cd('Servers')
cd('WLS_REPORTS')
help('shutdown')
shutdown(name='WLS_REPORTS',force='true')
cd('..')
cd('WLS_FORMS')
shutdown(name='WLS_FORMS',force='true')
cd('..')
cd('AdminServer')
shutdown(name='AdminServer',force='true')
nmConnect('weblogic','welcome1','vSLLGM125','5556','MyDomain','/opt/oracle/
product/MW/user_projects/domains/MyDomain','ssl')
stopNodeManager()
exit()
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 50
51. 7 Konfiguration der Anwendung
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 51
52. Wo liegen die Konfigurationsdateien?
Forms:
Formsweb.cfg $DOMAIN_HOME/config/fmwconfig/servers/WLS_
FORMS/applications/formsapp_11.1.2/config
default.env $DOMAIN_HOME/config/fmwconfig/servers/
WLS_FORMS/applications/formsapp_11.1.2/config
base.htm $ORACLE_INSTANCE/config/FormsComponent/forms/server
basejpi.htm $ORACLE_INSTANCE/config/FormsComponent/forms/server
webutilbase.htm $ORACLE_INSTANCE/config/FormsComponent/forms/server
webutiljpi.htm $ORACLE_INSTANCE/config/FormsComponent/forms/server
ftrace.cfg $ORACLE_INSTANCE/config/FormsComponent/forms/server
forms.conf $ORACLE_INSTANCE/config/OHS/ohs1/moduleconf
webutil.cfg $ORACLE_INSTANCE/config/FormsComponent/forms/server/
Registry.dat $DOMAIN_HOME/config/fmwconfig/servers/WLS_FORMS/
applications/formsapp_11.1.2/config/forms/registry/oracle/ forms/registry
Reports
rwserver.conf $ORACLE_INSTANCE/config/ReportsServerComponent/
<Reports_Server_Name>
reports.sh $ORACLE_INSTANCE/config/reports/bin
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 52
53. Fazit
Hoher Initialaufwand, langfristig geringerer
Installations-, Wartungs- und Pflegeaufwand
Automatisierung mit einfachen Mitteln möglich
Empfehlung: Automatische Aktualisierung
(Update) implementieren
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 53
54. Fragen und Antworten
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 54
55. Kontakt und Ansprechpartner
Borys Neselovskyi
Senior Consultant
OPITZ CONSULTING Deutschland GmbH
Standort Essen
Kontakt:
borys.neselovskyi@opitz-consulting.com
Telefon +49 201 892994-1797
Mobil +49 173 7279029
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 55
56. 8 Anhang
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 56
57. Verwendete Oracle Dokumentation
Oracle Fusion Middleware Supported System Configurations
www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html
Oracle Forms and Oracle Reports 11g Release 2 (11.1.2.x) Certifications
www.oracle.com/technetwork/developer-tools/forms/oracle-forms-11gr2certmatrix-519680.xls
Oracle Fusion Middleware Lifetime Support Policy
www.oracle.com/us/support/library/lifetime-support-middleware-069163.pdf
WebLogic Installation Guide
http://docs.oracle.com/cd/E23943_01/doc.1111/e14142.pdf
WebLogic Scripting Tool Command Reference
http://docs.oracle.com/cd/E23943_01/web.1111/e13813.pdf
Node Manager Administrator's Guide for Oracle WebLogic
http://docs.oracle.com/cd/E23943_01/web.1111/e13740.pdf
Fusion Middleware Installation Guide for Oracle Forms and Reports 11g Release 2
http://docs.oracle.com/cd/E24269_01/doc.11120/e23960.pdf
Fusion Middleware Release Notes for Oracle Forms and Reports 11g Release 2
http://docs.oracle.com/cd/E24269_01/doc.11120/e25445.pdf
Fusion Middleware Forms and Reports System Requirements 11g Release 2 (11.1.2)
http://docs.oracle.com/pdf/E25460_01.pdf
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 57
60. Domäne sichern, wiederherstellen, kopieren
Domäne in einer Template-Datei speichern: WLST
$ . /opt/oracle/product/Middleware/user_projects/domains/MyDomain/bin/setDomainEnv.sh
$ java weblogic.WLST
wls:/offline> readDomain( "/opt/oracle/product/MW/user_projects/domains/MyDomain" )
wls:/offline/MyDomain> writeTemplate( "/opt/oracle/MyDomain.jar" )
Domäne aus einer Template-Datei
wiederherstellen: WLST
$ . /opt/oracle/product/Middleware/user_projects/domains/MyDomain/bin/setDomainEnv.sh
$ java weblogic.WLST
wls:/offline/MyDomain> readTemplate( "/opt/oracle/MyDomain.jar" )
wls:/offline> writeDomain( "/opt/oracle/product/MW/user_projects/domains/MyDomain" )
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 60
61. Domäne sichern, wiederherstellen, kopieren
Domäne in einer Template-Datei speichern:
pack.sh
$ cd $WL_HOME/common/bin
$ pack.sh -domain=/opt/oracle/product/MW/user_projects/domains/MyDomain
-template=/opt/oracle/MyDomain.jar -template_name="MyDomain"
Domäne aus einer Template-Datei
wiederherstellen: unpack.sh
$ cd $WL_HOME/common/bin
$ unpack.sh -template=/ opt/oracle/MyDomain.jar -domain=/opt/oracle/product/MW/
user_projects/domains/MyDomain
Automatisierte Middleware Installation © OPITZ CONSULTING GmbH 2012 Seite 61