- 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.
- Run the catexp.sql or catalog.sql script
- 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.
The following schema names are reserved and will not be processed by Export:
- ORDSYS
- MDSYS
- CTXSYS
- ORDPLUGINS
- LBACSYS
exp username/password PARFILE=filename
The following example shows a partial parameter file listing:
FULL=y
FILE=dba.imp
GRANTS=y
INDEXES=y
CONSISTENT=y
Invoking Export As SYSDBA
To invoke Export as SYSDBA, use the following syntax, adding any desired parameters or parameter filenames:
exp \'username/password AS SYSDBA\'
Optionally, you could also specify an instance name:
exp \'username/password@instance AS SYSDBA\'
Export Modes
The Export utility provides four modes of export:
- Full
- User (Owner)
- Table
- Tablespace
Object | ||||
Table-Level and Partition-Level Export
You can export tables, partitions, and subpartitions in the following ways:
- Table-level Export: In table-level Export, you can export an entire table (partitioned or nonpartitioned) along with its indexes and other table-dependent objects. If the table is partitioned, all of its partitions and subpartitions are also exported. This applies to both direct path Export and conventional path Export. You can perform a table-level export in any Export mode.
- Partition-level Export: In partition-level Export, you can export one or more specified partitions or subpartitions of a table. You can only perform a partition-level export in Table mode.
[FULL = Y]
| [OWNER = (username [, username]... )]
| [TABLES=([schemaname.]tablename[:partition_name][,[schemaname.]
tablename [: partition_name]]...)
| [TABLESPACES = (tablespace_name [, tablespace_name]...) ExpTSOpts]
ExpTSOpts ::=
[TRANSPORT_TABLESPACE = N]
[TTS_FULL_CHECK = { Y | N }]
ExpOpts ::=
[ ExpFileOpts
| LOG = filename
| COMPRESS = { Y | N }
| ROWS = { Y | N }
| QUERY = SQL_string
| DIRECT = { Y | N }
| FEEDBACK = integer
| STATISTICS = { COMPUTE | ESTIMATE | NONE }
| INDEXES = { Y | N }
| CONSTRAINTS = { Y | N }
| GRANTS = { Y | N }
| TRIGGERS = { Y | N }
],
ExpOpts_Cont ::=
[ CONSISTENT = { Y | N }
| OBJECT_CONSISTENT = { Y | N }
| FLASHBACK_SCN = SCN_number
| FLASHBACK_TIME = DATE
| BUFFER = integer
| RESUMABLE = { Y | N }
| RESUMABLE_NAME = resumable_string
| RESUMABLE_TIMEOUT = integer
],
ExpFilOp ::=
[
PARFILE = filename
| FILE = filename
| FILESIZE = number_of_bytes
| VOLSIZE = number_of_bytes
| LOG = filename
| RECORDLENGTH = integer
]
No comments:
Post a Comment