Previous | Table of Contents | Next |
Execute privileges will be granted to PUBLIC for all Time Series types and packages.
In order to migrate a database, as a DBA you need to understand the procedures involved in the process. It needs careful planning, testing the migration process and the migrated test database, preparing and preserving the source database, migrating the source database, and testing and tuning the new production database. Typically, as a DBA you are responsible for ensuring the success of the migration process. The application developer is responsible for ensuring that the application designed for the Oracle7 source database works the same way with the migrated Oracle8 target database. Users should not have access to the migrated database until all applications have been tested properly.
Caution:
Always back up your version 7 database before you migrate!
There are three methods available for migrating or upgrading a database to Oracle8:
The migration utility converts the files and structures in the source database (Oracle7) by changing the file headers and possibly the definitions of the data in the files. It does not affect the data portions of the datafiles; also their format and content remains unchanged. It is good for quick migration of the entire source and not for selective datafiles, which is best handled by Export and Import.
The Export and Import utilities provide the following benefits over and above the migrate utility:
These advantages do have the regular disadvantages associated with any export/import procedure: Export data is a logical copy of the data. It can allow recovery to the date and time the export was taken. An Export file should not be edited and can be used by Import only. Import imports only full tables and cannot be used to do a conditional load. In terms of time and disk space requirements, Export/Import is very expensive.
You can copy data from one Oracle database to another using database links. The data can be copied using the regular SQL*Plus COPY command or using the INSERT INTO, CREATE TABLE FROM command, CREATE TABLE ... AS. This method offers the same advantage of moving selected objects or even specified rows across the databases. Copying also requires less disk and memory buffer space for migration than export/import.
The migration procedure requires planning and testing, involving the path from the source to the new migrated database, irrespective of any of the methodsmigration utility, export/import, or copying data. Regardless of what method you choose, as a database administrator, it is your responsibility to establish, test, and validate a migration plan. The testing plan normally includes functional, integration, performance, and volume/load stress testing and pre- and post-migration testing.
Be sure to include timing tests, data dictionary growth, observations and resource usage observations. Collecting this information will help you compare the source and the target database. You can use EXPLAIN PLAN on both source and target to compare the execution paths followed for SQL statements.
Previous | Table of Contents | Next |