Upgrade Completed Successfully. Has it Really??

Similar documents
<Insert Picture Here> Maximum Availability Architecture (MAA) Best Practices: Online Patching and Rolling Upgrades with Oracle Database

Oracle 10g Database Upgrade and Migration

2010 Oracle Corporation 1

Oracle 10g Move Table To Another Schema

Upgrade Oracle Applications from to R12.1.1

Sqlplus To Create The Plan_table In Your Schema

Oracle ILM Assistant Installation Guide Version 1.4

Gunes EROL-

Oracle Database 11g for Experienced 9i Database Administrators

Check Table Oracle Database Status Windows Script

"Charting the Course... Oracle 18c DBA I (3 Day) Course Summary

CHAPTER. Upgrading to Oracle Database 11g

Oracle Database Server 12c Pros and Cons

Database Administration and Management

Backup and Recovery A Completeness Check

"Charting the Course... Oracle 18c DBA I (5 Day) Course Summary

Grid Control Patch Set Step by Step Install On Linux

Oracle Audit Vault. 1 Downloading the Latest Version of This Document. 2 Installing the Oracle Audit Vault Patch Set on the Audit Vault Server

An Oracle White Paper September Upgrade Methods for Upgrading to Oracle Database 11g Release 2

[Contents. Sharing. sqlplus. Storage 6. System Support Processes 15 Operating System Files 16. Synonyms. SQL*Developer

Setting Up Oracle for ISC

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

Oracle8i. Release Notes

Agile e Installation Manual for Oracle 10g for Agile e6.0.2 on Windows. Part Number: INSORAUNIX-602A

Cloning Oracle Applications Environments. Introduction. AutoConfig Components.

High Availability Overview Paper

Migrate +230 TB databases in less than 1 day

Who Can Use the Quick Upgrade Guide?

An Oracle White Paper September Methods for Upgrading to Oracle Database 11g Release 2

Migrating/Upgrading to Oracle Version 8.1.5: UNIX (BC-DB- ORA

WebReporter - Symphony Server install procedures

Database Vault Installation and Configuration

Oracle Transportation Management. Migration Guide Release Part No. E

Setting Up Oracle for Prime Fulfillment

Install Legato Networker Server 7.1 on Windows 2000 Professional

Lab 2: Installation of Oracle XE & SOA11g

Enterprise Manager: Scalable Oracle Management

The Challenges of Oracle Cloning. Safa Alak Consulting System Engineer

Schema Validate With Oracle 10g Database Status

White Paper. Using SVA SnapShot With Oracle June, 2001 TL-ENG-PRD-0477-A1 TL-ENG-PRD-0477-A01

OEM Provisioning An Introduction

FLASHBACK RAC DATABASE TO RESTORE POINT Y. MORAN

Disaster Recovery: Restore Database from One Server to another Server when Different Location

Guide to installing Oracle 10G Enterprise Edition Server (and creating databases) on Windows, for Controller 8.2

HP 3PAR Recovery Manager Software for Oracle

Installing the Oracle Database Softwar

Steps how to duplicate a database to a new machine. Version 10gR2

Roy F Swonger Vice President Database Upgrades & Utilities Oracle Corporation

Contents. 1 Introduction... 2 Introduction to Installing and Configuring LEI... 4 Upgrading NotesPump to LEI...

E-Business Cloning Six Easy Steps, Now Three Easy Steps. Michael Brown BlueStar

Question: Which statement would you use to invoke a stored procedure in isql*plus?

Recovering Oracle Databases

<Insert Picture Here> Patching and HA environments March 2010

Mobile : ( India )

Performing a 32 bit to 64 bit migration using the Transportable Database RMAN feature

Installing and Configuring Oracle 10g Express Edition. for use with the ETM System

Tablespace Usage By Schema In Oracle 11g Query To Check Temp

Migrate Databases to Exadata Using RMAN Duplicate

Data Guard: Setup and Administration. By Ashok Kapur Hawkeye Technology, Inc.

Oracle12c Release 1 New Features for Administrators (5 Days)

Accenture Enkitec Group PATCHING ORACLE MARTIN BACH #DOAGDB17

Set Current Schema Command Oracle Sql Developer Alter Session

12.1 Multitenancy in real life

Oracle Transportation Management. Migration Guide Release 6.2 Part No. E

MBS Microsoft Oracle Plug-In 6.82 User Guide

ORACLE REFERENCE 11GR2 MANUAL DOCUMENT

Oracle Retail Data Model

Author A.Kishore Convert 11gR2 non-rac database to RAC database using rconfig

Oracle Utilities Data Model Installation Guide. Release 12.2

Manually create oracle 9i database in RedHat Linux Advanced Server 2.1 by M.B.G.Suranga De Silva

Oracle Agile Engineering Data Management

EVault InfoStage 5.6 Oracle Plug-In for Solaris and Windows. Installation & Configuration Guide

CHAPTER. Oracle Database 11g Getting Started. Copyright 2008 by The McGraw-Hill Companies, Inc.

Call: Oracle 11g DBA Course Content:35-40hours Course Outline

HP Certified Professional

Document Revision R2E1 Tivoli Netcool Performance Manager: Upgrade Guide - Wireless Component

Exam : 1Z Oracle Database 11g: New Features for Administrators. Title : Version : Demo. The safer, easier way to help you pass any IT exams.

Maximum Availability Architecture. Oracle Best Practices for High Availability

Product Support Notice

Active Data Guard Hands On Lab. Larry M. Carpenter Distinguished Product Manager

TestsDumps. Latest Test Dumps for IT Exam Certification

Multitenant Databases. Arup Nanda Longtime Oracle DBA

HP 3PAR Recovery Manager Software for Oracle

Expert Oracle Database

INSTALL GUIDE BIOVIA INSIGHT 2016

Client Connectivity in a DataGuard Environment Harald van Breederode Oracle University 4-DEC-2007

DumpsKing. Latest exam dumps & reliable dumps VCE & valid certification king

GFC_ARCH_MGMT: SEGMENT MANAGEMENT UTILITY PACKAGE

Quest Code Tester for Oracle 3.1. Installation and Configuration Guide

Introduction to Computer Science

The Business Value of Virtualizing Oracle ebusiness Suite. Haroon Qureshi QSolve, Inc.

An Oracle White Paper July Methods for Downgrading from Oracle Database 11g Release 2

Reference manual Integrated database authentication

Author A.Kishore Upgrade Oracle Applications from to R12

Steps Create Physical Standby Database Oracle 9i

Oracle Tuning Pack. Table Of Contents. 1 Introduction. 2 Installation and Configuration. 3 Documentation and Help. 4 Oracle SQL Analyze

Create A Private Database Link In Another Schema In Oracle 11g Drop >>>CLICK HERE<<<

INSTALL GUIDE BIOVIA INSIGHT 2.6

Oracle is a registered trademark, and Net8, Oracle8i, Oracle Database Configuration Assistant, Oracle intermedia, Oracle

Oracle Database 11g Data Guard

Transcription:

www.ntirety.com Upgrade Completed Successfully. Has it Really?? NYOUG New York City September 29, 2005 Michael S. Abbey Database Officer Oracle Practice

www.ntirety.com 2 Agenda The software / server Applications snapshot The downgrade Best practices

www.ntirety.com 3 Finding problems

www.ntirety.com 4 Completeness Testing is done Patch level will be exactly the same as where tests were performed Do not take anything for granted even through a minor change (e.g. 9.2.0.5 to 9.2.0.6) Downgrade plan is part of upgrade

www.ntirety.com 5 Completeness Pre-installation scripts/checklist validate: shell script that executes the engine on Unix platforms validate.pl: actual rule engine filename.txt: rule text file; this file will be different for each rule set Linux HP-UX Itanium AIX Solaris

www.ntirety.com 6 The software Base release may be dependent on O/S do not jump to any inclusions based on your familiarity Required patchsets (if any) Be very careful with ORACLE_HOME selection Poor choice of name will bite you later

www.ntirety.com 7 The software Correct version heralds for products used in app SQL*Plus herald for management OEM version / GRID control if applicable If patchset applied some tool versions may be different than database co-existing version info on MetaLink

www.ntirety.com 8 The software Installer initiates a relink of required products Best to check for yourself Examine $ORACLE_HOME/dbs for *O and *0 files that can be erased Scour the link output > link.out 2>&1

www.ntirety.com 9 The server Will the O/S support the production configuration: get a copy of the init file satisfy directory requests sqlplus '/ as sysdba' startup nomount Semaphores and shared memory problems

www.ntirety.com 10 The server Network configuration files listener.ora (with appropriate Host changes) tnsnames.ora (ditto) Backup and monitoring scripts Copy of crontab verify all called scripts exist in proper location fully-pathed UNIX command locations same?

www.ntirety.com 11 Applications snapshot Status of ALL application-related schemas Run just prior to upgrade Status of objects organized by schema: break on owner on object_type skip 1 col owner form a8 set pages 0 lines 80 trimsp on select owner,object_type,status,count(*) from dba_objects where owner in ('PRECISE','LOAN','TRACKER') group by owner,object_type,status order by 1,2;

www.ntirety.com 12 Applications snapshot TRACKER DATABASE LINK VALID 1 FUNCTION VALID 22 INDEX VALID 133 Odd? INDEX PARTITION VALID 205 LOB VALID 1 PACKAGE VALID 13 PACKAGE BODY INVALID 1 VALID 13 PROCEDURE INVALID 1 VALID 62 SEQUENCE VALID 28 SYNONYM VALID 18 TABLE VALID 79 TABLE PARTITION VALID 95 TRIGGER VALID 63 VIEW INVALID 11 VALID 34

www.ntirety.com 13 Applications snapshot Invalid object details break on owner on object_type skip 1 col owner form a8 col object_name form a40 set pages 0 lines 80 trimsp on select owner,object_type,object_name from dba_objects where owner in ('PRECISE','LOAN','TRACKER') and status = 'INVALID' order by 1,2

www.ntirety.com 14 Applications snapshot TRACKER PACKAGE BODY IMPLEMENT_EMAIL_SWITCH PROCEDURE SET_ALL_COMPLETE VIEW ACORN_VW APPLE_VW CRONTAB_VW DESERT_VW EXTRAS_VW HERBICIDE_VW MONTREAL_VW SARNIA_VW TORONTO_VW WESTERN_VW

www.ntirety.com 15 Applications snapshot NOT VALIDATED constraints break on owner skip 1 set pages 0 lines 80 trimsp on col owner form a12 select owner,constraint_type,count(*) from dba_constraints where validated = 'NOT VALIDATED' group by owner,constraint_type order by 1,2;

www.ntirety.com 16 Applications snapshot TRACKER O 4 P 2 R 5 NOT VALIDATED constraint details select owner,constraint_name,constraint_type from dba_constraints where validated = 'NOT VALIDATED' order by 1,2,3;

www.ntirety.com 17 Applications snapshot TRACKER O SYS_C00093 SYS_C00095 SYS_C00190 SYS_C00231 P ALLOWANCE_PK DESERTION_PK R STATUS_OBS_FK SUBTERR_FK TREADMILL_FK1 TREADMILL_FK2 UNDERPIN_FK2

www.ntirety.com 18 Applications snapshot DISABLED triggers break on owner skip 1 set pages 0 lines 80 trimsp on col owner form a12 select owner,count(*) from dba_triggers where status = 'DISABLED' group by owner order by 1;

www.ntirety.com 19 Applications snapshot HR 3 PRECISE 2 TRACKER 6 DISABLED trigger details select owner,trigger_name from dba_triggers where status = 'DISABLED' order by 1;

www.ntirety.com 20 Applications snapshot HR SECURE_EMPLOYEES PRECISE CTACTHIST_PROBACKN_LOGGER SPTTMDTL_ALL_SUPT_TRG TRACKER SERVER$SHUTDOWN SERVER$STARTUP VM_CREATE VM_DROP LOGOFF LOGON

www.ntirety.com 21 Applications snapshot Ensure SQL*Plus environment exactly the same Spool to smartly named file Run UNIX diff command against output Proper status restored afterwards via SQL resembling alter {object_type} disable; How does one invalidate stored objects?

www.ntirety.com 22 The downgrade Plan in case something goes wrong 9i back down to 8i d0801070.sql will take you back to 8.1.7.4 need 8.1.7.4 software to go further back not always possible, so be prepared 9.x.x.x lower version of 9 no downgrade script need more planning

www.ntirety.com 23 The down upgrade [ ] sqlplus '/ as sysdba [ ] shutdown immediate [ ] startup restrict [ ] shutdown [ ] backup database files online redo logs control files [ ] lsnrctl stop [ ] reconcile count and size of backup files [ ] point at later release [ ] sqlplus '/ as sysdba' [ ] verify right tool version [ ] startup upgrade migrate [ ] @?/rdbms/admin/catpatch [ ] @?/rdbms/admin/utlrp [ ] attend to warnings [ ] object status reconciliation [ ] lsnrctl start [ ] sqlplus '/ as sysdba' [ ] disable restricted session

www.ntirety.com 24 The downgrade [ ] sqlplus '/ as sysdba [ ] shutdown immediate [ ] startup restrict [ ] shutdown [ ] restore backup [ ] lsnrctl stop [ ] point back at later release [ ] sqlplus '/ as sysdba' [ ] verify right tool version [ ] startup I love my DBA

www.ntirety.com 25 Best practices Manual relink after the installer completes Keep distribution medium online as long as possible sometimes runinstaller is hard to find after the fact Follow recommendations for resizing memory structures save current values for re-setting

www.ntirety.com 26 Best practices Wish list delete statistics and re-collect with new version keep backup online for at least the first few hours of the new version keep physical standby on previous release for a business day Install new version and patchset early

www.ntirety.com 27 Best practices Make a detailed checklist Discuss with colleagues At least one other set of eyes Rehearse with fellow DBA more fault tolerant no single-point of failure Can never have too many backups

www.ntirety.com 28 Best practice 5 words to take home with you from this presentation

www.ntirety.com 29 fenderpbs