Oracle Basics - Data Migration

We often need to Oracle database under migration, the migration to more advanced host, migrate to the remote room, migrated to different platforms

A, exp / imp: 

This is probably the most common and easiest way, and usually do export and import based on owner-level applications. 

Methods of operation are: the establishment of a good owner in the new database and table space, stop the application of the old library, the old library to do

exp user/pwd owner=XXX file=exp_xxx.dmp log=exp_xxx.log buffer=6000000

Dmp file transfer to the new library, the new library to do

imp user/pwd fromuser=XXX touser=XXX file=exp_xxx.dmp log=imp_xxx.log ignore=y.

Advantages and disadvantages:

The advantage is you can cross-platform use;

The disadvantage is a long downtime , downtime is transmitted to the network from exp to the new library, plus imp of time.


Second, the storage migration: 

In this case, data files, control files, log files, SPFILE are stored (raw device in general), we can store directly linked to the new machine, and then start the database on the new machine. 

Methods of operation:

The old library pfile (because there are links pointing to the bare equipment spfile), tnsnames.ora, listener.ora, password files to the corresponding location of the new library. The cut to store the new machine, or with a file copy or reproduce data file dd, start the database. 

Advantages and disadvantages:

The advantage is that migration is very simple , the main work is the work of a host of engineers, dba can only cooperate, when the library downtime, cut storage time from the library.

The disadvantage of requiring new and old libraries are the same platform , the same version of the database.


Third, using the data guard Migration: 
By dg we not only can be used for capacity disaster, physical dg we can also serve as a way to migrate.

Advantages and disadvantages:

The advantage of reduced downtime , downtime of the switch over time.

Disadvantages: the host must be double , storage must be double.


Fourth, migration rman do: 

rman more suitable for migration across file systems , as different file systems under the platform


Article Reprinted from CNOUG Forum: http:? //Www.oracle.com.cn/viewthread.php tid = 159740 & extra = page% 3D1

Reproduced in: https: //my.oschina.net/u/204616/blog/545253

Guess you like

Origin blog.csdn.net/weixin_34113237/article/details/91990101