The following is an example, modified according to the actual situation--The following is the format of the date timeEXPDP Ha_soar/[email protected] Schemas=wyzj directory=data_pump_dir dumpfile=wyzj%date:~0,4%%date:~5,2%%date:~8,2% %time:~0,2%%time:~3,2%.dmp Logfile=wyzj%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%.log--Date formatEXPDP System/[email protected] schemas=wyzj directory=data_pump_dir dumpfile=wyzj_%date%.dmp logfile=WYZJ_%DATE%.logData
According to Oracle's documentation, the data pump in different ways to export imports, performance can be significantly different, this time just have the opportunity to test, migration table space, direct path, external table, and database chain export, import performance differences.
First check that the table space of the source database satisfies the self contained condition:
Sql> EXEC Dbms_tts. Transport_set_check (' tjsq,tjsq_tmp ')
Pl/sql p
.
Dumpfile=temp. DMP:TEMP.DMP is the data pump file you want to import.
Reuse_dumpfiles=y: This parameter is removed when imported.
Schemas= (bfb2c,trans_user,bfcrm,bfstatuser): The database instance to import, now I just import the first one, so
Schemas= (BFB2C) is OK.
If the export and import is not the same database, to use the REMAP_SCHEMA=A:B parameter, when you export data from a user, want to import to B users, use this: Remap_schema=a:b.
Logfi
For data pump EXPDP/IMPDP, the function is much stronger than the ordinary exp/imp function, so it is difficult to accomplish some common export import tools.
For example, the problem that comes up today is to export some tables, but the individual tables only export the structure without exporting the data.
Sql> Conn Test/test
Connected.
Sql> Set Pages Lines 120
Sql> Select COUNT (*) from T;
COUNT (*)
----------
23
Sql> Select COUNT (*) from
Tags: OracleFirst, prepare the target database1. Ensure that the target database's character set Nls_characterset and the source database are consistentSELECT * FROM Nls_database_parameters2. Create a database table space to migrateSelect Tablespace_name from Dba_tablespacesCreate tablespace bbgodb datafile ' +data_vg ' size 300m autoextend on3, create the corresponding schemaCreate user bbgo identified by bbgo default Tablespace bbgodbGrant Connect,resource to Bbgo4. Create a directory and auth
User: EXPDP system/[emailprotected] directory= Expdp_dir dumpfile=0526netobdc.dmp logfile=0526netobdc.log SCHEMAS=NETOBDC 2) Export by table name: EXPDP system/[email Protected] Directory=expdp_dir dumpfile=0526netobdc.dmp logfile=0526netobdc.log tables=emp,dept 3) export entire database: EXPDP System/[emailprotected] Directory=expdp_dir dumpfile=0526netobdc.dmp logfile=0526netobdc.log FULL=y Iv. Import1. Create a logical directory that does not create a real directory in the operating system
-production on Mon Jan 5 10:26:09 2015Copyright (c) 1982, the Oracle and/or its affiliates. All rights reserved.Connected to:oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production with the partitioning, OLAP, Da Ta Mining and Real Application testing optionsOra-39001:invalid argument valueOra-39000:bad dump file specificationOra-39142:incompatible version number 4.1 in dump file "/home/oracle/desktop/test/expiirspublish20141117.dmp "Source-side database version 12c, target da
1, export the name of a table (here will export sequences and function and other content)EXPDP Test/test@orcl schemas=Test DumpFile=test.dmp DIRECTORY=Db_bak EXCLUDE=TABLE: \ "not in \ (\'a\') \"2, export the name is not a table (remove not and we are accustomed to the exact opposite)EXPDP Test/test@orcl schemas=Test DumpFile=test.dmp DIRECTORY=Db_bak EXCLUDE=TABLE: \ "in \ (\'a\') \"3, import the name of a table (here will import sequences and function and other content)IMPDP Test/test@orcl DIR
Tags: command line file space log using view import parameter HTTP--Reference http://www.lanstonwu.com/using-datapump-export-and-import-data/ First, pre-preparation 1. telnet to the server in SSH and locate the intermediate file (. DMP) stored in the directory: /*rmdir/home/oracle/pump_dir--Delete Empty directory */ 2. Create a logical directory with Administrator Sys Create or replace directory Pump_dir as '/home/oracle/pump_dir '; 3. Give user users permission to operate in the specified dire
-----------------------------------------------BttestSql>--use EXPDP to export the remote database to a local folder D:\oracle\bfzg0828.dmpC:\USERS\ADMINISTRATORGT;EXPDP Bfzg0828/[email protected] directory=dir_exp dumpfile=bfzg0828.dmp logfile= Bfzg0828.log network_link=test113--After successful export, import to local library using IMPDP--Here is the new user Bfzg user, has the Connect,resouce role permission, Table_exists_action=replace said, assuming the table exists is replaced, IMP has no
Label:From a library user UA guide data to B library user UB1. ExportEXPDP ua/[email protected]/orcl schemas=ua directory=data_pump_dir dumpfile=ua.dmp logfile=ua.logSchemas the list of scenarios to export, unspecified Shime considers the current logged on user scenarioDefault in Data_pump_dir When directory is not specified, can be queried by select * from Dba_directoriesThis machine has the installation of Oracle, can be executed directly in CMD, the command executes after the DMP file is gene
Label:First, EXPDP and IMPDP instructions for use Oracle Database 10g introduces the latest data Dump technology, the role of data Pump export import (EXPDP and IMPDP) 1) Implement logical backup and logical recovery. 2) Move objects between database users. 3) moving objects between databases 4) Implement table space removal. Second, the data pump export import and traditional export import difference Prio
Label:First, EXPDP and IMPDP instructions for useOracle Database 10g introduces the latest data Dump technology, the role of data Pump export import (EXPDP and IMPDP)1) Implement logical backup and logical recovery.2) Move objects between database users.3) moving objects between databases4) Implement table space removal.Second, the data pump export import and traditional export import differencePrior to 10g
Oracle Data Pump detailed
The Oracle database 10g uses data pump technology that enables DBAs or developers to quickly move database metadata (object definitions) and data to another Oracle databases.the role of data Pump export import (EXPDP and IMPDP):1, the implementation of logical backup and logical recovery.2. Move objects between database users.3. Moving o
way to complete makeup you can imagine, and the fastest in the bedroom can go from shabby and dated to crisp and sophisticated or alive and vibrant in minutes. you can buy comforter bed in bag sets to suit your budget also budget to luxury and pleasure Ralph Lauren.These packages cover a fairly large area, and all sizes are available, which means you can be specific to uncover some of the things in the taste category California king. keep an eye on the latest version and see if you can become a
Tags: data pump EXPDPProblem Description : Oracle has been using data pump backups, and today suddenly reported ora-39006:internal error errors at the end of the backup. The data pump export log file is the following information: Ora-39097:data Pump Job encountered unexpected error-31644
ora-39065:unexpected Master pro
Oracle backup method mainly divided into data pump export backup, hot backup and cold backup three kinds, today first to practice the data pump backup and restore. Data pump export/import is a logical backup, both hot and cold backups are physical backups. ORACLE10G started to roll out the data Pump (EXPDP/IMPDP) and c
The data pump tool can be called from the command good use program EXPDP and IMPDPFeatures of data pump technologyAll import/export work is done by the DB instancecan be established using dbms_datapump PL/SQL APL. Detecting and invoking data pump tasksThe IMPDP/ECPD Import Export task can be restarted, similar to a breakpoint on a network downloadHow to export EX
Some time ago in a migration of data pump and exp, found that the difference in efficiency is quite large. Here is an example of a simple comparison.
This article compares the differences between IMP and IMPDP import.
The comparison of exp and data pump export, you can see that the data pump export speed and direct path, compared to the speed is not the essence
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.