Oracle Data Pump Export table

Source: Internet
Author: User
Tags create directory


Oracle Data Pump Export Demo steps


1. Create a directory with Oracle users

mkdir Software_bak

[Email protected] ~]$ CD software_bak/

[Email protected] software_bak]$ pwd

/home/oracle/software_bak

2. set up the catalogue and authorize

Sql> Show user;

USER is "SYSTEM"

Sql> Create directory Software_bak as '/home/oracle/software_bak ';

Sql> Grant Read, write on directory software_bak to software;

Grant succeeded.


3.

Second, View the Administrator directory (also see if the operating system exists, because Oracle does not care if the directory exists, and if it does not exist, an error occurs)
Sql>select * from Dba_directories;



4. Export Data


View the exported data



Export a table

EXPDP software/oracle directory=software_bak dumpfile=software.dmp tables= users


Log in to the database using software:

View table:

Sql> select * from users;

Id

----------

1

2

3


To delete a table:

drop table users;

Check Again

Sql> select * from users;

SELECT * from Users

*

ERROR at line 1:

Ora-00942:table or view does not exist

Import Table:

IMPDP software/oracle directory=software_bak dumpfile=software.dmp tables= users


Log in to the database using software:

To see if a table exists:

Sqlplus software/oracle

Sql> Show user;

USER is "Software"

Sql> select * from users;

Id

----------

1

2

3

Data has been restored


Oracle Data Pump Export table

Related Article

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.