The following steps present a general overview of how to move a database between platforms.
As a DBA user, issue the following SQL query to get the exact name of all tablespaces. You will need this information later in the process.
SQL> SELECT tablespace_name FROM dba_tablespaces;
select name,tablespace_name from dba_data_files; 注:在导入之前必须在目标库建立表空间,最后查看数据库文件信息,目标库建立表空间的时候创建一样的数据文件,数据文件路径可以不一致
As a DBA user, perform a full export from the source database, for example:
> exp system/manager FULL=y FILE=expdat.dmp
Move the dump file to the target database server. If you use FTP, be sure to copy it in binary format (by entering binary at the FTP prompt) to avoid file corruption.
Create a database on the target server.
Before importing the dump file, you must first create your tablespaces, using the information obtained in Step 1. Otherwise, the import will create the corresponding datafiles in the same file structure as at the source database, which may not be compatible with the file structure on the target system.
As a DBA user, perform a full import with the IGNORE parameter enabled:
> imp system/manager FULL=y IGNORE=y FILE=expdat.dmp
Using IGNORE=y instructs Oracle to ignore any creation errors during the import and permit the import to complete.
Perform a full backup of your new database.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29108064/viewspace-1134910/ ,如需转载,请注明出处,否则将追究法律责任。