Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Oracle WebLogic Server 12c Administration I Exam 1Z0-133
Nội dung xem thử
Mô tả chi tiết
Oracle WebLogic
Server 12c
Administration I
Exam 1Z0-133
A Comprehensive Certification Guide
—
Gustavo Garnica
www.allitebooks.com
Oracle WebLogic
Server 12c Administration
I Exam 1Z0-133
A Comprehensive Certification Guide
Gustavo Garnica
www.allitebooks.com
Oracle WebLogic Server 12c Administration I Exam 1Z0-133: A Comprehensive
Certification Guide
ISBN-13 (pbk): 978-1-4842-2561-5 ISBN-13 (electronic): 978-1-4842-2562-2
https://doi.org/10.1007/978-1-4842-2562-2
Library of Congress Control Number: 2017962906
Copyright © 2018 by Gustavo Garnica
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not
identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Cover image by Freepik (www.freepik.com)
Managing Director: Welmoed Spahr
Editorial Director: Todd Green
Acquisitions Editor: Susan McDermott
Development Editor: Laura Berendson
Technical Reviewer: Julian Ortiz Iregui
Coordinating Editor: Rita Fernando
Copy Editor: Karen Jameson
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street,
6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springersbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member
(owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a
Delaware corporation.
For information on translations, please e-mail [email protected], or visit http://www.apress.com/
rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales
web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub via the book’s product page, located at www.apress.com/9781484225615. For more
detailed information, please visit http://www.apress.com/source-code.
Printed on acid-free paper
Gustavo Garnica
San Jose, California, USA
www.allitebooks.com
To my sweet wife Lety . . .
I love you, thank you for our awesome family.
www.allitebooks.com
v
About the Author �����������������������������������������������������������������������������������������������������xv
About the Technical Reviewer �������������������������������������������������������������������������������xvii
Acknowledgments��������������������������������������������������������������������������������������������������xix
Foreword ����������������������������������������������������������������������������������������������������������������xxi
Introduction����������������������������������������������������������������������������������������������������������xxiii
Table of Contents
Chapter 1: Overview ������������������������������������������������������������������������������������������������� 1
For New Administrators ���������������������������������������������������������������������������������������������������������������� 2
Enterprise Applications������������������������������������������������������������������������������������������������������������ 2
Java Application Servers ��������������������������������������������������������������������������������������������������������� 3
Java EE Services ��������������������������������������������������������������������������������������������������������������������� 4
Oracle Fusion Middleware������������������������������������������������������������������������������������������������������� 6
Oracle WebLogic Server ���������������������������������������������������������������������������������������������������������� 7
New Features in WebLogic Server 12c ����������������������������������������������������������������������������������������� 8
Updates Required by Java EE 6����������������������������������������������������������������������������������������������� 8
Other Functionality Changes and Additions����������������������������������������������������������������������������� 9
Conclusion����������������������������������������������������������������������������������������������������������������������������� 10
Recommended Exercises������������������������������������������������������������������������������������������������������������ 10
Certification Questions���������������������������������������������������������������������������������������������������������������� 11
Coming Up����������������������������������������������������������������������������������������������������������������������������������� 12
www.allitebooks.com
vi
Chapter 2: Installation and Updates ����������������������������������������������������������������������� 13
Supported Configurations ����������������������������������������������������������������������������������������������������������� 14
Fusion Middleware Infrastructure ����������������������������������������������������������������������������������������� 16
Product Requirements ���������������������������������������������������������������������������������������������������������������� 17
CPU and Memory Requirements�������������������������������������������������������������������������������������������� 17
Disk Space����������������������������������������������������������������������������������������������������������������������������� 18
Networking���������������������������������������������������������������������������������������������������������������������������� 18
Java SE���������������������������������������������������������������������������������������������������������������������������������� 18
Installation Overview ������������������������������������������������������������������������������������������������������������������ 19
Installation Methods�������������������������������������������������������������������������������������������������������������������� 22
Installation Structure ������������������������������������������������������������������������������������������������������������������ 23
Updating and Patching���������������������������������������������������������������������������������������������������������������� 23
De-installation����������������������������������������������������������������������������������������������������������������������������� 24
Recommended Exercises������������������������������������������������������������������������������������������������������������ 25
Certification Questions���������������������������������������������������������������������������������������������������������������� 25
Coming Up����������������������������������������������������������������������������������������������������������������������������������� 26
Chapter 3: Domains ������������������������������������������������������������������������������������������������ 27
Definition������������������������������������������������������������������������������������������������������������������������������������� 27
Domain Components ������������������������������������������������������������������������������������������������������������� 28
Product Installation and Domains������������������������������������������������������������������������������������������ 29
Domain Topology ������������������������������������������������������������������������������������������������������������������� 29
Domain Structure������������������������������������������������������������������������������������������������������������������������ 31
Configuration Repository������������������������������������������������������������������������������������������������������� 32
Configuration Methods���������������������������������������������������������������������������������������������������������������� 33
Domain Templates ����������������������������������������������������������������������������������������������������������������� 34
Planning Domain Configuration��������������������������������������������������������������������������������������������� 35
Configuration Flow ���������������������������������������������������������������������������������������������������������������� 35
Domain Propagation�������������������������������������������������������������������������������������������������������������������� 37
Pack Command ��������������������������������������������������������������������������������������������������������������������� 38
Unpack Command ����������������������������������������������������������������������������������������������������������������� 38
Propagation Process�������������������������������������������������������������������������������������������������������������� 39
Table of Contents
www.allitebooks.com
vii
Recommended Exercises������������������������������������������������������������������������������������������������������������ 40
Certification Questions���������������������������������������������������������������������������������������������������������������� 40
Coming Up����������������������������������������������������������������������������������������������������������������������������������� 41
Chapter 4: Node Manager��������������������������������������������������������������������������������������� 43
Overview������������������������������������������������������������������������������������������������������������������������������������� 43
Node Manager Interactions ��������������������������������������������������������������������������������������������������� 44
Configuration������������������������������������������������������������������������������������������������������������������������������� 47
Automatic Configuration�������������������������������������������������������������������������������������������������������� 48
Manual Configuration ������������������������������������������������������������������������������������������������������������ 49
Structure and Properties������������������������������������������������������������������������������������������������������������� 50
Configuration Files����������������������������������������������������������������������������������������������������������������� 50
Log Files �������������������������������������������������������������������������������������������������������������������������������� 51
File Locations ������������������������������������������������������������������������������������������������������������������������ 51
Properties ������������������������������������������������������������������������������������������������������������������������������ 52
SSL Configuration������������������������������������������������������������������������������������������������������������������ 55
Operation ������������������������������������������������������������������������������������������������������������������������������������ 56
Start the Administration Server��������������������������������������������������������������������������������������������� 57
Start Managed Servers���������������������������������������������������������������������������������������������������������� 58
Automatic JVM Restart���������������������������������������������������������������������������������������������������������� 58
Crash Recovery���������������������������������������������������������������������������������������������������������������������� 58
Recommended Exercises������������������������������������������������������������������������������������������������������������ 59
Certification Questions���������������������������������������������������������������������������������������������������������������� 59
Coming Up����������������������������������������������������������������������������������������������������������������������������������� 60
Chapter 5: Servers�������������������������������������������������������������������������������������������������� 61
Standard Startup������������������������������������������������������������������������������������������������������������������������� 61
Available Methods ����������������������������������������������������������������������������������������������������������������� 62
Standard Scripts�������������������������������������������������������������������������������������������������������������������� 63
The startWebLogic Script ������������������������������������������������������������������������������������������������������ 65
The setDomainEnv Script ������������������������������������������������������������������������������������������������������ 65
The commEnv Script ������������������������������������������������������������������������������������������������������������� 65
Resuming Execution of setDomainEnv ���������������������������������������������������������������������������������� 66
Table of Contents
www.allitebooks.com
viii
The setStartupEnv Script������������������������������������������������������������������������������������������������������� 66
The setUserOverrides Script�������������������������������������������������������������������������������������������������� 66
Completing Execution of setDomainEnv�������������������������������������������������������������������������������� 67
Completing Execution of startWebLogic�������������������������������������������������������������������������������� 67
Path, Classpath, and System Properties ������������������������������������������������������������������������������������� 68
Sample Configuration Values������������������������������������������������������������������������������������������������� 69
Sample PATH Value���������������������������������������������������������������������������������������������������������������� 69
Sample CLASSPATH Value ����������������������������������������������������������������������������������������������������� 70
How the CLASSPATH Is Built�������������������������������������������������������������������������������������������������� 71
Sample System Properties ���������������������������������������������������������������������������������������������������� 72
Additional System Properties ������������������������������������������������������������������������������������������������ 73
Manual Startup ��������������������������������������������������������������������������������������������������������������������������� 74
Server Instance Selection������������������������������������������������������������������������������������������������������ 75
Running the Command���������������������������������������������������������������������������������������������������������� 75
Credentials ���������������������������������������������������������������������������������������������������������������������������� 76
Recommended Exercises������������������������������������������������������������������������������������������������������������ 76
Certification Questions���������������������������������������������������������������������������������������������������������������� 77
Coming Up����������������������������������������������������������������������������������������������������������������������������������� 78
Chapter 6: Configuration Management������������������������������������������������������������������� 79
Java Management Extensions ���������������������������������������������������������������������������������������������������� 80
Architecture �������������������������������������������������������������������������������������������������������������������������������� 80
Configuration Management��������������������������������������������������������������������������������������������������������� 81
Administration Console��������������������������������������������������������������������������������������������������������������� 83
Security ��������������������������������������������������������������������������������������������������������������������������������� 84
GUI Layout ����������������������������������������������������������������������������������������������������������������������������� 85
Configuration Management Using the Administration Console ��������������������������������������������� 87
WebLogic Scripting Tool�������������������������������������������������������������������������������������������������������������� 88
Security ��������������������������������������������������������������������������������������������������������������������������������� 89
Executing Commands������������������������������������������������������������������������������������������������������������ 91
WLST Commands ������������������������������������������������������������������������������������������������������������������ 92
Configuration Management Using WLST ������������������������������������������������������������������������������� 95
Table of Contents
www.allitebooks.com
ix
Recommended Exercises������������������������������������������������������������������������������������������������������������ 98
Certification Questions���������������������������������������������������������������������������������������������������������������� 98
Coming Up����������������������������������������������������������������������������������������������������������������������������������� 99
Chapter 7: Logging and Monitoring���������������������������������������������������������������������� 101
Logging ������������������������������������������������������������������������������������������������������������������������������������� 101
Loggers and Handlers���������������������������������������������������������������������������������������������������������� 103
Message Severity ���������������������������������������������������������������������������������������������������������������� 104
Message Attributes�������������������������������������������������������������������������������������������������������������� 105
Available Log Files��������������������������������������������������������������������������������������������������������������� 106
Viewing Log Files����������������������������������������������������������������������������������������������������������������� 108
Configure Logging ��������������������������������������������������������������������������������������������������������������� 111
Logging Filters��������������������������������������������������������������������������������������������������������������������� 112
Monitoring��������������������������������������������������������������������������������������������������������������������������������� 113
Server Health����������������������������������������������������������������������������������������������������������������������� 115
Monitoring Dashboard ��������������������������������������������������������������������������������������������������������� 116
Recommended Exercises���������������������������������������������������������������������������������������������������������� 117
Certification Questions�������������������������������������������������������������������������������������������������������������� 118
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 118
Chapter 8: Networking������������������������������������������������������������������������������������������ 119
Network Channels��������������������������������������������������������������������������������������������������������������������� 119
Purpose ������������������������������������������������������������������������������������������������������������������������������� 120
Configuration����������������������������������������������������������������������������������������������������������������������� 121
Channel Types���������������������������������������������������������������������������������������������������������������������� 123
Administration Port�������������������������������������������������������������������������������������������������������������� 123
Sample Use ������������������������������������������������������������������������������������������������������������������������� 125
Virtual Hosts������������������������������������������������������������������������������������������������������������������������������ 126
Recommended Exercises���������������������������������������������������������������������������������������������������������� 127
Certification Questions�������������������������������������������������������������������������������������������������������������� 128
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 129
Table of Contents
www.allitebooks.com
x
Chapter 9: Clusters - Basics ��������������������������������������������������������������������������������� 131
High Availability������������������������������������������������������������������������������������������������������������������������� 131
Tiered Architectures������������������������������������������������������������������������������������������������������������������ 132
Cluster Architecture ������������������������������������������������������������������������������������������������������������������ 134
Cluster Creation ������������������������������������������������������������������������������������������������������������������������ 136
Using the Administration Console ��������������������������������������������������������������������������������������� 138
Using WebLogic Scripting Tool��������������������������������������������������������������������������������������������� 139
Dynamic Clusters ���������������������������������������������������������������������������������������������������������������������� 142
Server Templates����������������������������������������������������������������������������������������������������������������� 142
Recommended Exercises���������������������������������������������������������������������������������������������������������� 145
Certification Questions�������������������������������������������������������������������������������������������������������������� 145
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 146
Chapter 10: Clusters - Advanced�������������������������������������������������������������������������� 147
Enabling Technologies �������������������������������������������������������������������������������������������������������������� 147
TCP/IP���������������������������������������������������������������������������������������������������������������������������������� 147
IP ����������������������������������������������������������������������������������������������������������������������������������������� 148
TCP �������������������������������������������������������������������������������������������������������������������������������������� 148
Sockets�������������������������������������������������������������������������������������������������������������������������������� 149
UDP�������������������������������������������������������������������������������������������������������������������������������������� 149
Multicast������������������������������������������������������������������������������������������������������������������������������ 150
Unicast��������������������������������������������������������������������������������������������������������������������������������� 150
Application Layer����������������������������������������������������������������������������������������������������������������� 150
Cluster Communication������������������������������������������������������������������������������������������������������������� 151
Health Status ����������������������������������������������������������������������������������������������������������������������� 151
JNDI Replication ������������������������������������������������������������������������������������������������������������������ 152
Selecting Protocols�������������������������������������������������������������������������������������������������������������� 152
Choosing Multicast�������������������������������������������������������������������������������������������������������������� 153
Choosing Unicast����������������������������������������������������������������������������������������������������������������� 155
Replication Channels����������������������������������������������������������������������������������������������������������� 158
Monitoring Clusters������������������������������������������������������������������������������������������������������������������� 158
Table of Contents
www.allitebooks.com
xi
Recommended Exercises���������������������������������������������������������������������������������������������������������� 160
Certification Questions�������������������������������������������������������������������������������������������������������������� 160
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 161
Chapter 11: Clusters - Proxies������������������������������������������������������������������������������ 163
HTTP Sessions �������������������������������������������������������������������������������������������������������������������������� 163
Session Replication ������������������������������������������������������������������������������������������������������������� 164
Replication Groups �������������������������������������������������������������������������������������������������������������� 164
In-Memory Replication �������������������������������������������������������������������������������������������������������� 165
Session Persistence������������������������������������������������������������������������������������������������������������������ 166
JDBC Persistence ���������������������������������������������������������������������������������������������������������������� 168
File Persistence ������������������������������������������������������������������������������������������������������������������� 169
Session Cache ��������������������������������������������������������������������������������������������������������������������� 170
Proxies �������������������������������������������������������������������������������������������������������������������������������������� 170
Hardware Proxies ���������������������������������������������������������������������������������������������������������������� 171
Software Proxies ����������������������������������������������������������������������������������������������������������������� 171
Deployment Architectures ��������������������������������������������������������������������������������������������������� 177
Session Failover������������������������������������������������������������������������������������������������������������������������ 179
Recommended Exercises���������������������������������������������������������������������������������������������������������� 181
Certification Questions�������������������������������������������������������������������������������������������������������������� 181
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 182
Chapter 12: JDBC�������������������������������������������������������������������������������������������������� 183
Architecture ������������������������������������������������������������������������������������������������������������������������������ 184
Data Sources����������������������������������������������������������������������������������������������������������������������������� 185
Configuration����������������������������������������������������������������������������������������������������������������������� 187
Transactionality ������������������������������������������������������������������������������������������������������������������� 190
Monitoring and Control�������������������������������������������������������������������������������������������������������� 191
Debugging ��������������������������������������������������������������������������������������������������������������������������� 192
Multi Data Sources�������������������������������������������������������������������������������������������������������������������� 193
Active GridLink�������������������������������������������������������������������������������������������������������������������������� 195
Recommended Exercises���������������������������������������������������������������������������������������������������������� 196
Table of Contents
xii
Certification Questions�������������������������������������������������������������������������������������������������������������� 196
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 197
Chapter 13: Transactions�������������������������������������������������������������������������������������� 199
Properties���������������������������������������������������������������������������������������������������������������������������������� 200
Extended Architecture��������������������������������������������������������������������������������������������������������������� 200
Two-Phase Commit������������������������������������������������������������������������������������������������������������������� 202
Java Transaction API ����������������������������������������������������������������������������������������������������������������� 204
WebLogic Server Transactions�������������������������������������������������������������������������������������������������� 205
Demarcation and Control����������������������������������������������������������������������������������������������������� 206
Configuration����������������������������������������������������������������������������������������������������������������������� 206
Transaction Logs ����������������������������������������������������������������������������������������������������������������� 208
Monitoring ��������������������������������������������������������������������������������������������������������������������������� 210
Recommended Exercises���������������������������������������������������������������������������������������������������������� 211
Certification Questions�������������������������������������������������������������������������������������������������������������� 211
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 212
Chapter 14: Application Deployment�������������������������������������������������������������������� 213
Deployment Scenarios �������������������������������������������������������������������������������������������������������������� 214
Preparatory Phase��������������������������������������������������������������������������������������������������������������������� 214
Storage Location ����������������������������������������������������������������������������������������������������������������� 215
Storage Format�������������������������������������������������������������������������������������������������������������������� 215
Configuration Plans ������������������������������������������������������������������������������������������������������������� 216
Deployment������������������������������������������������������������������������������������������������������������������������������� 221
Staging Mode ���������������������������������������������������������������������������������������������������������������������� 222
Distributing Applications ����������������������������������������������������������������������������������������������������� 223
Starting and Stopping Applications ������������������������������������������������������������������������������������� 224
Redeployment��������������������������������������������������������������������������������������������������������������������������� 225
Undeployment��������������������������������������������������������������������������������������������������������������������������� 227
Recommended Exercises���������������������������������������������������������������������������������������������������������� 228
Certification Questions�������������������������������������������������������������������������������������������������������������� 229
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 229
Table of Contents
xiii
Chapter 15: Security��������������������������������������������������������������������������������������������� 231
Concepts ����������������������������������������������������������������������������������������������������������������������������������� 231
Security Realms������������������������������������������������������������������������������������������������������������������������ 232
Security Store���������������������������������������������������������������������������������������������������������������������� 233
Security Providers��������������������������������������������������������������������������������������������������������������������� 234
Authentication Provider������������������������������������������������������������������������������������������������������� 235
XACML Authorization Provider��������������������������������������������������������������������������������������������� 235
Identity Assertion Provider��������������������������������������������������������������������������������������������������� 236
Credential Mapping Provider����������������������������������������������������������������������������������������������� 236
XACML Role Mapping Provider�������������������������������������������������������������������������������������������� 237
Adjudication Provider ���������������������������������������������������������������������������������������������������������� 237
CertPath Provider ���������������������������������������������������������������������������������������������������������������� 237
Providers in Action �������������������������������������������������������������������������������������������������������������� 237
Custom Security Configuration ������������������������������������������������������������������������������������������������� 238
LDAP Integration������������������������������������������������������������������������������������������������������������������ 239
Recommended Exercises���������������������������������������������������������������������������������������������������������� 242
Certification Questions�������������������������������������������������������������������������������������������������������������� 242
Coming Up��������������������������������������������������������������������������������������������������������������������������������� 243
Chapter 16: Backup and Upgrade������������������������������������������������������������������������� 245
Backup and Recovery ��������������������������������������������������������������������������������������������������������������� 245
Frequency���������������������������������������������������������������������������������������������������������������������������� 246
Integrity ������������������������������������������������������������������������������������������������������������������������������� 246
Mode������������������������������������������������������������������������������������������������������������������������������������ 247
Scope����������������������������������������������������������������������������������������������������������������������������������� 247
WebLogic Server Backups �������������������������������������������������������������������������������������������������������� 247
Managed Server Independence������������������������������������������������������������������������������������������� 250
Recovery ����������������������������������������������������������������������������������������������������������������������������������� 251
Upgrade������������������������������������������������������������������������������������������������������������������������������������� 253
Recommended Exercises���������������������������������������������������������������������������������������������������������� 256
Certification Questions�������������������������������������������������������������������������������������������������������������� 256
Table of Contents
xiv
Appendix A: Answers to Sample Questions���������������������������������������������������������� 257
Overview����������������������������������������������������������������������������������������������������������������������������������� 257
Installation and Updates ����������������������������������������������������������������������������������������������������������� 258
Domains������������������������������������������������������������������������������������������������������������������������������������ 260
Node Manager��������������������������������������������������������������������������������������������������������������������������� 261
Servers�������������������������������������������������������������������������������������������������������������������������������������� 262
Configuration Management������������������������������������������������������������������������������������������������������� 263
Logging and Monitoring ������������������������������������������������������������������������������������������������������������ 264
Networking�������������������������������������������������������������������������������������������������������������������������������� 265
Cluster Basics ��������������������������������������������������������������������������������������������������������������������������� 267
Clusters Advanced �������������������������������������������������������������������������������������������������������������������� 268
Clusters Proxies ������������������������������������������������������������������������������������������������������������������������ 269
JDBC ����������������������������������������������������������������������������������������������������������������������������������������� 270
Transactions������������������������������������������������������������������������������������������������������������������������������ 271
Application Deployment������������������������������������������������������������������������������������������������������������ 272
Security������������������������������������������������������������������������������������������������������������������������������������� 273
Backup and Upgrade����������������������������������������������������������������������������������������������������������������� 274
Index��������������������������������������������������������������������������������������������������������������������� 275
Table of Contents
xv
About the Author
Gustavo Garnica is an experienced Technical Architect and
Consultant with over 15 years of international experience
implementing and supporting IT infrastructure and
operations processes in financial and telecommunications
environments. He is a former BEA Systems and Oracle
employee, and holds several cloud and enterprise software
certifications, including Oracle WebLogic Server certified
system administrator. He started developing software back
in the Netscape days, and currently architects and operates
enterprise software environments on cloud infrastructure.