This action might not be possible to undo. Are you sure you want to continue?
Minimizing Data Migration Time, Using Cross-Platform Transportable Tablespace
"With Oracle Database 10g’s Cross-Platform Transportable Tablespace feature, we were able to reduce the data migration time (8X faster) and move database from one platform to another quickly.” ---May Yuan Application Architect, Oracle Global IT
Oracle is the largest enterprise software company in the world, and its Global IT (GIT) group supports 55,000 users worldwide. Like any Fortune 500 IT organization, Oracle GIT is always looking for ways to streamline operations and reduce cost while improving operational efficiency and performance. Oracle has been advocating the Grid architecture, where standard-based, low-cost computing resources can be easily added or re-allocated as required while computing performance and data availability is maintained. The Grid architecture enables IT organizations to reduce infrastructure cost, maintain deployment flexibility and improve overall utilization.
Oracle Corporate Profile
• The world's largest enterprise software company, Oracle's business is information—how to manage it, use it, share it, protect it. • Over 55,000 employees • http://www.oracle.com/
Cross-Platform Transportable Tablespace (XTTS)
• Oracle’s XTTS feature provides the fastest way for a DBA to move large amount of data from one platform to another
DATABASE MIGRATION PROJECT
Oracle GIT migrated Oracle database development group’s mail system from large 64-bit SMP (Symmetric Multi-Processor) servers and monolithic disk arrays to Dell 32-bit Linux servers and Network Appliance filers. According to May Yuan, the application architect who implemented the mail system migration, there were a number of requirements for the database migration project: • • • • Support Oracle’s Linux Initiative Continue the IT Consolidation Effort Cost Savings Minimize Downtime
One of the key project requirements is to complete the data migration with minimum amount of downtime, and Oracle Database 10g’s Cross-Platform Transportable Tablespace (XTTS) feature provides the fastest way for a DBA to move large amounts of data from one platform to another. Moving data using transportable tablespaces is very fast because transporting a tablespace only requires the copying of datafiles and integrating the tablespace structural information. The GIT team decided to use the XTTS feature for the database migration project.
The old environment supported 800 users con-currently. PROCEDURES The Oracle GIT team came up with the following migration steps: • • • Install Oracle Database 10g software (32-bit) on the Dell servers Create a 32-bit database on the Dell server Export database (definition only) from Oracle Database 10g (64-bit) on Unix server to get user object system-definitions (e. the mail system migrated to three Dell 2650 servers (2-CPU. 2 . Export database (definition only) from Oracle Database 10g (64-bit) on Unix server to get user object system-definitions (e. After the migration. Create a 32-bit database on the Dell server The DBA needs to make sure that the system tablespace type (dictionary-managed or locally managed) is consistent for both source and target databases.g. etc. The database size was about 460GB located on seven monolithic disk arrays. and not data. The export only exported system definitions and meta-data. 6GB memory) running 32-bit Linux. public synonyms. packages and procedures) Export Transportable Tablespaces from Oracle Database 10g (64-bit) on Unix server Convert the datafiles from ‘Unix 64’ to ‘Linux 32’ on Unix server with Oracle Recovery Manager (RMAN) to resolve endian compatibility Import database into Oracle Database 10g (32-bit) on Dell server to implement the user object system-definitions Import Transportable Tablespaces into Oracle Database 10g on Dell server • • • • MIGRATION CONSIDERATIONS Below are some useful information discovered during GIT’s mail system database migration across different platforms. packages and procedures) A database export was performed to pre-create required meta-data prior to XTTS import. and the storage was consolidated into one Network Appliance 960 filer.000 users.g. the new environment now support up to 8. all privileges. After the migration and additional hardware upgrades. It is very important that the correct character set and national character set on both target and source match. database links. The database export also pre-created users.Cross-Platform Transportable TablespaceCase Study CONFIGURATIONS The Oracle database development group’s mail system was on three SMP servers (20-CPU and 32GB memory) running 64-bit Unix.
It required several preparatory steps to be completed. and not data. Import Transportable Tablespaces into Oracle Database 10g on Dell server This step was the core step of the migration process. The new Oracle Database 10g should have already been properly created and set. Each server ran 1-2 conversions simultaneously. For example. which means data conversion was required. Convert the datafiles from ‘Unix 64’ to ‘Linux 32’ on Unix server with Oracle RMAN to resolve endian compatibility The Unix and Dell Linux have different endianess. Datafiles should have been converted. and there was not enough storage to transport all the tablespaces at once. public synonyms. GIT migrated Oracle Websites content from 64-bit Unix to 32-bit Linux environment. GIT used the same procedure on a number of other projects. etc. RMAN Convert can be done either at the source or the target platform. To prepare for the XTTS import. GIT created interim tablespaces on the target database for testing and validation purposes. This import only imported system definitions and meta-data. all privileges. then the original set was deleted. System-definition user objects should have been imported.Cross-Platform Transportable TablespaceCase Study Export Transportable Tablespaces from Oracle Database 10g (64-bit) on Unix server The DBA must understand which pieces of the database to move and by which methods. So a phased approach was used -. One issue GIT ran into is that conversion can’t be done in-place and requires an interim staging area for the datafiles. database links. RELATED PROJECTS Oracle Websites Migration Project After the success of the mail system database migration. Oracle Websites 3 . and some data types are not supported with XTTS and must be handle manually. For example the tablespace must be self-contained without any reference to objects outside of the tablespace. Since there’s a time gap between the database export (definition only) and transportable tablespaces export. GIT chose to do the conversion at the target platform to minimize impact to the production systems and used the three Dell 2650 servers to perform the data conversion. Also the tablespaces to be transported must meet all the XTTS requirements as documented in the Oracle Database Administrator Guide.a set of datafiles were converted at a time. This also pre-created users. the datafiles of the tablespaces to be exported must be consistent with the XTTS dmp file. Import database into Oracle Database 10g (32-bit) on Dell server to implement the user object system-definitions A database import was performed to pre-create required meta-data prior to XTTS import. the interim tablespaces that were previously created were dropped.
GIT decided to further reduce cost by migrating mail system’s storage to low-cost. Application specific migration tool is also available to migrate databases with minimal amount of down time. There are a number of low-cost storage case studies on Oracle’s OTN web site. Oracle Cross Platform Transportable Tablespace http://www. The total migration time took less than 5 hours. GIT was able to migrating a large database from Unix to Dell Linux environment with minimal amount of down time. CONCLUSION The Oracle GIT team learned a number of valuable lessons from the mail system database migration project and considers the project a success.com/technology/deploy/availability/htdocs/xtts.oracle. a DBA now can easily allocate and re-allocate storage based on the application requirements. modular. GIT estimated that the traditional import and export method would have taken longer than 40 hours. By leveraging Oracle Database 10g’s Automatic Storage Management (ASM) feature with low-cost storage. GIT was able lower storage cost and maintain application performance and data availability.oracle. 2. According to Raymond Ordona and May Yuan who worked on the database migration project. Resilient Low-cost Storage After successfully migrating the mail system database to lower cost Linux servers. However.com/technology/deploy/availability/htdocs/lowcostst orage. understanding the database content (tablespaces that needed to be migrated) and careful planning was key to the success of database migration. the XTTS method is generic and can work with any applications.htm Oracle Resilient Low-Cost Storage Initiative http://www. ATA-based disk arrays.Cross-Platform Transportable TablespaceCase Study is a tool used by Oracle internal groups to host and maintain their internal and external web sites. REFERENCES 1.html 4 . Using Oracle ASM with modular storage arrays makes the storage part of the Grid architecture.
All other product and service names mentioned may be trademarks of their respective owners.650. Consulting Application Engineer.650.oracle. Oracle Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores. Various product and service names referenced herein may be trademarks of Oracle Corporation.506.com Oracle is a registered trademark of Oracle Corporation. Oracle Corporation Contributing Authors: May Yuan.506.Cross-Platform Transportable TablespaceCase Study Oracle Global IT: Case Study August 2006 Authors: Paul Tsien. Oracle Raymond Ordona.7200 www. Worldwide Inquiries: Phone: +1. Copyright © 2005 Oracle Corporation 5 .7000 Fax: +1.A.S. Application Architect. Product Manager. CA 94065 U.