Migrating to Oracle 8i in the Real World: A Senior DBA’s E-business Experience Roger Schrag Database Specialists, Inc. www.dbspecialists.com.

Slides:



Advertisements
Similar presentations
Get Oracle 8i Running on Your Linux Server Straight Away! Roger Schrag Database Specialists, Inc. Oracle Open World 2000 Paper #276.
Advertisements

The Architecture of Oracle
ArrayExpress Oracle DBA Ahmet Oezcimen. Agenda 1. Tasks 2. System Overview 3. Oracle DB System 4. Database Monitoring 5. Database Security 6. Performance.
Introduction to Oracle
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
Self-Managing Database: Easy Upgrade Tom Graves Consulting Member of Technical Staff Oracle Corporation Session id:
1 Chapter 17 Troubleshooting RMAN. 2 Background Authors thought this topic was often glazed over or not covered well Knew that every topic can’t be covered,
Database Administration ISQA 436 Fall 2006 Mark Freeman
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Harvard University Oracle Database Administration Session 2 System Level.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
Presenter: Raman Chohan. AGENDA Oracle Best Practices Oracle Backups Why upgrade to Oracle 11? Performance Troubleshooting axiUm Pre-Upgrade Checklist.
Backup and Recovery Part 1.
Designing a Data Warehouse
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Oracle backup and recovery strategy
Introduction to Oracle Backup and Recovery
DB Audit Expert v1.1 for Oracle Copyright © SoftTree Technologies, Inc. This presentation is for DB Audit Expert for Oracle version 1.1 which.
Backup & Recovery Concepts for Oracle Database
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
How Are The Challenges Different for Internet DBAs? Roger Schrag Database Specialists, Inc.
Designing a Data Warehouse Issues in DW design. Three Fundamental Processes Data Acquisition Data Storage Data a Access.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
M ODULE 2 D ATABASE I NSTALLATION AND C ONFIGURATION Section 1: DBMS Installation 1 ITEC 450 Fall 2012.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
Database Technical Session By: Prof. Adarsh Patel.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Module 7. Data Backups  Definitions: Protection vs. Backups vs. Archiving  Why plan for and execute data backups?  Considerations  Issues/Concerns.
ORACLE
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
Cloud Computing Characteristics A service provided by large internet-based specialised data centres that offers storage, processing and computer resources.
Deadlocks For $1000: Let’s Play Jeopardy! Iggy Fernandez Database Specialists, Inc. TCOUG Fall Meeting 2008.
Database Systems Slide 1 Database Systems Lecture 5 Overview of Oracle Database Architecture - Concept Manual : Chapters 1,8 Lecturer : Dr Bela Stantic.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
Chris Wright Senior Systems Engineer, Lucity MOVING TO ONE DATABASE FOR SQL SERVER.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
DB Zip Expert Portable database backup and export/import Copyright © SoftTree Technologies, Inc.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Oracle Database Architectural Components
Partitioning & Creating Hardware Tablespaces for Performance
Get Oracle 8i Running on Your Linux Server Straight Away!
Introduction of Week 3 Assignment Discussion
Upgrading to Microsoft SQL Server 2014
Database administration
Presentation transcript:

Migrating to Oracle 8i in the Real World: A Senior DBA’s E-business Experience Roger Schrag Database Specialists, Inc.

Today’s Session Introduction Migration methods Elements of a migration plan Things to watch out for

White Paper Covers most material in this presentation Includes detailed step-by-step instructions for migrating to Oracle 8i using various methods Available at:

My Background 11 years experience with Oracle technology Application developer at Oracle Corp. Oracle DBA at Fortune 500s and dot-coms Manage team of internet DBAs Completed an enterprise-wide migration from Oracle to at a high-transaction internet company

Upgrade vs. Migration Upgrade: –Changes the minor release number –Example: to –Usually modest change to data dictionary –Reversible Migration: –Changes the major release number –Example: to –Changes control file and data file headers –Cannot be reversed without restoring a backup

Migration Methods Export and import Database links Command-line migration utility Data Migration Assistant

Using Export and Import to Migrate a Database Defragment and reorganize data Change database name, server, platform, block size, character set Exclude tables no longer needed Easy to fall back to old database if necessary Must create new database manually Time required proportional to data volume

Using Database Links to Migrate a Database Defragment and reorganize data Change database name, server, platform, block size, character set Exclude tables and specific rows no longer needed Easy to fall back to old database if necessary Must create new database and schema objects manually Time required is proportional to data volume

The Command-line Migration Utility “mig” Migrates the entire database in place Creates new control files and updates data file headers to change them to Oracle 8i format Must run catalog scripts to recreate dictionary views and PL/SQL built-ins Time required is independent of data volume Gives the DBA supreme control over migration process

The Data Migration Assistant Java application with graphical user interface Functionality is similar to command-line utility except that DBA gives up all control

Topics to Consider in an Enterprise-wide Migration Strategy Initial fact finding Accomplishing other good things while you migrate Choosing the migration method for each database Testing the migration process Testing the application on Oracle 8i Contingency plans and bailout procedures Mid-migration interoperability issues The overall timeline

Initial Fact Finding For a Migration How long will the various methods take to migrate your databases? How much extra disk storage will you need during the migration and do you have that much available? Which migration methods seem stable in your environment? Collect the information you need to make intelligent decisions. Conduct tests to get information you can’t find in the documentation.

Defragment free space Relocate segments to new or more optimal tablespaces Change database name, character set or block size Move database to a new server (possibly on a different platform) Purge unneeded data Other Things to Accomplish During a Migration You may wish to use the migration effort as an opportunity to perform database maintenance or server upgrades.

Choosing a Migration Method Copying data via database links requires the most effort, but lets you subset your data in any way Export and import require modest effort, and still let you defragment data, change block size, etc. Consider each database individually. You do not need to use the same migration method for all of your databases.

Choosing a Migration Method (continued) For large databases export/import and database links are not practical When choosing between the command-line utility and Data Migration Assistant, consider: –How much control do you like to have? –How much do you trust Data Migration Assistant? –How stable is Data Migration Assistant in your environment?

Testing the Migration Process Reduces the chance of unexpected surprises Reduces the chance of human error or oversight Reduces production downtime Document the migration steps and validate the plan by applying it against a test environment.

Testing the Application Does your application rely on Oracle 7 loopholes that might be plugged in Oracle 8i? Does your application rely on functionality that has changed between Oracle 7 and Oracle 8i? Do you use third-party tools not certified for use with Oracle 8i? Does your application stumble upon an Oracle 8i bug? Make sure the migration will not break your application.

Contingency Plans Export/import and database link migration methods involve copying the database. You can fall back to the original. How do you bail out if the migration fails or breaks your application?

Contingency Plans (continued) Command-line utility and Data Migration Assistant modify your database in an irreversible way –Take a hot backup before you start and keep it online if you have enough storage –Consider offlining all tablespaces except system, temp, and rollback before migration –Take a cold backup of the online tablespaces immediately before migration

Interoperability Issues Net8 or SQL*Net connectivity from all client versions to all server versions Database link connectivity Application access Third-party tools Database management tools (startup scripts, backup scripts, etc.) You’ll need different versions of Oracle to work together unless you migrate the entire enterprise at once.

Timeline The ASAP approach The “let’s do one database at a time to minimize exposure” approach Staffing issues Down time opportunities Develop a timeline for the entire project.

Parallel Server Special Considerations You cannot use the Data Migration Assistant in OPS environments You must migrate all instances in an OPS environment at the same time

Migration Landmines Real-life problems I’ve encountered when migrating Oracle 7 databases to Oracle 8i.

Newsflash: Oracle 8i has bugs! Your worst nightmare: A simple INSERT statement that works fine on Oracle 7 tips off a memory leak on Oracle 8i and crashes your Oracle instance...

Suppose this seemingly innocent statement ran on your database several times every second. Suppose that every time it ran, it allocated a few more bytes from the shared pool in the SGA... INSERT INTO accounts accounts (id, , referral_id, first_name, last_name, company, address, city, state, zip, country, phone, notes, join_time, last_updated, last_login) VALUES (accounts_s.NEXTVAL, LOWER (p_ ), p_referral_id, p_first_name, p_last_name, p_company, p_address, p_city, p_state, p_zip, p_country, p_phone, p_notes, SYSDATE, SYSDATE, SYSDATE);

Here’s what Oracle Support had to say after six days of evaluating bstat/estat reports and trace files: There is a logged issue with SQL_TRACE being on at system level causing performance degradation at 815. Have you tried flushing the shared pool at regular intervals? Do you need an index on this table with the insert action?

Behavioral Changes between Oracle 7 and Oracle 8i Stricter date format string interpretation Stricter rules on using dates in check constraints This was much more of a problem between Oracle V6 and Oracle 7, but it is still something to watch for nonetheless.

Interoperability Issues Net8 listener fails to connect a client to an database on Solaris Oracle 8i dbstart script on Solaris fails to start Oracle 7.3 databases

National Language Support Issues Relink all of your executables with Oracle 8i libraries, or Continue to run your executables from an Oracle 7 home, or Set ORA_NLS32 to point to Oracle 7 NLS files Oracle 8i client-side NLS files are incompatible with Oracle 7 libraries.

Query Performance Caveat #1: Many new features require application changes before you can realize any benefit Caveat #2: Cost-based optimizer changes can affect execution plans, sometimes for the worse Oracle 8i performance improvements and new features can make queries run faster.

Minor Annoyances Call your database anything you want, as long as you like java8.us.oracle.com as a global name Want detailed tracing of the archiver process? You can’t say no with Oracle 8i release 8.1.5

Conclusion Planning and testing are key to a successful Oracle 8i migration Choose the best migration method for each database Prepare a complete migration plan and use it Be on the lookout for the unexpected

Contact Information Roger Schrag Database Specialists, Inc. 388 Market Street, Suite 400 San Francisco, CA