Oracle Data Pump : What Happens During Execution
Data Pump jobs use a master table, a master process, and worker processes to perform the work and keep track of progress.
Co-ordination :
For every export or import job, a master process is created. That master process control the entire job, including communicating with the clients, creating and controlling a pool of worker processes, and performing logging operations.
Tracking :
While the data and metadata are being transferred, a master table is used to track the progress within a job. The master table is implemented as a user table within the database. Function of the master table are as follows -
1. For export jobs, the master table records the location of database objects within a dump file set. Export builds and maintains the master table for the duration of the job. At the end of an export job, the content of the master table is written to a file in the dump file set.
2. For import jobs, the master table is loaded from the dump file set and is used to control the sequence of operations for locating objects that need to be imported into the target database.
Note :
To perform data pump job, the user must have the CREATE TABLE system previllege and sufficient tablespace quota for creation of the master table.
The name of the master table is the same as the name of the job that created it. Therefore, you cannot explicitly give a Data Pump job the same name as a preexisting table or view.
The master table is either retained or dropped, depending on the circumstances, as follows:
1. Upon successful job completion, the master table is dropped. You can override this by setting the Data Pump KEEP_MASTER=YES parameter for the job.
2. The master table is automatically retained for jobs that do not complete successfully.
3. If a job is stopped using the STOP_JOB interactive command, then the master table is retained for use in restarting the job.
4. If a job is killed using the KILL_JOB interactive command, then the master table is dropped and the job cannot be restarted.
5. If a job terminates unexpectedly, then the master table is retained. You can delete it if you do not intend to restart the job.
6. If a job stops before it starts running (that is, before any database objects have been copied), then the master table is dropped.
Filter Data and Metadata :
Within the master table, specific objects are assigned attributes such as name or owning schema. Objects also belong to a class of objects (such as TABLE, INDEX, or DIRECTORY). You can use the EXCLUDE and INCLUDE parameters to restrict the types of objects that are exported and imported.
Transform Metadata :
When you are moving data from one database to another, it is often useful to perform transformations on the metadata for remapping storage between tablespaces or redefining the owner of a particular set of objects. This is done using the following Data Pump Import parameters: REMAP_DATAFILE, REMAP_SCHEMA, REMAP_TABLE,REMAP_TABLESPACE, TRANSFORM, and PARTITION_OPTIONS.
Maximize The Performance :
Data Pump can employ multiple worker processes, running in parallel, to increase job performance. Use the PARALLEL parameter to set a degree of parallelism that takes maximum advantage of current conditions.
Loading and Unloading of Data :
The worker processes unload and load metadata and table data. During import they also rebuild indexes. Some of these operations may be done in parallel: unloading and loading table data, rebuilding indexes, and loading package bodies. All other operations are done serially.
No comments:
Post a Comment