1 This chapter describes how to use the Export utility to write data from an Oracle database into an operating system file in binary format. This file is stored outside the database, and it can be read into another Oracle database using the Import utility (described in ). This chapter discusses the following topics: • • • • • • • • • • • • • • • • • • • • What Is the Export Utility?
The Export utility provides a simple way for you to transfer data objects between Oracle databases, even if they reside on platforms with different hardware and software configurations. When you run Export against an Oracle database, objects (such as tables) are extracted, followed by their related objects (such as indexes, comments, and grants), if any.
The extracted data is written to an Export file, as illustrated in. Figure 1-1 Exporting a Database An Export file is an Oracle binary-format dump file that is typically located on disk or tape. The dump files can be transferred using FTP or physically transported (in the case of tape) to a different site. The files can then be used with the Import utility to transfer data between databases that are on systems not connected through a network. The files can also be used as backups in addition to normal backup procedures. Export dump files can only be read by the Oracle Import utility. The version of the Import utility cannot be earlier than the version of the Export utility used to create the dump file.
You can also display the contents of an export file without actually performing an import. To do this, use the Import SHOW parameter. See for more information. To load data from ASCII fixed-format or delimited files, use the SQL*Loader utility. Note: The actual names of the script files depend on your operating system. The script filenames and the method for running them are described in your Oracle operating system-specific documentation. Catexp.sql or catalog.sql needs to be run only once on a database.
You do not need to run it again before you perform the export. The script performs the following tasks to prepare the database for Export: • Creates the necessary export views in the data dictionary • Creates the EXP_FULL_DATABASE role • Assigns all necessary privileges to the EXP_FULL_DATABASE role • Assigns EXP_FULL_DATABASE to the DBA role • Records the version of catexp.sql that has been installed Ensuring Sufficient Disk Space Before you run Export, ensure that there is sufficient disk or tape storage space to write the export file. If there is not enough space, Export terminates with a write-failure error.
You can use table sizes to estimate the maximum space needed. You can find table sizes in the USER_SEGMENTS view of the Oracle data dictionary. The following query displays disk usage for all tables: SELECT SUM(BYTES) FROM USER_SEGMENTS WHERE SEGMENT_TYPE='TABLE'; The result of the query does not include disk space used for data stored in LOB (large object) or VARRAY columns or in partitioned tables. See Also: for more information about dictionary views Verifying Access Privileges To use Export, you must have the CREATE SESSION privilege on an Oracle database. To export tables owned by another user, you must have the EXP_FULL_DATABASE role enabled. This role is granted to all DBAs. If you do not have the system privileges contained in the EXP_FULL_DATABASE role, you cannot export objects contained in another user's schema.
For example, you cannot export a table in another user's schema, even if you created a synonym for it. The following schema names are reserved and will not be processed by Export: • ORDSYS • MDSYS • CTXSYS • ORDPLUGINS • LBACSYS Invoking Export You can invoke Export and specify parameters by using any of the following methods: • Command-line entries • Interactive Export prompts • Parameter files Before you use one of these methods to invoke Export, be sure to read the descriptions of the available parameters.
Command-Line Entries You can specify all valid parameters and their values from the command line using the following syntax: exp username/password PARAMETER= value or exp username/password PARAMETER=( value1,value2.,valuen) The number of parameters cannot exceed the maximum length of a command line on the system. Interactive Export Prompts If you prefer to let Export prompt you for the value of each parameter, you can use the following syntax to start Export in interactive mode: exp username/ password Export will display commonly used parameters with a request for you to enter a value.
![Import Export Documentation Import Export Documentation](http://caseware.com.au/faq/assets/faq500/385_Image6.png)
This method exists for backward compatibility and is not recommended because it provides less functionality than the other methods. Parameter Files You can specify all valid parameters and their values in a parameter file. Storing the parameters in a file allows them to be easily modified or reused, and is the recommended method for invoking Export. If you use different parameters for different databases, you can have multiple parameter files. Create the parameter file using any flat file text editor. The command-line option PARFILE= filename tells Export to read the parameters from the specified file rather than from the command line. For example: exp PARFILE= filename exp username/password PARFILE= filename The first example does not specify the username / password on the command line to illustrate that you can specify them in the parameter file, although, for security reasons, this is not recommended.
![Meaning Of Export Documentation Meaning Of Export Documentation](https://image.slidesharecdn.com/finalprojectcommittedcargocarepvtltd-090824133315-phpapp01/95/a-project-report-on-export-process-and-documentation-43-728.jpg?cb=1507643012)
The syntax for parameter file specifications is one of the following: PARAMETER= value PARAMETER=( value) PARAMETER=( value1, value2.) The following example shows a partial parameter file listing: FULL=y FILE=dba.imp GRANTS=y INDEXES=y CONSISTENT=y. Note: The maximum size of the parameter file may be limited by the operating system.
![Export Documentation Training Export Documentation Training](http://res.emagicone.com/doc/virtuemart/product-management/export/export-wizard.jpg)
The name of the parameter file is subject to the file-naming conventions of the operating system. See your Oracle operating system-specific documentation for more information. You can add comments to the parameter file by preceding them with the pound (#) sign.
Export ignores all characters to the right of the pound (#) sign. You can specify a parameter file at the same time that you are entering parameters on the command line. In fact, you can specify the same parameter in both places. The position of the PARFILE parameter and other parameters on the command line determines which parameters take precedence. For example, assume the parameter file params.dat contains the parameter INDEXES=y and Export is invoked with the following line: exp username/password PARFILE=params.dat INDEXES=n In this case, because INDEXES=n occurs after PARFILE=params.dat, INDEXES=n overrides the value of the INDEXES parameter in the parameter file.
See Also: • for descriptions of the Export parameters • for information on how to specify an export from a remote database Invoking Export As SYSDBA SYSDBA is used internally and has specialized functions; its behavior is not the same as for generalized users. Note: The BUFFER parameter applies only to conventional path Export. It has no effect on a direct path Export. Example: Calculating Buffer Size This section shows an example of how to calculate buffer size. The following table is created: CREATE TABLE sample (name varchar(30), weight number); The maximum size of the name column is 30, plus 2 bytes for the indicator. The maximum size of the weight column is 22 (the size of the internal representation for Oracle numbers), plus 2 bytes for the indicator. Therefore, the maximum row size is 56 (30+2+22+2).
To perform array operations for 100 rows, a buffer size of 5600 should be specified. COMPRESS Default: y Specifies how Export and Import manage the initial extent for table data. The default, COMPRESS=y, causes Export to flag table data for consolidation into one initial extent upon Import. If extent sizes are large (for example, because of the PCTINCREASE parameter), the allocated space will be larger than the space required to hold the data. If you specify COMPRESS=n, Export uses the current storage parameters, including the values of initial extent size and next extent size. The values of the parameters may be the values specified in the CREATE TABLE or ALTER TABLE statements or the values modified by the database system. For example, the NEXT extent size value may be modified if the table grows and if the PCTINCREASE parameter is nonzero.
Note: LOB data is not compressed. For LOB data, values of initial extent size and next extent size at the time of export are used. CONSISTENT Default: n Specifies whether or not Export uses the SET TRANSACTION READ ONLY statement to ensure that the data seen by Export is consistent to a single point in time and does not change during the execution of the exp command. You should specify CONSISTENT=y when you anticipate that other applications will be updating the target data after an export has started. If you use CONSISTENT=n, each table is usually exported in a single transaction.
However, if a table contains nested tables, the outer table and each inner table are exported as separate transactions. If a table is partitioned, each partition is exported as a separate transaction.
In-depth export training seminar. Understanding of the export procedures. And documentation.
Therefore, if nested tables and partitioned tables are being updated by other applications, the data that is exported could be inconsistent. To minimize this possibility, export those tables at a time when updates are not being done. Shows a sequence of events by two users: user1 exports partitions in a table and user2 updates data in that table. Table 1-2 Sequence of Events During Updates by Two Users TIme Sequence User1 User2 1 Begins export of TAB:P1 No activity 2 No activity Updates TAB:P2 Updates TAB:P1 Commits transaction 3 Ends export of TAB:P1 No activity 4 Exports TAB:P2 No activity If the export uses CONSISTENT=y, none of the updates by user2 are written to the export file. If the export uses CONSISTENT=n, the updates to TAB:P1 are not written to the export file. However, the updates to TAB:P2 are written to the export file because the update transaction is committed before the export of TAB:P2 begins.
As a result, the user2 transaction is only partially recorded in the export file, making it inconsistent. If you use CONSISTENT=y and the volume of updates is large, the rollback segment usage will be large. In addition, the export of each table will be slower because the rollback segment must be scanned for uncommitted transactions. Keep in mind the following points about using CONSISTENT=y: • CONSISTENT=y is unsupported for exports that are performed when you are connected as user SYS or you are using AS SYSDBA, or both. • Export of certain metadata may require the use of the SYS schema within recursive SQL. In such situations, the use of CONSISTENT=y will be ignored.
Oracle Corporation recommends that you avoid making metadata changes during an export process in which CONSISTENT=y is selected. • To minimize the time and space required for such exports, you should export tables that need to remain consistent separately from those that do not. For example, export the emp and dept tables together in a consistent export, and then export the remainder of the database in a second pass. • A 'snapshot too old' error occurs when rollback space is used up, and space taken up by committed transactions is reused for new transactions. Reusing space in the rollback segment allows database integrity to be preserved with minimum space requirements, but it imposes a limit on the amount of time that a read-consistent image can be preserved. If a committed transaction has been overwritten and the information is needed for a read-consistent view of the database, a 'snapshot too old' error results. To avoid this error, you should minimize the time taken by a read-consistent export.
(Do this by restricting the number of objects exported and, if possible, by reducing the database transaction rate.) Also, make the rollback segment as large as possible. See Also: CONSTRAINTS Default: y Specifies whether or not the Export utility exports table constraints. DIRECT Default: n Specifies whether you use direct path or conventional path Export. Specifying DIRECT=y causes Export to extract data by reading the data directly, bypassing the SQL command-processing layer (evaluating buffer). This method can be much faster than a conventional path Export. For information about direct path Exports, including security and performance considerations, see.
FEEDBACK Default: 0 (zero) Specifies that Export should display a progress meter in the form of a period for n number of rows exported. For example, if you specify FEEDBACK=10, Export displays a period each time 10 rows are exported. The FEEDBACK value applies to all tables being exported; it cannot be set on a per-table basis. FILE Default: expdat.dmp Specifies the names of the export files. The default extension is. Dmp, but you can specify any extension. Because Export supports multiple export files (see the parameter ), you can specify multiple filenames to be used.
For example: exp scott/tiger FILE = dat1.dmp, dat2.dmp, dat3.dmp FILESIZE=2048 When Export reaches the value you have specified for the maximum FILESIZE, Export stops writing to the current file, opens another export file with the next name specified by the FILE parameter, and continues until complete or the maximum value of FILESIZE is again reached. If you do not specify sufficient export filenames to complete the export, Export will prompt you to provide additional filenames.
FILESIZE Default: Data is written to one file until the maximum size, as specified in, is reached. Export supports writing to multiple export files, and Import can read from multiple export files. If you specify a value (byte limit) for the FILESIZE parameter, Export will write only the number of bytes you specify to each dump file. When the amount of data Export must write exceeds the maximum value you specified for FILESIZE, it will get the name of the next export file from the FILE parameter (see for more information) or, if it has used all the names specified in the FILE parameter, it will prompt you to provide a new export filename. If you do not specify a value for FILESIZE (note that a value of 0 is equivalent to not specifying FILESIZE), then Export will write to only one file, regardless of the number of files specified in the FILE parameter.
Note: If the space requirements of your export file exceed the available disk space, Export will abort, and you will have to repeat the Export after making sufficient disk space available. The FILESIZE parameter has a maximum value equal to the maximum value that can be stored in 64 bits.
Shows that the maximum size for dump files depends on the operating system you are using and on the release of the Oracle database server that you are using. Table 1-3 Maximum Size for Dump Files Operating System Release of Oracle Server Maximum Size Any Prior to 8.1.5 2 gigabytes 32-bit 8.1.5 2 gigabytes 64-bit 8.1.5 and later Unlimited 32-bit with 32-bit files Any 2 gigabytes 32-bit with 64-bit files 8.1.6 and later Unlimited. Note: The maximum value that can be stored in a file is dependent on your operating system.
You should verify this maximum value in your Oracle operating system-specific documentation before specifying FILESIZE. You should also ensure that the file size you specify for Export is supported on the system on which Import will run.
The FILESIZE value can also be specified as a number followed by KB (number of kilobytes). For example, FILESIZE=2KB is the same as FILESIZE=2048. Similarly, MB specifies megabytes (1024 * 1024) and GB specifies gigabytes (1024**3).
B remains the shorthand for bytes; the number is not multiplied to obtain the final file size ( FILESIZE=2048B is the same as FILESIZE=2048). FLASHBACK_SCN Default: none Specifies the system change number (SCN) that Export will use to enable flashback. The export operation is performed with data consistent as of this specified SCN.
See Also: for more information about using flashback FULL Default: n Indicates that the Export is a full database mode Export (that is, it exports the entire database). Specify FULL=y to export in full database mode.
You need to have the EXP_FULL_DATABASE role to export in this mode. GRANTS Default: y Specifies whether or not the Export utility exports object grants. The object grants that are exported depend on whether you use full database mode or user mode. In full database mode, all grants on a table are exported. In user mode, only those granted by the owner of the table are exported. System privilege grants are always exported.
HELP Default: none Displays a description of the Export parameters. Enter exp help=y on the command line to invoke it.
INDEXES Default: y Specifies whether or not the Export utility exports indexes. LOG Default: none Specifies a filename to receive informational and error messages. For example: exp SYSTEM/ password LOG=export.log If you specify this parameter, messages are logged in the log file and displayed to the terminal display. OBJECT_CONSISTENT Default: n Specifies whether or not the Export utility uses the SET TRANSACTION READ ONLY statement to ensure that the data exported is consistent to a single point in time and does not change during the export. If OBJECT_CONSISTENT is set to y, each object is exported in its own read-only transaction, even if it is partitioned. In contrast, if you use the CONSISTENT parameter, then there is only one read-only transaction. See Also: OWNER Default: none Indicates that the Export is a user-mode Export and lists the users whose objects will be exported.
If the user initiating the export is the DBA, multiple users may be listed. PARFILE Default: none Specifies a filename for a file that contains a list of Export parameters. For more information on using a parameter file, see. QUERY Default: none This parameter allows you to select a subset of rows from a set of tables when doing a table mode export.
The value of the query parameter is a string that contains a WHERE clause for a SQL SELECT statement that will be applied to all tables (or table partitions) listed in the TABLE parameter. For example, if user scott wants to export only those employees whose job title is SALESMAN and whose salary is less than 1600, he could do the following (this example is UNIX-based): exp scott/tiger TABLES=emp QUERY= 'WHERE job= 'SALESMAN ' and sal. Note: Because the value of the QUERY parameter contains blanks, most operating systems require that the entire strings WHERE job= 'SALESMAN ' and sal.
See Also: • • for more information about resumable space allocation RESUMABLE_NAME Default: 'User USERNAME (USERID), Session SESSIONID, Instance INSTANCEID' The value for this parameter identifies the statement that is resumable. This value is a user-defined text string that is inserted in either the USER_RESUMABLE or DBA_RESUMABLE view to help you identify a specific resumable statement that has been suspended. This parameter is ignored unless the RESUMABLE parameter is set to y to enable resumable space allocation. RESUMABLE_TIMEOUT Default: 7200 seconds (2 hours) The value of the parameter specifies the time period during which an error must be fixed. If the error is not fixed within the timeout period, execution of the statement is aborted.
This parameter is ignored unless the RESUMABLE parameter is set to y to enable resumable space allocation. ROWS Default: y Specifies whether or not the rows of table data are exported. STATISTICS Default: ESTIMATE Specifies the type of database optimizer statistics to generate when the exported data is imported.
Options are ESTIMATE, COMPUTE, and NONE. See the Import parameter and. In some cases, Export will place the precalculated statistics in the export file as well as the ANALYZE statements to regenerate the statistics. However, the precalculated optimizer statistics will not be used at export time if a table has columns with system-generated names. The precalculated optimizer statistics are flagged as questionable at export time if: • There are row errors while exporting • The client character set or NCHAR character set does not match the server character set or NCHAR character set • A QUERY clause is specified • Only certain partitions or subpartitions are exported. See Also: TABLES Default: none Specifies that the Export is a table-mode Export and lists the table names and partition and subpartition names to export. You can specify the following when you specify the name of the table: • schemaname specifies the name of the user's schema from which to export the table or partition.
The schema names ORDSYS, MDSYS, CTXSYS, and ORDPLUGINS are reserved by Export. • tablename specifies the name of the table or tables to be exported. Table-level export lets you export entire partitioned or nonpartitioned tables.
If a table in the list is partitioned and you do not specify a partition name, all its partitions and subpartitions are exported. The table name can contain any number of '%' pattern matching characters, which can each match zero or more characters in the table name against the table objects in the database. All the tables in the relevant schema that match the specified pattern are selected for export, as if the respective table names were explicitly specified in the parameter. • partition_name indicates that the export is a partition-level Export.
Partition-level Export lets you export one or more specified partitions or subpartitions within a table. The syntax you use to specify the preceding is in the form: schemaname. Tablename: partition_name schemaname. Tablename: subpartition_name If you use tablename: partition_name, the specified table must be partitioned, and partition_name must be the name of one of its partitions or subpartitions. If the specified table is not partitioned, the partition_name is ignored and the entire table is exported. See for several examples of partition-level exports. Note: Some operating systems, such as UNIX, require that you use escape characters before special characters, such as a parenthesis, so that the character is not treated as a special character.
On UNIX, use a backslash ( ) as the escape character, as shown in the following example: TABLES= (emp,dept ) Table Name Restrictions The following restrictions apply to table names: • By default, table names in a database are stored as uppercase. If you have a table name in mixed-case or lowercase, and you want to preserve case-sensitivity for the table name, you must enclose the name in quotation marks. The name must exactly match the table name stored in the database. Some operating systems require that quotation marks on the command line be preceded by an escape character. The following are examples of how case-sensitivity can be preserved in the different Export modes. • In command-line mode: TABLES=' 'Emp ' • In interactive mode: Table(T) to be exported: 'Emp' • In parameter file mode: TABLES='Emp' • Table names specified on the command line cannot include a pound (#) sign, unless the table name is enclosed in quotation marks.
Similarly, in the parameter file, if a table name includes a pound (#) sign, the Export utility interprets the rest of the line as a comment, unless the table name is enclosed in quotation marks. For example, if the parameter file contains the following line, Export interprets everything on the line after emp# as a comment and does not export the tables dept and mydata: TABLES=(emp#, dept, mydata) However, given the following line, the Export utility exports all three tables because emp# is enclosed in quotation marks: TABLES=('emp#', dept, mydata). Note: Some operating systems require single quotation marks rather than double quotation marks, or the reverse; see your Oracle operating system-specific documentation. Different operating systems also have other restrictions on table naming. For example, the UNIX C shell attaches a special meaning to a dollar sign ($) or pound sign (#) (or certain other special characters). You must use escape characters to get such characters in the name past the shell and into Export. For a TABLES parameter that specifies multiple schema.tablename:(sub)partition_name arguments, Export attempts to purge duplicates before processing the list of objects.
TABLESPACES Default: none The TABLESPACES parameter specifies that all tables in the tablespace be exported to the Export dump file. This includes all tables contained in the list of tablespaces and all tables that have a partition located in the list of tablespaces.
Indexes are exported with their tables, regardless of where the index is stored. You must have the EXP_FULL_DATABASE role to use TABLESPACES to export all tables in the tablespace. When TABLESPACES is used in conjunction with TRANSPORT_TABLESPACE=y, you can specify a limited list of tablespaces to be exported from the database to the export file. TRANSPORT_TABLESPACE Default: n When specified as y, this parameter enables the export of transportable tablespace metadata. See Also: • • • TRIGGERS Default: y Specifies whether or not the Export utility exports triggers.
TTS_FULL_CHECK Default: FALSE When TTS_FULL_CHECK is set to TRUE, Export verifies that a recovery set (set of tablespaces to be recovered) has no dependencies (specifically, IN pointers) on objects outside the recovery set, and vice versa. USERID (username/password) Default: none Specifies the username / password (and optional connect string) of the user performing the export. If you omit the password, Export will prompt you for it. USERID can also be: username/password AS SYSDBA or username/password@instance AS SYSDBA If you connect as user SYS, you must also specify AS SYSDBA in the connect string. Your operating system may require you to treat AS SYSDBA as a special string, in which case the entire string would be enclosed in quotation marks. See for more information.
See Also: • • The user's guide for your Oracle Net protocol for information about specifying the @ connect_string for Oracle Net VOLSIZE Specifies the maximum number of bytes in an export file on each volume of tape. The VOLSIZE parameter has a maximum value equal to the maximum value that can be stored in 64 bits. See your Oracle operating system-specific documentation for more information.
The VOLSIZE value can be specified as a number followed by KB (number of kilobytes). For example, VOLSIZE=2KB is the same as VOLSIZE=2048.
Similarly, MB specifies megabytes (1024 * 1024) and GB specifies gigabytes (1024**3). B remains the shorthand for bytes; the number is not multiplied to get the final file size ( VOLSIZE=2048B is the same as VOLSIZE=2048).
Parameter Interactions Certain parameters can conflict with each other. For example, because specifying TABLES can conflict with an OWNER specification, the following command causes Export to terminate with an error: exp SYSTEM /password OWNER= jones TABLES= scott.emp Similarly, OWNER and TABLES conflict with FULL=y. Example Export Sessions This section provides examples of the following types of Export sessions: • • • • In each example, you are shown how to use both the command-line method and the parameter file method.
Example Export Session in Full Database Mode Only users with the DBA role or the EXP_FULL_DATABASE role can export in full database mode. In this example, an entire database is exported to the file dba.dmp with all GRANTS and all data. Parameter File Method > exp SYSTEM/ password PARFILE=params.dat The params.dat file contains the following information: FILE= dba.dmp GRANTS= y FULL= y ROWS= y Command-Line Method > exp SYSTEM/ password FULL=y FILE=dba.dmp GRANTS=y ROWS=y Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 16: (c) Copyright 2002 Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set About to export the entire database.. Exporting tablespace definitions. Exporting profiles.
Exporting user definitions. Exporting roles. Exporting resource costs. Exporting rollback segment definitions. Exporting database links.
Exporting sequence numbers. Exporting directory aliases. Exporting context namespaces. Exporting foreign function library names. Exporting PUBLIC type synonyms.
Exporting private type synonyms. Exporting object type definitions. Exporting system procedural objects and actions. Exporting pre-schema procedural objects and actions. Exporting cluster definitions.
About to export SYSTEM's tables via Conventional Path... Exporting table AQ$_INTERNET_AGENTS 0 rows exported.. Exporting table AQ$_INTERNET_AGENT_PRIVS 0 rows exported..
Exporting table DEF$_AQCALL 0 rows exported.. Exporting table DEF$_AQERROR 0 rows exported..
Exporting table DEF$_CALLDEST 0 rows exported.. Exporting table DEF$_DEFAULTDEST 0 rows exported.. Exporting table DEF$_DESTINATION 0 rows exported.. Exporting table DEF$_ERROR 0 rows exported.. Exporting table DEF$_LOB 0 rows exported..
Exporting table DEF$_ORIGIN 0 rows exported.. Exporting table DEF$_PROPAGATOR 0 rows exported.. Exporting table DEF$_PUSHED_TRANSACTIONS 0 rows exported.. Exporting table DEF$_TEMP$LOB 0 rows exported.. Exporting table LOGSTDBY$APPLY_MILESTONE 0 rows exported.. Exporting table LOGSTDBY$APPLY_PROGRESS.. Exporting partition P0 0 rows exported..
Exporting table LOGSTDBY$EVENTS 0 rows exported.. Exporting table LOGSTDBY$PARAMETERS 0 rows exported.. Exporting table LOGSTDBY$PLSQL 0 rows exported.. Exporting table LOGSTDBY$SCN 0 rows exported.. Exporting table LOGSTDBY$SKIP 0 rows exported..
Exporting table LOGSTDBY$SKIP_TRANSACTION 0 rows exported.. Exporting table REPCAT$_AUDIT_ATTRIBUTE 2 rows exported.. Exporting table REPCAT$_AUDIT_COLUMN 0 rows exported..
Exporting table REPCAT$_COLUMN_GROUP 0 rows exported.. Exporting table REPCAT$_CONFLICT 0 rows exported.. Exporting table REPCAT$_DDL 0 rows exported.. Exporting table REPCAT$_EXCEPTIONS 0 rows exported.. Exporting table REPCAT$_EXTENSION 0 rows exported..
Exporting table REPCAT$_FLAVORS 0 rows exported.. Exporting table REPCAT$_FLAVOR_OBJECTS 0 rows exported.. Exporting table REPCAT$_GENERATED 0 rows exported.. Exporting table REPCAT$_GROUPED_COLUMN 0 rows exported.. Exporting table REPCAT$_INSTANTIATION_DDL 0 rows exported.. Exporting table REPCAT$_KEY_COLUMNS 0 rows exported..
Exporting table REPCAT$_OBJECT_PARMS 0 rows exported.. Exporting table REPCAT$_OBJECT_TYPES 28 rows exported..
Exporting table REPCAT$_PARAMETER_COLUMN 0 rows exported.. Exporting table REPCAT$_PRIORITY 0 rows exported..
Exporting table REPCAT$_PRIORITY_GROUP 0 rows exported.. Exporting table REPCAT$_REFRESH_TEMPLATES 0 rows exported.. Exporting table REPCAT$_REPCAT 0 rows exported.. Exporting table REPCAT$_REPCATLOG 0 rows exported.. Exporting table REPCAT$_REPCOLUMN 0 rows exported.. Exporting table REPCAT$_REPGROUP_PRIVS 0 rows exported.. Exporting table REPCAT$_REPOBJECT 0 rows exported..
Exporting table REPCAT$_REPPROP 0 rows exported.. Exporting table REPCAT$_REPSCHEMA 0 rows exported.. Exporting table REPCAT$_RESOLUTION 0 rows exported.. Exporting table REPCAT$_RESOLUTION_METHOD 19 rows exported..
Exporting table REPCAT$_RESOLUTION_STATISTICS 0 rows exported.. Exporting table REPCAT$_RESOL_STATS_CONTROL 0 rows exported.. Exporting table REPCAT$_RUNTIME_PARMS 0 rows exported..
Exporting table REPCAT$_SITES_NEW 0 rows exported.. Exporting table REPCAT$_SITE_OBJECTS 0 rows exported.. Exporting table REPCAT$_SNAPGROUP 0 rows exported.. Exporting table REPCAT$_TEMPLATE_OBJECTS 0 rows exported.. Exporting table REPCAT$_TEMPLATE_PARMS 0 rows exported..
Exporting table REPCAT$_TEMPLATE_REFGROUPS 0 rows exported.. Exporting table REPCAT$_TEMPLATE_SITES 0 rows exported.. Exporting table REPCAT$_TEMPLATE_STATUS 3 rows exported.. Exporting table REPCAT$_TEMPLATE_TARGETS 0 rows exported..
Exporting table REPCAT$_TEMPLATE_TYPES 2 rows exported.. Exporting table REPCAT$_USER_AUTHORIZATIONS 0 rows exported.. Exporting table REPCAT$_USER_PARM_VALUES 0 rows exported..
Exporting table SQLPLUS_PRODUCT_PROFILE 0 rows exported. About to export OUTLN's tables via Conventional Path... Exporting table OL$ 0 rows exported..
Exporting table OL$HINTS 0 rows exported.. Exporting table OL$NODES 0 rows exported. About to export DBSNMP's tables via Conventional Path.. About to export SCOTT's tables via Conventional Path... Exporting table BONUS 0 rows exported..
Exporting table DEPT 4 rows exported.. Exporting table EMP 14 rows exported.. Exporting table SALGRADE 5 rows exported.
About to export ADAMS's tables via Conventional Path.. About to export JONES's tables via Conventional Path.. About to export CLARK's tables via Conventional Path.. About to export BLAKE's tables via Conventional Path... Exporting table DEPT 8 rows exported.. Exporting table MANAGER 4 rows exported. Exporting synonyms.
Exporting views. Exporting referential integrity constraints. Exporting stored procedures. Exporting operators. Exporting indextypes. Exporting bitmap, functional and extensible indexes. Exporting posttables actions.
Exporting triggers. Exporting materialized views. Exporting snapshot logs. Exporting job queues. Exporting refresh groups and children. Exporting dimensions. Exporting post-schema procedural objects and actions.
Exporting user history table. Exporting default and system auditing options.
Exporting statistics Export terminated successfully without warnings. Example Export Session in User Mode User mode exports can be used to back up one or more database users.
For example, a DBA may want to back up the tables of deleted users for a period of time. User mode is also appropriate for users who want to back up their own data or who want to move objects from one owner to another. In this example, user scott is exporting his own tables. Parameter File Method > exp scott/tiger PARFILE=params.dat The params.dat file contains the following information: FILE= scott.dmp OWNER= scott GRANTS=y ROWS=y COMPRESS=y Command-Line Method > exp scott/tiger FILE=scott.dmp OWNER=scott GRANTS=y ROWS=y COMPRESS=y Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 17: (c) Copyright 2002 Oracle Corporation.
All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set.
Exporting pre-schema procedural objects and actions. Exporting foreign function library names for user SCOTT.
Exporting PUBLIC type synonyms. Exporting private type synonyms. Exporting object type definitions for user SCOTT About to export SCOTT's objects..
Exporting database links. Exporting sequence numbers.
Exporting cluster definitions. About to export SCOTT's tables via Conventional Path... Exporting table BONUS 0 rows exported.. Exporting table DEPT 4 rows exported.. Exporting table EMP 14 rows exported..
Exporting table SALGRADE 5 rows exported. Exporting synonyms. Exporting views. Exporting stored procedures.
Exporting operators. Exporting referential integrity constraints. Exporting triggers. Exporting indextypes. Exporting bitmap, functional and extensible indexes.
Exporting posttables actions. Exporting materialized views. Exporting snapshot logs.
Exporting job queues. Exporting refresh groups and children. Exporting dimensions. Exporting post-schema procedural objects and actions. Exporting statistics Export terminated successfully without warnings. Example Export Sessions in Table Mode In table mode, you can export table data or the table definitions. (If no rows are exported, the CREATE TABLE statement is placed in the export file, with grants and indexes, if they are specified.) A user with the EXP_FULL_DATABASE role can use table mode to export tables from any user's schema by specifying TABLES=schemaname.tablename.
If schemaname is not specified, Export defaults to the previous schema name from which an object was exported. If there is not a previous object, Export defaults to the exporter's schema.
In the following example, Export defaults to the SYSTEM schema for table a and to scott for table c: > exp SYSTEM/ password TABLES=(a, scott.b, c, mary.d) A user with the EXP_FULL_DATABASE role can also export dependent objects that are owned by other users. A nonprivileged user can export only dependent objects for the specified tables that the user owns. Exports in table mode do not include cluster definitions. As a result, the data is exported as unclustered tables.
Thus, you can use table mode to uncluster tables. Example 1: DBA Exporting Tables for Two Users In this example, a DBA exports specified tables for two users. Parameter File Method > exp SYSTEM/ password PARFILE=params.dat The params.dat file contains the following information: FILE=expdat.dmp TABLES=(scott.emp,blake.dept) GRANTS=y INDEXES=y Command-Line Method > exp SYSTEM/ password FILE=expdat.dmp TABLES=(scott.emp,blake.dept) GRANTS=y- INDEXES=y Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 17: (c) Copyright 2002 Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path. Current user changed to SCOTT..
Exporting table EMP 14 rows exported Current user changed to BLAKE.. Exporting table DEPT 8 rows exported Export terminated successfully without warnings.
Example 2: User Exports Tables That He Owns In this example, user blake exports selected tables that he owns. Parameter File Method > exp blake/paper PARFILE=params.dat The params.dat file contains the following information: FILE=blake.dmp TABLES=(dept,manager) ROWS=y COMPRESS=y Command-Line Method > exp blake/paper FILE=blake.dmp TABLES=(dept, manager) ROWS=y COMPRESS=y Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 17: (c) Copyright 2002 Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path... Exporting table DEPT 8 rows exported..
Exporting table MANAGER 4 rows exported Export terminated successfully without warnings. Example 3: Using Pattern Matching to Export Various Tables In this example, pattern matching is used to export various tables for users scott and blake. Parameter File Method > exp SYSTEM/ password PARFILE=params.dat The params.dat file contains the following information: FILE=misc.dmp TABLES=(scott.%P%,blake.%,scott.%S%) Command-Line Method > exp SYSTEM/ password FILE=misc.dmp TABLES=(scott.%P%,blake.%,scott.%S%) Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 17: (c) Copyright 2002 Oracle Corporation.
All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path. Current user changed to SCOTT..
Exporting table DEPT 4 rows exported.. Exporting table EMP 14 rows exported Current user changed to BLAKE.. Exporting table DEPT 8 rows exported.. Exporting table MANAGER 4 rows exported Current user changed to SCOTT.. Exporting table BONUS 0 rows exported.. Exporting table SALGRADE 5 rows exported Export terminated successfully without warnings. Example Export Session Using Partition-Level Export In partition-level export, you can specify the partitions and subpartitions of a table that you want to export.
Example 1: Exporting a Table Without Specifying a Partition Assume emp is a table that is partitioned on employee name. There are two partitions, m and z. As this example shows, if you export the table without specifying a partition, all of the partitions are exported. Parameter File Method > exp scott/tiger PARFILE=params.dat The params.dat file contains the following: TABLES=(emp) ROWS=y Command-Line Method > exp scott/tiger TABLES=emp rows=y Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 17: (c) Copyright 2002 Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path...
Exporting table EMP.. Exporting partition M 8 rows exported.. Exporting partition Z 6 rows exported Export terminated successfully without warnings. Example 2: Exporting a Table with a Specified Partition Assume emp is a table that is partitioned on employee name. There are two partitions, m and z. As this example shows, if you export the table and specify a partition, only the specified partition is exported. Parameter File Method > exp scott/tiger PARFILE=params.dat The params.dat file contains the following: TABLES=(emp:m) ROWS=y Command-Line Method > exp scott/tiger TABLES=emp:m rows=y Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 17: (c) Copyright 2002 Oracle Corporation.
All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path... Exporting table EMP.. Exporting partition M 8 rows exported Export terminated successfully without warnings. Example 3: Exporting a Composite Partition Assume emp is a partitioned table with two partitions, m and z. Table emp is partitioned using the composite method.
Partition m has subpartitions sp1 and sp2, and partition z has subpartitions sp3 and sp4. As the example shows, if you export the composite partition m, all its subpartitions ( sp1 and sp2) will be exported. If you export the table and specify a subpartition ( sp4), only the specified subpartition is exported. Parameter File Method > exp scott/tiger PARFILE=params.dat The params.dat file contains the following: TABLES=(emp:m,emp:sp4) ROWS=y Command-Line Method > exp scott/tiger TABLES=(emp:m, emp:sp4) ROWS=y Export Messages Export: Release 9.2.0.1.0 - Production on Wed Feb 27 17: (c) Copyright 2002 Oracle Corporation.
All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production With the Partitioning and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production Export done in WE8DEC character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path...
Exporting table EMP.. Exporting composite partition M.. Exporting subpartition SP1 1 rows exported.. Exporting subpartition SP2 3 rows exported..
Exporting composite partition Z.. Exporting subpartition SP4 1 rows exported Export terminated successfully without warnings. Using the Interactive Method Starting Export from the command line with no parameters initiates the interactive method. The command-line interactive method does not provide prompts for all Export functionality and is provided only for backward compatibility. If you want to use an interactive interface to the Export utility, it is recommended that you use the Oracle Enterprise Manager (OEM) Export Wizard.
If you do not specify a username/ password combination on the command line, the Export utility prompts you for this information. When you invoke Export interactively, the response given by Export depends on what you enter at the command line.
Shows the possibilities. Table 1-4 Invoking Export Using the Interactive Method You enter. See Also: and your Oracle operating system-specific documentation Exit Codes for Inspection and Display Export provides the results of an export operation immediately upon completion.
Depending on the platform, Export may report the outcome in a process exit code as well as recording the results in the log file. This enables you to check the outcome from the command line or script. Shows the exit codes that get returned for various results. See Also: • • Performance Issues for Direct Path Exports You may be able to improve performance by increasing the value of the RECORDLENGTH parameter when you invoke a direct path Export. See Also: • • Character Set and Globalization Support Considerations This section describes the behavior of Export and Import with respect to globalization support. Character Set Conversion The Export utility always exports user data, including Unicode data, in the character sets of the Export server.
The character sets are specified at database creation. The Import utility automatically converts the data to the character sets of the Import server. Some 8-bit characters can be lost (that is, converted to 7-bit equivalents) when you import an 8-bit character set export file.
This occurs if the client system has a native 7-bit character set or if the NLS_LANG operating system environment variable is set to a 7-bit character set. Most often, you notice that accented characters lose their accent mark. Both Export and Import provide descriptions of any required character set conversion before exporting or importing the data. Note: Data definition language (DDL), such as a CREATE TABLE command, is exported in the client character set. Effect of Character Set Sorting Order on Conversions If the export character set has a different sorting order than the import character set, then tables that are partitioned on character columns may yield unpredictable results.
For example, consider the following table definition, which is produced on a database having an ASCII character set: CREATE TABLE partlist ( part VARCHAR2(10), partno NUMBER(2) ) PARTITION BY RANGE (part) ( PARTITION part_low VALUES LESS THAN ('Z') TABLESPACE tbs_1, PARTITION part_mid VALUES LESS THAN ('z') TABLESPACE tbs_2, PARTITION part_high VALUES LESS THAN (MAXVALUE) TABLESPACE tbs_3 ); This partitioning scheme makes sense because z comes after Z in ASCII character sets. When this table is imported into a database based upon an EBCDIC character set, all of the rows in the part_mid partition will migrate to the part_low partition because z comes before Z in EBCDIC character sets. To obtain the desired results, the owner of partlist must repartition the table following the import. See Also: • • • Considerations When Exporting Database Objects The following sections describe points you should consider when you export particular database objects. Exporting Sequences If transactions continue to access sequence numbers during an export, sequence numbers can be skipped.
The best way to ensure that sequence numbers are not skipped is to ensure that the sequences are not accessed during the export. Sequence numbers can be skipped only when cached sequence numbers are in use. When a cache of sequence numbers has been allocated, they are available for use in the current database.
The exported value is the next sequence number (after the cached values). Sequence numbers that are cached, but unused, are lost when the sequence is imported.
Exporting LONG and LOB Datatypes On export, LONG datatypes are fetched in sections. However, enough memory must be available to hold all of the contents of each row, including the LONG data. LONG columns can be up to 2 gigabytes in length. All data in a LOB column does not need to be held in memory at the same time.
LOB data is loaded and unloaded in sections. Exporting Foreign Function Libraries The contents of foreign function libraries are not included in the export file. Instead, only the library specification (name, location) is included in full database and user mode export. You must move the library's executable files and update the library specification if the database is moved to a new location.
Exporting Offline Bitmapped Tablespaces If the data you are exporting contains offline bitmapped tablespaces, Export will not be able to export the complete tablespace definition and will display an error message. You can still import the data; however, you must first create the offline bitmapped tablespaces before importing to prevent DDL commands that may reference the missing tablespaces from failing. Exporting Directory Aliases Directory alias definitions are included only in a full database mode Export. To move a database to a new location, the database administrator must update the directory aliases to point to the new location. Directory aliases are not included in user or table mode Export.
Therefore, you must ensure that the directory alias has been created on the target system before the directory alias is used. Exporting BFILE Columns and Attributes The export file does not hold the contents of external files referenced by BFILE columns or attributes. Instead, only the names and directory aliases for files are copied on Export and restored on Import.
If you move the database to a location where the old directories cannot be used to access the included files, the database administrator (DBA) must move the directories containing the specified files to a new location where they can be accessed. External Tables The contents of external tables are not included in the export file. Instead, only the table specification (name, location) is included in full database and user mode export.
You must manually move the external data and update the table specification if the database is moved to a new location. Exporting Object Type Definitions In all Export modes, the Export utility includes information about object type definitions used by the tables being exported. The information, including object name, object identifier, and object geometry, is needed to verify that the object type on the target system is consistent with the object instances contained in the export file. This ensures that the object types needed by a table are created with the same object identifier at import time. Note, however, that in table, user, and tablespace mode, the export file does not include a full object type definition needed by a table if the user running Export does not have execute access to the object type. In this case, only enough information is written to verify that the type exists, with the same object identifier and the same geometry, on the import target system.
The user must ensure that the proper type definitions exist on the target system, either by working with the DBA to create them, or by importing them from full database or user mode exports performed by the DBA. It is important to perform a full database mode export regularly to preserve all object type definitions. Alternatively, if object type definitions from different schemas are used, the DBA should perform a user mode export of the appropriate set of users. For example, if table1 belonging to user scott contains a column on blake's type type1, the DBA should perform a user mode export of both blake and scott to preserve the type definitions needed by the table.
Exporting Nested Tables Inner nested table data is exported whenever the outer containing table is exported. Although inner nested tables can be named, they cannot be exported individually. Exporting Advanced Queue (AQ) Tables Queues are implemented on tables. The export and import of queues constitutes the export and import of the underlying queue tables and related dictionary tables. You can export and import queues only at queue table granularity.
When you export a queue table, both the table definition information and queue data are exported. Because the queue table data is exported as well as the table definition, the user is responsible for maintaining application-level data integrity when queue table data is imported. See Also: Exporting Synonyms You should be cautious when exporting compiled objects that reference a name used as a synonym and as another object.
Exporting and importing these objects will force a recompilation that could result in changes to the object definitions. The following example helps to illustrate this problem: CREATE PUBLIC SYNONYM emp FOR scott.emp; CONNECT blake/paper; CREATE TRIGGER t_emp BEFORE INSERT ON emp BEGIN NULL; END; CREATE VIEW emp AS SELECT * FROM dual; If the database in the preceding example were exported, the reference to emp in the trigger would refer to blake's view rather than to scott's table.
This would cause an error when Import tried to reestablish the t_emp trigger. Possible Export Errors Related to Java Synonyms If an export operation attempts to export a synonym named DBMS_JAVA when there is no corresponding DBMS_JAVA package or when Java is either not loaded or loaded incorrectly, the export will terminate unsuccessfully. The error messages that are generated include, but are not limited to, the following: EXP-00008, ORA-00904, and ORA-29516.
If Java is enabled, make sure that both the DBMS_JAVA synonym and DBMS_JAVA package are created and valid before rerunning the export. If Java is not enabled, remove Java-related objects before rerunning the export. Support for Fine-Grained Access Control You can export tables with fine-grained access control policies enabled. When doing so, consider the following: • The user who imports from an export file containing such tables must have the appropriate privileges (specifically, the EXECUTE privilege on the DBMS_RLS package so that the tables' security policies can be reinstated).
If a user without the correct privileges attempts to export a table with fine-grained access policies enabled, only those rows that the exporter is privileged to read will be exported. • If fine-grained access control is enabled on a SELECT statement, then conventional path Export may not export the entire table because fine-grained access may rewrite the query. • Only user SYS, or a user with the EXPORT_FULL_DATABASE role enabled or who has been granted EXEMPT ACCESS POLICY, can perform direct path Exports on tables having fine-grained access control. See Also: for more information about fine-grained access control Transportable Tablespaces The transportable tablespace feature enables you to move a set of tablespaces from one Oracle database to another. To move or copy a set of tablespaces, you must make the tablespaces read-only, copy the datafiles of these tablespaces, and use Export and Import to move the database information (metadata) stored in the data dictionary. Both the datafiles and the metadata export file must be copied to the target database. The transport of these files can be done using any facility for copying flat binary files, such as the operating system copying facility, binary-mode FTP, or publishing on CD-ROMs.
After copying the datafiles and exporting the metadata, you can optionally put the tablespaces in read/write mode. Export provides the following parameters to enable export of transportable tablespace metadata. • TABLESPACES • TRANSPORT_TABLESPACE See and for more information. See Also: • for details about managing transportable tablespaces • for an introduction to transportable tablespaces Exporting from a Read-Only Database To extract metadata from a source database, Export uses queries that contain ordering clauses (sort operations).
For these queries to succeed, the user performing the export must be able to allocate on-disk sort segments. For these sort segments to be allocated in a read-only database, the user's temporary tablespace should be set to point at a temporary, locally managed tablespace.
See Also: for more information on setting up this environment Using Export and Import to Partition a Database Migration When you use the Export and Import utilities to migrate a large database, it may be more efficient to partition the migration into multiple export and import jobs. If you decide to partition the migration, be aware of the following advantages and disadvantages. Advantages of Partitioning a Migration Partitioning a migration has the following advantages: • Time required for the migration may be reduced because many of the subjobs can be run in parallel. • The import can start as soon as the first export subjob completes, rather than waiting for the entire export to complete. Disadvantages of Partitioning a Migration Partitioning a migration has the following disadvantages: • The export and import processes become more complex. • Support of cross-schema references for certain types of objects may be compromised. For example, if a schema contains a table with a foreign key constraint against a table in a different schema, you may not have the required parent records when you import the table into the dependent schema.
Note: The catexp6.sql and catexp7.sql scripts must be run by user SYS. These scripts only need to be run once.
• In general, you can use the Export utility from any Oracle8 release to export from an Oracle9 i server and create an Oracle8 export file. Restrictions When Using Different Releases and Versions of Export and Import The following restrictions apply when you are using different releases of Export and Import: • Export dump files can be read only by the Import utility because they are stored in a special binary format. • Any export dump file can be imported into a higher release of the Oracle database server. • The Import utility can read export dump files created by Export release 5.1.22 and higher. • The Import utility cannot read export dump files created by the Export utility of a higher maintenance release or version.
For example, a release 8.1 export dump file cannot be imported by a release 8.0 Import utility, and a version 8 export dump file cannot be imported by a version 7 Import utility. • The Oracle version 6 (or earlier) Export utility cannot be used against an Oracle8 or higher database.
• Whenever a lower version of the Export utility runs with a higher version of the Oracle database server, categories of database objects that did not exist in the lower version are excluded from the export. For example, partitioned tables did not exist in the Oracle database server version 7. So, if you need to move a version 8 partitioned table to a version 7 database, you must first reorganize the table into a nonpartitioned table.
• Export files generated by Oracle9 i Export, either direct path or conventional path, are incompatible with earlier releases of Import and can be imported only with Oracle9 i Import. When backward compatibility is an issue, use the earlier release or version of the Export utility against the Oracle9 i database.
Examples of Using Different Releases of Export and Import shows some examples of which Export and Import releases to use when moving data between different releases of the Oracle database server. Table 1-6 Using Different Releases of Export and Import Export from->Import to Use Export Release Use Import Release 7.3.3 -> 8.1.6 7.3.3 8.1.6 8.1.6 -> 8.1.6 8.1.6 8.1.6 8.1.5 -> 8.0.6 8.0.6 8.0.6 8.1.7 -> 8.1.6 8.1.6 8.1.6 8.1.7 -> 7.3.4 7.3.4 7.3.4 9.0.1 -> 8.1.6 8.1.6 8.1.6 9.0.1 -> 9.0.2 9.0.1 9.0.2 1 If catexp7.sql has never been run on the 8.1.7 database, then you must do that first to create the Oracle7 data dictionary views. Only then can you successfully use Export release 7.3.4 on the release 8.1.7 database. Creating Oracle Release 8.0 Export Files from an Oracle9 i Database You do not need to take any special steps to create an Oracle release 8.0 export file from an Oracle9 i database.
However, the following features are not supported when you use Export release 8.0 on an Oracle9 i database: • Export does not export rows from tables containing objects and LOBs when you have specified a direct path load ( DIRECT=y). • Export does not export dimensions.
• Functional and domain indexes are not exported. • Secondary objects (tables, indexes, sequences, and so on, created in support of a domain index) are not exported. • Views, procedures, functions, packages, type bodies, and types containing references to new Oracle9 i features may not compile. • Objects whose DDL is implemented as a stored procedure rather than SQL are not exported. • Triggers whose action is a CALL statement are not exported. • Tables containing logical ROWID columns, primary key refs, or user-defined OID columns will not be exported. • Temporary tables are not exported.
• Index-organized tables (IOTs) revert to an uncompressed state. • Partitioned IOTs lose their partitioning information. • Index types and operators are not exported. • Bitmapped, temporary, and UNDO tablespaces are not exported. • Java sources, classes, and resources are not exported.
• Varying-width CLOBs, collection enhancements, and LOB-storage clauses for VARRAY columns or nested table enhancements are not exported. • Fine-grained access control policies are not preserved. • External tables are not exported. Possible Errors When Using Different Releases and Versions This section briefly discusses some of the error messages you might receive if incompatible releases or versions of the Export utility and the Oracle database server are used. EXP-24 EXP-24: Export views not installed, please notify your DBA Cause: The necessary export views were not installed.
Action: Ask the DBA to install the required views. EXP-23 EXP-23: Import views not installed, please notify your DBA Cause: The necessary import views were not installed. Action: Ask the DBA to install the required views. EXP-37 EXP-37: Export views not compatible with database version Cause: The Export utility is at a higher version than the database version. Action: Use the same version of the Export utility as the database.