Database dump Import

Source: Internet
Author: User

database dump import

Introduction of the Import command:

There are two ways to import and export Oracle dump data:imp/exp,impdp/expdp. The difference between the two:

1, exp/imp client program, affected by the network, disk, IMPDP/EXPDP server-side programs, only affected by the disk .

2.exp Conventional Way is to useSELECTthe way to query the data in the database is throughBuffer Cacheand througheverSqlThe statement processing layer is then transferred toExpthe Export file. The flow of data for this process is: (1) data throughSelectthe data is loaded by the file system into theBuffer Cache(Database Cache) (2) byPGA(user process, each connection will correspond to aPGA) transfers the cached data over the network to the client-generated file. EXP Direct path mode ,The number is directly from the disktransferred toExpexport files, so faster. andEXPDPis aExpthe upgraded version, the files are compressed and processed in parallel, so the speed is the fastest.

Second, the data import step

1. Create User

Create user Res_xj identified by q1w2e3r$ default Tablespace general;

Grant DBA to RES_XJ;

2. CREATE TABLE Space

Create Tablespace Indx_gen

DataFile ' E:\oradata\resdb\INDX_GEN01.dbf ' size 5000M

Autoextend on

Next 5000M

MaxSize 30000M

Extent management Local;

3. Building Files Directory
Create or replace directory Dump_dir as ' H:\cq_resdata_dump ';

4. Import Statements

IMPDP res_xj/q1w2e3r$ directory=dump_dir dumpfile=expdp_20161014_xj.dmp logfile=imp_20161108.log FULL=Y TABLE_EXISTS _action=replace

Specific parameters, please search the Internet.

Third, the matters needing attention

1. Note the size of the table space.

2. When importing, note the exported database and the version of the imported database.

3, if the first import has a problem, terminated the import, the second import please add table_exists_action=replace, otherwise the database already exists object, this import will be ignored. Data that is not finished will also be ignored.

Database dump Import

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.