| About the Authors |
|
xvii | |
| About the Technical Reviewer |
|
xix | |
| Acknowledgments |
|
xxi | |
| Foreword |
|
xxiii | |
|
Chapter 1 Getting Started |
|
|
1 | (18) |
|
Why Are Database Upgrades Necessary? |
|
|
1 | (2) |
|
|
|
3 | (1) |
|
|
|
3 | (1) |
|
|
|
4 | (1) |
|
|
|
4 | (1) |
|
|
|
4 | (1) |
|
Benefits of a Database Upgrade |
|
|
4 | (1) |
|
Hurdles That Affect the Database Upgrade Decision |
|
|
5 | (1) |
|
Types of Database Upgrade |
|
|
6 | (1) |
|
Things to Consider Before Upgrading |
|
|
7 | (2) |
|
Engineers Involved in the Upgrade Activity |
|
|
9 | (1) |
|
|
|
10 | (1) |
|
|
|
11 | (1) |
|
|
|
11 | (1) |
|
|
|
11 | (1) |
|
|
|
11 | (1) |
|
|
|
12 | (1) |
|
Upgrade Compatibility Matrix |
|
|
12 | (2) |
|
Best Practices for a Database Upgrade |
|
|
14 | (2) |
|
|
|
16 | (1) |
|
Situations That Demand a Migration |
|
|
16 | (1) |
|
Things to Consider Before Migration |
|
|
17 | (1) |
|
|
|
17 | (1) |
|
|
|
17 | (2) |
|
Chapter 2 Database Upgrade Methods |
|
|
19 | (132) |
|
|
|
19 | (1) |
|
|
|
20 | (1) |
|
|
|
21 | (1) |
|
|
|
21 | (1) |
|
The Database Upgrade Assistant |
|
|
22 | (1) |
|
Prerequisites for the DBUA |
|
|
23 | (1) |
|
Upgrade Compatibility Matrix |
|
|
24 | (1) |
|
|
|
25 | (1) |
|
Activities Performed by the DBUA |
|
|
26 | (1) |
|
Best Practices with the DBUA |
|
|
26 | (2) |
|
|
|
28 | (3) |
|
|
|
31 | (11) |
|
|
|
42 | (12) |
|
|
|
54 | (2) |
|
How to Make Sure the Upgrade Is Successful |
|
|
56 | (1) |
|
|
|
57 | (2) |
|
Comparison Between 11g R2 DBUA and 12c R1 DBUA |
|
|
59 | (2) |
|
|
|
61 | (1) |
|
|
|
62 | (1) |
|
|
|
63 | (3) |
|
Recommended Steps for the Source Database |
|
|
66 | (5) |
|
|
|
71 | (2) |
|
12c Upgrade Script Execution |
|
|
73 | (1) |
|
|
|
73 | (1) |
|
|
|
74 | (1) |
|
|
|
75 | (4) |
|
Comparison Between 11g R2 and 12c R1 |
|
|
79 | (2) |
|
Traditional Export/Import |
|
|
81 | (1) |
|
Compatibility Version Matrix |
|
|
81 | (1) |
|
|
|
82 | (3) |
|
|
|
85 | (1) |
|
|
|
85 | (2) |
|
|
|
87 | (3) |
|
|
|
90 | (1) |
|
|
|
91 | (1) |
|
Prerequisites to Perform Transportable Tablespace |
|
|
91 | (1) |
|
|
|
92 | (5) |
|
|
|
97 | (1) |
|
|
|
98 | (1) |
|
Database Upgrade Using Oracle GoldenGate |
|
|
98 | (1) |
|
Planning Phase with Oracle GoldenGate |
|
|
98 | (7) |
|
Configuration Setup at the Source Database (Oracle 11g) |
|
|
105 | (6) |
|
Configuration Setup at the Target Database (Oracle 12c) |
|
|
111 | (2) |
|
Configuration Setup at the Target Database (Oracle 12c for Oracle GoldenGate 12c) |
|
|
113 | (6) |
|
High Availability or Fallback Option Using the Source Database (Oracle 11g) |
|
|
119 | (1) |
|
Configuration Setup at Target Database Oracle 12c and Implementing Bidirectional Data Replication Between Target Database (pdb12c) and Source Database (Oracle 11g) |
|
|
120 | (3) |
|
Configuration Setup at Source Database Oracle 11g and Implementing Bidirectional Data Replication Between Target Database (pdb12c) and Source Database (Oracle 11g) |
|
|
123 | (3) |
|
|
|
126 | (1) |
|
Create Table As Select (CTAS) |
|
|
126 | (1) |
|
|
|
127 | (1) |
|
|
|
127 | (1) |
|
|
|
127 | (1) |
|
|
|
127 | (1) |
|
|
|
128 | (2) |
|
|
|
130 | (1) |
|
|
|
130 | (1) |
|
|
|
131 | (1) |
|
Database Upgrades Using Transient Logical Standby |
|
|
131 | (4) |
|
|
|
135 | (1) |
|
Enable Supplementary Logging |
|
|
136 | (1) |
|
Upgrade of Logical Standby Database |
|
|
136 | (1) |
|
Manual Upgrade Using the 12c Method |
|
|
137 | (1) |
|
|
|
137 | (1) |
|
|
|
138 | (1) |
|
Convert Logical to Physical Standby |
|
|
138 | (1) |
|
|
|
138 | (1) |
|
|
|
138 | (1) |
|
Full Transportable Export/Import |
|
|
139 | (1) |
|
|
|
140 | (1) |
|
|
|
140 | (9) |
|
|
|
149 | (2) |
|
Chapter 3 Comparison of Upgrade Methods |
|
|
151 | (18) |
|
|
|
151 | (1) |
|
|
|
151 | (1) |
|
|
|
152 | (1) |
|
Manual/Command-Line Upgrade |
|
|
152 | (1) |
|
|
|
153 | (1) |
|
|
|
153 | (1) |
|
Comparison of the DBUA and Manual Processes |
|
|
154 | (1) |
|
Traditional Export/Import and Data Pump |
|
|
155 | (1) |
|
|
|
155 | (1) |
|
|
|
155 | (1) |
|
|
|
155 | (1) |
|
Transportable Tablespaces |
|
|
156 | (1) |
|
|
|
156 | (1) |
|
|
|
157 | (1) |
|
|
|
157 | (1) |
|
Full Transportable Export/Import |
|
|
157 | (1) |
|
|
|
157 | (1) |
|
|
|
158 | (1) |
|
Transient Logical Standby |
|
|
158 | (1) |
|
Switchover Best Practices |
|
|
159 | (1) |
|
|
|
159 | (1) |
|
|
|
159 | (1) |
|
|
|
160 | (1) |
|
Comparison of All Methods |
|
|
161 | (1) |
|
|
|
161 | (1) |
|
|
|
162 | (1) |
|
How to Choose the Best Upgrade Method |
|
|
162 | (1) |
|
|
|
163 | (2) |
|
Getting Additional Storage |
|
|
165 | (1) |
|
Number of Actions and Required Skill Set |
|
|
165 | (1) |
|
|
|
166 | (1) |
|
|
|
166 | (1) |
|
|
|
166 | (1) |
|
|
|
166 | (1) |
|
|
|
167 | (1) |
|
|
|
167 | (2) |
|
Chapter 4 Upgrade Using a Database Backup |
|
|
169 | (44) |
|
|
|
169 | (1) |
|
What Are the Various Backup Techniques? |
|
|
170 | (1) |
|
Cold Backup (Traditional) |
|
|
171 | (9) |
|
Hot Backup (User-Managed) |
|
|
180 | (10) |
|
Logical Backup (expdp/impdp) |
|
|
190 | (1) |
|
|
|
191 | (1) |
|
|
|
191 | (1) |
|
|
|
192 | (1) |
|
|
|
193 | (1) |
|
Check the Invalid Objects from the Target Database |
|
|
194 | (1) |
|
Registry Components at the Target Database |
|
|
194 | (1) |
|
Create Triggers of the SYS Schema |
|
|
195 | (1) |
|
Database Export Using expdp |
|
|
196 | (1) |
|
Importing the Database (impdp) |
|
|
197 | (4) |
|
|
|
201 | (10) |
|
|
|
211 | (2) |
|
Chapter 5 Oracle Database Migration |
|
|
213 | (66) |
|
Traditional Export/Import |
|
|
213 | (1) |
|
|
|
214 | (1) |
|
|
|
215 | (1) |
|
|
|
216 | (1) |
|
|
|
216 | (1) |
|
|
|
217 | (1) |
|
Data Pump Working Process |
|
|
218 | (1) |
|
|
|
218 | (2) |
|
|
|
220 | (1) |
|
|
|
221 | (1) |
|
|
|
221 | (1) |
|
|
|
222 | (1) |
|
|
|
222 | (1) |
|
|
|
222 | (1) |
|
Transportable Tablespaces |
|
|
223 | (5) |
|
|
|
228 | (1) |
|
|
|
228 | (1) |
|
Oracle GoldenGate Setup on the Source Database |
|
|
229 | (1) |
|
Oracle GoldenGate Setup on the Target Database |
|
|
230 | (2) |
|
Configure Oracle GoldenGate on the Source Database |
|
|
232 | (1) |
|
Changes in Parameters in the Source Database |
|
|
233 | (6) |
|
Start Oracle GoldenGate Manager |
|
|
239 | (4) |
|
Configure Oracle GoldenGate on the Target Database |
|
|
243 | (3) |
|
Method 2: Initial Load with Bulkload |
|
|
246 | (3) |
|
|
|
249 | (3) |
|
|
|
252 | (1) |
|
|
|
253 | (15) |
|
Heterogeneous Standby Database |
|
|
268 | (2) |
|
|
|
270 | (7) |
|
|
|
277 | (2) |
|
Chapter 6 Migrating Oracle Database from Non-ASM to ASM Environments |
|
|
279 | (44) |
|
Scenario 1 Moving datafiles online from a non-ASM location to an ASM location |
|
|
281 | (16) |
|
Scenario 2 Migrating an Oracle Database 12c CDB with PDBs from a non-ASM to ASM using EM 13c |
|
|
297 | (13) |
|
Scenario 3 Migrating an Oracle Database 12c CDB with PDBs from a non-ASM to ASM using RMAN |
|
|
310 | (11) |
|
|
|
321 | (2) |
|
Chapter 7 Oracle GI and Oracle 12c Database Upgrades in RAC Environments |
|
|
323 | (58) |
|
Run the CVU Pre-upgrade Check Tool |
|
|
324 | (2) |
|
Running the Oracle RAC Configuration Audit Tool (ORAchk) Tool |
|
|
326 | (1) |
|
Execution Steps for ORAchk |
|
|
326 | (2) |
|
Consider Real Application Testing |
|
|
328 | (1) |
|
Performing a Rolling Upgrade Using Oracle GI |
|
|
328 | (13) |
|
Scenario 1 Upgrading Oracle 11g RAC (11.2.0.3.0) to Oracle 12c RAC (12.1.0.2.0) |
|
|
341 | (28) |
|
Scenario 2 Manual upgrade of Oracle 11g RAC (11.2.0.3.0) to Oracle 12c RAC (12.1.0.2.0) |
|
|
369 | (9) |
|
Scenario 3 Upgrading of Oracle 11g RAC (11.2.0.3.0) to Oracle 12c RAC (12.1.0.2.0) with GI and Database using EMCC 13c |
|
|
378 | (2) |
|
|
|
380 | (1) |
|
Chapter 8 Database Upgrades in Data Guard Environments |
|
|
381 | (44) |
|
Upgrading Data Guard from 11.2.0.4 to 12.1.0.2 |
|
|
382 | (1) |
|
|
|
382 | (2) |
|
Review of the Pre-upgrade Log |
|
|
384 | (5) |
|
Upgrade the Data Guard Environment |
|
|
389 | (16) |
|
|
|
405 | (5) |
|
|
|
410 | (1) |
|
Rolling Database Upgrades Using DBMS_ROLLING in 12c |
|
|
410 | (1) |
|
Rolling Upgrades in 11g vs. DBMS_ROLLING in 12c |
|
|
410 | (1) |
|
|
|
411 | (13) |
|
|
|
424 | (1) |
|
Chapter 9 Database Upgrades in EBS Environments |
|
|
425 | (22) |
|
|
|
425 | (1) |
|
|
|
426 | (1) |
|
|
|
427 | (1) |
|
|
|
427 | (1) |
|
|
|
428 | (10) |
|
Apply the Prerequisite Patches to the Apps Home |
|
|
438 | (1) |
|
Apply the Prerequisite Patches to the Database Home |
|
|
438 | (1) |
|
Shut Down the Application Process |
|
|
439 | (1) |
|
|
|
439 | (1) |
|
Drop the sys.enabled$indexes Table |
|
|
439 | (1) |
|
Execute the Pre-upgrade Scripts |
|
|
439 | (1) |
|
Check the Database Components' Status |
|
|
440 | (1) |
|
Check the Invalid SYS/SYSTEM Schema Objects |
|
|
440 | (1) |
|
|
|
440 | (1) |
|
Upgrade the Database to the 12c Version |
|
|
441 | (1) |
|
Post-upgrade Steps for an EBS Database Upgrade |
|
|
442 | (3) |
|
|
|
445 | (2) |
|
Chapter 10 Multitenant Database Upgrades |
|
|
447 | (44) |
|
|
|
448 | (2) |
|
Move the Lower-Version Database to the Multitenant Architecture |
|
|
450 | (4) |
|
Container Database Upgrade |
|
|
454 | (4) |
|
Database Upgrade Assistant |
|
|
458 | (5) |
|
Manual Database Upgrade or Command-Line Upgrade |
|
|
463 | (5) |
|
|
|
468 | (11) |
|
|
|
479 | (1) |
|
Pluggable Database Upgrade |
|
|
479 | (10) |
|
|
|
489 | (2) |
|
Chapter 11 Pluggable Database Migrations |
|
|
491 | (12) |
|
|
|
491 | (1) |
|
|
|
492 | (1) |
|
|
|
492 | (4) |
|
|
|
496 | (6) |
|
|
|
502 | (1) |
|
Chapter 12 Oracle Database Patching Strategies |
|
|
503 | (44) |
|
|
|
504 | (1) |
|
|
|
504 | (2) |
|
|
|
506 | (1) |
|
|
|
506 | (1) |
|
|
|
506 | (3) |
|
|
|
509 | (2) |
|
How to Remove from the Central Inventory |
|
|
511 | (1) |
|
|
|
512 | (1) |
|
|
|
513 | (3) |
|
|
|
516 | (1) |
|
|
|
516 | (1) |
|
Security Patch Update (SPU) |
|
|
516 | (1) |
|
|
|
517 | (1) |
|
|
|
517 | (1) |
|
|
|
517 | (1) |
|
|
|
517 | (1) |
|
|
|
517 | (1) |
|
Patch Apply Strategies (Online and Offline Patching) |
|
|
518 | (6) |
|
|
|
524 | (1) |
|
Applying Patch in Offline Mode |
|
|
524 | (3) |
|
|
|
527 | (1) |
|
|
|
528 | (1) |
|
|
|
528 | (1) |
|
|
|
529 | (1) |
|
|
|
529 | (1) |
|
|
|
530 | (2) |
|
How to Confirm the PSU Patch Apply Is Successful |
|
|
532 | (1) |
|
|
|
533 | (2) |
|
|
|
535 | (2) |
|
Patch Apply Steps in RAC and Data Guard Environments |
|
|
537 | (1) |
|
Patching in an RAC Environment |
|
|
537 | (2) |
|
Patching in a Data Guard Environment |
|
|
539 | (1) |
|
PSU/SPU Patch Apply in a Data Guard Environment |
|
|
540 | (1) |
|
|
|
540 | (2) |
|
Queryable Patch Inventory |
|
|
542 | (5) |
|
Chapter 13 Database Downgrades |
|
|
547 | (18) |
|
Limitations of Downgrading |
|
|
547 | (3) |
|
Downgrade Steps for Multitenant Databases |
|
|
550 | (4) |
|
Downgrade Steps Using Database Flashback |
|
|
554 | (1) |
|
|
|
554 | (1) |
|
|
|
555 | (3) |
|
Downgrade Steps Using Database Flashback for Multitenant Databases |
|
|
558 | (1) |
|
|
|
558 | (1) |
|
|
|
559 | (4) |
|
|
|
563 | (1) |
|
|
|
563 | (2) |
|
Chapter 14 Oracle Database Upgrades in Oracle Database Release 12.2 |
|
|
565 | (38) |
|
Upgrading to the 12.2 Release (12.2.0.1.0) |
|
|
565 | (1) |
|
Pre-upgrade Checks: What's New in 12.2 |
|
|
565 | (1) |
|
|
|
566 | (4) |
|
|
|
570 | (3) |
|
Database Upgrade Assistant |
|
|
573 | (1) |
|
|
|
574 | (9) |
|
|
|
583 | (1) |
|
|
|
583 | (1) |
|
Manual Database Upgrade/Command-Line Upgrade |
|
|
583 | (3) |
|
|
|
586 | (2) |
|
|
|
588 | (2) |
|
Oracle 12.2 New Manual Upgrade Features |
|
|
590 | (1) |
|
Pluggable Database Upgrade |
|
|
590 | (1) |
|
Pluggable Database Upgrade Steps |
|
|
591 | (5) |
|
Manual Upgrade of Pluggable Database in 12cR2 |
|
|
596 | (1) |
|
|
|
597 | (1) |
|
Start PDB12cR2 in Upgraded Mode |
|
|
598 | (1) |
|
Downgrade 12.2 to Earlier Versions |
|
|
598 | (1) |
|
|
|
599 | (1) |
|
Downgrade Steps for the Entire Container Database |
|
|
599 | (2) |
|
|
|
601 | (2) |
| Index |
|
603 | |