1. Instructions on using expdp/impdp on the client
Some documents about Oracle expdp/impdp commands have been prepared. The links are as follows:
Comparison between exp/IMP and expdp/impdp and some optimization items in use
Http://blog.csdn.net/tianlesoftware/article/details/6093973
Oracle 10g Data Pump expdp/impdp
H
An example of oracle impdp and expdp is provided.
Create a test table and insert Test Data
Create table test_tab (id number not null primary key, name varchar2 (20); insert into test_tab values (1, 'Data 1 ');
Create directory object
create or replace directory DMP_DIR as '/oradata/ebankbak/';
Export the specified table
expdp mia/mia tables=test_tab dumpfile=test.dmp directory=DMP_DIR
Import the specified
The original version of a testing database of the company is Oracle 11gR2. Some of the 10g syntax is somewhat different. The boss said to re-build the test database and use the 10G version.
Although it can be shut down, the data volume is not big, but during the day, R D colleagues need to use the test library, so they can only work overtime at night. We plan to use the data pump expdp/impdp. Since the version parameter needs to be added to the impor
Due to production requirements, you need to copy the rmtel user data to rmtel_xzy, but exclude the rmtel user (
Due to production requirements, you need to copy the rmtel user data to rmtel_xzy, but exclude the rmtel user (
Scenario:
Due to production requirements, you need to completely copy rmtel user data to rmtel_xzy, but exclude rmtel users ('cab _ JJXPORT_TAB ','t _ servicexx', 'tb _ crossconnection ', 'tb _ link', 'tb _ card', 'tb _ physicaliner iner ', and 'tb _ port. That is to say
emp and then performs an import operation to check whether the table is rebuilt. Whether the rebuilt table is in the moved table space
Sql> Conn Scott/tigerConnected.sql> drop table emp Purge;Table dropped.
[Email protected] scripts]$ VI expdp.sh content is as follows:
EXPDP system/oracle directory=ora_bak file=071501.dmp file=071502.dmp dumpfile=071501.dmp file=071502.dmp log=0715_ Full.log full=y filesize=300mSpecify the maximum size 300M for the exported file here, just to
Remap_table, Remap_tablespace multiple sets of object conversions, separated by commas between each group of objects
When tables are multiple, each table is separated by commas
Remap_tablespace If you need to convert more than one table space, such as A1 conversion into B1,A2 to B1, like the next two ways
REMAP_TABLESPACE=A1:B1 REMAP_TABLESPACE=A2:B1
Remap_tablespace= A1:B1, A2:B1
Remap_table If you need to convert multiple table names
In the case of the same schema, such as A1 converted into
Two problems encountered during impdp import: impdp import encountered two problems
Two days ago, you need to import the data dump exported from a remote test database using expdp to a local test environment. Some problems are encountered, which is worth a summary.
Environment Introduction:
1. Data volume: 10 + tables,
2. Both the source and target databases are 11.2.0.4
3. Different character sets, the s
follows:
Extimate_only={y | N
When set to Y, the export action estimates only the disk space occupied by the object, and does not perform an export job, when n, not only estimating the disk space occupied by the object, but also performing an export operation, examples are as follows:
EXPDP Scott/tiger estimate_only=y Nologfile=y
7. EXCLUDE
This option specifies the object type or related object to exclude when performing an action. The syntax is as follows:
exclude=object_type[:name_clause][,.
Use IMPDP to export server dump files locally, use IMPDP to import remote database users locally1) EXPDP is a 2 of the dump files that can be generated on the client) IMPDP is a migration copy of the data that can be performed between different instances 1:1) The remote database WSJB user is exported to the local disk by using the EXPDP command under the D:\ Micr
permission on the specified directory. It is best to grant permissions to the system administrator.
Grant read, write on directory dpdata1 to Scott;
Iv. Export data
1) by User Guide
Expdp Scott/tiger @ orcl schemas = Scott dumpfile = expdp. dmp directory = dpdata1;
2) parallel process parallel
Expdp Scott/tiger @ orcl directory = dpdata1 dumpfile = scott3.dmp parallel = 40 job_name = scott3
3) import by table name
Expdp Scott/tiger @ orcl tables = EMP, DEPT dumpfile = expdp. dmp
are not commonly used daily. You can use the expdp-help parameter.
An example of using expdp is as follows:
Expdp qlzq/qlzqp SCHEMAS = ebmall directory = test dumpfile = ebmall. dmp logfile = ebmall. log
This is an operation to export all objects under the user's ebmall to the ebmall. dmp file under the test directory. The recorded log file is ebmall. log.
Expdp qlzq/qlzqp directory = test dumpfile = qlzq. dmp logfile = qlzq. log EXCLUDE = TABLE: \ "
Problems and Solutions of impdp ORA-39002, ORA-39166 and ORA-39164
During performance tests on imp and impdp, we found that if the table contains a lob field, loading is really slow, and there are about 1000 entries per second. At this speed, basically, you don't need to work.
For example, 50000000/1000 million records, 60/60/13.89 = hours, the time is unacceptab
1. Use expdp and impdp
Oracle Database 10 Gb introduces the latest data pump 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) move objects between databases4) Implement table space migration.
Ii. Differences between data pump export and traditional export
Before 10 Gb, the traditional export and impor
. For example: EXPDP user/pwd parfile=xxx.par Logfile=a.log, if logfile is also specified in the parameter file, the logfile in the command line will prevail; for example: EXPDP user/pwd logfile= A.log Parfile=xxx.par, and this, will take precedence in the parameter file, because Parfile=xxx.par is written at the back of the command line.3. Interactive modeThe Data pump import and Export task supports stop,
A brief description of oracle expdp impdp using the Data Pump expdp. impdp can import and export data on the server side, which is highly efficient without setting the environment variable NLS_LANG, by default, the database will go to the character set create directory backup as '/backup'; grant read, write on directory backup to scott; 1 Database-based export, import database a full Database Export expdp s
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.