Presentation is loading. Please wait.

Presentation is loading. Please wait.

Oracle Database 12c Upgrade Tools and Best Practices from Oracle Support Agrim Pandit Principal Software Engineer Oracle Software Support September 30,

Similar presentations


Presentation on theme: "Oracle Database 12c Upgrade Tools and Best Practices from Oracle Support Agrim Pandit Principal Software Engineer Oracle Software Support September 30,"— Presentation transcript:

1

2 Oracle Database 12c Upgrade Tools and Best Practices from Oracle Support Agrim Pandit Principal Software Engineer Oracle Software Support September 30, 2014 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

3 Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 3

4 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Program Agenda Why Upgrade ? Overview and Concept Upgrade Tools and Best Practices Useful References for Upgrade

5 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Why Upgrade To 12c Release 1 ? 5 Useful and Desirable Features Improve Performance Potential Cost Saver Easy Administration Premier Support until July 2018 Extended Support until July 2021 Save Extended Support Fee Patchset, PSU,SPU and other Bug fixes are available New Features Increase Support Length Premier Support Benefits of upgrading the database

6 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Upgrade Vs Migration 6 UPGRADE ─ The process of changing the data dictionary contents of a database to reflect a newer release ─ No User or Application data will be touched or modified ─ Independent of the size of the database ─ Major Release Upgrade : Upgrading from 11.2 to 12.1 ─ Patchset Upgrade :Upgrading from to ─ Move to new OS,hardware and character set conversation. ─ Dependent on the size of the database MIGRATION

7 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Upgrade Methods 7 DBUA (Recommended) Manual Upgrade Expdb/Impdp

8 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 12c Upgrade Path Direct or Indirect Path 8

9 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Upgrade Documentation Documentation : 9

10 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Upgrade Companion MOS Note Oracle 12cR1 Upgrade Companion 10

11 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Upgrade blog https://blogs.oracle.com/UPGRADE/ 11

12 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | OTN upgrade page 12

13 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Certification Database Sever and Platform certification 13

14 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Software Download Locations 14 https://edelivery.oracle.com https://support.oracle.com

15 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Install the latest Software Reduce patching downtime: 15 ─Install the LATEST PATCHSET or BASE RELEASE ─Apply the latest PATCH SET UPDATE for Unix and BUNDLE PATCH for Windows ─Install the Binaries in new Oracle home. Recommended: OUT OF PLACE ─Apply Interim Patches for Known issue ─Patchset is complete installation software from Onwards ─The first PSU for will be released on October 2014 Note Note : Quick Reference to Patch Numbers for Database PSU, SPU(CPU), Bundle Patches and Patchsets

16 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Upgrade Grid Infrastructure Upgrade Grid Infrastructure BEFORE upgrading the Oracle Database 16 Note Note How to Upgrade to Oracle Grid Infrastructure 12c Release 1 and Known Issues Oracle Grid Infrastructure Home Oracle Database Server Home Install the Grid Infrastructure in NEW Oracle home ( Out-of Place Upgrade)

17 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Pre Upgrade Checklist Source Oracle home 17 Invalid database OBJECTS in SYS and SYSTEM schema Invalid database COMPONENTS SYS and SYSTEM does not have DUPLICATE OBJECTS CLUSTER_DATABASE is set to FLASE HIDDEN parameter and EVENTS DEPRECATED parameter OBSOLETE database COMPONENTS RECYCLE BIN objects Gather Statistics Preserve Statistics Backup of the Database VALIDATE REMOVE CREATE

18 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Pre-Upgrade Information Tool :preupgrd.sql Upgrade SQL Automation 18 ─ preupgrd.sql is introduced in 12c R1 ─ It has replaced utlu i.sql ─ Runs in the source Database ─ Generates Fix up scripts ─ preupgrade_fixups.sql ─ postupgrade_fixups.sql

19 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | -preupgrade.log - preupgrade_fixups.sql - postupgrade_fixups.sql Logs generated by preupgrd.sql Prepare Source database Run Preupgrade Tool on the Source Database 19 Source DB Target DB Copy preupgrd.sql & Utluppkg.sql Execute preupgrd.sql Location: $ORACLE_BASE/cfgtoollogs/ /preupgrade

20 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Preupgrade Checks 20 Compatible Parameter Check $ORACLE_BASE/cfgtoollogs/ /preupgrade/preupgrade.log $ ORACLE_BASE/cfgtoollogs/ /preupgrade/preupgrade_fixups.sql OCM user existence check Gather dictionary statistics

21 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Remove Obsolete Components 21 $emctl stop dbcontrol ?/rdbms/admin/emremove.sql $emctl stop dbcontrol ?/rdbms/admin/emremove.sql ─ Enterprise Manager Database Control Repository is superseded in 12c By EM Express ─ Remove EM repository ─ It will be automatically removed during the catuppst.sql post-upgrade phase. ─ Remove Oracle UltraSearch before doing the upgrade ─ Oracle UltraSearch does not exist in Oracle Database 11.2 and onwards ─ For Oracle Database 10.2 ?/ultraserach/admin/wk0deinst.sql SYS password ‘‘ ‘‘

22 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Label Security 22 ?/rdbms/admin/olspreupgrade.sql ─ Essential Step if Oracle Label Security and/or Database Vault was already in the database before upgrade ─ Execute olspreupgrde.sql in source Database ─ Prepares the move of AUD$ table from SYSTEM to SYS. ─ Processes the audit records to minimize downtime. ─ Move records to an interim temporary table.

23 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Time Zone Version Pre or Post Upgrade Actions 23 ─ Default Time Zone Version 12c R1 is DST V18 ─ If Time Zone version at source database HIGHER than target database ─ Apply the Time Zone patch on target to match the source database version ─ If Time Zone version at source database LOWER than target database ─ Time Zone conversion need to be done post upgrade. ─ Most Recent Time Zone version is DST V22 ─ Time Zone definitions in $OH/oracore/zoneinfo Note Scripts to automatically update the RDBMS DST (timezone) version in an 11gR2 or 12cR1 databaseNote

24 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Backup the Database 24 ─ Take a backup of the Database. ─ Always create a valid and complete online backup with RMAN ─ Test the restore and the recovery at least once. ─ Make sure your fallback strategy covers during and after cases

25 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Compatible Parameter 25 ─ Minimum COMPATIBLE parameter for 12c is ─ Leave COMPATIBLE at the original value for a week before changing to ─ No way back once COMPATIBLE set to Compatible or higher is MUST Compatible remain to 11.x.x Downgrade NOT possible Downgrade possible SQL> alter system set compatible = '12.0.0' scope=spfile; SQL> Shutdown immediate ; SQL> conn / as sysdba SQL> startup SQL> alter system set compatible = '12.0.0' scope=spfile; SQL> Shutdown immediate ; SQL> conn / as sysdba SQL> startup ─ Database restart is required to change the COMPATIBLE parameter later

26 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Diagnostic Collection Script (dbupgdiag.sql) Note Note : Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql) 26

27 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Upgrade Utility : catctl.pl catctl.pl 27 ─ It is introduced in Oracle database server 12c R1 ─ It loads the data dictionary and components in PARALLEL ─ Default Parallelism 4 ─ Maximum Parallelism 8 catctl.pl supported options

28 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 12c Upgrade Start the Database in UPGRADE mode using the 12c binaries 28 Exit the sqlplus

29 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 12c Upgrade Parallelism 29 Start the upgrade on the Shell with catctl.pl with PARALLEL option.

30 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 12c Upgrade Logs 30 Upgrade is running with 8 Parallel processes Total DB components upgrade time ─ Default log location is current working directory ─ Use –l parameter to specify the log location ─ One log file for each thread

31 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Post Upgrade Checklist Target Oracle home 31 $ORACLE_HOME/rdbms/admin/utlrp.sql $ORACLE_HOME/rdbms/admin/utlu121s.sql TIMEZONE version SPFILE for PFILE Gather STATISTICS BACKUP of the database EXECUTE UPGRADE CREATE

32 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Post Upgrade Fixups TimeZone Version Check 32 Gather Fixed Objects Statistics $ORACLE_BASE/cfgtoollogs/ /preupgrade/preupgrade.log $ ORACLE_BASE/cfgtoollogs/ /preupgrade/postupgrade_fixups.sql

33 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Verify Upgrade Logs 33 ─ Review Upgrade logs and traces ─ DBUA logs $ORACLE_BASE /cfgtoollogs/DBUA/ /upgrade ─ If ORACLE_BASE is set $ORACLE_BASE /cfgtoollogs/DBUA/ /upgrade ─ If ORACLE_BASE is NOT set $ORACLE_HOME /cfgtoollogs/DBUA/ /upgrade ─ Manual upgrade logs ─ Location Specified using - l parameter of catctl.pl ─ Current working directory ─ Check alert_SID.log ─ utlu121s.sql output

34 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Verify Upgrade 34 ─ New successful upgrade status for CATALOG and CATPROC component ─ Run the utlrp.sql to change the status to VALID

35 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Upgrade Status Summary Tool :utlu121s.sql 35

36 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Useful References for Upgrade 36 Note Note Oracle 12c Upgrade Companion Note Oracle Database 12c Release 1 (12.1) Upgrade New Features Note Oracle Database 12c Release 1 (12.1) DBUA : Understanding New Changes With All New 12.1 DBUA Note Complete Checklist for Upgrading to Oracle Database 12c Release 1 (12.1) using DBUA Note Complete Checklist for Manual Upgrades to Oracle Database 12c Release 1 (12.1) Note Note Note Note Note Note Oracle Database 12c Release 1 (12.1) DBUA in Silent mode

37 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |37

38


Download ppt "Oracle Database 12c Upgrade Tools and Best Practices from Oracle Support Agrim Pandit Principal Software Engineer Oracle Software Support September 30,"

Similar presentations


Ads by Google