How Does Oracle extract DDL statements from dump files?

Source: Internet
Author: User
Commands for the export ledump File Include expimp and expdpimpdp. For dump files, we cannot extract data directly, but we can

Commands of the Oracle dump File Include exp/imp and expdp/impdp. For dump files, we cannot extract data directly, but we can

Commands of the Oracle dump File Include exp/imp and expdp/impdp. For dump files, we cannot extract data directly, but we can extract the corresponding DDL statements from the dump file through relevant parameters.

Description of how Oracle extracts DDL statements from the Dump file

If it is an Export Import (exp/imp), it is the indexfile parameter;

If it is a data pump (expdp/impdp), it is the sqlfile parameter.

The DDL statements extracted by expdp/impdp are more detailed and more readable.

1. Use the exp/imp command

1. Export lxh user data and generate a dump file

Exp lxh/lxh file = lxh. dmp owner = lxh

2. Extract DDL statements from the dump file

Imp lxh/lxh file = lxh. dmp fromuser = lxh touser = lxh indexfile = lxh. SQL

The import command does not actually import data, but only generates all the DDL SQL statements for the corresponding user. The DDL statements of the table are annotated with REM.

Ii. Use the expdp/impdp command

1. Export lxh user data and generate a dump file

Expdp lxh/lxh directory = backup dumpfile = lxh. dmp schemas = lxh

2. Extract DDL statements from the dump file

Impdp lxh/lxh directory = backup dumpfile = lxh. dmp sqlfile = lxh. SQL

--------------- END ---------------

Detailed illustration of the entire process of VMware + Linux + Oracle 10G RAC

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

Steps for installing Oracle 11gR2 in vmwarevm

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.