Upgrade Exportimport 2
Upgrade Exportimport 2
How to Use Export and Import when Transferring Data Across Platforms or Across 32-bit and 64-bit Servers [ID 277650.1]
In this Document
Goal
Solution
References
Applies to:
Oracle Server - Standard Edition - Version: 8.1.7.0 to 10.2.0.1 - Release: 8.1.7 to 10.2
Oracle Server - Standard Edition - Version: 8.1.7.0 to 10.2.0.1 [Release: 8.1.7 to 10.2]
Oracle Server - Standard Edition - Version: 10.1.0.2 to 10.2.0.1 [Release: 10.1 to 10.2]
Oracle Server - Personal Edition - Version: 10.1.0.2 to 10.2.0.1 [Release: 10.1 to 10.2]
Oracle Server - Enterprise Edition - Version: 8.1.7.0 to 10.2.0.1 [Release: 8.1.7 to 10.2]
Information in this document applies to any platform.
Goal
This document provides the concepts how the export and import utilities can be used to transfer data, schemas, tablespaces, databases across platforms and across 32-bit/64-bit processor
servers.
The document is limited to the usage of the Export and Import utilities, and does not give detailed information about the following upgrade or migrate procedures:
- upgrade of the Operating System (e.g. move from HP-UX 10.20 to HP-UX 11.0)
- upgrade of the hardware (e.g. move from 32-bit to 64-bit)
- upgrade of Oracle Software (e.g. move from Oracle9i 9.2.0.8.0 to Oracle10g 10.2.0.3.0)
For details about those procedures, see the Knowledge Browser in MetaLink:
- Tab: Knowledge - Knowledge Browser
- Product: Database - Installation, Upgrade and Migration.
Solution
Note that if you were exporting on Unix through a named pipe, and have compressed the export dump file before writing to disk, you have to decompress the file before importing the data back into
a database. If the target database is on a different platform that does not have the utility to decompress the export dump file, you have to decompress the file before transferring it to the target
platform.
2. Parameter RECORDLENGTH.
The parameter RECORDLENGTH specifies the length, in bytes, of the file record. This parameter is necessary when you must transfer the export file to another operating system that uses a
different default value. If you do not define this parameter, it defaults to your platform-dependent value for buffer size.
You can set RECORDLENGTH to any value equal to or greater than your system's buffer size (the highest value is 64 kb). Frequently used values for buffer size are: 512 bytes, 4096 (4 kb), 8192
(8 kb), 32768 (32 kb), 65535 (64 kb).
3. Platform compatibility.
The export and import utilities can be used to connect to databases on different platforms.
Example:
- source database is 9.2.0.7 database on Sun Solaris 9
- target database is 9.2.0.7 database on Linux Red Hat Enterprise Server v2.1
- client 1 is 9.2.0.7 on Microsoft Windows 2000
- client 2 is 9.2.0.7 on Microsoft Windows XP
The following is a supported way to transfer data from one database to another (note that for the sake of the example we export and import via client machines):
a. On client 1 (Microsoft Windows 2000 platform), export with the 9.2.0.7 export utility and connect with Oracle Net to your 9.2.0.7 source database on the Sun Solaris 9 platform.
b. The export dump file will be created via Oracle Net on your Windows 2000 machine.
c. Ftp the export dump file in binary mode to the client 2 machine (Microsoft Windows XP platform).
d. Import with the 9.2.0.7 import utility on client 2 (Microsoft Windows XP platform), and connect with Oracle Net to your 9.2.0.7 target database on Linux Red Hat Enterprise Server v2.1.
Example:
- source database is 64-bit 8.1.7.4 database on 64-bit Sun Solaris 9
- target database is 32-bit 10.2.0.3 database on 32-bit Linux SuSE SLES 8
- client is 64-bit 10.2.0.3 on 64-bit Microsoft Windows XP (AMD64)
The following is a supported way to transfer data from one database to another (note that for the sake of the example we export and import via client machines):
a. Export with the 8.1.7.4 export utility from the 64-bit 8.1.7.4 source database on the 64-bit Sun Solaris 9 platform (note that this export utility is actually a 32-bit program).
b. FTP the export dump file in binary mode to the client machine (64-bit Microsoft Windows XP 2003 platform).
c. Import with the 64-bit 10.2.0.3 import utility on the 64-bit Microsoft Windows XP (AMD64) client platform, and connect with Oracle Net to your
32-bit 10.2.0.3 target database on the 32-bit Linux SuSE SLES8 server.
Example:
- source database is 10.1.0.4 database on Linux Red Hat Enterprise Server v4
- target database is 9.2.0.8 database on HP-Tru64 5.1b
The following is a supported way to transfer the data from one database to another:
a. Export with the 9.2.0.8 export utility on your HP-Tru64 server, and connect with Oracle Net to your 10.1.0.4 source database on the Linux Red Hat platform
b. The export dump file will be created via Oracle Net on your HP-Tru64 server.
c. Import with the 9.2.0.8 import utility on your HP-Tru64 server into your 9.2.0.8 database.
6. Combinations.
Combinations of the previous three examples are possible.
Example:
- source database is 64-bit 8.1.7.4 database on 64-bit Sun Solaris 9
1 de 3 17/02/2011 9:47
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&...
- target database is 64-bit 10.2.0.3 database on 64-bit Linux Red Hat Enterprise Server v5 (AMD64)
- client 1 is 32-bit 8.1.7.4 on 32-bit Microsoft Windows 2000
- client 2 is 32-bit 10.2.0.3 on 32-bit Microsoft Windows XP
The following is a supported way to transfer data from one database to another:
a. Export with the 32-bit 8.1.7.4 export utility on client 1 (Microsoft Windows 2000 platform), and connect with Oracle Net8 to your 64-bit 8.1.7.4 source database on the Sun Solaris 9 platform.
b. FTP the export dump file in binary mode to client 2 (Microsoft Windows XP platform).
c. Import with the 32-bit 10.2.0.3 import utility on client 2 (Microsoft Windows XP platform), and connect with Oracle Net to your 64-bit 10.2.0.3 target database on Linux Red Hat Enterprise Server
v5 (AMD64).
7. Example scenario's.
Example:
- source database is 64-bit 8.1.7.4 database on 64-bit Sun Solaris 9
- target database is 64-bit 10.1.0.5 database on 64-bit Linux Red Hat Enterprise Server v3
- tables scott.emp and hugo.dept need to be transferred
b. Transfer the file in binary mode to the Linux Red Hat Enterprise Server.
Notes:
1. The export and import parameter RECORDLENGTH was used with the maximum value (64 kb).
2. The users SCOTT and HUGO must exist in the target database prior to the import operation; otherwise an error is returned.
Example:
- source database is 32-bit 9.0.1.4 database on Microsoft Windows 2000
- target database is 64-bit 9.2.0.8 database on HP-Unix 11i
- schema's scott and hugo need to be transferred
Notes:
1. The user names SCOTT and HUGO must exist in the target database prior to the import operation; otherwise an error is returned.
2. In Oracle10g when using export DataPump and import DataPump, you can use the import DataPump parameter REMAP_SCHEMA which loads all objects from a source schema into a target
schema, and creates the target schema if it does not exist.
Example:
- source database is 32-bit 10.1.0.2 database on 32-bit Microsoft Windows 2000
- target database is 64-bit 10.2.0.1 database on AIX 5.2
- tablespaces USERS and EXAMPLE example need to be transferred
b. Check platform, and check if the datafiles need to be converted (difference exists in endian format):
2 de 3 17/02/2011 9:47
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&...
Otherwise, copy the datafiles to a temporary location, and put the tablespaces back to read write.
c. Transfer the export dumpfile and the copied/converted datafiles in binary mode to the AIX 5.2 Server.
Notes:
1. In this example we assumed that only the users SCOTT and HUGO owned objects in the tablespaces USERS and EXAMPLE. The users SCOTT2 and HUGO2 become the new owners of the
objects. These users should have been created in the target database prior to the import.
2. You cannot transport the SYSTEM tablespace.
3. You cannot transport objects owned by the user SYS (such as: PL/SQL, Java classes, callouts, views, synonyms, users, privileges, dimensions, directories, and sequences).
4. The source and target database must use the same character set and national character set.
5. In Oracle9i and Oracle8i the source and target database must be on the same hardware platform.
Example:
- source database is 32-bit 9.2.0.8 database on 32-bit Microsoft Windows 2000
- target database is 64-bit 10.2.0.3 database on 64-bit HP-Unix Itanium 11.22
The following steps provide a general overview of how to move a database between platforms.
a. Query the views dba_tablespaces, dba_data_files and dba_temp_files. You will need this information later in the process.
c. Transfer the export dumpfile in binary mode to the HP-Unix 11.22 server.
e. Before importing the dump file, you must first create your tablespaces, using the information obtained in step a (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).
Using IGNORE=y instructs Oracle to ignore any creation errors during the import and permit the import to complete.
References
NOTE:132904.1 - Compatibility Matrix for Export And Import Between Different Oracle Versions
NOTE:134966.1 - How to determine Recordlength Parameter Default Value for Export and Import
NOTE:149914.1 - Oracle's 9i Platform Strategy Advisory
NOTE:243304.1 - 10g : Transportable Tablespaces Across Different Platforms
NOTE:272132.1 - Import DataPump - User Schema is Created by Import if it does not Exist in Target Database
NOTE:291024.1 - Compatibility and New Features when Transporting Tablespaces with Export and Import
NOTE:30528.1 - Large File Issues (2Gb+) when Using Export (EXP-2 EXP-15), Import (IMP-2 IMP-21), or SQL*Loader
NOTE:62290.1 - Changing between 32-bit and 64-bit Word Sizes
Related
Products
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Standard Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Standard Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Standard Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Standard Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Personal Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Personal Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Personal Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Personal Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
IMP-0; IMP-10
Back to top
3 de 3 17/02/2011 9:47